/* ==========================================================
   TuFlechazo — estilo base (mobile-first, sin dependencias)
   Paleta: coral #ff5a6e · azul noche #1b2440 · dorado #e8b84b
   ========================================================== */

:root {
    --coral: #ff5a6e;
    --coral-dark: #e04457;
    --night: #1b2440;
    --night-light: #2a3455;
    --gold: #e8b84b;
    --bg: #fff8f8;
    --text: #2b2b33;
    --muted: #7a7a86;
    --card: #ffffff;
    --line: #f0e3e4;
    --success: #2e9e63;
    --error: #d23b4f;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(27, 36, 64, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

main.wrap { padding-top: 28px; padding-bottom: 48px; min-height: 60vh; }

/* ---------- Cabecera / nav ---------- */
.site-header {
    background: var(--night);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 16px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .heart { color: var(--coral); }

.nav-toggle {
    margin-left: auto;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .35);
    color: #fff;
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 1;
    padding: 6px 12px;
    cursor: pointer;
}

.nav-links {
    display: none;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 8px 0 4px;
    list-style: none;
    margin: 0;
}
.nav-links.open { display: flex; }

.nav-links a {
    color: #eef0fa;
    padding: 8px 6px;
    border-radius: 8px;
    display: block;
}
.nav-links a:hover, .nav-links a.active {
    background: var(--night-light);
    color: #fff;
    text-decoration: none;
}

.nav-user { color: var(--gold); font-weight: 600; }

/* ---------- Héroe ---------- */
.hero {
    background: linear-gradient(rgba(11, 20, 40, .62), rgba(11, 20, 40, .78)), url('../img/hero-bg.jpg') center 30%/cover no-repeat;
    color: #fff;
    border-radius: var(--radius);
    padding: 48px 28px;
    text-align: center;
    box-shadow: var(--shadow);
}
.hero h1 { margin: 0 0 12px; font-size: 2rem; line-height: 1.25; }
.hero p.lead { font-size: 1.1rem; color: #f3dfe3; max-width: 560px; margin: 0 auto 20px; }
.hero .badge-free {
    display: inline-block;
    background: var(--gold);
    color: var(--night);
    font-weight: 800;
    border-radius: 999px;
    padding: 6px 18px;
    margin-bottom: 16px;
    letter-spacing: .5px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-secondary { background: var(--night); color: #fff; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-outline {
    background: transparent;
    color: var(--coral-dark);
    border: 2px solid var(--coral);
}
.btn-danger { background: var(--error); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Tarjetas ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.grid { display: grid; gap: 20px; }
@media (min-width: 700px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .nav-toggle { display: none; }
    .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        margin-left: auto;
        padding: 0;
        gap: 4px;
    }
    .hero h1 { font-size: 2.6rem; }
}

/* Tarjeta de perfil (vista de resultados / coincidencias) */
.profile-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.profile-card .photo {
    aspect-ratio: 4 / 5;
    background: var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .9rem;
}
.profile-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .info { padding: 14px 16px; }
.profile-card .info h3 { margin: 0 0 4px; font-size: 1.1rem; }
.profile-card .info .meta { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.profile-card .actions { padding: 0 16px 16px; display: flex; gap: 8px; }

/* ---------- Formularios ---------- */
.form { max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e5d5d6;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 90, 110, .15);
}
textarea { min-height: 110px; resize: vertical; }

.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-bottom: 8px; }
.checks input { width: auto; }

/* ---------- Alertas ---------- */
.alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert-success { background: #e7f6ee; border-color: #bfe6d0; color: #1c6b40; }
.alert-error   { background: #fdeaec; border-color: #f5c2c9; color: #8f1f2e; }
.alert-info    { background: #eaf0ff; border-color: #c4d3ff; color: #24356e; }

/* ---------- Pie ---------- */
.site-footer {
    background: var(--night);
    color: #c9cede;
    padding: 28px 0;
    font-size: .9rem;
}
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
}
.site-footer a { color: #fff; }
.site-footer .donate {
    background: var(--gold);
    color: var(--night);
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 999px;
}
.site-footer .donate:hover { text-decoration: none; filter: brightness(1.06); }
.site-footer .age18 {
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .8rem;
    white-space: nowrap;
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-2 { margin-top: 16px; }
.small { font-size: .85rem; }

/* ---------- Portada enriquecida ---------- */
.hero-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.hero-brand img { height: 56px; width: 56px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); }
.hero-brand span { font-size: 1.5rem; font-weight: 800; color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.hero .lead { max-width: 640px; margin: 0 auto 16px; }
.promise { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.promise span { background: rgba(255,255,255,.14); color: #fff; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.btn-donate { background: var(--gold); color: var(--night); }
.btn-donate:hover { filter: brightness(1.06); color: var(--night); text-decoration: none; }

.community-note { display: flex; gap: 14px; align-items: flex-start; background: #fff8e6; border: 1px solid #f0d98c; border-radius: var(--radius); padding: 18px; margin: 22px 0; }
.community-note strong { display: block; margin-bottom: 4px; }
.community-note p { margin: 0 0 10px; font-size: .95rem; }

.ejemplos-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .ejemplos-grid { grid-template-columns: repeat(4, 1fr); } }
.ej-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ej-card img { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; display: block; }
.ej-card .ej-body { padding: 10px 12px; }
.ej-card .ej-body strong { display: block; }
.ej-card .ej-body small { color: var(--muted); }

.donate-card { background: var(--night); color: #fff; border-radius: var(--radius); padding: 24px; margin: 22px 0; text-align: center; }
.donate-card h3 { margin: 6px 0 8px; color: #fff; }
.donate-card p { color: #d7dcec; max-width: 560px; margin: 0 auto 14px; }
.donate-card .eyebrow { color: var(--gold); }
.free-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 700px) { .free-grid { grid-template-columns: repeat(3, 1fr); } }
.free-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.free-grid strong { display: block; margin-bottom: 4px; }
.free-grid span { font-size: .9rem; color: var(--muted); }

.safety-list { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 700px) { .safety-list { grid-template-columns: repeat(3, 1fr); } }
.safety-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.safety-item strong { display: block; margin-bottom: 4px; }
.safety-item span { font-size: .9rem; color: var(--muted); }

.ideas-teaser { text-align: center; }
