/* ===========================================================================
   XOGESVI — Hoja de estilos
   Reconstrucción fiel del diseño XOGESVI.dc.html (estudio de ingeniería industrial)
   =========================================================================== */

:root {
    --bg:          #ffffff;
    --ink:         #101113;
    --dark:        #141519;
    --dark-2:      #1b1c21;
    --footer:      #0c0d0f;
    --paper:       #f5f5f3;
    --accent:      #f2a93b;
    --accent-ink:  #1a1205;
    --green:       #3ddc84;
    --led-off:     #5b5d63;
    --screw:       #55575d;
    --muted-d:     #9a9da1;
    --muted-l:     #5a5c61;
    --muted-d2:    #cfd0d2;
    --line-dark:   #2c2d33;
    --line-dark-2: #3a3b41;
    --line-light:  #e2e2e4;

    --f-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --f-body:    'Work Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --f-mono:    'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ----------------------------- Reset / base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-body);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 16px;
    font-family: var(--f-mono); font-size: 12px; text-transform: uppercase;
}
.skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@keyframes andonPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ----------------------------- Wrappers --------------------------------- */
.wrap { max-width: 1100px; margin: 0 auto; }
.wrap--wide { max-width: 1180px; }

.section { padding: clamp(56px, 9vw, 108px) clamp(16px, 4vw, 56px); }
.section--light { background: var(--bg); }
.section--dark  { background: var(--dark); color: var(--paper); position: relative; }

