/* ═══════════════════════════════════════════════════════════════
   Ofertas Energías — Landing (default.inc.php)
   Hoja de estilos de la nueva identidad (dorado + azul marino)
   Se carga desde el fragmento de la landing (y la sección de sorteos).
   Multiplica sobre Bootstrap 5; el resto del sitio no se ve afectado.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens de marca ─────────────────────────────────────────── */
:root {
    --oe-gold:       #E5B326;   /* Dorado / Amarillo Energías (primario) */
    --oe-gold-2:     #D99B18;   /* Dorado intensificado (hover)          */
    --oe-gold-soft:  rgba(229, 179, 38, .14);
    --oe-gold-line:  rgba(229, 179, 38, .45);
    --oe-navy:       #0B192C;   /* Azul marino profundo                  */
    --oe-navy-soft:  #0E1A2B;   /* Navy secundario                       */
    --oe-navy-2:     #12263C;   /* Navy elevado (tarjetas oscuras)       */
    --oe-cream:      #F8FAFC;   /* Fondo neutro crema                    */
    --oe-muted:      #64748B;   /* Metadatos / texto secundario (slate)  */
    --oe-line:       rgba(11, 25, 44, .08);   /* bordes sutiles claros   */
    --oe-line-navy:  rgba(255, 255, 255, .10);/* bordes sutiles navy     */
    --oe-display:    'Space Grotesk', 'Inter', system-ui, sans-serif;
    --oe-body:       'Inter', system-ui, -apple-system, sans-serif;
    /* Fallback: Bootstrap 5.0.2 no define --bs-body-font-family (sí lo hace 5.2+).
       Se declara aquí apuntando a la variable real del body para que
       `font-family: var(--bs-body-font-family)` resuelva correctamente. */
    --bs-body-font-family: var(--bs-font-sans-serif);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR del shell (se pinta sobre las páginas con menú: landing
   y sección de sorteos). Fondo navy + acentos dorados.
   ═══════════════════════════════════════════════════════════════ */
nav.navbar.fixed-top {
    background: linear-gradient(180deg, rgba(11, 25, 44, .97) 0%, rgba(11, 25, 44, .92) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--oe-line-navy);
    padding: .65rem 0;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
nav.navbar .navbar-brand .logo {
    width: 52px;
    height: 52px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
}
nav.navbar .navbar-brand {
    padding: 0;
}
nav.navbar .nav-link {
    color: rgba(255, 255, 255, .78);
    font-family: var(--oe-body);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: -.01em;
    padding: .5rem .9rem;
    border-radius: 999px;
    transition: color .2s ease-out, background-color .2s ease-out;
}
nav.navbar .nav-link:hover,
nav.navbar .nav-link:focus-visible {
    color: var(--oe-gold);
    background: rgba(229, 179, 38, .10);
}
nav.navbar .navbar-toggler {
    color: rgba(255, 255, 255, .75);
    border-color: rgba(255, 255, 255, .25);
}
nav.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 .25rem rgba(229, 179, 38, .35);
}
@media (max-width: 767.98px) {
    nav.navbar .navbar-collapse {
        background: var(--oe-navy-soft);
        border: 1px solid var(--oe-line-navy);
        border-radius: 1rem;
        margin-top: .6rem;
        padding: .75rem .5rem;
    }
    nav.navbar .nav-link { border-radius: .75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   BASE DE LA LANDING (todo aislado bajo #landing para no afectar
   al resto del sitio: páginas legales, sorteos individuales…)
   ═══════════════════════════════════════════════════════════════ */
#landing {
    font-family: var(--oe-body);
    color: var(--oe-navy);
    -webkit-font-smoothing: antialiased;
}

/* ── Overlay sobre el fondo fijo (parallax) ─────────────────── */
/* Capa fija entre la imagen de fondo del body y el contenido en scroll:
   atenúa los blancos de la foto y garantiza contraste en toda la página.
   z-index:-1 la coloca bajo el contenido (sin crear stacking context en
   #landing, para que modals/overlays sigan por encima del navbar) y
   pointer-events:none deja pasar clics y scroll. */
#landing .oe-bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 25, 44, .80);   /* navy corporativo 80% */
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: -1;
}

/* Texto claro para zonas que flotan sobre el overlay oscuro */
#landing .oe-faint { color: rgba(255, 255, 255, .62); }
/* Texto dentro de tarjetas (se adapta al tema claro/oscuro)    */
#landing .oe-subtle { font-size: .92rem; color: var(--oe-muted); }
#landing .oe-panel-text { font-size: .9rem; color: var(--oe-muted); }
#landing .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
#landing h1, #landing h2, #landing h3, #landing .oe-display {
    font-family: var(--oe-display);
    letter-spacing: -.02em;
    line-height: 1.12;
}
#landing .oe-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--oe-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--oe-gold-2);
    background: var(--oe-gold-soft);
    border: 1px solid var(--oe-gold-line);
    padding: .5rem 1rem;
    border-radius: 999px;
}
#landing .oe-claim {
    font-family: var(--bs-body-font-family);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--oe-gold);
}

