/* ============================================================
   MACOV Landing Page — Identidad Gráfica Gobierno de México 2024-2030
   ============================================================ */

:root {
    /* Paleta oficial */
    --ink:           #161a1d;
    --ink-soft:      #4d4d4d;
    --paper:         #f7f4ec;
    --paper-strong:  #ffffff;
    --mist:          #efe8d2;
    --line:          rgba(22, 26, 29, 0.14);
    --forest:        #1e5b4f;
    --forest-2:      #002f2a;
    --teal:          #1e5b4f;
    --burgundy:      #9b2247;
    --burgundy-dark: #611232;
    --gold:          #a57f2c;
    --gold-soft:     #e6d194;
    --gray:          #98989A;

    /* Tipografías oficiales */
    --font-sans:  'Noto Sans', system-ui, -apple-system, Arial, sans-serif;
    --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;

    /* Sombras */
    --shadow:        0 18px 50px rgba(22, 26, 29, 0.16);
    --shadow-soft:   0 6px 22px rgba(22, 26, 29, 0.09);
    --shadow-gold:   0 8px 32px rgba(165, 127, 44, 0.28);
    --shadow-forest: 0 8px 32px rgba(0, 47, 42, 0.32);

    /* Layout */
    --radius:    8px;
    --radius-lg: 8px;
    --max:       1180px;
    --header-h:  74px;

    /* Textura oficial — patrón orgánico botánico del Gobierno de México 2024-2030 */
    --texture-botanical: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='none' stroke='%239b2247' stroke-width='1.3' opacity='0.55'%3E%3Cpath d='M130 12 C172 32 202 82 180 132 C158 182 98 202 68 172 C38 142 48 82 78 52 C100 32 130 12 130 12Z'/%3E%3Cpath d='M130 12 C88 32 58 82 78 132 C98 182 158 202 188 172 C218 142 208 82 178 52 C158 32 130 12 130 12Z'/%3E%3Cpath d='M78 72 C118 52 168 62 188 102 C208 142 188 192 148 202 C108 212 68 187 58 147 C48 107 78 72 78 72Z' opacity='0.45'/%3E%3Cpath d='M132 132 C152 92 197 82 217 112 C237 142 222 187 192 197 C162 207 132 187 127 162 C122 137 132 132 132 132Z' opacity='0.38'/%3E%3Cpath d='M28 142 C48 102 98 92 118 122 C138 152 123 202 93 212 C63 222 28 197 23 167 C18 142 28 142 28 142Z' opacity='0.32'/%3E%3Ccircle cx='130' cy='130' r='9' fill='%239b2247' opacity='0.16'/%3E%3Ccircle cx='78' cy='78' r='5.5' fill='%23a57f2c' opacity='0.2'/%3E%3Ccircle cx='186' cy='176' r='4' fill='%239b2247' opacity='0.14'/%3E%3C/g%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img, svg, canvas {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    cursor: pointer;
}

/* Accesibilidad */
.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 200;
    top: 14px;
    left: 14px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: #fff;
    background: var(--burgundy);
    border-radius: var(--radius);
}

/* ──────────────────────────────────────────────
   HEADER
────────────────────────────────────────────── */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px clamp(18px, 4vw, 48px);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(22, 26, 29, 0.42);
    backdrop-filter: blur(18px);
    transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(97, 18, 50, 0.96);
    border-bottom-color: rgba(230, 209, 148, 0.28);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-profepa {
    width: clamp(96px, 12vw, 145px);
    max-height: 40px;
    /* Logo ya es blanco — visible sobre fondo oscuro del header sin fondo blanco */
}

.brand-macov {
    width: 42px;
    height: 42px;
}

.brand-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.36);
}

.brand-text {
    display: grid;
    gap: 1px;
    line-height: 1;
}

.brand-text strong {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 180ms ease, background 180ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: #fff;
    background: rgba(230, 209, 148, 0.14);
}