.section-title {
    font-family: var(--f-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1;
    letter-spacing: .005em;
    margin: 0 0 44px;
    max-width: 20ch;
}

/* ----------------------------- Eyebrows / LEDs -------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-mono); font-size: 12px;
    text-transform: uppercase; letter-spacing: .14em;
    margin: 0 0 18px;
}
.eyebrow--light { color: var(--muted-d); }
.eyebrow--dark  { color: var(--muted-l); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot--ink { background: var(--ink); }

.led { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.led--green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.led--amber { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.led--off   { background: var(--led-off); }
.led--pulse { animation: andonPulse 1.8s ease-in-out infinite; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
    font-family: var(--f-mono); font-size: 13px;
    text-transform: uppercase; letter-spacing: .04em;
    text-decoration: none; cursor: pointer;
    padding: 14px 24px; border: 2px solid; display: inline-block;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--solid  { border-color: #fff; background: #fff; color: var(--ink); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn--ghost  { border-color: #fff; background: transparent; color: var(--paper); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--accent); color: var(--accent); }

.btn--outline { align-self: flex-start; background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ============================== HEADER ================================== */
.site-header {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 18px clamp(16px, 4vw, 56px);
    border-bottom: 4px solid var(--ink);
    background: var(--bg);
    position: sticky; top: 0; z-index: 50;
}
.brand {
    text-decoration: none;
    color: var(--ink);
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 32px;
    letter-spacing: .01em;
    text-transform: uppercase;
    line-height: 1;
    display: inline-flex;
    align-items: flex-start;
}
.brand sup { font-size: 13px; font-weight: 700; top: -.1em; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(14px, 2.4vw, 30px);
    font-family: var(--f-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    align-items: center;
}
.site-nav a { text-decoration: none; color: var(--ink); transition: color .15s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }

/* Hamburguesa (sólo móvil) */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span {
    width: 26px; height: 3px; background: var(--ink); transform-origin: center;
    transition: transform .25s ease, opacity .2s ease;
}
/* Animación 3 rayas -> X cuando el menú está abierto */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================== HERO =================================== */
.hero {
    position: relative; background: var(--dark); color: var(--paper);
    padding: clamp(56px, 9vw, 108px) clamp(16px, 4vw, 56px); overflow: hidden;
}
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 64px);
}
.hero-inner { position: relative; max-width: 980px; margin: 0 auto; }
.hero .eyebrow { letter-spacing: .14em; margin-bottom: 26px; }
.hero-title {
    font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(36px, 6vw, 68px); line-height: .98; letter-spacing: .005em;
    margin: 0; max-width: 16ch;
}
.hero-lead { font-size: 17px; line-height: 1.55; color: var(--muted-d2); max-width: 52ch; margin: 26px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Andon panel */
.andon { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.andon-label {
    font-family: var(--f-mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: .12em; color: var(--muted-d); margin: 0 0 18px;
}
.andon-row { display: flex; flex-wrap: wrap; gap: 14px; }
.andon-card {
    flex: 1 1 200px; min-width: 200px;
    background: var(--dark-2); border: 1px solid var(--line-dark); padding: 16px 16px 17px;
}
.andon-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.andon-card__status {
    font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted-d);
}
.andon-card__status.is-active { color: var(--green); }
.andon-card__name {
    font-family: var(--f-display); font-weight: 700; font-size: 16px;
    text-transform: uppercase; letter-spacing: .01em; line-height: 1.05;
}
.andon-card__loc { font-size: 11.5px; color: var(--muted-d); margin-top: 5px; }

/* ============================== SERVICES =============================== */
.stations { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.station {
    position: relative; border-top: 4px solid var(--ink);
    padding: 30px 22px 8px; border-right: 1px solid var(--line-light);
}
.station--last { border-right: 0; }
.station__node {
    position: absolute; top: -10px; left: 22px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--ink); border: 3px solid var(--bg);
}
.station__num { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted-l); margin-bottom: 10px; }
.station__title {
    font-family: var(--f-display); font-weight: 800; font-size: 19px;
    text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin-bottom: 9px;
}
.station__desc { font-size: 13.5px; line-height: 1.5; color: var(--muted-l); margin: 0; }

/* ============================== TRACK / PLATES ========================= */
.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.plate {
    position: relative; background: linear-gradient(180deg, #1c1d22, #171821);
    border: 1.5px solid var(--line-dark-2); padding: 26px 26px 24px;
}
.plate__screw {
    position: absolute; width: 7px; height: 7px; border-radius: 50%;
    background: var(--screw); box-shadow: inset 0 1px 1px rgba(0,0,0,.6);
}
.plate__screw--tl { top: 9px; left: 9px; }
.plate__screw--tr { top: 9px; right: 9px; }
.plate__screw--bl { bottom: 9px; left: 9px; }
.plate__screw--br { bottom: 9px; right: 9px; }
.plate__name {
    font-family: var(--f-display); font-weight: 800; font-size: 20px;
    text-transform: uppercase; letter-spacing: .01em; line-height: 1.02;
}
.plate__loc {
    font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase;
    letter-spacing: .03em; color: var(--muted-d); margin-top: 6px;
}
.plate__grid {
    margin-top: 18px; padding-top: 16px; border-top: 1px solid #34353b;
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
}
.plate__full { grid-column: 1 / -1; }
.plate__k { font-family: var(--f-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-d); }
.plate__v { font-size: 12.5px; color: #dcdcdb; margin-top: 4px; line-height: 1.5; }

/* ============================== TEAM =================================== */
.team { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); align-items: flex-start; }
.badge {
    flex: 0 0 280px; width: 280px; background: var(--bg);
    border: 1.5px solid var(--ink); box-shadow: 0 14px 30px -18px rgba(16,17,19,.45);
    padding: 0 0 22px;
}
.badge__hanger { display: flex; justify-content: center; padding: 16px 0 12px; }
.badge__hanger span { width: 36px; height: 10px; border-radius: 6px; background: var(--bg); border: 1.5px solid var(--ink); display: block; }
.badge__bar {
    background: var(--ink); color: var(--paper); font-family: var(--f-mono);
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em;
    text-align: center; padding: 7px 0;
}
.badge__avatar { display: flex; justify-content: center; margin: 26px 0 16px; }
.badge__avatar span {
    width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: .02em;
}
.badge__name {
    text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 19px;
    text-transform: uppercase; letter-spacing: .01em; line-height: 1;
}
.badge__role {
    text-align: center; font-family: var(--f-mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: .08em; color: var(--muted-l); margin-top: 7px;
}
.badge__barcode {
    height: 26px; margin: 22px 24px 0;
    background-image: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px);
}

.bio { flex: 1 1 360px; min-width: 280px; }
.bio__name { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.bio__role { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-l); margin-top: 8px; }
.bio__p { font-size: 15px; line-height: 1.6; color: var(--muted-l); margin: 16px 0 0; }
.bio__p:first-of-type { margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
    font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ink); border: 1px solid var(--line-light); padding: 6px 11px;
}

/* ============================== CONTACT ================================ */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact__title { max-width: 14ch; margin-bottom: 0; }
.contact__lead { font-size: 15px; line-height: 1.6; color: var(--muted-d2); max-width: 46ch; margin: 22px 0 30px; }

.infogrid { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line-dark-2); }
.infogrid__cell { padding: 18px; }
.infogrid__cell:nth-child(1) { border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.infogrid__cell:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
.infogrid__cell:nth-child(3) { border-right: 1px solid var(--line-dark); }
.infogrid__k { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-d); }
.infogrid__v { font-family: var(--f-display); font-weight: 700; font-size: 17px; margin-top: 6px; }
.infogrid__link { display: inline-block; color: var(--paper); text-decoration: none; transition: color .15s ease; }
.infogrid__link:hover, .infogrid__link:focus-visible { color: var(--accent); }