/* ── Botones ─────────────────────────────────────────────────── */
#landing .oe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--oe-display);
    font-weight: 600;
    letter-spacing: -.01em;
    font-size: 1rem;
    padding: .9rem 2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .2s ease-out;
}
#landing .oe-btn span { font-size: 1.15em; line-height: 1; }
#landing .oe-btn-gold {
    background: var(--oe-gold);
    color: var(--oe-navy);
    box-shadow: 0 8px 24px rgba(229, 179, 38, .30);
}
#landing .oe-btn-gold:hover,
#landing .oe-btn-gold:focus-visible {
    background: var(--oe-gold-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(217, 155, 24, .40);
    color: var(--oe-navy);
}
#landing .oe-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .35);
}
#landing .oe-btn-outline:hover,
#landing .oe-btn-outline:focus-visible {
    color: var(--oe-gold);
    border-color: var(--oe-gold);
    background: rgba(229, 179, 38, .08);
    transform: translateY(-2px);
}
#landing .oe-btn-navy {
    background: var(--oe-navy);
    color: #fff;
    box-shadow: 0 8px 22px rgba(11, 25, 44, .22);
}
#landing .oe-btn-navy:hover,
#landing .oe-btn-navy:focus-visible {
    background: var(--oe-navy-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(11, 25, 44, .30);
    color: #fff;
}
#landing .oe-btn:focus-visible,
#landing .oe-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(229, 179, 38, .35);
}
#landing .oe-btn:disabled { opacity: .7; pointer-events: none; }
#landing .oe-btn-lg { padding: 1.05rem 2.4rem; font-size: 1.08rem; }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
#landing .oe-hero {
    position: relative;
    margin-top: 2.25rem;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--oe-navy);
    color: #fff;
}
#landing .oe-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    opacity: .38;
}
#landing .oe-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(229, 179, 38, .18) 0%, transparent 60%),
        linear-gradient(180deg, rgba(11, 25, 44, .82) 0%, rgba(11, 25, 44, .66) 55%, rgba(11, 25, 44, .92) 100%);
}
#landing .oe-hero-content {
    position: relative;
    z-index: 2;
    padding: 5.5rem 1.5rem 4.5rem;
}
@media (min-width: 768px) {
    #landing .oe-hero-content { padding: 7rem 3rem 5.5rem; }
}
#landing .oe-hero h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    max-width: 21ch;
    margin: 0 auto;
}
#landing .oe-hero h1 .oe-gold {
    color: var(--oe-gold);
    position: relative;
}
#landing .oe-hero-sub {
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
}
#landing .oe-hero-sub strong { color: #fff; font-weight: 600; }
#landing .oe-hero-sub .oe-bright { color: var(--oe-gold); font-weight: 600; }
#landing .oe-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.75rem;
    color: rgba(255, 255, 255, .82);
    font-size: .92rem;
}
#landing .oe-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
#landing .oe-hero-trust .material-symbols-outlined { color: var(--oe-gold); font-size: 1.25rem; }
#landing .oe-hero .oe-claim { font-size: 1.9rem; }