.nav-action {
    margin-left: 6px;
    color: var(--burgundy-dark) !important;
    background: var(--gold-soft) !important;
    font-weight: 700 !important;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(165, 127, 44, 0.32);
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease !important;
}

.nav-action:hover {
    background: var(--gold) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(165, 127, 44, 0.44);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

/* ──────────────────────────────────────────────
   LUCIDE ICONS — Render real, sin placeholder
────────────────────────────────────────────── */

i[data-lucide] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.15em;
    height: 1.15em;
}

i[data-lucide] svg {
    width: 100%;
    height: 100%;
}

/* ──────────────────────────────────────────────
   BOTONES
────────────────────────────────────────────── */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.96rem;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy) 58%, var(--gold));
    box-shadow: 0 16px 34px rgba(97, 18, 50, 0.28);
}

.button-primary:hover {
    box-shadow: 0 20px 44px rgba(97, 18, 50, 0.42);
}

.button-ghost {
    color: #fff;
    border-color: rgba(230, 209, 148, 0.55);
    background: rgba(230, 209, 148, 0.14);
    backdrop-filter: blur(10px);
}

/* ──────────────────────────────────────────────
   EYEBROW
────────────────────────────────────────────── */

.eyebrow {
    margin: 0 0 16px;
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ──────────────────────────────────────────────
   HERO
────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 86svh;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(
            112deg,
            rgba(22, 26, 29, 0.95) 0%,
            rgba(97, 18, 50, 0.84) 38%,
            rgba(0, 47, 42, 0.56) 72%,
            rgba(30, 91, 79, 0.22) 100%
        ),
        url("/static/img/macov-hero-nasa-carbon.png") center / cover no-repeat;
}

/* Textura oficial en el hero */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--texture-botanical);
    background-repeat: repeat;
    background-size: 260px 260px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 32%;
    background: linear-gradient(180deg, transparent, rgba(22, 26, 29, 0.52));
    pointer-events: none;
    z-index: 1;
}

.coverage-canvas,
.hero-scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.coverage-canvas {
    opacity: 0.36;
    mix-blend-mode: screen;
    z-index: 1;
}

.hero-scrim {
    background:
        linear-gradient(90deg, rgba(22, 26, 29, 0.42), rgba(22, 26, 29, 0.18) 54%, transparent),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 46%, rgba(0, 0, 0, 0.34));
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 36px));
    min-height: 86svh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 920px);
    justify-content: start;
    align-items: center;
    gap: 48px;
    padding: calc(var(--header-h) + 42px) 0 60px;
}

/* Título hero */
.hero h1 {
    margin: 0;
    font-family: var(--font-serif);
    color: #fff;
    font-size: 7rem;
    line-height: 0.86;
    letter-spacing: 0;
    display: flex;
    align-items: baseline;
    gap: 0.1em;
    flex-wrap: wrap;
}

.hero-title-main {
    /* hereda todo del h1 */
}

.hero-title-accent {
    font-size: 0.36em;
    font-weight: 400;
    font-style: italic;
    color: var(--gold-soft);
    letter-spacing: 0.06em;
    align-self: flex-end;
    padding-bottom: 0.14em;
    opacity: 0.86;
}

.hero-subtitle {
    margin: 16px 0 0;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.16;
    min-height: 1.4em;
}

.hero-brief {
    max-width: 640px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* Chips flotantes */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(22, 26, 29, 0.48);
    color: rgba(255, 255, 255, 0.88);
    /* animación de entrada + flotación */
    animation: chipIn 480ms ease both, chipFloat 3.2s ease-in-out infinite;
}

.hero-chips .hero-chip:nth-child(1) { animation-delay: 800ms, 1280ms; }
.hero-chips .hero-chip:nth-child(2) { animation-delay: 960ms, 1440ms; }
.hero-chips .hero-chip:nth-child(3) { animation-delay: 1120ms, 1600ms; }
.hero-chips .hero-chip:nth-child(4) { animation-delay: 1280ms, 1760ms; }

.chip-sentinel {
    border-color: rgba(30, 91, 79, 0.7);
    background: rgba(30, 91, 79, 0.36);
}