/* Form */
.cform { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-d); }
.field input, .field textarea {
    font-family: var(--f-body); font-size: 16px; color: var(--paper);
    background: var(--dark-2); border: 1.5px solid var(--line-dark-2);
    padding: 13px 14px; outline: none; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #e0533d; }

/* Honeypot — fuera de pantalla, invisible para humanos */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cform__alert {
    display: none; font-family: var(--f-mono); font-size: 12px; line-height: 1.5;
    padding: 13px 14px; border: 1.5px solid;
}
.cform__alert.is-visible { display: block; }
.cform__alert.is-ok    { border-color: var(--green); color: var(--green); }
.cform__alert.is-error { border-color: #e0533d; color: #ef8a78; }

/* ============================== FOOTER ================================= */
.site-footer {
    background: var(--footer); color: var(--muted-d);
    padding: 26px clamp(16px, 4vw, 56px);
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em;
}
.site-footer__tag { text-transform: uppercase; letter-spacing: .08em; }

/* ============================== WHATSAPP FLOAT ========================= */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,.5);
    transition: transform .15s ease;
}
.wa-float:hover { transform: translateY(-2px); }

/* ============================== RESPONSIVE ============================= */
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; width: 100%; flex-direction: column; gap: 18px;
        order: 3; padding-top: 8px;
    }
    .site-nav.is-open { display: flex; }
    .site-header { flex-wrap: wrap; }
}

@media (max-width: 420px) {
    .infogrid { grid-template-columns: 1fr; }
    .infogrid__cell:nth-child(1), .infogrid__cell:nth-child(3) { border-right: 0; }
    .infogrid__cell:nth-child(3) { border-bottom: 1px solid var(--line-dark); }
}

/* ===========================================================================
   PRO UPGRADE — acabado profesional (hero, marcas, iconos, animaciones)
   =========================================================================== */

/* --- Header CTA --- */
.site-nav a.nav-cta {
    border: 1.5px solid var(--ink);
    padding: 9px 16px;
    color: var(--ink);
    line-height: 1;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.site-nav a.nav-cta:hover, .site-nav a.nav-cta:focus-visible {
    background: var(--ink); color: #fff; border-color: var(--ink);
}

/* --- Hero: brillo de fondo + acento del titular --- */
.hero-glow {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(640px circle at 88% 8%, rgba(242,169,59,.13), transparent 60%),
        radial-gradient(720px circle at 4% 96%, rgba(61,220,132,.06), transparent 55%);
}
.hero-inner { z-index: 1; }
.hero-title .accent { color: var(--accent); }

/* --- Hero: barra de métricas --- */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: clamp(22px, 4vw, 54px);
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid var(--line-dark);
    width: fit-content;
    max-width: 100%;
}
.stat__num {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(30px, 4vw, 46px); line-height: 1; color: #ffffff;
}
.stat__label {
    font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted-d); margin-top: 9px;
    max-width: 17ch; line-height: 1.45;
}

