/* ==========================================================================
   CROC — Sistema de diseño editorial
   Fuentes (cargadas por <link> en cada página):
     - Archivo (variable: wght 100..900, wdth 62..125) — display
     - Instrument Sans (400/500/600/700) — cuerpo
   Paleta: hueso #FAF9F2 + tinta #1F1E1D + flama #F58634 / #E03335
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset ligero + tokens
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body,
h1, h2, h3, h4, p,
ul, ol, figure, blockquote {
    margin: 0;
}

ul[class],
ol[class] {
    padding: 0;
    list-style: none;
}

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

input,
button,
select,
textarea {
    font: inherit;
}

:root {
    /* Paleta */
    --bg: #FAF9F2;
    --bg-raised: #FFFFFF;
    --ink: #1F1E1D;
    --ink-soft: #373435;
    --ink-mute: #6E6A66;
    --line: #E4E1D6;
    --line-dark: rgba(250, 249, 242, 0.16);
    --flame: #F58634;
    --flame-deep: #E06A10;
    --flame-red: #E03335;
    --ink-inverse: #FAF9F2;

    /* Tipografía */
    --font-display: "Archivo", "Arial Narrow", Impact, sans-serif;
    --font-body: "Instrument Sans", Arial, sans-serif;

    /* Escala fluida */
    --text-hero: clamp(3rem, 0.6rem + 9.5vw, 9.5rem);
    --text-h1: clamp(2.5rem, 1.2rem + 5.2vw, 6rem);
    --text-h2: clamp(1.9rem, 1.1rem + 3.2vw, 3.6rem);
    --text-h3: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
    --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-label: 0.75rem;
    --track-display: -0.02em;

    /* Espaciado / forma */
    --space-section: clamp(4.5rem, 10vw, 9rem);
    --space-gutter: clamp(1.25rem, 4vw, 3rem);
    --container: 1280px;
    --radius-pill: 100px;
    --radius-card: 18px;
    --radius-thumb: 12px;
    --shadow-card: 0 12px 32px rgba(31, 30, 29, 0.09);
    --shadow-pop: 0 24px 60px rgba(31, 30, 29, 0.18);

    /* Movimiento */
    --ease-reveal: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur-reveal: 0.8s;
    --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* textura de grano sutil sobre todo el fondo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
    color: inherit;
}

::selection {
    background: var(--flame);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--flame);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Utilidades
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-gutter);
}

.display {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    letter-spacing: var(--track-display);
    line-height: 0.98;
    text-transform: uppercase;
}

.label {
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.label--flame {
    color: var(--flame-deep);
}

.section {
    padding-block: var(--space-section);
    position: relative;
    z-index: 2;
}

.section-head {
    margin-bottom: clamp(2rem, 5vw, 4rem);
    max-width: 60ch;
}

.section-head .label {
    display: block;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-size: var(--text-h2);
}

.hairline-top {
    border-top: 1px solid var(--line);
}

/* Botones pill */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    padding: 0.9em 1.9em;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease,
        border-color 0.25s ease, transform 0.25s ease;
}

.btn-pill:hover {
    background: var(--ink);
    color: var(--ink-inverse);
    transform: translateY(-2px);
}

.btn-pill--flame {
    background: var(--flame);
    border-color: var(--flame);
    color: var(--ink);
}

.btn-pill--flame:hover {
    background: var(--flame-red);
    border-color: var(--flame-red);
    color: #fff;
}

.btn-pill--inverse {
    border-color: var(--ink-inverse);
    color: var(--ink-inverse);
}

.btn-pill--inverse:hover {
    background: var(--ink-inverse);
    color: var(--ink);
}

/* Reveals (solo si hay JS: animations.js añade la clase js a <html>) */
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur-reveal) var(--ease-reveal),
        transform var(--dur-reveal) var(--ease-reveal);
    transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal.reveal-visible {
    opacity: 1;
    transform: none;
}

.d1 { --reveal-delay: 0.10s; }
.d2 { --reveal-delay: 0.18s; }
.d3 { --reveal-delay: 0.26s; }
.d4 { --reveal-delay: 0.34s; }
.d5 { --reveal-delay: 0.42s; }
.d6 { --reveal-delay: 0.50s; }

