/* ════════════════════════════════════════════════════════════════
   ECOCHARGE — Sistema de diseño · paleta verde EV
   Marca independiente · cero referencias visuales a BT+
   ════════════════════════════════════════════════════════════════ */

:root {
    /* Paleta principal — verde EV intenso (base #4C7B18) */
    --ec-green:        #4C7B18;   /* verde principal — más profundo y saturado */
    --ec-green-dark:   #3A5F12;   /* hover — versión más oscura */
    --ec-green-deep:   #25400A;   /* muy oscuro — para acentos sobre claro */
    --ec-green-light:  #6FA82A;   /* tono claro del mismo verde, para gradientes */
    --ec-green-soft:   #EDF5DE;   /* pastel muy suave, fondo de chips/badges */
    --ec-green-glow:   rgba(76, 123, 24, 0.28);

    /* Acento naranja "charge" (del cable/plug del símbolo) */
    --ec-orange:       #f58220;
    --ec-orange-dark:  #e87213;
    --ec-orange-light: #ffb56b;
    --ec-orange-soft:  #fff3e6;

    /* Neutros */
    --ec-ink:          #0a0e14;
    --ec-ink-soft:     #1e293b;
    --ec-muted:        #475569;
    --ec-muted-light:  #64748b;
    --ec-line:         #e5e7eb;
    --ec-line-soft:    #f1f5f9;
    --ec-bg:           #fafafa;
    --ec-bg-cream:     #f0fdf4;
    --ec-white:        #ffffff;

    /* Oscuros para secciones */
    --ec-dark:         #050a0d;
    --ec-dark-soft:    #0e1a1f;

    /* Tipografía — Space Grotesk para body, Outfit para títulos/display */
    --ec-font:         'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ec-font-display: 'Outfit', 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Sombras */
    --ec-shadow-sm:     0 2px 8px rgba(10,14,20,.05);
    --ec-shadow:        0 8px 24px rgba(10,14,20,.08);
    --ec-shadow-lg:     0 18px 48px rgba(10,14,20,.12);
    --ec-shadow-green:  0 14px 36px rgba(76, 123, 24, .35);
    --ec-shadow-green-sm: 0 6px 16px rgba(76, 123, 24, .22);

    /* Radios */
    --ec-r-sm: 8px;
    --ec-r:    14px;
    --ec-r-lg: 22px;
}

/* ── Reset base ── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--ec-font);
    color: var(--ec-ink);
    background: var(--ec-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Display global para títulos: cualquier h1/h2/h3 que no se haya declarado
   explícitamente con font-family heredará Outfit (más bold, redondeada). */
h1, h2, h3 {
    font-family: var(--ec-font-display);
    letter-spacing: -0.02em;
}

/* Container */
.ec-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Tagline divider (línea verde con texto, eco del logo) ── */
.ec-tagline-divider {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ec-green-deep);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}
.ec-tagline-divider .line {
    display: inline-block;
    width: 36px;
    height: 1.5px;
    background: var(--ec-green);
}
.ec-tagline-divider .line.short { width: 22px; }
/* Variante para fondos oscuros */
.ec-tagline-divider--light { color: rgba(255,255,255,0.85); }
.ec-tagline-divider--light .line { background: var(--ec-green-light); }
/* Variante centrada */
.ec-tagline-divider--center { display: flex; justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   HEADER · top bar + nav minimalista
   ════════════════════════════════════════════════════════════════ */
.ec-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ec-line);
    transition: all .3s ease;
}
.ec-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}
.ec-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-family: var(--ec-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--ec-ink);
    letter-spacing: -0.02em;
}
.ec-logo svg { width: 28px; height: 28px; }
.ec-logo-text { font-weight: 700; }
.ec-logo-text .accent { color: var(--ec-green); font-weight: 600; }
/* Firma "by e-astur" sutil bajo el logo principal */
.ec-logo-by {
    font-size: 10px;
    font-weight: 500;
    color: var(--ec-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 1px;
    line-height: 1;
}
.ec-logo-by strong {
    color: var(--ec-green-dark);
    font-weight: 700;
}

.ec-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.ec-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ec-ink-soft);
    transition: color .2s ease;
}
.ec-nav a:hover { color: var(--ec-green); }
.ec-nav-cta {
    background: var(--ec-green);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: all .25s ease;
    box-shadow: var(--ec-shadow-green-sm);
}
.ec-nav-cta:hover {
    background: var(--ec-green-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--ec-shadow-green);
}