.chip-live {
    border-color: rgba(230, 209, 148, 0.55);
    background: rgba(165, 127, 44, 0.28);
    color: var(--gold-soft);
}

.chip-biomas {
    border-color: rgba(155, 34, 71, 0.55);
    background: rgba(97, 18, 50, 0.36);
}

.chip-ndvi {
    border-color: rgba(255, 255, 255, 0.16);
}

.chip-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-soft);
    flex-shrink: 0;
    animation: livePulse 1.9s infinite;
}

.asset-credit {
    max-width: 480px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.71rem;
    line-height: 1.45;
    font-style: italic;
}

/* Console */
.hero-console {
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(22, 26, 29, 0.62);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.console-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    font-weight: 500;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-soft);
    box-shadow: 0 0 0 0 rgba(230, 209, 148, 0.54);
    animation: livePulse 1.9s infinite;
    flex-shrink: 0;
}

.scan-window {
    position: relative;
    height: 232px;
    overflow: hidden;
    background: #0d1a16;
}

/* ── Leaflet real map ── */
#macov-alert-map {
    width: 100%;
    height: 100%;
    pointer-events: none;   /* decorativo — sin interacción */
    background: #0d1a16;
}

#macov-alert-map .leaflet-control-attribution {
    font-size: 7px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.28);
    pointer-events: auto;
    padding: 1px 4px;
    border-radius: 2px 0 0 0;
}

#macov-alert-map .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.28);
}

/* Alert pins sobre el mapa real */
.map-alert-pin {
    position: relative;
    width: 10px;
    height: 10px;
}

.map-alert-pin .pin-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    animation: pinPulse 2.2s ease-out infinite;
}

.map-alert-pin .pin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

.map-alert-pin .pin-label {
    position: absolute;
    left: 14px;
    top: -4px;
    white-space: nowrap;
    font-family: monospace;
    font-size: 9px;
    font-weight: 700;
    color: currentColor;
    background: rgba(10, 16, 14, 0.85);
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.02em;
}