/* --------------------------------------------------------------------------
   4. Header + overlay de navegación
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-h);
    padding-inline: var(--space-gutter);
    background: rgba(250, 249, 242, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-brand img {
    height: 44px;
    width: auto;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-header-cta {
    padding: 0.6em 1.4em;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .site-header-cta {
        display: none;
    }
}

/* Botón de menú */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55em 1.2em;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    position: relative;
    z-index: 80;
}

.menu-toggle:hover {
    background: var(--ink);
    color: var(--ink-inverse);
}

.menu-toggle-lines {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 12px;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease-reveal), top 0.3s var(--ease-reveal);
}

.menu-toggle-lines::before { top: 2px; }
.menu-toggle-lines::after { top: 8px; }

body.nav-open .menu-toggle-lines::before {
    top: 5px;
    transform: rotate(45deg);
}

body.nav-open .menu-toggle-lines::after {
    top: 5px;
    transform: rotate(-45deg);
}

/* Overlay a pantalla completa */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: var(--ink);
    color: var(--ink-inverse);
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--space-gutter) 3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
    overflow-y: auto;
}

body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease;
}

body.nav-open {
    overflow: hidden;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.main-nav a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.08;
    font-size: clamp(2rem, 1rem + 4.5vw, 4.25rem);
    color: var(--ink-inverse);
    transition: color 0.25s ease, transform 0.3s var(--ease-reveal);
}

.main-nav a:hover {
    color: var(--flame);
    transform: translateX(10px);
}

.main-nav a .nav-num {
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--flame);
    flex-shrink: 0;
}

.main-nav li.is-current a {
    color: var(--flame);
}

/* animación en cascada de los enlaces al abrir */
html.js .main-nav li,
html.js .nav-overlay-aside {
    opacity: 0;
    transform: translateY(24px);
}

html.js body.nav-open .main-nav li,
html.js body.nav-open .nav-overlay-aside {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease-reveal), transform 0.6s var(--ease-reveal);
}

html.js body.nav-open .main-nav li:nth-child(1) { transition-delay: 0.10s; }
html.js body.nav-open .main-nav li:nth-child(2) { transition-delay: 0.16s; }
html.js body.nav-open .main-nav li:nth-child(3) { transition-delay: 0.22s; }
html.js body.nav-open .main-nav li:nth-child(4) { transition-delay: 0.28s; }
html.js body.nav-open .main-nav li:nth-child(5) { transition-delay: 0.34s; }
html.js body.nav-open .main-nav li:nth-child(6) { transition-delay: 0.40s; }
html.js body.nav-open .nav-overlay-aside { transition-delay: 0.45s; }

.nav-overlay-aside {
    border-top: 1px solid var(--line-dark);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-overlay-aside .label {
    color: rgba(250, 249, 242, 0.55);
}

.nav-overlay-social {
    display: flex;
    gap: 0.75rem;
}

.nav-overlay-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--ink-inverse);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav-overlay-social a:hover {
    background: var(--flame);
    border-color: var(--flame);
    color: var(--ink);
}

.nav-overlay-contact {
    color: rgba(250, 249, 242, 0.72);
    font-size: 0.95rem;
    line-height: 1.7;
}

.nav-overlay-contact a {
    color: var(--ink-inverse);
    text-decoration: none;
}

.nav-overlay-contact a:hover {
    color: var(--flame);
}

@media (min-width: 900px) {
    .nav-overlay {
        grid-template-columns: 1.4fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    .nav-overlay-aside {
        border-top: 0;
        border-left: 1px solid var(--line-dark);
        padding-top: 0;
        padding-left: 3rem;
    }
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    z-index: 2;
    background: var(--ink);
    color: var(--ink-inverse);
    padding: var(--space-section) 0 2rem;
    overflow: hidden;
}

.site-footer .container {
    position: relative;
}

.footer-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 120%;
    text-transform: uppercase;
    line-height: 0.8;
    font-size: clamp(5rem, 22vw, 22rem);
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(250, 249, 242, 0.22);
    user-select: none;
    pointer-events: none;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line-dark);
}

@media (min-width: 760px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1080px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }
}

.footer-col .label {
    color: rgba(250, 249, 242, 0.5);
    display: block;
    margin-bottom: 1.1rem;
}

.footer-col p {
    color: rgba(250, 249, 242, 0.75);
    font-size: 0.95rem;
    line-height: 1.75;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col ul a {
    color: rgba(250, 249, 242, 0.78);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--flame);
}