@media (max-width: 767px) {
    .ec-nav { display: none; }
    .ec-nav-mobile-toggle { display: inline-flex; }
}

/* ════════════════════════════════════════════════════════════════
   HERO · grande, claro, calculadora destacada
   ════════════════════════════════════════════════════════════════ */
.ec-hero {
    position: relative;
    padding: 88px 0 100px;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(76, 123, 24, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--ec-white) 0%, var(--ec-bg-cream) 100%);
    overflow: hidden;
}
.ec-hero::before {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(76, 123, 24, 0.14) 0%, transparent 70%);
    pointer-events: none;
}
.ec-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.ec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ec-green-soft);
    color: var(--ec-green-deep);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.ec-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ec-orange);
    box-shadow: 0 0 0 4px rgba(245,130,32,0.22);
    animation: ec-pulse 2s infinite;
}
@keyframes ec-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(245,130,32,0.22); }
    50% { box-shadow: 0 0 0 8px rgba(245,130,32,0); }
}

.ec-hero h1 {
    font-family: var(--ec-font-display);
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--ec-ink);
    margin: 0 0 24px;
}
.ec-hero h1 .accent {
    color: var(--ec-green);
    font-weight: 700;
}
.ec-hero h1 .accent::after {
    content: '.';
    color: var(--ec-green);
}

.ec-hero-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ec-muted);
    margin: 0 0 36px;
    max-width: 620px;
}

.ec-hero-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Botones */
.ec-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 0;
    text-decoration: none;
    transition: all .25s ease;
    letter-spacing: 0.2px;
    cursor: pointer;
}
.ec-btn-primary {
    background: var(--ec-green);
    color: #fff !important;
    box-shadow: var(--ec-shadow-green);
}
.ec-btn-primary:hover {
    background: var(--ec-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(76, 123, 24, .42);
}
.ec-btn-ghost {
    background: transparent;
    color: var(--ec-ink) !important;
    border: 1.5px solid var(--ec-line);
}
.ec-btn-ghost:hover {
    border-color: var(--ec-green);
    color: var(--ec-green-dark) !important;
}

.ec-hero-trust {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    flex-wrap: wrap;
    color: var(--ec-muted);
    font-size: 14px;
}
.ec-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ec-hero-trust .ec-check {
    color: var(--ec-green);
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════
   SECTION genérica
   ════════════════════════════════════════════════════════════════ */
.ec-section {
    padding: 100px 0;
    position: relative;
}
.ec-section--alt { background: var(--ec-bg); }
.ec-section--dark {
    background: var(--ec-dark);
    color: rgba(255,255,255,.92);
}
.ec-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.ec-section h2 {
    font-family: var(--ec-font-display);
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ec-ink);
    margin: 0 0 16px;
}
.ec-section h2 .accent { color: var(--ec-green); }
.ec-section--dark h2 { color: #fff; }
.ec-section-sub {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ec-muted);
    margin: 0;
}
.ec-section--dark .ec-section-sub { color: rgba(255,255,255,0.75); }

@media (max-width: 767px) {
    .ec-section { padding: 70px 0; }
    .ec-section-head { margin-bottom: 40px; }
}

/* ════════════════════════════════════════════════════════════════
   ESCENARIOS · 4 cards clickables
   ════════════════════════════════════════════════════════════════ */
.ec-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.ec-scenario {
    position: relative;
    padding: 32px 26px 28px;
    background: #fff;
    border: 1.5px solid var(--ec-line);
    border-radius: var(--ec-r);
    cursor: pointer;
    transition: all .35s cubic-bezier(.2,.7,.2,1);
    text-align: left;
    overflow: hidden;
}
.ec-scenario::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ec-green) 0%, var(--ec-green-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.ec-scenario:hover {
    transform: translateY(-6px);
    border-color: var(--ec-green);
    box-shadow: var(--ec-shadow-green-sm);
}
.ec-scenario:hover::before { transform: scaleX(1); }
.ec-scenario-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--ec-green-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all .35s ease;
}
.ec-scenario-icon svg { width: 24px; height: 24px; color: var(--ec-green-dark); }
.ec-scenario:hover .ec-scenario-icon {
    background: var(--ec-green);
}
.ec-scenario:hover .ec-scenario-icon svg { color: #fff; }
.ec-scenario h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.015em;
}
.ec-scenario p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ec-muted);
}
.ec-scenario-arrow {
    position: absolute;
    top: 28px; right: 24px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ec-green-soft);
    color: var(--ec-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}
