/* ============================================
   PORTADA (index.html) - solo se carga ahí
   ============================================ */

html { scroll-behavior: smooth; }

body.landing {
    max-width: none;
    margin: 0;
    padding: 0;
    background: #0b1220;
    color: #cbd5e1;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
}

.landing h1, .landing h2, .landing h3 {
    font-family: 'Unbounded', 'Segoe UI', sans-serif;
    border: none;
    margin: 0;
    padding: 0;
    color: inherit;
}

.landing a { text-decoration: none; }
.landing a:hover { text-decoration: none; }

/* ---------- Barra superior ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 32px;
    background: rgba(11, 18, 32, 0.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-marca {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

.logo-marca svg { width: 34px; height: 34px; flex-shrink: 0; }

.nav-enlaces {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-enlaces a.enlace {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-enlaces a.enlace:hover { color: #38bdf8; }

.landing form {
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    max-width: none;
}

.landing .nav-salir {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 16px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.landing .nav-salir:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primario {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-borde {
    color: #ffffff;
    border: 2px solid #0ea5e9;
    background: rgba(14, 165, 233, 0.06);
}

.btn-borde:hover { background: rgba(14, 165, 233, 0.16); }

.btn-pequeno { padding: 8px 18px; font-size: 0.9rem; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 120px 24px 90px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(37, 99, 235, 0.25), transparent 60%),
        #0b1220;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

/* Destellos que caen por la cuadrícula (los pinta /js/hero-lluvia.js) */
.hero-lluvia {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
            mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}

.hero-contenido { position: relative; max-width: 860px; }

/* Pin del logo: sin fondo, con brillo y flotando */
.hero-icono {
    width: 96px; height: 96px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    animation: flotar 4s ease-in-out infinite;
}

.hero-icono svg {
    width: 88px; height: 88px;
    filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.45));
}

@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.hero h1 {
    font-size: clamp(2rem, 5.2vw, 3.8rem);
    line-height: 1.15;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 20%, #38bdf8 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.hero p.subtitulo {
    margin: 24px auto 36px;
    max-width: 620px;
    font-size: 1.15rem;
    color: #cbd5e1;
}

.hero-botones {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.bajar {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    font-size: 1.6rem;
    animation: rebote 2s ease-in-out infinite;
}

@keyframes rebote {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* ---------- Secciones ---------- */
.seccion { padding: 96px 24px; }
.seccion-clara { background: #f8fafc; color: #475569; }
.seccion-oscura { background: #0f172a; color: #cbd5e1; }

.contenedor { max-width: 1080px; margin: 0 auto; }

.etiqueta {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
}

.seccion-oscura .etiqueta { color: #94a3b8; }

.titulo-seccion {
    text-align: center;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 56px !important;
}

.seccion-clara .titulo-seccion { color: #0f172a; }
.seccion-oscura .titulo-seccion { color: #ffffff; }

/* ---------- Pasos ---------- */
.pasos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.paso-tarjeta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 26px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.paso-numero {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    margin-bottom: 18px;
}

.paso-tarjeta h3 {
    font-size: 1.05rem !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
}

.paso-tarjeta p { margin: 0; font-size: 0.95rem; }

/* ---------- Escaparate con móvil ---------- */
.escaparate {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.escaparate h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px !important;
}

.escaparate p { color: #cbd5e1; }

.ventajas { margin-top: 26px; display: grid; gap: 14px; }

.ventaja { display: flex; gap: 12px; align-items: flex-start; color: #e2e8f0; }

.ventaja .tic {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.movil {
    width: 100%;
    max-width: 310px;
    margin: 0 auto;
    background: #ffffff;
    color: #111827;
    border-radius: 30px;
    padding: 24px 22px 28px;
    border: 8px solid #1e293b;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 60px rgba(14, 165, 233, 0.15);
}

.m-cabecera {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.m-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.m-nombre { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.m-sub { font-size: 0.78rem; color: #6b7280; }

.m-equipo { font-weight: 600; margin-bottom: 14px; font-size: 0.95rem; }

.m-paso {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.m-punto {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    color: #ffffff;
}

.m-paso.hecho { color: #111827; }
.m-paso.hecho .m-punto { background: #16a34a; border-color: #16a34a; }

.m-paso.actual { color: #2563eb; font-weight: 700; }
.m-paso.actual .m-punto { border-color: #2563eb; background: #dbeafe; }

/* ---------- Sectores ---------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 820px;
    margin: 0 auto;
}

.chip {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ---------- Llamada final ---------- */
.cta-final {
    padding: 90px 24px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(14, 165, 233, 0.35), transparent 65%),
        linear-gradient(135deg, #1e3a8a, #0b1220);
}

.cta-final h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    color: #ffffff;
    margin-bottom: 14px !important;
}

.cta-final p { color: #cbd5e1; margin: 0 auto 30px; max-width: 520px; }

/* ---------- Pie ---------- */
.pie {
    background: #070c16;
    color: #64748b;
    margin: 0;
    padding: 28px 24px;
    font-size: 0.88rem;
    text-align: center;
}

.pie a { color: #94a3b8; margin: 0 10px; }
.pie a:hover { color: #38bdf8; }

/* ---------- Móvil ---------- */
@media (max-width: 800px) {
    .nav { padding: 12px 16px; }
    .nav-enlaces a.enlace { display: none; }
    .nav-enlaces a.enlace.enlace-acceso { display: inline; white-space: nowrap; }
    .nav-enlaces { gap: 10px; }
    .nav .btn-pequeno, .landing .nav-salir { white-space: nowrap; }
    .logo-marca span { font-size: 0.9rem; }
    .pasos { grid-template-columns: 1fr; }
    .escaparate { grid-template-columns: 1fr; gap: 40px; }
    .seccion { padding: 72px 20px; }
}

/* Texto corto del enlace de acceso: solo en móviles estrechos */
.nav .txt-corto { display: none; }

/* Móvil: la barra cabe en una línea (solo el pin del logo) */
@media (max-width: 560px) {
    .nav { gap: 10px; }
    .logo-marca span { display: none; }
    .nav-enlaces a.enlace.enlace-acceso { font-size: 0.88rem; }
    .nav .btn-pequeno, .landing .nav-salir { padding: 8px 14px; }
}

/* Móviles estrechos o con la letra del sistema agrandada */
@media (max-width: 400px) {
    .nav { padding: 10px 12px; }
    .nav .txt-largo { display: none; }
    .nav .txt-corto { display: inline; }
    .nav-enlaces { gap: 8px; }
    .nav .btn-pequeno, .landing .nav-salir { padding: 7px 11px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-icono, .bajar { animation: none; }
    html { scroll-behavior: auto; }
}