.footer-lema {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    text-transform: uppercase;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.footer-lema em {
    font-style: normal;
    color: var(--flame);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--ink-inverse);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.footer-social a:hover {
    background: var(--flame);
    border-color: var(--flame);
    color: var(--ink);
}

.footer-legal {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(250, 249, 242, 0.5);
}

.footer-legal a {
    color: rgba(250, 249, 242, 0.7);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--flame);
}

/* --------------------------------------------------------------------------
   6. Hero de portada
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    z-index: 2;
    padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -18%;
    right: -12%;
    width: clamp(340px, 48vw, 780px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 40%,
            rgba(255, 198, 0, 0.5) 0%,
            rgba(245, 134, 52, 0.42) 34%,
            rgba(224, 51, 53, 0.25) 60%,
            transparent 78%);
    filter: blur(60px);
    pointer-events: none;
}

.hero .label {
    display: block;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: var(--text-hero);
    letter-spacing: -0.03em;
    max-width: 12ch;
}

.hero h1 .flame-text {
    background: linear-gradient(92deg, var(--flame-red) 0%, var(--flame) 45%, #FFC600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    margin-top: 2rem;
    max-width: 52ch;
    font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
    line-height: 1.65;
    color: var(--ink-soft);
}

.hero-ctas {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Cinta marquee */
.marquee {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding-block: 0.9rem;
    background: var(--bg);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee 36s linear infinite;
}

.marquee span {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: clamp(1rem, 0.9rem + 0.7vw, 1.4rem);
    letter-spacing: 0.02em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 3rem;
}

.marquee span::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--flame);
    flex-shrink: 0;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   7. Cifras
   -------------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

@media (min-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 2vw, 2rem);
    border-top: 1px solid var(--line);
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 118%;
    font-size: clamp(2.6rem, 1.4rem + 4.5vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stat-num sup {
    font-size: 0.45em;
    color: var(--flame-deep);
    top: -0.9em;
}

.stat .label {
    display: block;
    margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   8. Timeline
   -------------------------------------------------------------------------- */
.timeline-list {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .timeline-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

.timeline-item {
    position: relative;
    padding: 1.75rem 1.5rem 0 0;
    border-top: 2px solid var(--line);
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--flame);
}

.timeline-year {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 118%;
    font-size: clamp(1.9rem, 1.3rem + 1.8vw, 3rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.timeline-item h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-top: 0.9rem;
    letter-spacing: 0.01em;
}

.timeline-item p {
    margin-top: 0.5rem;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--ink-mute);
    max-width: 34ch;
    padding-bottom: 1.5rem;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--flame);
    padding-bottom: 0.2em;
    transition: gap 0.25s ease, color 0.25s ease;
}

.section-link:hover {
    gap: 0.9rem;
    color: var(--flame-deep);
}

/* --------------------------------------------------------------------------
   9. Sectores
   -------------------------------------------------------------------------- */
.sector-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) {
    .sector-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1080px) {
    .sector-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sector-card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: clamp(1.25rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    min-height: 165px;
    transition: transform 0.3s var(--ease-reveal), border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-6px);
    border-color: var(--flame);
    box-shadow: var(--shadow-card);
}

.sector-card i {
    font-size: 1.5rem;
    color: var(--flame-deep);
}

.sector-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: auto;
}

.sector-card .sector-num {
    position: absolute;
}