/* --- Muro de clientes / programas --- */
.logowall {
    background: #f6f6f5;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    padding: clamp(28px, 4vw, 42px) clamp(16px, 4vw, 56px);
}
.logowall__label {
    font-family: var(--f-mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: .14em; color: var(--muted-l); text-align: center; margin: 0 0 26px;
}
.logowall__row {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: clamp(20px, 3.5vw, 48px); row-gap: 22px;
}
.logo {
    display: inline-flex; align-items: center; gap: 11px;
    color: #9a9da1; transition: color .2s ease, transform .2s ease;
}
.logo:hover { color: var(--ink); transform: translateY(-2px); }
.logo__glyph { width: 26px; height: 26px; flex: none; }
.logo__name {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(15px, 1.6vw, 18px); text-transform: uppercase;
    letter-spacing: .02em; white-space: nowrap;
}

/* --- Iconos de las estaciones de servicio --- */
.station__icon {
    display: block; width: 30px; height: 30px; color: var(--ink);
    margin-bottom: 16px; transition: color .2s ease, transform .2s ease;
}

/* --- Estados hover premium en tarjetas --- */
.andon-card { transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.andon-card:hover { border-color: #44464d; background: #1f2027; transform: translateY(-2px); }

.station { transition: background .2s ease; }
.station:hover { background: #fafafa; }
.station:hover .station__icon { color: var(--accent); transform: translateY(-2px); }

.plate { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.plate:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 42px -26px rgba(0,0,0,.85); }

.chip { transition: border-color .15s ease, color .15s ease; }
.chip:hover { border-color: var(--ink); }

/* --- Animaciones de aparición (sólo con JS; visible si JS está desactivado) --- */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive del upgrade --- */
@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; width: 100%; }
    .logowall__row { gap: 18px 26px; }
    .logo__name { font-size: 15px; }
}
@media (max-width: 720px) {
    .site-nav a.nav-cta { align-self: flex-start; }
}

/* --- Muro de clientes: tarjetas blancas, logo arriba + nombre debajo --- */
.logowall__row { align-items: stretch; }
.logo {
    flex-direction: column; gap: 13px;
    background: #ffffff;
    border: 1px solid var(--line-light);
    border-radius: 10px;
    height: 116px; min-width: 168px; padding: 18px 22px;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(16,17,19,.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.logo:hover {
    transform: translateY(-3px); border-color: #d3d3d6;
    box-shadow: 0 16px 30px -20px rgba(16,17,19,.45);
}
.logo--img { gap: 13px; }

/* Caja de la marca: altura fija para que todos los nombres queden alineados */
.logo__mark {
    height: 48px; display: flex; align-items: center; justify-content: center;
}
.logo__mark .logo__glyph { width: 30px; height: 30px; color: #9a9da1; }

/* Imagen del logo (gris -> color al pasar el ratón) */
.logo__img {
    display: block; width: auto; height: auto;
    max-height: 44px; max-width: 132px; object-fit: contain;
    filter: grayscale(1); opacity: .72;
    transition: filter .25s ease, opacity .25s ease;
}
.logo:hover .logo__img { filter: none; opacity: 1; }

/* Nombre como leyenda debajo del logo */
.logo .logo__name {
    font-family: var(--f-mono); font-weight: 400; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: .07em; color: var(--muted-l);
    white-space: nowrap; line-height: 1;
}

/* Ajuste óptico por marca (proporciones muy distintas) */
.logo--mercedes-amg      .logo__img { max-height: 22px; max-width: 142px; }
.logo--jaguar-land-rover .logo__img { max-height: 46px; max-width: 88px; }
.logo--stellantis        .logo__img { max-height: 46px; max-width: 90px; border-radius: 7px; filter: none; opacity: 1; }
.logo--ioncor            .logo__img { max-height: 22px; max-width: 120px; }
.logo--ctag              .logo__img { max-height: 44px; }
.logo--mb-sistemas       .logo__img { max-height: 44px; }

@media (max-width: 640px) {
    .logo { height: 100px; min-width: 132px; padding: 14px 16px; gap: 10px; }
    .logo--img { gap: 10px; }
    .logo__mark { height: 40px; }
    .logo__img { max-height: 36px; max-width: 104px; }
    .logo--mercedes-amg .logo__img { max-width: 110px; }
    .logo--ioncor .logo__img { max-width: 100px; }
}

/* ===========================================================================
   ANIMACIONES (sofisticadas, sin saturar) — todo seguro sin JS y con
   respeto a prefers-reduced-motion.
   =========================================================================== */

/* --- Barra de progreso de scroll (línea ámbar superior) --- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--accent), #ffd27a);
    z-index: 60; pointer-events: none;
}

/* --- Cabecera: se "asienta" al bajar --- */
.site-header { transition: padding .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header.is-scrolled {
    padding-top: 12px; padding-bottom: 12px;
    box-shadow: 0 12px 30px -24px rgba(0,0,0,.55);
}

/* --- Entrada escalonada del hero al cargar --- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
html.js .hero .eyebrow,
html.js .hero-title,
html.js .hero-lead,
html.js .hero-actions {
    opacity: 0;
    animation: riseIn .8s cubic-bezier(.2,.75,.25,1) both;
}
html.js .hero .eyebrow { animation-delay: .08s; }
html.js .hero-title    { animation-delay: .18s; }
html.js .hero-lead     { animation-delay: .34s; }
html.js .hero-actions  { animation-delay: .48s; }

/* --- Revelado en cascada de grupos (hijos uno tras otro al entrar) --- */
html.js .reveal-group > * {
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
html.js .reveal-group.is-in > * { opacity: 1; transform: none; }
html.js .reveal-group.is-in > *:nth-child(1) { transition-delay: 0s; }
html.js .reveal-group.is-in > *:nth-child(2) { transition-delay: .07s; }
html.js .reveal-group.is-in > *:nth-child(3) { transition-delay: .14s; }
html.js .reveal-group.is-in > *:nth-child(4) { transition-delay: .21s; }
html.js .reveal-group.is-in > *:nth-child(5) { transition-delay: .28s; }
html.js .reveal-group.is-in > *:nth-child(6) { transition-delay: .35s; }
html.js .reveal-group.is-in > *:nth-child(7) { transition-delay: .42s; }
html.js .reveal-group.is-in > *:nth-child(8) { transition-delay: .49s; }

/* --- Subrayado animado en el menú --- */
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left center;
    transition: transform .25s ease;
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

/* --- Micro-interacción: flecha de los botones --- */
.btn .arr { display: inline-block; transition: transform .2s ease; }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(5px); }

/* --- Contador de métricas: evita parpadeo inicial --- */
html.js .stat__num { font-variant-numeric: tabular-nums; }

/* --- Acento del LED ámbar de contacto: pulso suave --- */
.led--amber { animation: andonPulse 2.4s ease-in-out infinite; }

/* --- Reduced motion: desactiva todo el movimiento añadido --- */
@media (prefers-reduced-motion: reduce) {
    html.js .hero .eyebrow,
    html.js .hero-title,
    html.js .hero-lead,
    html.js .hero-actions { animation: none; opacity: 1; }
    html.js .reveal-group > * { opacity: 1; transform: none; transition: none; }
    .scroll-progress { display: none; }
    .site-nav a:not(.nav-cta)::after { transition: none; }
    .led--amber { animation: none; }
    .btn .arr { transition: none; }
}