/* ── Secciones base ──────────────────────────────────────────── */
#landing .oe-section { padding: 4.5rem 0; scroll-margin-top: 6.5rem; }
@media (min-width: 768px) { #landing .oe-section { padding: 5.5rem 0; } }
#landing .oe-section-head .oe-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--oe-navy); }
#landing .oe-section-head .oe-sub { color: var(--oe-muted); max-width: 56ch; margin: .6rem auto 0; font-size: 1rem; line-height: 1.6; }

/* ── Tarjetas ────────────────────────────────────────────────── */
#landing .oe-card {
    background: #fff;
    border: 1px solid var(--oe-line);
    border-radius: 1.5rem;
    transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
#landing .oe-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 179, 38, .35);
    box-shadow: 0 18px 44px rgba(11, 25, 44, .10);
}
#landing .oe-card-3xl { border-radius: 2rem; }
#landing .oe-card-hover { transition: all .2s ease-out; }

/* ═══════════════════════════════════════════════════════════════
   FORMULARIO / FUNNEL
   ═══════════════════════════════════════════════════════════════ */
#landing .oe-service-selector {
    display: inline-flex;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: .3rem;
    gap: .25rem;
}
#landing .oe-service {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    color: rgba(255, 255, 255, .72);
    cursor: pointer;
    user-select: none;
    transition: all .2s ease-out;
    margin: 0;
}
#landing .oe-service img { width: 18px; height: 18px; object-fit: contain; }
#landing .oe-service:hover { color: #fff; background: rgba(255, 255, 255, .14); }
#landing .oe-service:focus-visible { outline: 2px solid var(--oe-gold); outline-offset: 2px; }

/* Indicadores de paso */
#landing .oe-steps { display: flex; justify-content: center; align-items: flex-start; gap: .4rem 1rem; }
#landing .oe-step-node { display: flex; align-items: center; gap: .55rem; }
#landing .step-indicator {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    font-family: var(--oe-display);
    transition: all .3s ease-out;
}
#landing .step-indicator.done   { background: var(--oe-gold); color: var(--oe-navy); position: relative; }
#landing .step-indicator.done::after {
    content: '✓';
    position: absolute;
    font-size: .95rem;
}
#landing .step-indicator.current { background: var(--oe-navy); color: var(--oe-gold); box-shadow: 0 0 0 4px rgba(229, 179, 38, .28); }
#landing .step-indicator.pending { background: rgba(255, 255, 255, .10); color: rgba(255, 255, 255, .55); }
#landing .oe-step-label { font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .62); text-transform: uppercase; letter-spacing: .08em; }
#landing .oe-step-line { height: 2px; background: rgba(255, 255, 255, .18); align-self: center; width: 2.5rem; border-radius: 2px; }
@media (min-width: 768px) { #landing .oe-step-line { width: 4.5rem; } }
#landing .oe-progress {
    height: 4px;
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    overflow: hidden;
}
#landing #progress-bar {
    height: 100%;
    width: 12%;
    background: linear-gradient(90deg, var(--oe-gold), var(--oe-gold-2));
    border-radius: 999px;
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

/* Paso 1 — Upload */
#landing .upload-zone {
    border: 2px dashed rgba(11, 25, 44, .18);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    background: var(--oe-cream);
    transition: all .25s ease-out;
}
#landing .upload-zone:hover,
#landing .upload-zone.drag-over {
    border-color: var(--oe-gold);
    background: var(--oe-gold-soft);
}
#landing .upload-zone .material-symbols-outlined { color: var(--oe-gold-2); }
#landing .upload-zone p { color: var(--oe-muted); }
#landing .upload-zone .oe-upload-link { color: var(--oe-navy); font-weight: 600; }
#landing .upload-zone .oe-upload-hint { color: rgba(100, 116, 139, .75); font-size: .78rem; }
#landing .upload-zone .oe-file-name { color: var(--oe-gold-2); font-weight: 600; font-size: .9rem; }
#landing .oe-upload-note { font-size: .78rem; color: var(--oe-muted); line-height: 1.55; }
#landing .oe-upload-note .material-symbols-outlined { font-size: .95rem; }

