:root {
    /* === Paleta ENERCON / FUELSOFT ===
			   * Reemplaza estos valores con los datos exactos del PDF de colores.
			   */
    --brand-primary: #2a479c;
    /* Azul corporativo (sugerido) */
    --brand-accent: #44b649;
    /* Naranja de acento (sugerido) */
    --brand-ink: #0f172a;
    /* Texto principal */
    --brand-muted: #64748b;
    /* Texto secundario */
    --brand-surface: #ffffff;
    /* Fondo tarjetas */
    --brand-bg: #f7fafc;
    /* Fondo claro */
    --brand-line: #e2e8f0;
    /* Bordes suaves */
    --shadow-sm: 0 8px 20px rgba(2, 24, 53, 0.08);
    --shadow-md: 0 24px 48px rgba(2, 24, 53, 0.12);
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --container: 1120px;
}

html,
body {
    height: 100%;
}

html {
    /* background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%); */
    background: var(--brand-bg);
    /* <-- Pega el fondo aquí */
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto,
        Helvetica, Arial, sans-serif;
    color: var(--brand-ink);
    /* La línea de "background" se elimina de aquí */

}

.orbits {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

.container {
    width: min(100%, var(--container));
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 28px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.25rem;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--brand-accent);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(0.96);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: #fff;
    color: var(--brand-primary);
    border: 1px solid var(--brand-line);
}

.btn-ghost:hover {
    transform: translateY(-2px);
}

/* ======= NAV ======= */
header.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(12px);
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(2, 24, 53, 0.06);
}

.nav__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--brand-primary);
}

.brand__img {
    display: block;
    height: auto;
    max-height: 44px;
    width: auto;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    .nav__actions {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: #fff;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid var(--brand-line);
    }

    .nav__actions.is-open {
        display: flex;
    }
}

/* ======= HERO ======= */
.hero {
    position: relative;
    padding: clamp(48px, 8vw, 92px) 0 32px;
    /* overflow: hidden; */

}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: min(6vw, 48px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--brand-line);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