.map-alert-pin.level-critico { color: #e85580; }
.map-alert-pin.level-alto    { color: #f0c84a; }
.map-alert-pin.level-medio   { color: #f08c34; }
.map-alert-pin.level-bajo    { color: #4aad94; }

@keyframes pinPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(2.8); opacity: 0; }
    100% { transform: scale(2.8); opacity: 0; }
}

.scan-grid { display: none; }

.scan-line {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: translateX(-100%);
    animation: scan 5.5s linear infinite;
}

.hotspot {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(230, 209, 148, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 32px rgba(230, 209, 148, 0.36);
    animation: hotspot 2.8s ease-in-out infinite;
}

.hotspot-one  { top: 22%; left: 58%; }
.hotspot-two  { top: 58%; left: 24%; width: 42px; height: 42px; border-color: rgba(165, 127, 44, 0.9); }
.hotspot-three { top: 66%; left: 70%; width: 34px; height: 34px; border-color: rgba(30, 91, 79, 0.95); }

.console-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
}

.console-metrics div {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.console-metrics div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.console-metrics dt {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-metrics dd {
    margin: 4px 0 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-serif);
}

/* Silueta SVG de México */
.hero-mexico-outline {
    position: absolute;
    right: -3%;
    bottom: 7%;
    width: clamp(200px, 26vw, 360px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.mx-dot {
    animation: hotspot 3.2s ease-in-out infinite;
}

/* ──────────────────────────────────────────────
   SECCIONES — estructura común
────────────────────────────────────────────── */

.section,
.intro-band,
.metric-band,
.closing-band {
    position: relative;
}

.section-shell {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
}

.section {
    padding: clamp(44px, 5vw, 80px) 0;
}

.section-heading h2 {
    margin: 0;
    color: inherit;
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 700;
}

.section-heading p:not(.eyebrow),
.objective-copy p,
.closing-layout p {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 1.04rem;
    line-height: 1.72;
}

.centered {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.two-column,
.dashboard-layout,
.comparison-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

/* ──────────────────────────────────────────────
   INTRO BAND (Objetivo)
────────────────────────────────────────────── */

.intro-band {
    padding: 44px 0;
    background: var(--burgundy-dark);
    color: #fff;
}

.intro-band .section-heading h2,
.intro-band .objective-copy p {
    color: #fff;
}

.intro-band .objective-copy p {
    color: rgba(255, 255, 255, 0.82);
}

.source-note {
    margin-top: 22px;
    padding: 14px 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.92rem;
    line-height: 1.58;
}

/* ──────────────────────────────────────────────
   METRIC BAND — Rediseño con fondo oscuro
────────────────────────────────────────────── */

.metric-band {
    padding: 0;
    background:
        linear-gradient(135deg, var(--forest-2) 0%, #0a1f1c 50%, rgba(97, 18, 50, 0.85) 100%);
    border-bottom: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.metric-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--texture-botanical);
    background-repeat: repeat;
    background-size: 260px 260px;
    opacity: 0.06;
    pointer-events: none;
}

.metric-strip {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

.metric-card {
    padding: 32px 26px;
    display: grid;
    align-content: start;
    gap: 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-right: 1px solid rgba(230, 209, 148, 0.15);
    color: #fff;
}

.metric-card:last-child {
    border-right: none;
}

.metric-value {
    color: var(--gold-soft);
    font-family: var(--font-serif);
    font-size: 4.1rem;
    line-height: 0.88;
    font-weight: 700;
}

.metric-unit {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 6px;
}

.metric-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.88rem;
    margin-top: 8px;
    line-height: 1.38;
}

.metric-sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.73rem;
    margin-top: 4px;
    line-height: 1.4;
}

/* ──────────────────────────────────────────────
   CAPACIDADES — Fondo verde oscuro
────────────────────────────────────────────── */

.capabilities-section {
    background: var(--forest-2);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.capabilities-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--texture-botanical);
    background-repeat: repeat;
    background-size: 260px 260px;
    opacity: 0.05;
    pointer-events: none;
}

.capabilities-section .section-heading h2,
.capabilities-section .section-heading p:not(.eyebrow) {
    color: #fff;
}

.capabilities-section .section-heading p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.72);
}

.capability-grid,
.operation-grid,
.user-grid,
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.capability-card {
    min-height: 234px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: none;
    position: relative;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.capability-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(165, 127, 44, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 220ms ease;
    border-radius: inherit;
    pointer-events: none;
}

.capability-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230, 209, 148, 0.48);
    box-shadow: 0 0 0 1px rgba(230, 209, 148, 0.18), 0 24px 60px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.09);
}

.capability-card:hover::before {
    opacity: 1;
}

.capability-card i[data-lucide],
.capability-card svg.lucide {
    width: 34px;
    height: 34px;
    color: var(--gold-soft);
}

.capability-card h3 {
    margin: 20px 0 0;
    font-size: 1.16rem;
    color: #fff;
    line-height: 1.22;
}

.capability-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.65;
    font-size: 0.94rem;
}

/* Stagger para las capability cards */
.capability-grid [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.capability-grid [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.capability-grid [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.capability-grid [data-reveal]:nth-child(4) { transition-delay: 240ms; }
.capability-grid [data-reveal]:nth-child(5) { transition-delay: 320ms; }
.capability-grid [data-reveal]:nth-child(6) { transition-delay: 400ms; }

/* ──────────────────────────────────────────────
   WORKFLOW
────────────────────────────────────────────── */

.workflow-section {
    color: #fff;
    padding: clamp(40px, 5vw, 68px) 0;
    background:
        linear-gradient(120deg, rgba(0, 47, 42, 0.97), rgba(22, 26, 29, 0.97)),
        url("/static/img/macov-hero-nasa-carbon.png") center / cover fixed;
}

.workflow-section .section-heading {
    max-width: 820px;
}

.workflow-section .section-heading h2 {
    color: #fff;
}

/* ── Workflow: diagrama de flujo con flechas ── */

.workflow-timeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.workflow-step {
    flex: 1 1 0;
    min-width: 0;
}

.workflow-step-inner {
    height: 100%;
    padding: 22px 14px 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: background 220ms ease, border-color 220ms ease;
}

.workflow-step-inner:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(230, 209, 148, 0.38);
}

.workflow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    align-self: center;
    padding: 0 2px;
}

.workflow-arrow svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    overflow: visible;
}