/* Paso 2 — Campos */
#landing .oe-field label { font-size: .88rem; font-weight: 600; color: var(--oe-navy); margin-bottom: .4rem; display: block; }
#landing .oe-field .oe-req { color: var(--oe-gold-2); }
#landing .oe-input {
    width: 100%;
    background: var(--oe-cream);
    border: 1px solid transparent;
    border-radius: .85rem;
    padding: .85rem 1rem;
    font-family: var(--oe-body);
    font-size: .95rem;
    color: var(--oe-navy);
    transition: all .2s ease-out;
}
#landing .oe-input::placeholder { color: rgba(100, 116, 139, .6); }
#landing .oe-input:hover { background: #fff; border-color: rgba(11, 25, 44, .10); }
#landing .oe-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--oe-gold);
    box-shadow: 0 0 0 4px rgba(229, 179, 38, .18);
}
#landing .oe-field-panel { background: rgba(11, 25, 44, .035); border-radius: 1rem; padding: 1rem; }

/* Sliders */
#landing input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: transparent;
}
#landing input[type=range]::-webkit-slider-runnable-track { height: 8px; background: rgba(11, 25, 44, .12); border-radius: 4px; }
#landing input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 26px; width: 26px;
    border-radius: 50%;
    background: var(--oe-gold);
    border: 3px solid #fff;
    margin-top: -9px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(229, 179, 38, .5);
    transition: transform .15s ease-out;
}
#landing input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
#landing input[type=range]::-moz-range-track { height: 8px; background: rgba(11, 25, 44, .12); border-radius: 4px; }
#landing input[type=range]::-moz-range-thumb {
    height: 26px; width: 26px;
    border-radius: 50%;
    background: var(--oe-gold);
    border: 3px solid #fff;
    cursor: pointer;
}
#landing .oe-range-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--oe-muted); margin-top: .4rem; }
#landing .oe-range-value { color: var(--oe-gold-2); font-family: var(--oe-display); font-weight: 700; }

/* Pasos internos (mostrar/ocultar) */
#landing .step-panel { transition: opacity .35s ease, transform .35s ease; }
#landing .step-hidden { opacity: 0; transform: translateY(24px); pointer-events: none; position: absolute; visibility: hidden; width: 100%; }
#landing .step-visible { opacity: 1; transform: translateY(0); position: relative; visibility: visible; width: 100%; }

/* Revisión (paso 3) */
#landing .oe-ok-box {
    background: rgba(229, 179, 38, .08);
    border: 1px solid rgba(229, 179, 38, .35);
    border-radius: 1rem;
    padding: 1rem;
}
#landing .oe-ok-box .oe-box-title { font-size: .88rem; font-weight: 700; color: var(--oe-gold-2); margin-bottom: .6rem; }
#landing .oe-pending-box {
    background: rgba(255, 160, 0, .07);
    border: 1px solid rgba(255, 160, 0, .30);
    border-radius: 1rem;
    padding: 1rem;
}
#landing .oe-pending-box .oe-box-title { font-size: .88rem; font-weight: 700; color: #B45309; margin-bottom: .6rem; }
#landing .oe-review-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .92rem; color: var(--oe-navy); }
#landing .oe-review-row + .oe-review-row { margin-top: .5rem; }
#landing .oe-val { color: var(--oe-gold-2); font-weight: 700; }
#landing .oe-pending-input {
    background: var(--oe-cream);
    border: 1px solid transparent;
    border-radius: .6rem;
    padding: .45rem .7rem;
    font-size: .88rem;
    width: 12rem;
    color: var(--oe-navy);
    transition: all .2s ease-out;
}
#landing .oe-pending-input:focus { outline: none; border-color: var(--oe-gold); box-shadow: 0 0 0 3px rgba(229, 179, 38, .18); }

/* Paso 4 — Contacto / consentimientos */
#landing .oe-consent {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    cursor: pointer;
    margin: 0;
}
#landing .oe-consent input[type=checkbox] {
    flex-shrink: 0;
    width: 1.25rem; height: 1.25rem;
    margin-top: .15rem;
    accent-color: var(--oe-gold-2);
}
#landing .oe-consent-text { font-size: .85rem; color: var(--oe-muted); line-height: 1.5; }
#landing .oe-consent-text strong { color: var(--oe-navy); font-weight: 600; }
#landing .oe-consent-text .oe-link { color: var(--oe-gold-2); font-weight: 600; text-decoration: underline; }
#landing .oe-consent-text .oe-required { color: var(--oe-gold-2); font-weight: 700; }
#landing .oe-legal-note { font-size: .75rem; color: var(--oe-muted); line-height: 1.6; }
#landing .oe-legal-note strong { color: var(--oe-navy); }
#landing .oe-legal-note a { color: var(--oe-gold-2); text-decoration: underline; }