h1 {
    font-size: clamp(2.1rem, 3.6vw + 1rem, 4rem);
    line-height: 1.06;
    margin: 16px 0 10px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: clamp(1.05rem, 0.9vw + 0.8rem, 1.25rem);
    color: var(--brand-muted);
    margin: 12px 0 24px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero__media {
    position: relative;
}

.orbit {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.7;
    z-index: -1;
}

.orbit.orbit--1 {
    width: 580px;
    height: 580px;
    right: -180px;
    top: -60px;
    background: radial-gradient(50% 50% at 50% 50%,
            rgba(68, 182, 73, 0.25) 0%,
            rgba(42, 71, 156, 0) 70%);
}

.orbit.orbit--2 {
    width: 560px;
    height: 560px;
    left: -200px;
    bottom: -200px;
    background: radial-gradient(50% 50% at 50% 50%,
            rgba(68, 182, 73, 0.25) 0%,
            rgba(42, 71, 156, 0) 70%);
}

@media (max-width: 768px) {

    .orbit.orbit--1,
    .orbit.orbit--2 {
        width: 300px;
        height: 300px;
    }

    .orbit.orbit--1 {
        right: -80px;
        top: -40px;
    }

    .orbit.orbit--2 {
        left: -80px;
        bottom: -40px;
    }
}

/* ======= HERO LOGOS ======= */
.hero__logos {
    display: grid;
    gap: 14px;
}

.logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.logo-tile {
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.logo-tile img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* ======= STRIP / STATS ======= */
.strip {
    padding: 36px 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.kpi {
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
}

.kpi b::before {
    content: "+";
    margin-right: 4px;
}

.kpi b {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    display: block;
}

.kpi span {
    color: var(--brand-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ======= FEATURES ======= */
section {
    padding: clamp(52px, 8vw, 96px) 0;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section__title {
    font-size: clamp(1.6rem, 1.6vw + 1rem, 2.4rem);
    margin: 0;
    letter-spacing: -0.4px;
}

.section__lead {
    margin: 5px 0 0;
    color: var(--brand-muted);
    max-width: 60ch;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(16px, 2vw, 22px);
}

.col-4 {
    grid-column: span 4;
}

.col-6 {
    grid-column: span 6;
}

.col-12 {
    grid-column: 1/-1;
}

.card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-xl);
    padding: 22px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card h3 {
    margin: 0.2rem 0 0.35rem;
    font-size: 1.1rem;
}

.card p {
    margin: 0.4rem 0 0;
    color: var(--brand-muted);
    font-size: 0.95rem;
}

.card li {
    margin: 0.4rem 0 0;
    color: var(--brand-muted);
    font-size: 0.95rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--brand-line);
    background: #fff;
    color: var(--brand-primary);
}


/* Imagen dentro de la tarjeta (arriba-derecha) */
.card__media {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 100px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--brand-line);
    box-shadow: var(--shadow-sm);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* En móviles: la imagen pasa a ocupar una fila debajo del texto */
@media (max-width: 980px) {
    .card {
        padding-bottom: 14px;
    }

    .card--media {
        padding-right: 22px;
        min-height: auto;
    }

    .card__media {
        position: static;
        width: 100%;
        height: auto;
        margin: 12px auto 0;
        border-radius: 12px;
    }

    .card__media img {
        height: auto;
    }
}

/* ======= CTA ======= */
.cta {
    background: radial-gradient(120% 120% at 100% 0%,
            rgba(24, 79, 150, 0.1) 0%,
            rgba(24, 79, 150, 0) 60%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border-top: 1px solid var(--brand-line);
}

.cta__box {
    background: #0c2340;
    color: #e7f0ff;
    border-radius: var(--radius-2xl);
    padding: clamp(22px, 4vw, 36px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.cta__box h3 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
}

.cta__box p {
    margin: 0 0 14px;
    color: #c8d7ee;
}

.cta__box .btn-primary {
    background: var(--brand-accent);
}

/* ======= FOOTER ======= */
footer {
    padding: 52px 0 36px;
    color: var(--brand-muted);
}

.foot {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--brand-line);
    padding-top: 22px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .cta__box {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-4 {
        grid-column: span 6;
    }

    .col-6 {
        grid-column: span 12;
    }

    .timeline {
        grid-template-columns: 1fr;
    }
}

.cta__box {
    grid-template-columns: 1fr;
}

.stats {
    grid-template-columns: repeat(2, 1fr);
}

.col-4 {
    grid-column: span 6;
}

.col-6 {
    grid-column: span 12;
}

@media (max-width: 620px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .col-4 {
        grid-column: span 12;
    }

    .logo-grid {
        grid-template-columns: 1fr;
    }

    .logo-tile {
        padding: 12px;
    }
}

/* Ancho y posición de la miniatura */
.card__media {
    position: absolute;
    right: 18px;
    top: 18px;
    /* width: clamp(120px, 14vw, 156px); */
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--brand-line);
    box-shadow: var(--shadow-sm);
}

/* === RESERVAR ESPACIO PARA QUE EL TEXTO NO SE META DEBAJO === */
.card--media {
    /* padding-right: calc(clamp(120px, 14vw, 156px) + 24px); */
    /* imagen + margen */
    min-height: 156px;
    /* asegura altura mínima */
}

/* Soporte progresivo sin clase (si tu navegador soporta :has) */
/* @supports selector(.card:has(.card__media)) {
    .card:has(.card__media) {
        padding-right: calc(clamp(120px, 14vw, 156px) + 24px);
        min-height: 156px;
    }
} */

/* En móvil la imagen baja y no hace falta reservar espacio */
@media (max-width: 980px) {
    .card {
        padding-bottom: 14px;
    }

    .card__media {
        position: static;
        width: 100%;
        aspect-ratio: 1;
        margin-top: 12px;
        border-radius: 12px;
    }
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    padding: 12px;
    font: inherit;
}

.contact-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.contact-grid .full {
    grid-column: 1 / -1;
}

.contact-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

@media (max-width: 620px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.card__list {
    margin: 0;
    /* ajusta según tu diseño */
    padding-left: 1.2rem;
    /* text-transform: capitalize; */
    /* sangría del listado */
}

/* ======= TIMELINE ZIG-ZAG ======= */
.history-zz {
    padding: clamp(52px, 8vw, 96px) 0;
}

.zz {
    position: relative;
    display: grid;
    gap: clamp(18px, 2.4vw, 28px);
}

.zz::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
            var(--brand-line),
            rgba(0, 0, 0, 0));
}

.zz__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(16px, 2vw, 24px);
    position: relative;
}

/* alternar columnas */
.zz__item:nth-child(even) .zz__media {
    order: 2;
}

.zz__item:nth-child(even) .zz__content {
    order: 1;
}

/* conector redondo sobre la línea central */
.zz__item::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--brand-accent);
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.35);
}

/* imagen */
.zz__media {
    position: relative;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.zz__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.zz__year {
    position: absolute;
    left: 14px;
    top: 14px;
    background: #fff;
    color: var(--brand-primary);
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-weight: 800;
    font-size: 0.8rem;
}

/* texto */
.zz__content {
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-xl);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
}

.zz__content h3 {
    margin: 0.2rem 0 0.5rem;
}

.zz__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.zz__list li {
    color: var(--brand-muted);
}

.zz__list li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #8df2b4, #2ecc71);
    margin-right: 8px;
    transform: translateY(1px);
}

/* responsive */
@media (max-width: 980px) {
    .zz::before {
        display: none;
    }

    .zz__item {
        grid-template-columns: 1fr;
    }

    .zz__item::after {
        display: none;
    }
}

.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story__visual {
    position: sticky;
    top: 90px;
    align-self: start;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-xl);
    padding: 12px;

    display: flex;
    /* centra el contenido */
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    /* mantiene formato de la ilustración */
    min-height: clamp(240px,
            34vw,
            420px);
    /* asegura altura razonable */
}

/* la imagen se contiene y se centra */
.story__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* NO recorta, ajusta dentro del marco */
    object-position: center center;
    /* centrada */
    display: block;
}

.story__visual .state {
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
}

.story__visual .state.is-on {
    opacity: 1;
}

.story__steps {
    display: grid;
    gap: 16px;
}

@media (max-width: 980px) {
    .story {
        grid-template-columns: 1fr;
    }

    .story__visual {
        position: static;
    }
}