.ec-scenario:hover .ec-scenario-arrow {
    background: var(--ec-orange);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(245,130,32,0.35);
}

@media (max-width: 991px) {
    .ec-scenarios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ec-scenarios-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   USPs · 3 columnas con iconos
   ════════════════════════════════════════════════════════════════ */
.ec-usps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.ec-usp {
    text-align: left;
}
.ec-usp-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--ec-green-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.ec-usp-icon svg { width: 28px; height: 28px; color: var(--ec-green-dark); }
.ec-usp h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.018em;
}
.ec-usp p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ec-muted);
}

@media (max-width: 767px) { .ec-usps-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ════════════════════════════════════════════════════════════════
   PROCESO · 4 pasos numerados
   ════════════════════════════════════════════════════════════════ */
.ec-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: gp-step;
}
.ec-step {
    background: #fff;
    border: 1px solid var(--ec-line);
    border-radius: var(--ec-r);
    padding: 28px 24px;
    position: relative;
    transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.ec-step:hover {
    border-color: var(--ec-green);
    box-shadow: var(--ec-shadow-green-sm);
    transform: translateY(-4px);
}
.ec-step-num {
    display: inline-block;
    font-family: var(--ec-font-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--ec-green) 0%, var(--ec-green-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}
.ec-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.015em;
}
.ec-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ec-muted);
}
@media (min-width: 992px) {
    .ec-step:not(:last-child)::after {
        content: '→';
        position: absolute;
        right: -16px;
        top: 38px;
        color: var(--ec-green);
        opacity: .5;
        font-size: 18px;
    }
}
@media (max-width: 991px) { .ec-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ec-steps { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════
   MANIFESTO SOSTENIBLE · honesto, sin greenwashing
   ════════════════════════════════════════════════════════════════ */
.ec-manifesto {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(76, 123, 24, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, var(--ec-bg-cream) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}
.ec-manifesto::before {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,130,32,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ec-manifesto-text {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.ec-manifesto-text h2 {
    font-family: var(--ec-font-display);
    font-size: clamp(36px, 4.8vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 32px;
    color: var(--ec-ink);
}
.ec-manifesto-text h2 .accent {
    color: var(--ec-green-dark);
    font-style: italic;
}
.ec-manifesto-text p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ec-ink-soft);
    margin: 0 0 22px;
}
.ec-manifesto-claim {
    margin-top: 36px !important;
    padding: 22px 28px;
    background: #fff;
    border-left: 4px solid var(--ec-orange);
    border-radius: var(--ec-r-sm);
    box-shadow: var(--ec-shadow);
    font-size: 19px !important;
    line-height: 1.45 !important;
    text-align: left;
}
.ec-manifesto-claim strong {
    color: var(--ec-ink);
}

/* ════════════════════════════════════════════════════════════════
   IMPACTO · métricas CO2 (sección oscura)
   ════════════════════════════════════════════════════════════════ */
.ec-impact {
    /* Imagen de fondo de 1920×809 (ratio 2.373:1).
       Para que se vea SIEMPRE COMPLETA en cualquier resolución sin
       recortar laterales:
         · background-size: 100% auto → la imagen ocupa todo el ancho del
           viewport y el alto se ajusta proporcionalmente.
         · min-height: 42.13vw (= 100/2.373) → la sección tiene el mismo
           ratio que la imagen, así no hay zonas vacías arriba/abajo.
         · max() para que el contenido siempre tenga sitio (en pantallas
           muy anchas/estrechas el contenido manda).
         · Color de relleno oscuro detrás como red de seguridad. */
    padding: 60px 0;
    min-height: max(440px, 42.13vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0a1420;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(76, 123, 24, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, rgba(5, 10, 13, 0.45) 0%, rgba(14, 26, 31, 0.55) 100%),
        url('assets/bg-impacto.jpg') center / 100% 100% no-repeat fixed,
        #0a1420;
    background-image:
        radial-gradient(ellipse at 80% 30%, rgba(76, 123, 24, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, rgba(5, 10, 13, 0.45) 0%, rgba(14, 26, 31, 0.55) 100%),
        image-set(
            url('assets/bg-impacto.webp') type('image/webp'),
            url('assets/bg-impacto.jpg')  type('image/jpeg')
        );
    background-size: auto, auto, 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    /* En móvil usamos una imagen específica vertical (720×1556, ratio 3:6.5)
       optimizada para portrait — narrativa cargador / coche / ciudad / bosque
       / ciervo recompuesta en composición vertical.
       cover en este ratio NO recorta lateralmente porque el alto manda. */
    .ec-impact {
        min-height: 720px;
        padding: 50px 0;
        background-attachment: scroll;
        background-image:
            radial-gradient(ellipse at 80% 30%, rgba(76, 123, 24, 0.18) 0%, transparent 60%),
            linear-gradient(180deg, rgba(5, 10, 13, 0.45) 0%, rgba(14, 26, 31, 0.55) 100%),
            image-set(
                url('assets/bg-impacto-mobile.webp') type('image/webp'),
                url('assets/bg-impacto-mobile.jpg')  type('image/jpeg')
            );
        background-size: auto, auto, cover;
        background-position: center center;
    }
}

/* Sombra densa en TODOS los textos del bloque IMPACTO para que se lean
   sobre cualquier zona de la imagen (incluso las más claras como cielo). */
.ec-impact h2,
.ec-impact .ec-impact-num,
.ec-impact .ec-impact-label,
.ec-impact .ec-impact-note,
.ec-impact .ec-tagline-divider {
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.95),
        0 0 14px rgba(0, 0, 0, 0.55);
}

/* Números (120, 240, 10.920): blanco sólido con sombra negra densa
   para máxima legibilidad sobre la imagen de fondo (anula el gradient
   verde original que se aplicaba con background-clip:text). */
.ec-impact .ec-impact-num {
    color: #ffffff;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #ffffff;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.90),
        0 0 18px rgba(0, 0, 0, 0.75),
        0 4px 28px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
    /* En móvil background-attachment:fixed da problemas de rendimiento.
       Lo desactivamos: la imagen sigue de fondo pero scrollea con el contenido. */
    .ec-impact {
        background-attachment: scroll;
    }
}
.ec-impact-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: center;
    margin: 0 auto;
    max-width: 980px;
}
.ec-impact-stat {
    text-align: center;
    padding: 20px 16px;
}
.ec-impact-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0) 100%);
}
.ec-impact-num {
    font-family: var(--ec-font-display);
    font-size: clamp(52px, 6.4vw, 88px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--ec-green-light) 0%, var(--ec-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-shadow: 0 4px 28px rgba(76, 123, 24, 0.35);
}
.ec-impact-num .ec-impact-suffix,
.ec-impact-num .ec-impact-plus {
    font-size: 0.5em;
    font-weight: 600;
    margin-left: 2px;
    color: var(--ec-orange-light);
    -webkit-text-fill-color: var(--ec-orange-light);
}
.ec-impact-label {
    font-size: 14.5px;
    color: rgba(255,255,255,0.75);
    line-height: 1.45;
    font-weight: 500;
}
.ec-impact-note {
    text-align: center;
    margin: 36px auto 0;
    max-width: 720px;
    color: rgba(255,255,255,0.50);
    font-size: 12.5px;
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 991px) {
    .ec-impact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ec-impact-divider {
        width: 60%;
        height: 1px;
        margin: 0 auto;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(255,255,255,0.18) 50%,
            transparent 100%);
    }
}

/* ════════════════════════════════════════════════════════════════
   FAQ · accordion
   ════════════════════════════════════════════════════════════════ */
.ec-faq {
    max-width: 820px;
    margin: 0 auto;
}
.ec-faq-item {
    background: #fff;
    border: 1px solid var(--ec-line);
    border-radius: var(--ec-r);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all .25s ease;
}
.ec-faq-item:hover { border-color: var(--ec-green); }
.ec-faq-item[open] { border-color: var(--ec-green); box-shadow: var(--ec-shadow-green-sm); }
.ec-faq-item summary {
    padding: 22px 26px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    color: var(--ec-ink);
    transition: color .2s ease;
}
.ec-faq-item summary::-webkit-details-marker { display: none; }
.ec-faq-item summary:hover { color: var(--ec-green-dark); }
.ec-faq-item summary::after {
    content: '+';
    width: 28px; height: 28px;
    background: var(--ec-green-soft);
    color: var(--ec-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all .25s ease;
}
.ec-faq-item[open] summary::after {
    content: '−';
    background: var(--ec-orange);
    color: #fff;
}
.ec-faq-body {
    padding: 0 26px 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ec-muted);
}

/* ════════════════════════════════════════════════════════════════
   COBERTURA LOCAL · chips de localidades
   ════════════════════════════════════════════════════════════════ */
.ec-cobertura {
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ec-cobertura::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/mapa-opt.png');
    background-image: image-set(
        url('assets/mapa.webp') type('image/webp'),
        url('assets/mapa-opt.png') type('image/png')
    );
    background-repeat: no-repeat;
    background-position: center 68%;
    background-size: min(1200px, 92%) auto;
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}
.ec-cobertura > .ec-container {
    position: relative;
    z-index: 1;
}
.ec-localidades {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 60px;
}
.ec-localidad {
    background: #fff;
    border: 1.5px solid var(--ec-line);
    color: var(--ec-ink);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.ec-localidad:hover {
    border-color: var(--ec-green);
    color: var(--ec-green-dark);
    background: var(--ec-green-soft);
    transform: translateY(-2px);
}
.ec-cobertura .ec-section-head {
    position: relative;
}
.ec-cobertura .ec-section-head > * {
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    /* En móvil quitamos el mapa de fondo de toda la sección */
    .ec-cobertura::before {
        display: none;
    }
    /* Y lo ponemos solo detrás del bloque del título */
    .ec-cobertura .ec-section-head::before {
        content: '';
        position: absolute;
        inset: -30px -16px;
        background-image: url('assets/mapa-opt.png');
        background-image: image-set(
            url('assets/mapa.webp') type('image/webp'),
            url('assets/mapa-opt.png') type('image/png')
        );
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 100% auto;
        opacity: 0.5;
        z-index: 0;
        pointer-events: none;
    }
    .ec-localidades {
        margin-top: 30px;
    }
}

/* ════════════════════════════════════════════════════════════════
   CTA FINAL · sección verde gigante
   ════════════════════════════════════════════════════════════════ */
.ec-cta-final {
    background:
        radial-gradient(ellipse at 75% 30%, rgba(255,255,255,0.18) 0%, transparent 50%),
        linear-gradient(135deg, var(--ec-green) 0%, var(--ec-green-deep) 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ec-cta-final::before {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 60%);
    pointer-events: none;
}
.ec-cta-final-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.ec-cta-final h2 {
    color: #fff;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
}
.ec-cta-final p {
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    margin: 0 0 36px;
}
.ec-cta-final-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ec-btn-white {
    background: #fff;
    color: var(--ec-green-dark) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.ec-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.25);
}
.ec-btn-ghost-white {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
}
.ec-btn-ghost-white:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-3px);
}