/* --------------------------------------------------------------------------
   10. Servicios + pilares
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 3rem;
    }
}

@media (min-width: 1080px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-item {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 2rem;
}

.service-item .service-num {
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--flame-deep);
}

.service-item h3 {
    font-size: var(--text-h3);
    font-family: var(--font-display);
    font-weight: 750;
    font-stretch: 112%;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-top: 0.6rem;
    line-height: 1.1;
}

.service-item p {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: var(--ink-mute);
    line-height: 1.65;
    max-width: 40ch;
}

/* Banda de pilares 2026–2030 */
.pillars {
    margin-top: clamp(2rem, 5vw, 4rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.pillars .label {
    display: block;
    margin-bottom: 1.25rem;
}

.pillars-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pillars-list li {
    padding: 0.5em 1.1em;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.pillars-list li:hover {
    border-color: var(--flame);
    background: var(--flame);
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   11. Sección Coahuila (bloque invertido)
   -------------------------------------------------------------------------- */
.coahuila {
    position: relative;
    z-index: 2;
    background: var(--ink);
    color: var(--ink-inverse);
    padding-block: var(--space-section);
    overflow: hidden;
}

.coahuila::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: clamp(300px, 40vw, 640px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(245, 134, 52, 0.22) 0%,
            rgba(224, 51, 53, 0.12) 45%,
            transparent 72%);
    filter: blur(50px);
    pointer-events: none;
}

.coahuila-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 900px) {
    .coahuila-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 4rem;
    }
}

.coahuila .label {
    color: var(--flame);
    display: block;
    margin-bottom: 1rem;
}

.coahuila h2 {
    font-size: var(--text-h1);
    letter-spacing: -0.025em;
}

.coahuila-text p {
    margin-top: 1.5rem;
    color: rgba(250, 249, 242, 0.78);
    max-width: 54ch;
    line-height: 1.7;
}

.coahuila-ctas {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.coahuila-cover {
    justify-self: center;
    max-width: 400px;
    width: 100%;
    transform: rotate(2.5deg);
    transition: transform 0.5s var(--ease-reveal);
}

.coahuila-cover:hover {
    transform: rotate(0deg) scale(1.02);
}

.coahuila-cover img {
    width: 100%;
    border-radius: var(--radius-thumb);
    box-shadow: var(--shadow-pop);
}

.coahuila-cover figcaption {
    margin-top: 1rem;
    text-align: center;
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250, 249, 242, 0.55);
}

/* --------------------------------------------------------------------------
   12. CTA final de registro
   -------------------------------------------------------------------------- */
.cta-registro {
    text-align: center;
    padding-block: var(--space-section);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.cta-registro h2 {
    font-size: clamp(2.6rem, 1.2rem + 6.5vw, 7rem);
    letter-spacing: -0.03em;
    max-width: 14ch;
    margin-inline: auto;
}

.cta-registro h2 .flame-text {
    background: linear-gradient(92deg, var(--flame-red), var(--flame) 55%, #FFC600);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-registro p {
    margin-top: 1.5rem;
    color: var(--ink-mute);
    max-width: 46ch;
    margin-inline: auto;
}

.cta-registro .btn-pill {
    margin-top: 2.5rem;
    font-size: 1.05rem;
    padding: 1em 2.4em;
}

/* --------------------------------------------------------------------------
   13. Hero interior (páginas secundarias)
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    z-index: 2;
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.page-hero .label {
    display: block;
    margin-bottom: 1.25rem;
}

.page-hero h1 {
    font-size: var(--text-h1);
    letter-spacing: -0.025em;
    max-width: 16ch;
}

.page-hero .page-hero-sub {
    margin-top: 1.5rem;
    max-width: 54ch;
    color: var(--ink-soft);
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   14. Quiénes somos
   -------------------------------------------------------------------------- */
.about-quote {
    font-family: var(--font-display);
    font-weight: 750;
    font-stretch: 112%;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    max-width: 24ch;
    border-left: 5px solid var(--flame);
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
}

.about-quote em {
    font-style: normal;
    color: var(--flame-deep);
}

.mv-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .mv-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.mv-card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: clamp(1.75rem, 4vw, 3rem);
}

.mv-card .label {
    display: block;
    margin-bottom: 1rem;
}

.mv-card h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    text-transform: uppercase;
    font-size: var(--text-h2);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.mv-card p {
    color: var(--ink-soft);
    line-height: 1.7;
}

.mv-card--flame {
    background: var(--flame);
    border-color: var(--flame);
}

.mv-card--flame .label {
    color: rgba(31, 30, 29, 0.65);
}

.mv-card--flame p {
    color: var(--ink);
}

/* Valores 01–07 */
.values-editorial {
    counter-reset: valor;
}

.values-editorial li {
    counter-increment: valor;
    display: flex;
    align-items: baseline;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1rem, 2.5vw, 1.6rem) 0;
    border-top: 1px solid var(--line);
    transition: padding-left 0.3s var(--ease-reveal);
}

.values-editorial li:hover {
    padding-left: 1rem;
}

.values-editorial li::before {
    content: "0" counter(valor);
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--flame-deep);
    flex-shrink: 0;
}

.values-editorial .value-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 1rem + 2.8vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.015em;
}

.values-editorial li:last-child {
    border-bottom: 1px solid var(--line);
}

/* Liderazgo */
.leader-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .leader-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.leader-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    background: var(--bg-raised);
}

.leader-card .label {
    display: block;
    margin-bottom: 1.25rem;
}

.leader-card h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 112%;
    text-transform: uppercase;
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
    line-height: 1.05;
}