/* Botones internos del funnel */
#landing .oe-link-btn {
    background: none;
    border: none;
    font-size: .88rem;
    font-weight: 600;
    color: var(--oe-muted);
    transition: color .2s ease-out;
    text-decoration: underline;
}
#landing .oe-link-btn:hover { color: var(--oe-navy); }
#landing .oe-primary-btn {
    background: var(--oe-navy);
    border: 1px solid transparent;
    color: #fff;
    font-family: var(--oe-display);
    font-weight: 600;
    font-size: .92rem;
    padding: .8rem 2rem;
    border-radius: 999px;
    transition: all .2s ease-out;
}
#landing .oe-primary-btn:hover { background: var(--oe-gold); color: var(--oe-navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(229, 179, 38, .30); }
#landing .oe-primary-btn:disabled { opacity: .7; }

/* Info de protección de datos bajo el funnel */
/* Superficie navy translúcida con blur: legible sobre cualquier fondo */
#landing .oe-data-card {
    background: rgba(11, 25, 44, .72);
    border: 1px solid rgba(255, 255, 255, .10);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 1.2rem;
    padding: 1.4rem 1.6rem;
    font-size: .78rem;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}
#landing .oe-data-card strong,
#landing .oe-data-card .fw-semibold { color: #fff; }
#landing .oe-data-card a { color: var(--oe-gold-2); text-decoration: underline; }

/* Contadores de ahorro */
#landing .oe-count { font-family: var(--oe-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--oe-navy); line-height: 1; }
#landing .oe-count .oe-unit { font-size: 1.05rem; color: var(--oe-muted); font-weight: 600; }
#landing .oe-count-label { font-size: .85rem; color: var(--oe-muted); margin-top: .45rem; }
#landing .oe-count-icon { width: 56px; height: 56px; border-radius: 1.1rem; display: inline-flex; align-items: center; justify-content: center; background: var(--oe-gold-soft); color: var(--oe-gold-2); }
#landing .oe-count-icon .material-symbols-outlined { font-size: 1.7rem; }

/* ═══════════════════════════════════════════════════════════════
   MARQUEE DE MARCAS
   ═══════════════════════════════════════════════════════════════ */
#landing .oe-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
#landing .oe-marquee-track {
    display: flex;
    align-items: center;
    gap: 3.25rem;
    width: max-content;
    animation: oe-marquee 30s linear infinite;
    padding: .5rem 0;
}
#landing .oe-marquee:hover .oe-marquee-track { animation-play-state: paused; }
#landing .oe-marquee-track img {
    height: 2.4rem;
    width: auto;
    object-fit: contain;
    opacity: .5;
    filter: grayscale(100%);
    transition: opacity .25s ease-out, filter .25s ease-out, transform .25s ease-out;
}
#landing .oe-marquee-track img:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.06); }
@keyframes oe-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════════════════════
   CÓMO FUNCIONA (3 pasos)
   ═══════════════════════════════════════════════════════════════ */
#landing .oe-step-card { padding: 2.25rem 1.75rem; text-align: center; }
#landing .oe-step-card .oe-step-ico {
    width: 62px; height: 62px;
    background: var(--oe-gold-soft);
    border: 1px solid var(--oe-gold-line);
    color: var(--oe-gold-2);
    border-radius: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
#landing .oe-step-card .oe-step-ico .material-symbols-outlined { font-size: 1.8rem; }
#landing .oe-step-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--oe-navy); margin: .5rem 0 .7rem; }
#landing .oe-step-card p { font-size: .92rem; color: var(--oe-muted); line-height: 1.6; margin: 0; }
#landing .oe-step-card .oe-step-tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oe-gold-2); }

/* ═══════════════════════════════════════════════════════════════
   SECCIÓN 24/7 (soporte / beneficios)
   ═══════════════════════════════════════════════════════════════ */