/* ════════════════════════════════════════════════════════════════
   FOOTER · minimalista, verde + dark
   ════════════════════════════════════════════════════════════════ */
.ec-footer {
    background: var(--ec-dark);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 24px;
    position: relative;
    overflow: hidden;
}
.ec-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ec-green) 0%, var(--ec-green-deep) 100%);
}

.ec-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ec-footer-brand .ec-logo {
    color: #fff;
    font-size: 24px;
    margin-bottom: 14px;
}
.ec-footer-brand p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.70);
    max-width: 280px;
    margin: 0;
}
.ec-footer-col h4 {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.ec-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ec-footer-col ul li, .ec-footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.70);
    transition: color .2s ease;
}
.ec-footer-col ul li a:hover { color: var(--ec-green-light); }

.ec-footer-bottom {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.50);
}
.ec-footer-legal { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }
.ec-footer-legal a { color: rgba(255,255,255,0.55); }
.ec-footer-legal a:hover { color: var(--ec-green-light); }

@media (max-width: 991px) {
    .ec-footer-grid { grid-template-columns: 1fr 1fr; }
    .ec-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .ec-footer-grid { grid-template-columns: 1fr; }
    .ec-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════════
   MODAL CALCULADORA (placeholder, lógica completa en greenpower.js)
   ════════════════════════════════════════════════════════════════ */
.ec-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,14,20,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity .3s ease;
}
.ec-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.ec-modal {
    background: #fff;
    border-radius: var(--ec-r-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    transform: scale(0.96);
    transition: transform .3s ease;
}
.ec-modal-overlay.active .ec-modal { transform: scale(1); }
.ec-modal-header {
    padding: 26px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}
.ec-modal-title { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.ec-modal-close {
    width: 36px; height: 36px;
    background: var(--ec-line-soft);
    border: 0;
    border-radius: 50%;
    font-size: 22px;
    color: var(--ec-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ec-modal-close:hover { background: var(--ec-line); color: var(--ec-ink); }
.ec-modal-body { padding: 22px 30px 30px; }
.ec-modal-footer {
    padding: 22px 30px;
    background: var(--ec-bg);
    border-top: 1px solid var(--ec-line);
    border-radius: 0 0 var(--ec-r-lg) var(--ec-r-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
@media (max-width: 600px) {
    .ec-modal-overlay { padding: 0; align-items: stretch; }
    .ec-modal { max-height: 100%; border-radius: 0; }
    .ec-modal-footer { border-radius: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO VÍDEO · ecocharge process · 15s sincronizado con texto
   ═══════════════════════════════════════════════════════════════ */
.ec-hero-video {
    position: relative;
    overflow: hidden;
    height: calc(100vh - 80px);
    min-height: 620px;
    padding: 0 !important;
    background: #0a1420;
}

.ec-hero-video .ec-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ec-hero-video .ec-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none; /* deja que clicks pasen al video o al stage */
    background: linear-gradient(180deg,
        rgba(10, 20, 32, 0.55) 0%,
        rgba(10, 20, 32, 0.18) 25%,
        rgba(10, 20, 32, 0.18) 70%,
        rgba(10, 20, 32, 0.65) 100%);
}

.ec-hero-video .ec-hero-stage {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none; /* texto decorativo, no debe interceptar clicks */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 88px 24px 160px;
    text-align: center;
}
/* Re-habilita clicks solo en los CTAs (que están en otro contenedor) */
.ec-hero-video .ec-hero-cta-fixed {
    pointer-events: auto;
}

/* Title permanente */
.ec-hero-title {
    color: #fff;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
    margin: 0;
    line-height: 1.3;
}
.ec-hero-title .ec-accent-orange {
    color: #f58220;
}

/* Copy rotativo (centro) */
.ec-hero-rotative {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.ec-hero-rotative span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(30px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}
.ec-hero-rotative span.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* Lockup de cierre (s16 → s19) */
.ec-hero-lockup {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 20, 32, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
    z-index: 3;
    padding: 24px;
}
.ec-hero-lockup.is-active {
    opacity: 1;
    transform: scale(1);
}
.ec-hero-lockup img {
    max-height: 84px;
    max-width: 80%;
    margin-bottom: 18px;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.4));
}
.ec-hero-lockup hr {
    width: 220px;
    border: 0;
    border-top: 2px solid #f58220;
    margin: 6px 0 22px;
    opacity: 0.85;
}
.ec-hero-lockup p {
    color: #fff;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(18px, 2.6vw, 28px);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.01em;
}
.ec-hero-lockup p strong {
    color: #f58220;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.ec-hero-lockup .ec-hero-lockup-sub {
    margin-top: 10px;
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

/* CTAs siempre visibles, debajo del lockup en z */
.ec-hero-video .ec-hero-cta-fixed {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    z-index: 4;
    padding: 0 24px;
}
.ec-hero-video .ec-hero-cta-fixed .ec-btn {
    padding: 20px 40px;
    font-size: 18px;
    gap: 12px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.ec-hero-video .ec-hero-cta-fixed .ec-btn svg {
    width: 22px;
    height: 22px;
}

/* Mobile */
@media (max-width: 768px) {
    .ec-hero-video {
        height: auto;
        min-height: 540px;
    }
    .ec-hero-video .ec-hero-stage {
        padding: 72px 18px 130px;
    }
    .ec-hero-title {
        font-size: 16px;
    }
    .ec-hero-rotative {
        min-height: 70px;
    }
    .ec-hero-lockup img {
        max-height: 60px;
    }
    .ec-hero-lockup hr {
        width: 160px;
    }
    .ec-hero-video .ec-hero-cta-fixed {
        bottom: 28px;
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }
    .ec-hero-video .ec-hero-cta-fixed .ec-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
    .ec-hero-video .ec-hero-cta-fixed .ec-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Reduce motion: si el usuario lo pide, no animamos los textos */
@media (prefers-reduced-motion: reduce) {
    .ec-hero-rotative span,
    .ec-hero-lockup {
        transition: opacity 0.2s linear;
        transform: none !important;
    }
}