.leader-card p {
    margin-top: 0.9rem;
    color: var(--ink-mute);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   15. Noticias
   -------------------------------------------------------------------------- */
.facebook-feed-container {
    display: flex;
    justify-content: center;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: clamp(0.75rem, 2vw, 1.5rem);
    max-width: 1000px;
    margin-inline: auto;
    overflow: hidden;
}

.news-fallback {
    margin-top: 2rem;
    text-align: center;
}

.news-fallback p {
    color: var(--ink-mute);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   16. Boletín (clases existentes re-estilizadas)
   -------------------------------------------------------------------------- */
.ultima-publicacion,
.publicaciones-anteriores {
    position: relative;
    z-index: 2;
}

.ultima-publicacion-grid {
    display: flex;
    justify-content: center;
}

.magazine-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    color: var(--ink-mute);
}

.magazine-item {
    max-width: 400px;
    width: 100%;
}

.magazine-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.thumb-container {
    position: relative;
    border-radius: var(--radius-thumb);
    overflow: hidden;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-reveal), box-shadow 0.4s ease;
}

.magazine-item a:hover .thumb-container {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: var(--shadow-pop);
}

.pdf-thumb {
    width: 100%;
    height: auto;
}

.thumb-container .overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem 1.1rem;
    background: linear-gradient(to top, rgba(31, 30, 29, 0.85), transparent);
    color: var(--ink-inverse);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magazine-item a:hover .overlay,
.magazine-item a:focus-visible .overlay {
    opacity: 1;
}

.mes-anio {
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 750;
    font-stretch: 112%;
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   17. Formularios (clases existentes re-estilizadas)
   -------------------------------------------------------------------------- */
.form-layout {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 980px) {
    .form-layout {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 4rem;
    }

    .form-aside {
        position: sticky;
        top: calc(var(--header-h) + 2rem);
    }
}

.form-aside h1,
.form-aside .form-aside-title {
    font-size: var(--text-h1);
    letter-spacing: -0.025em;
}

.form-aside .label {
    display: block;
    margin-bottom: 1.25rem;
}

.form-aside p {
    margin-top: 1.5rem;
    color: var(--ink-soft);
    max-width: 44ch;
    line-height: 1.7;
}

.form-aside-perks {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-aside-perks li {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.form-aside-perks i {
    color: var(--flame-deep);
    font-size: 0.85rem;
}

.form-suscripcion {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group > label {
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85em 1em;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231F1E1D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1em center;
    padding-right: 2.5em;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--flame);
    box-shadow: 0 0 0 4px rgba(245, 134, 52, 0.18);
}

.form-group input:disabled,
.form-group input.is-readonly {
    background: #F1EFE6;
    color: var(--ink-mute);
    cursor: not-allowed;
}

.form-group small {
    color: var(--ink-mute);
    font-size: 0.83rem;
}

.fecha-nac-group {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 1fr;
    gap: 0.6rem;
}

.phone-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-plus {
    font-weight: 700;
    color: var(--ink-mute);
}

.phone-lada {
    max-width: 70px;
    text-align: center;
}

.phone-number {
    flex: 1;
}

.form-group-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    accent-color: var(--flame-deep);
    flex-shrink: 0;
}

.form-group-checkbox label {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.form-group-checkbox a {
    color: var(--flame-deep);
    font-weight: 600;
}

.btn-suscripcion {
    padding: 1em 2em;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--flame);
    color: var(--ink);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-suscripcion:hover {
    background: var(--flame-red);
    color: #fff;
    transform: translateY(-2px);
}

.form-note {
    text-align: center;
    font-size: 0.88rem;
    color: var(--ink-mute);
}

.form-note a {
    color: var(--flame-deep);
}

/* --------------------------------------------------------------------------
   18. Texto legal
   -------------------------------------------------------------------------- */
.legal-text {
    max-width: 720px;
    margin-inline: auto;
    line-height: 1.75;
}

.legal-text h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 112%;
    text-transform: uppercase;
    font-size: var(--text-h2);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 2rem;
}

.legal-text h3 {
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--flame-deep);
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.legal-text p {
    margin-bottom: 1.25rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.legal-text a {
    color: var(--flame-deep);
    word-break: break-all;
}

/* --------------------------------------------------------------------------
   19. Movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html.js .reveal,
    html.js .main-nav li,
    html.js .nav-overlay-aside {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .marquee-track {
        animation: none;
        width: auto;
        flex-wrap: wrap;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