.workflow-num {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--gold-soft);
    border: 2px solid rgba(230, 209, 148, 0.5);
    border-radius: 50%;
    background: rgba(165, 127, 44, 0.14);
    box-shadow:
        0 0 0 5px rgba(165, 127, 44, 0.07),
        0 0 18px rgba(165, 127, 44, 0.18);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: box-shadow 220ms ease, background 220ms ease;
}

.workflow-step-inner:hover .workflow-num {
    background: rgba(165, 127, 44, 0.26);
    box-shadow:
        0 0 0 8px rgba(165, 127, 44, 0.09),
        0 0 36px rgba(165, 127, 44, 0.34);
}

.workflow-step-inner h3 {
    margin: 14px 0 6px;
    font-size: 0.98rem;
    color: var(--gold-soft);
    font-family: var(--font-serif);
    font-weight: 600;
}

.workflow-step-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    font-size: 0.83rem;
}

/* ──────────────────────────────────────────────
   INSIGHT (Visualización directiva)
────────────────────────────────────────────── */

.insight-section {
    background: var(--paper-strong);
}

.insight-board {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(155, 34, 71, 0.04), rgba(30, 91, 79, 0.04)),
        #fff;
    box-shadow: var(--shadow);
}

.board-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.board-header span {
    color: var(--burgundy);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.board-header strong {
    text-align: right;
    font-family: var(--font-serif);
}

.risk-bars {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.risk-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 14px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.9rem;
}

.bar-track {
    height: 14px;
    overflow: hidden;
    background: #ece7d8;
    border-radius: 999px;
}

.bar-track span {
    display: block;
    width: var(--bar-width);
    height: 100%;
    background: var(--bar-color);
    border-radius: inherit;
    transform-origin: left;
    animation: barIn 1100ms ease both;
}

.trend-chart {
    margin-top: 30px;
    width: 100%;
    min-height: 180px;
}

.platform-preview {
    position: relative;
    margin: 26px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 12px 40px rgba(22, 26, 29, 0.12), 0 2px 6px rgba(22, 26, 29, 0.06);
}

.platform-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top center;
}

.platform-preview figcaption {
    padding: 10px 14px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

/* Badge flotante "Plataforma en vivo" */
.platform-preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(22, 26, 29, 0.72);
    backdrop-filter: blur(10px);
    color: var(--gold-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(230, 209, 148, 0.3);
}

.chart-grid line {
    stroke: rgba(22, 26, 29, 0.12);
    stroke-width: 1;
}

.trend-area {
    fill: rgba(155, 34, 71, 0.07);
}

.trend-line {
    fill: none;
    stroke: url("#trendGradient");
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: drawLine 1600ms ease forwards;
}

.chart-points circle {
    fill: #fff;
    stroke: var(--burgundy);
    stroke-width: 3;
}

/* ──────────────────────────────────────────────
   OPERACIÓN
────────────────────────────────────────────── */

.operation-section {
    background: linear-gradient(180deg, var(--paper-strong), var(--mist));
}

.operation-card,
.user-card,
.roadmap-card,
.product-slide {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: var(--shadow-soft);
}

.operation-card,
.user-card,
.roadmap-card {
    min-height: 220px;
    padding: 26px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.operation-card:hover,
.user-card:hover,
.roadmap-card:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 34, 71, 0.28);
    box-shadow: var(--shadow);
}

.operation-card {
    position: relative;
    overflow: hidden;
}