#landing .oe-dark { background: var(--oe-navy); color: #fff; }
#landing .oe-dark .oe-section-head .oe-title { color: #fff; }
#landing .oe-dark .oe-section-head .oe-sub { color: rgba(255, 255, 255, .72); }
#landing .oe-check-item { display: flex; align-items: flex-start; gap: .7rem; }
#landing .oe-check-item .material-symbols-outlined { color: var(--oe-gold); font-size: 1.35rem; margin-top: .1rem; }
#landing .oe-check-item strong { display: block; font-size: .92rem; color: #fff; font-weight: 600; }
#landing .oe-check-item span { font-size: .8rem; color: rgba(255, 255, 255, .65); }
#landing .oe-mascot {
    width: 240px; height: 240px;
    border-radius: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 25%, rgba(229, 179, 38, .45) 0%, transparent 45%),
        linear-gradient(160deg, var(--oe-navy-2) 0%, rgba(11, 25, 44, .4) 100%);
    border: 1px solid var(--oe-line-navy);
    animation: oe-float 4.5s ease-in-out infinite;
}
#landing .oe-mascot img { width: 70%; height: auto; filter: drop-shadow(0 12px 28px rgba(229, 179, 38, .35)); }
@keyframes oe-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ═══════════════════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════════════════ */
#landing .oe-cta-card {
    background:
        radial-gradient(ellipse 70% 90% at 85% 0%, rgba(229, 179, 38, .16) 0%, transparent 60%),
        linear-gradient(180deg, var(--oe-navy-soft) 0%, var(--oe-navy) 100%);
    color: #fff;
    border-radius: 2rem;
    border: 1px solid var(--oe-line-navy);
    padding: 3.5rem 2rem;
}
#landing .oe-cta-card h2 { color: #fff; }
#landing .oe-cta-card p { color: rgba(255, 255, 255, .75); max-width: 52ch; margin: 0 auto 1.75rem; }
#landing .oe-cta-card .oe-claim { font-size: 2rem; }

/* ═══════════════════════════════════════════════════════════════
   MODAL DE CONSENTIMIENTO IA
   ═══════════════════════════════════════════════════════════════ */
#landing .oe-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 25, 44, .62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#landing .oe-consent-overlay.hidden { display: none; }
#landing .oe-consent-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--oe-line);
    box-shadow: 0 30px 80px rgba(11, 25, 44, .35);
    max-height: 90vh;
    overflow-y: auto;
}
#landing .oe-consent-card h3 { font-family: var(--oe-display); font-size: 1.15rem; font-weight: 700; color: var(--oe-navy); margin-bottom: .8rem; }
#landing .oe-consent-card p { font-size: .82rem; color: var(--oe-muted); line-height: 1.6; margin-bottom: .8rem; }
#landing .oe-consent-chip {
    background: var(--oe-cream);
    border: 1px solid var(--oe-line);
    border-radius: 1rem;
    padding: .9rem 1rem;
    margin: 1rem 0;
}
#landing .oe-consent-chip .oe-consent-text { font-size: .78rem; }
#landing .btn-accept {
    background: var(--oe-gold);
    color: var(--oe-navy);
    font-weight: 700;
    padding: 14px 24px;
    border-radius: .8rem;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: all .2s ease-out;
    opacity: .5;
    pointer-events: none;
    min-height: 48px;
}
#landing .btn-accept.enabled { opacity: 1; pointer-events: auto; }
#landing .btn-accept.enabled:hover { background: var(--oe-gold-2); transform: translateY(-1px); }
#landing .btn-cancel {
    background: transparent;
    color: var(--oe-muted);
    font-weight: 600;
    padding: 14px 24px;
    border-radius: .8rem;
    font-size: .9rem;
    border: 1.5px solid rgba(11, 25, 44, .12);
    cursor: pointer;
    transition: all .2s ease-out;
    min-height: 48px;
}
#landing .btn-cancel:hover { background: rgba(11, 25, 44, .04); }

/* Overlay de análisis (creado por JS dentro de #landing) */
#landing .oe-analysis-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 25, 44, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST DE ANÁLISIS (creado por JS)
   ═══════════════════════════════════════════════════════════════ */
