/* ══════════════════════════════════════════════════════════════════════════
   styles_bienvenida.css — Página de presentación (previa al inicio de sesión)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --accent:      #227ee5;   /* verde institucional */
    --accent-dark: #116fd7;
    --accent-dark2:#116fd7;
    --accent-dim:  #e7f4ee;
    --ink:         #000000;   /* texto principal */
    --ink-sub:     #000000;   /* texto secundario */
    --bg:          #a7cee0;
    --surface:     #ffffff;
    --border:      #e2e8e5;
    --shadow:      0 4px 18px rgba(20, 60, 45, .08);
    --shadow-h:    0 10px 30px rgba(20, 60, 45, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ── Barra de navegación ─────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo { display: flex; align-items: center; gap: 9px; }
.logo-img { height: 38px; width: auto; display: block; }

.nav-acciones { display: flex; align-items: center; gap: 10px; }

.btn-nav-login {
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
    border: 1px solid transparent;
    transition: background .15s, border-color .15s;
}
.btn-nav-login:hover { background: var(--accent-dim); }

.btn-nav-registro {
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(26, 127, 90, .28);
    transition: background .15s, transform .1s;
}
.btn-nav-registro:hover { background: var(--accent-dark2); }
.btn-nav-registro:active { transform: translateY(1px); }

/* ── Aviso de sesión activa ──────────────────────────────────────────────── */
.aviso-sesion {
    max-width: 1080px;
    margin: 14px auto 0;
    padding: 10px 18px;
    background: var(--accent-dim);
    border: 1px solid #bfe3d3;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--accent-dark2);
}
/* El atributo hidden debe ganar al display:flex de la clase; si no, el
   cartel se mostraría siempre aunque no haya sesión. */
.aviso-sesion[hidden] { display: none; }
.aviso-sesion a { font-weight: 700; color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 380px at 78% -10%, rgba(26, 127, 90, .14), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 76px 24px 60px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-dim);
    color: var(--accent-dark2);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.hero-title {
    margin: 0 0 20px;
    font-size: 42px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -.5px;
}
.hero-title .emoji { -webkit-text-fill-color: initial; }
.hero-sub {
    margin: 0 auto 30px;
    max-width: 660px;
    font-size: 17.5px;
    color: var(--ink-sub);
}
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-nota { margin-top: 18px; font-size: 13px; color: var(--ink-sub); }

/* ── Botones principales ─────────────────────────────────────────────────── */
.btn-primario {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(26, 127, 90, .32);
    transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-primario:hover { background: var(--accent-dark2); box-shadow: var(--shadow-h); }
.btn-primario:active { transform: translateY(1px); }
.btn-primario--grande { padding: 16px 40px; font-size: 17px; }

.btn-secundario {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--accent-dark2);
    font-weight: 700;
    font-size: 16px;
    border: 1px solid var(--border);
    transition: border-color .15s, background .15s;
}
.btn-secundario:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ── Cómo funciona ───────────────────────────────────────────────────────── */
.como {
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px 24px 20px;
    text-align: center;
}
.como-titulo {
    margin: 0 0 36px;
    font-size: 28px;
    font-weight: 800;
}
.pasos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    text-align: left;
}
.paso {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.paso:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.paso-icono {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    border-radius: 13px;
    background: var(--accent-dim);
    margin-bottom: 16px;
}
.paso-titulo { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.paso-texto { margin: 0; font-size: 15px; color: var(--ink-sub); }
.paso-texto strong { color: var(--accent-dark2); }

/* ── Cierre ──────────────────────────────────────────────────────────────── */
.cierre {
    max-width: 780px;
    margin: 40px auto 20px;
    padding: 48px 24px 56px;
    text-align: center;
}
.cierre-texto {
    margin: 0 0 26px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

/* ── Pie ─────────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
    padding: 26px 24px;
    font-size: 13px;
    color: var(--ink-sub);
}
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--accent-dark2); font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .pasos { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .hero-inner { padding: 56px 20px 44px; }
}
@media (max-width: 480px) {
    .logo-img { height: 32px; }
    .btn-nav-login { display: none; }
    .hero-title { font-size: 27px; }
    .hero-sub { font-size: 16px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn-primario, .hero-cta .btn-secundario { width: 100%; }
}