.operation-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--burgundy) 50%, var(--forest) 100%);
    border-radius: var(--radius) 0 0 var(--radius);
    transition: width 220ms ease;
}

.operation-card:hover::before {
    width: 8px;
}

.operation-card span {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 800;
    font-family: var(--font-serif);
    box-shadow: 0 4px 14px rgba(97, 18, 50, 0.38);
}

.operation-card h3,
.user-card h3,
.roadmap-card h3,
.product-slide h3 {
    margin: 18px 0 0;
    font-size: 1.18rem;
    font-family: var(--font-serif);
    line-height: 1.2;
}

.operation-card p,
.user-card p,
.roadmap-card p,
.product-slide p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    line-height: 1.62;
    font-size: 0.94rem;
}

/* ──────────────────────────────────────────────
   PRODUCTOS (Grid visible)
────────────────────────────────────────────── */

.products-section {
    background: var(--paper);
}

/* Grid de 6 columnas: cada producto ocupa dos columnas en escritorio */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 4px;
}

.product-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 26px 24px 28px;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-top: 4px solid var(--burgundy);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 200ms ease, box-shadow 200ms ease, border-top-color 200ms ease;
}


.product-card:nth-child(2) { border-top-color: var(--forest); }
.product-card:nth-child(3) { border-top-color: var(--gold); }
.product-card:nth-child(4) { border-top-color: var(--forest-2); }
.product-card:nth-child(5) { border-top-color: var(--burgundy-dark); }
.product-card:nth-child(6) { border-top-color: var(--gold); }

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-card i[data-lucide],
.product-card svg.lucide {
    width: 28px;
    height: 28px;
    color: var(--forest-2);
    margin-bottom: 14px;
}

.product-card:nth-child(2) i[data-lucide] { color: var(--forest); }
.product-card:nth-child(3) i[data-lucide] { color: var(--gold); }
.product-card:nth-child(4) i[data-lucide] { color: var(--forest-2); }
.product-card:nth-child(5) i[data-lucide] { color: var(--burgundy); }
.product-card:nth-child(6) i[data-lucide] { color: var(--gold); }

.product-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-family: var(--font-serif);
    line-height: 1.22;
    color: var(--ink);
}

.product-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.62;
    font-size: 0.92rem;
    flex: 1;
}

/* ──────────────────────────────────────────────
   USUARIOS
────────────────────────────────────────────── */

.users-section {
    background: var(--paper-strong);
}

.user-card span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 11px;
    color: var(--burgundy-dark);
    background: rgba(97, 18, 50, 0.1);
    border: 1px solid rgba(97, 18, 50, 0.2);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Bordes superiores alternos por rol */
.user-card:nth-child(odd) {
    border-top: 3px solid var(--burgundy);
}

.user-card:nth-child(even) {
    border-top: 3px solid var(--forest);
}

.user-card:nth-child(even) span {
    color: var(--forest-2);
    background: rgba(0, 47, 42, 0.1);
    border-color: rgba(0, 47, 42, 0.2);
}

/* ──────────────────────────────────────────────
   COMPARATIVO
────────────────────────────────────────────── */

.comparison-section {
    color: #fff;
    background: linear-gradient(135deg, var(--ink), var(--burgundy-dark) 52%, var(--forest-2));
}

.comparison-section .section-heading h2 {
    color: #fff;
}

.comparison-section .section-heading p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.74);
}

.comparison-table {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    gap: 14px;
    padding: 18px 20px;
    align-items: center;
}

.comparison-row + .comparison-row {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.comparison-head {
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comp-yes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-soft);
    font-weight: 700;
}

.comp-yes svg { color: var(--gold-soft); }

.comp-no {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.42);
    font-style: normal;
    font-weight: 400;
}

.comp-no svg { color: rgba(255, 255, 255, 0.36); }

/* ──────────────────────────────────────────────
   ROADMAP
────────────────────────────────────────────── */

.roadmap-section {
    background: linear-gradient(180deg, var(--paper-strong), var(--mist));
}

.roadmap-card {
    min-height: 210px;
}