#landing .analysis-toast {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 420px;
    width: 90%;
    background: var(--oe-navy-soft);
    color: #fff;
    border: 1px solid var(--oe-line-navy);
    border-radius: 1.5rem;
    padding: 24px 28px;
    box-shadow: 0 30px 80px rgba(11, 25, 44, .5);
    z-index: 10001;
    max-height: 80vh;
    overflow-y: auto;
    font-family: var(--oe-body);
}
#landing .analysis-toast h4 { font-family: var(--oe-display); font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--oe-gold); }
#landing .analysis-toast p { font-size: .85rem; margin: 0 0 6px; color: rgba(255, 255, 255, .75); line-height: 1.55; }
#landing .analysis-toast .highlight { color: var(--oe-gold); font-weight: 600; }
#landing .analysis-toast button {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--oe-line-navy);
    color: #fff;
    padding: 10px 20px;
    border-radius: .8rem;
    cursor: pointer;
    font-size: .85rem;
    margin-top: 12px;
    min-height: 44px;
    transition: all .2s ease-out;
}
#landing .analysis-toast button:hover { background: var(--oe-gold); color: var(--oe-navy); }
#landing .analysis-toast .oe-spin {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .15);
    border-top-color: var(--oe-gold);
    animation: oe-spin .8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes oe-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES AL HACER SCROLL
   ═══════════════════════════════════════════════════════════════ */
#landing .oe-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
}
#landing .oe-reveal.oe-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    #landing .oe-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    #landing .oe-mascot { animation: none !important; }
    #landing .oe-marquee-track { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MODO OSCURO — ajustes para la landing
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    /* Fondo de portada en dark: gradiente azul→morado sobre la foto fija.
       El gradiente es semitransparente para que la escena del sofá siga
       viéndose, pero oscurece lo suficiente para mantener la legibilidad. */
    #landing .oe-bg-overlay {
        background-color: var(--oe-navy);   /* fallback si no carga la foto */
        background-image:
            linear-gradient(rgba(30, 105, 230, .78), rgba(168, 85, 210, .78)),
            url('/imgs/fondo-ofertas-energias-50.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }
    /* Letra más grande (H1 del hero): máxima nitidez sobre fondo oscuro */
    #landing .oe-hero h1 { text-shadow: 0 2px 28px rgba(11, 25, 44, .55); }

    /* Contraste ≥ 4.5:1 de los textos flotantes sobre el gradiente */
    #landing .oe-faint { color: rgba(255, 255, 255, .80); }
    #landing .oe-step-label { color: rgba(255, 255, 255, .82); }
    #landing .step-indicator.pending { background: rgba(11, 25, 44, .45); color: rgba(255, 255, 255, .75); }

    #landing .oe-card,
    #landing .oe-consent-card { background: var(--oe-navy-2); border-color: var(--oe-line-navy); }
    #landing .oe-card:hover { border-color: rgba(229, 179, 38, .4); box-shadow: 0 18px 44px rgba(0, 0, 0, .4); }
    #landing .oe-card .oe-display,
    #landing .oe-card .oe-title,
    #landing .oe-step-card h3,
    #landing .oe-section-head .oe-title,
    #landing .oe-count,
    #landing .oe-consent-card h3,
    #landing .oe-field label,
    #landing .oe-consent-text,
    #landing .oe-consent-text strong,
    #landing .oe-legal-note strong { color: #fff; }
    #landing .oe-subtle,
    #landing .oe-panel-text,
    #landing .oe-step-card p,
    #landing .oe-section-head .oe-sub,
    #landing .oe-count .oe-unit,
    #landing .oe-count-label,
    #landing .oe-upload-note,
    #landing .oe-legal-note { color: rgba(255, 255, 255, .72); }
    #landing .oe-review-row { color: #fff; }
    #landing .oe-input { background: rgba(255, 255, 255, .06); color: #fff; }
    #landing .oe-input:focus { background: rgba(255, 255, 255, .08); border-color: var(--oe-gold); }
    #landing .oe-input::placeholder { color: rgba(255, 255, 255, .35); }
    #landing .oe-field-panel { background: rgba(255, 255, 255, .05); }
    #landing .oe-consent-card { background: var(--oe-navy-2); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE FINO
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
    #landing .upload-zone { padding: 1.75rem 1rem; }
    #landing .oe-steps { gap: .25rem .5rem; }
    #landing .oe-step-label { display: none; }
    #landing .oe-hero-content { padding: 4rem 1.1rem 3.25rem; }
    #landing .oe-count { font-size: 2.1rem; }
    #landing .oe-card { border-radius: 1.25rem; }
    #landing .oe-mascot { width: 190px; height: 190px; }
}