.roadmap-kicker {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.roadmap-kicker-hoy {
    color: var(--forest-2);
    background: rgba(30, 91, 79, 0.14);
    border: 1px solid rgba(30, 91, 79, 0.38);
}

.roadmap-kicker-next {
    color: var(--burgundy-dark);
    background: rgba(230, 209, 148, 0.28);
    border: 1px solid rgba(165, 127, 44, 0.38);
}

.roadmap-card--hoy {
    border-top: 3px solid var(--forest);
}

/* ──────────────────────────────────────────────
   CLOSING BAND — Rediseño dramático
────────────────────────────────────────────── */

.closing-band {
    padding: 86px 0 68px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            rgba(97, 18, 50, 0.98) 0%,
            rgba(58, 8, 26, 1) 40%,
            rgba(0, 47, 42, 0.97) 100%
        ),
        url("/static/img/macov-hero-nasa-carbon.png") center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* Línea dorada superior */
.closing-band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--gold) 20%,
        var(--gold-soft) 50%,
        var(--gold) 80%,
        transparent
    );
    z-index: 2;
}

.closing-texture {
    position: absolute;
    inset: 0;
    background-image: var(--texture-botanical);
    background-repeat: repeat;
    background-size: 260px 260px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.closing-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.closing-copy h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 3.4rem;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
}

.closing-em {
    font-style: italic;
    color: var(--gold-soft);
}

.closing-eyebrow {
    color: var(--gold);
    margin-bottom: 22px;
}

.closing-desc {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
    font-size: 1.04rem;
}

.closing-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    min-width: 220px;
}

.closing-button {
    white-space: nowrap;
    font-size: 1rem;
    padding: 14px 22px;
}

.closing-legal {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.73rem;
    text-align: right;
    line-height: 1.65;
}

.closing-legal span {
    color: rgba(255, 255, 255, 0.6);
}

.closing-stat-row {
    position: relative;
    z-index: 2;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(230, 209, 148, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ──────────────────────────────────────────────
   PLECA INSTITUCIONAL
────────────────────────────────────────────── */

.pleca-institucional {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.pleca-gold-line {
    height: 3px;
    background: linear-gradient(90deg,
        var(--burgundy-dark) 0%,
        var(--gold) 35%,
        var(--gold-soft) 50%,
        var(--gold) 65%,
        var(--forest-2) 100%
    );
}

.pleca-body {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    padding: 22px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.pleca-logos {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pleca-profepa {
    /* Logo ya es blanco — no invertir */
    opacity: 0.88;
    object-fit: contain;
    max-height: 28px;
    width: auto;
}

.pleca-divider {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.22);
}

.pleca-gob-mx {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.pleca-center {
    text-align: center;
}

.pleca-center p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
}

.pleca-center p + p {
    margin-top: 4px;
}

.pleca-center a {
    color: var(--gold-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pleca-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pleca-links a {
    color: rgba(255, 255, 255, 0.52);
    text-decoration: none;
    transition: color 180ms ease;
    font-size: 0.78rem;
}

.pleca-links a:hover {
    color: var(--gold-soft);
}

/* ──────────────────────────────────────────────
   REVEAL ANIMATIONS
────────────────────────────────────────────── */

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 580ms ease, transform 580ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────────────────────
   KEYFRAMES
────────────────────────────────────────────── */

@keyframes livePulse {
    70%  { box-shadow: 0 0 0 12px rgba(230, 209, 148, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 209, 148, 0); }
}

@keyframes scan {
    0%   { transform: translateX(-100%); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateX(340%); opacity: 0; }
}

@keyframes hotspot {
    50% { transform: scale(1.14); opacity: 0.68; }
}

@keyframes barIn {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

@keyframes chipIn {
    from { opacity: 0; transform: translateY(10px) scale(0.93); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(165, 127, 44, 0.2); }
    50%       { box-shadow: 0 0 28px rgba(165, 127, 44, 0.55); }
}

/* ──────────────────────────────────────────────
   RESPONSIVE — 980px
────────────────────────────────────────────── */

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 18px;
        right: 18px;
        display: none;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        background: rgba(97, 18, 50, 0.98);
        box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
    }

    .site-header.is-open .primary-nav {
        display: grid;
    }

    .primary-nav a {
        justify-content: flex-start;
    }

    .nav-action {
        margin-left: 0;
    }

    .hero-inner,
    .two-column,
    .dashboard-layout,
    .comparison-layout {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        gap: 32px;
        padding-top: calc(var(--header-h) + 36px);
    }

    .hero h1 { font-size: 5.6rem; }
    .section-heading h2 { font-size: 2.55rem; }
    .metric-value { font-size: 3.6rem; }
    .closing-copy h2 { font-size: 2.9rem; }

    .hero-console {
        max-width: 600px;
    }

    .hero-mexico-outline {
        display: none;
    }

    .metric-strip,
    .capability-grid,
    .operation-grid,
    .user-grid,
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Productos: 2 columnas en tablet, centradas */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-card { grid-column: span 2; }

    /* Workflow: scroll horizontal apilado */
    .workflow-timeline {
        flex-wrap: wrap;
        gap: 10px;
    }
    .workflow-step   { flex: 1 1 calc(33% - 10px); min-width: 140px; }
    .workflow-arrow  { display: none; }

    .closing-inner {
        grid-template-columns: 1fr;
    }

    .closing-actions {
        align-items: flex-start;
    }

    .closing-legal {
        text-align: left;
    }

    .pleca-body {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
        padding: 24px 0;
    }

    .pleca-logos {
        justify-content: center;
    }

    .pleca-links {
        justify-content: center;
    }
}

/* ──────────────────────────────────────────────
   RESPONSIVE — 680px
────────────────────────────────────────────── */

@media (max-width: 680px) {
    :root {
        --header-h: 68px;
    }

    .site-header {
        padding-inline: 14px;
    }

    .brand-profepa {
        width: 92px;
    }

    .brand-macov {
        width: 38px;
        height: 38px;
    }

    .brand-text {
        display: none;
    }

    .hero {
        min-height: 84svh;
    }

    .hero-inner {
        width: min(100% - 28px, var(--max));
        min-height: 84svh;
    }

    .hero h1 { font-size: 3.7rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-brief { font-size: 0.98rem; line-height: 1.58; }
    .section-heading h2 { font-size: 2rem; }
    .metric-value { font-size: 3rem; }
    .closing-copy h2 { font-size: 2.25rem; }

    .hero-actions {
        display: grid;
    }

    .hero-console {
        display: none;
    }

    .hero-chips {
        gap: 6px;
    }

    .metric-strip,
    .capability-grid,
    .operation-grid,
    .user-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    /* Productos: 1 columna en móvil */
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card,
    .product-card:nth-child(4),
    .product-card:nth-child(5) {
        grid-column: 1;
    }

    /* Workflow: columna única */
    .workflow-timeline {
        flex-direction: column;
        gap: 8px;
    }
    .workflow-step  { flex: 1 1 auto; }
    .workflow-arrow { display: none; }

    .metric-card {
        padding: 24px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(230, 209, 148, 0.15);
    }

    .metric-card:last-child {
        border-bottom: none;
    }

    /* console-metrics: scroll horizontal en móvil si hace falta */
    .console-metrics {
        grid-template-columns: repeat(5, minmax(52px, 1fr));
        overflow-x: auto;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .comparison-head {
        display: none;
    }

    .board-header {
        display: grid;
    }

    .board-header strong {
        text-align: left;
    }

    .closing-band {
        padding: 60px 0 48px;
    }

    .closing-stat-row {
        display: none;
    }
}

/* ──────────────────────────────────────────────
   REDUCED MOTION
────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .coverage-canvas {
        display: none;
    }

    .hero-chips {
        animation: none !important;
    }

    .hero-chip {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-mexico-outline {
        display: none;
    }

    .closing-texture {
        display: none;
    }
}
