/* =========================================================================
   Plantilla de sitio corporativo — Sistema de diseño único
   Todos los colores salen de variables CSS que inyecta el generador en
   <style id="tema"> (ver ESQUEMA.md). Aquí no hay ningún color fijo salvo
   blanco y negro puros.
   ========================================================================= */

/* ---------- 1. Tokens no cromáticos ---------- */
:root {
    --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-md: 1.125rem;
    --t-lg: 1.25rem; --t-xl: 1.5rem; --t-2xl: 1.875rem; --t-3xl: 2.375rem; --t-4xl: 3rem;

    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
    --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
    --s-20: 80px; --s-24: 96px;

    --radio-full: 999px;

    --sh-sm: 0 1px 2px rgb(var(--sombra-rgb) / .06), 0 1px 3px rgb(var(--sombra-rgb) / .05);
    --sh:    0 4px 10px rgb(var(--sombra-rgb) / .05), 0 2px 4px rgb(var(--sombra-rgb) / .04);
    --sh-md: 0 12px 28px rgb(var(--sombra-rgb) / .08), 0 4px 10px rgb(var(--sombra-rgb) / .04);
    --sh-lg: 0 24px 56px rgb(var(--sombra-rgb) / .12), 0 8px 18px rgb(var(--sombra-rgb) / .05);

    --ease: cubic-bezier(.23, 1, .32, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1);
    --ease-drawer: cubic-bezier(.32, .72, 0, 1);
    --dur-press: 140ms; --dur: 220ms; --dur-panel: 300ms; --dur-exit: 220ms;

    --z-nav: 100; --z-drawer: 200;
    --container: 1180px;
    interpolate-size: allow-keywords;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:focus-within { scroll-behavior: smooth; }

body {
    margin: 0; font-family: var(--fuente-texto); font-size: var(--t-base); line-height: 1.65;
    color: var(--c-texto); background: var(--c-fondo);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, h4 {
    font-family: var(--fuente-titulos); color: var(--c-tinta); line-height: 1.15;
    letter-spacing: -.02em; margin: 0 0 var(--s-4); font-weight: var(--peso-titulos);
}
/* tema.titulos_mayusculas: títulos h1-h3 en mayúsculas con tracking 0.04em */
.titulos-mayus h1, .titulos-mayus h2, .titulos-mayus h3 { text-transform: uppercase; letter-spacing: .04em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.1rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, var(--t-3xl)); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-md); }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--c-700); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-800); }
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
strong { color: var(--c-tinta); font-weight: 600; }
:focus-visible { outline: 3px solid var(--c-acento); outline-offset: 2px; border-radius: var(--radio-s); }
::selection { background: var(--c-200); color: var(--c-900); }

.skip-link {
    position: absolute; left: var(--s-4); top: -100px; background: var(--c-skip-fondo, var(--c-900)); color: #fff;
    padding: var(--s-3) var(--s-5); border-radius: var(--radio-m); z-index: 999; font-weight: 600;
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-4); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-6); }
.section { padding-block: clamp(var(--s-16), 8vw, var(--s-24)); }
.section--tight { padding-block: clamp(var(--s-12), 6vw, var(--s-20)); }
.section--soft { background: var(--c-fondo-alt); }
.section--mint { background: var(--c-50); }
.section--dark { background: var(--c-950); color: rgb(255 255 255 / .72); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--grad { background: var(--grad-hero); position: relative; overflow: hidden; }
.section--grad > .container { position: relative; z-index: 1; }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s-10), 5vw, var(--s-20)); align-items: center; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 1000px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4, .split, .split--wide-right { grid-template-columns: 1fr; } }
/* Rejilla de tarjetas de calidad: 3, 4, 5, 6... elementos sin huecos; la última fila queda centrada.
   --q = columnas (c3: 3 columnas; c4: 4; c2: 2). Se elige por cantidad en generar.py (cols_q). */
.grid-q { --q: 3; --gq: var(--s-6); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-6) var(--gq); }
.grid-q > * { flex: 0 0 calc((100% - (var(--q) - 1) * var(--gq)) / var(--q)); min-width: 0; }
.grid-q--c2 { --q: 2; } .grid-q--c4 { --q: 4; }
@media (max-width: 1000px) { .grid-q--c4 { --q: 2; } }
@media (max-width: 860px) { .grid-q--c3 { --q: 2; } }
@media (max-width: 760px) { .grid-q, .grid-q--c2, .grid-q--c3, .grid-q--c4 { --q: 1; } }

/* ---------- 4. Tipografía de apoyo ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-xs); font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--c-700); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--c-acento); border-radius: 2px; }
.section--dark .eyebrow, .section--grad .eyebrow { color: var(--c-300); }
.page-hero .eyebrow, .hero .eyebrow { color: var(--c-300); }
.page-hero .eyebrow::before, .hero .eyebrow::before { background: var(--c-400); }
.section-head { max-width: 46rem; margin-bottom: clamp(var(--s-10), 5vw, var(--s-16)); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: var(--t-md); color: var(--c-texto-suave); line-height: 1.7; }
.section--dark .lead { color: rgb(255 255 255 / .66); }
.title-accent { color: var(--c-700); }
.hero .title-accent, .page-hero .title-accent, .section--dark .title-accent { color: var(--c-300); }
.tag { display: inline-block; padding: 3px var(--s-3); border-radius: var(--radio-full); background: var(--c-50); color: var(--c-800); font-size: var(--t-xs); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }

/* ---------- 5. Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-height: 48px; padding: var(--s-3) var(--s-6); font-family: var(--fuente-texto);
    font-size: .9375rem; font-weight: 600; letter-spacing: .01em; border: 1.5px solid transparent;
    border-radius: var(--radio-m); cursor: pointer; text-align: center;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease), transform var(--dur-press) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--grad-boton); color: var(--c-boton-texto); border-color: transparent; box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--grad-boton-hover); border-color: transparent; color: var(--c-boton-texto); box-shadow: var(--sh-md); }
.btn--outline { background: transparent; color: var(--c-700); border-color: var(--c-200); }
.btn--outline:hover { background: var(--c-50); border-color: var(--c-400); color: var(--c-800); }
.btn--light { background: #fff; color: var(--c-800); border-color: #fff; }
.btn--light:hover { background: var(--c-50); color: var(--c-900); }
.btn--onDark { background: transparent; color: #fff; border-color: rgb(255 255 255 / .28); }
.btn--onDark:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .5); color: #fff; }
.btn--wa { background: var(--c-whatsapp); border-color: var(--c-whatsapp); color: var(--c-whatsapp-texto, #fff); }
.btn--wa:hover { background: color-mix(in srgb, var(--c-whatsapp) 85%, black); border-color: color-mix(in srgb, var(--c-whatsapp) 85%, black); color: var(--c-whatsapp-texto, #fff); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--t-sm); padding-block: 8px; margin-block: -8px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }

/* ---------- 6. Navegación ---------- */
.nav {
    position: sticky; top: 0; z-index: var(--z-nav); background: var(--c-cabecera-fondo);
    border-bottom: 1px solid var(--c-cabecera-borde);
    transition: box-shadow var(--dur) var(--ease);
}
.nav.is-stuck { box-shadow: var(--sh-sm); }
/* El desenfoque solo en escritorio: en móvil crearía un bloque contenedor que rompe el panel fijo del menú */
@media (min-width: 1001px) { .nav { backdrop-filter: saturate(180%) blur(14px); } }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); min-height: 80px; }
.nav__logo { display: flex; align-items: center; flex: none; gap: 12px; }
.logo-icon { height: var(--logo-alto); width: auto; }
.logo-text { height: var(--logo-texto-alto); width: auto; }
/* Logo apilado: icono + nombre como texto real (logo.texto_marca) */
.logo-marca { display: inline-flex; flex-direction: column; justify-content: center; min-width: 0; font-family: var(--fuente-titulos); color: var(--logo-marca-color, var(--c-900)); }
.logo-marca__n { font-size: var(--logo-marca-tam); font-weight: var(--logo-marca-peso, 700); line-height: 1.1; letter-spacing: -.005em; }
.logo-marca__l { margin-top: 3px; font-size: calc(var(--logo-marca-tam) * .46); font-weight: 500; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.nav__logo:has(.logo-marca) { flex: 0 1 auto; min-width: 0; }
.logo-marca__l { white-space: nowrap; }
@media (min-width: 1001px) {
    .nav__bar:has(.logo-marca) { gap: var(--s-4); }
    .nav__bar:has(.logo-marca) .nav__link { white-space: nowrap; padding-inline: var(--s-3); }
}
.nav__menu { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav__link {
    display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--s-3) var(--s-4);
    border-radius: var(--radio-s); font-size: var(--t-sm); font-weight: 500; color: var(--c-cabecera-texto);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--c-cabecera-hover); color: var(--c-cabecera-activo); }
.nav__link[aria-current="page"] { color: var(--c-cabecera-activo); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.nav__item { position: relative; }
.nav__toggle { background: none; border: 0; font: inherit; font-size: var(--t-sm); font-weight: 500; cursor: pointer; }
.nav__caret { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }
.nav__panel {
    position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--c-cabecera-fondo);
    border: 1px solid var(--c-cabecera-borde); border-radius: var(--radio-l); box-shadow: var(--sh-lg);
    padding: var(--s-3); list-style: none; margin: 0; opacity: 0; visibility: hidden;
    transform-origin: top left; transform: translateY(-6px) scale(.97);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item.is-open .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__panel a { display: block; padding: var(--s-3) var(--s-4); border-radius: var(--radio-m); color: var(--c-cabecera-texto); font-size: var(--t-sm); }
.nav__panel a:hover { background: var(--c-cabecera-hover); color: var(--c-cabecera-activo); }
.nav__panel strong { display: block; font-size: var(--t-sm); color: var(--c-cabecera-texto); }
.nav__panel span { display: block; font-size: var(--t-xs); color: color-mix(in srgb, var(--c-cabecera-texto) 72%, transparent); margin-top: 2px; }
.nav__burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 1px solid var(--c-cabecera-borde); border-radius: var(--radio-s); cursor: pointer; }
.nav__burger span { display: block; position: relative; width: 20px; height: 2px; background: var(--c-cabecera-texto); border-radius: 2px; transition: background var(--dur) var(--ease); }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--c-cabecera-texto); border-radius: 2px; transition: transform var(--dur) var(--ease), top var(--dur) var(--ease); }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.nav__scrim { position: fixed; inset: 0; background: rgb(var(--sombra-rgb) / .5); z-index: calc(var(--z-nav) - 1); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur); }
.nav__scrim.is-open { opacity: 1; visibility: visible; }
@media (max-width: 1000px) {
    .nav__burger { display: inline-flex; }
    .nav__actions .btn { display: none; }
    /* El <nav> pasa a ser un contenedor fijo recortado (overflow: hidden): el panel espera fuera de pantalla
       con transform sin ampliar el ancho del documento (ni de las capturas de página completa). */
    .nav__bar > nav { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: var(--z-drawer); }
    .nav__burger { position: relative; z-index: calc(var(--z-drawer) + 2); }
    .nav__menu {
        position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--c-cabecera-fondo);
        flex-direction: column; align-items: stretch; gap: var(--s-1);
        padding: var(--s-20) var(--s-5) var(--s-8); overflow-y: auto; box-shadow: var(--sh-lg);
        visibility: hidden; pointer-events: none; transform: translateX(100%);
        transition: transform var(--dur-exit) var(--ease), visibility var(--dur-exit);
    }
    .nav__menu.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform var(--dur-panel) var(--ease-drawer), visibility var(--dur-panel); }
    .nav__link { padding: var(--s-4); font-size: var(--t-base); justify-content: space-between; }
    .nav__panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--c-cabecera-borde); border-radius: 0; margin: 0 0 var(--s-2) var(--s-4); padding: 0 0 0 var(--s-2); min-width: 0; display: none; }
    .nav__item.is-open .nav__panel { display: block; }
    .nav__cta-mobile { display: block; margin-top: var(--s-4); }
}
@media (min-width: 1001px) { .nav__cta-mobile { display: none; } }
@media (max-width: 1180px) {
    .logo-marca__n { font-size: calc(var(--logo-marca-tam) * .88); }
    .nav .logo-marca__l { display: none; }
}
@media (max-width: 480px) {
    .logo-icon { height: calc(var(--logo-alto) * .815); }
    .logo-text { height: calc(var(--logo-texto-alto) * .79); }
    .nav__logo { gap: 9px; }
    .nav .logo-marca__n { font-size: calc(var(--logo-marca-tam) * .78); }
    .nav__bar { min-height: 70px; }
}

/* Tira multicolor (opcional) */
.tira { display: flex; height: 4px; }
.tira i { flex: 1; }
.tira i:nth-child(1) { background: var(--tira-1); } .tira i:nth-child(2) { background: var(--tira-2); }
.tira i:nth-child(3) { background: var(--tira-3); } .tira i:nth-child(4) { background: var(--tira-4); }

/* ---------- 7. Hero ---------- */
.hero, .page-hero { position: relative; background: var(--grad-hero); color: rgb(255 255 255 / .75); overflow: hidden; }
.rejilla .hero::before, .rejilla .page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px);
    background-size: 44px 44px;
}
.hero > .container, .page-hero > .container { position: relative; z-index: 2; }
.hero__bg { position: absolute; inset: 0; display: block; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgb(var(--rgb-900) / .86), rgb(var(--rgb-700) / .85)); }
/* hero.velo = "lateral": opaco bajo la columna de texto y transparente hacia el lado de la foto */
.hero--velo-lateral .hero__bg::after { background: linear-gradient(90deg, rgb(var(--rgb-900) / .93) 0%, rgb(var(--rgb-900) / .92) 40%, rgb(var(--rgb-900) / .6) 62%, rgb(var(--rgb-700) / .38) 100%); }
.hero--velo-lateral .hero__panel { background: rgb(var(--rgb-900) / .62); border-color: rgb(255 255 255 / .3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero__inner { position: relative; padding-block: clamp(var(--s-16), 9vw, 120px); }
.hero__layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(var(--s-10), 5vw, var(--s-16)); align-items: center; }
.hero h1 { color: #fff; }
.hero__lead { font-size: var(--t-md); color: rgb(255 255 255 / .88); max-width: 34rem; margin-bottom: var(--s-8); }
.hero__lead strong { color: #fff; }
.hero__note { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-4); }
.hero__note span { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); color: rgb(255 255 255 / .58); }
.hero__note svg { width: 16px; height: 16px; color: var(--c-300); flex: none; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radio-full); background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .3); color: #fff; font-size: var(--t-xs); font-weight: 600; margin-bottom: var(--s-5); }
.badge-pill svg { width: 16px; height: 16px; flex: none; }
.hero__panel { background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .25); border-radius: var(--radio-xl); padding: clamp(var(--s-6), 3vw, var(--s-10)); backdrop-filter: blur(10px); }
.hero__panel-title { font-family: var(--fuente-texto); font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-200); margin-bottom: var(--s-6); text-align: center; }
.hero__logo-tile { width: 150px; height: 150px; margin: 0 auto var(--s-6); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 14px 40px rgb(var(--sombra-rgb) / .35); }
.hero__logo-tile img { width: 98px; height: auto; }
.hero__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.hero__list li { display: flex; align-items: flex-start; gap: var(--s-3); color: #fff; font-size: var(--t-sm); font-weight: 500; line-height: 1.45; }
.hero__list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--c-300); }
/* Variante dividido: texto a un lado, foto enmarcada al otro */
.hero__media { margin: 0; position: relative; border-radius: var(--radio-xl); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgb(255 255 255 / .28); box-shadow: var(--sh-lg); outline: 6px solid rgb(255 255 255 / .1); outline-offset: 0; }
.hero__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero--dividido .hero__layout { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
    .hero__layout, .hero--dividido .hero__layout { grid-template-columns: 1fr; }
    .hero__media { aspect-ratio: 3 / 2; }
    .hero--velo-lateral .hero__bg::after { background: linear-gradient(180deg, rgb(var(--rgb-900) / .94) 0%, rgb(var(--rgb-900) / .92) 52%, rgb(var(--rgb-900) / .55) 76%, rgb(var(--rgb-700) / .4) 100%); }
}
.page-hero__inner { position: relative; padding-block: clamp(var(--s-12), 6vw, var(--s-20)); max-width: 52rem; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgb(255 255 255 / .88); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; margin: 0 0 var(--s-5); font-size: var(--t-sm); }
.breadcrumb li { display: flex; align-items: center; gap: var(--s-2); color: rgb(255 255 255 / .45); }
.breadcrumb li + li::before { content: "/"; color: rgb(255 255 255 / .28); }
.breadcrumb a { color: rgb(255 255 255 / .68); }
.breadcrumb a:hover { color: #fff; }

/* Motivos decorativos (SVG en línea, coloreados con tokens) */
.motivo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; z-index: 1; pointer-events: none; color: var(--c-acento); opacity: .22; }
.motivo--marco { opacity: .5; }
.motivo-marco .photo, .motivo-marco .hero__media { box-shadow: 0 0 0 6px var(--c-fondo), 0 0 0 7px var(--c-acento); }

/* ---------- 8. Barra de confianza ---------- */
.trust { border-bottom: 1px solid var(--c-borde); background: var(--c-superficie); }
.trust__row { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: var(--s-6); padding-block: var(--s-8); }
.trust__item { display: flex; align-items: center; gap: var(--s-3); }
.trust__item .trust__icon { width: 42px; height: 42px; flex: none; border-radius: var(--radio-m); background: var(--c-icono-fondo); color: var(--c-icono); display: grid; place-items: center; }
.trust__icon svg { width: 21px; height: 21px; }
.trust__item b { display: block; font-size: var(--t-sm); color: var(--c-tinta); font-weight: 600; }
.trust__item span:not(.trust__icon) { display: block; font-size: var(--t-xs); color: var(--c-texto-suave); }
@media (max-width: 1000px) { .trust__row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust__row { grid-template-columns: 1fr; } }

/* ---------- 9. Tarjetas ---------- */
.card { position: relative; background: var(--c-superficie); border: 1px solid var(--c-borde); border-radius: var(--radio-l); padding: clamp(var(--s-6), 3vw, var(--s-8)); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card--hover:hover { border-color: var(--c-200); box-shadow: var(--sh-md); }
.card h3 { font-family: var(--fuente-texto); font-size: var(--t-md); font-weight: 700; margin-bottom: var(--s-3); }
.card p { font-size: var(--t-sm); color: var(--c-texto-suave); }
.card__icon { width: 52px; height: 52px; border-radius: var(--radio-m); background: var(--c-icono-fondo); color: var(--c-icono); display: grid; place-items: center; margin-bottom: var(--s-5); }
.card__icon svg { width: 26px; height: 26px; }
.card--hover:hover .card__icon { background: var(--c-icono); color: var(--c-icono-fondo); }
.card__foot { margin-top: var(--s-5); }
.card__num { font-family: var(--fuente-titulos); font-size: var(--t-sm); font-weight: 600; color: var(--c-400); letter-spacing: .1em; margin-bottom: var(--s-4); display: block; }
.card__list { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.card__list li { position: relative; padding-left: 22px; font-size: var(--t-sm); color: var(--c-texto-suave); }
.card__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--c-200); border: 2px solid var(--c-400); }
.card--photo { --cp: clamp(var(--s-6), 3vw, var(--s-8)); padding: 0 var(--cp) var(--cp); overflow: hidden; }
.card__photo { display: block; width: calc(100% + 2 * var(--cp)); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 calc(-1 * var(--cp)) var(--s-5); border-radius: var(--radio-l) var(--radio-l) 0 0; background: var(--c-50); }
.card--span2 { grid-column: span 2; }
@media (max-width: 1000px) { .card--span2 { grid-column: auto; } }
.card--cta { background: var(--c-900); border-color: var(--c-800); display: flex; flex-direction: column; justify-content: center; }
.card--cta h3 { color: #fff; font-family: var(--fuente-titulos); font-size: var(--t-xl); font-weight: var(--peso-titulos); }
.card--cta p { color: rgb(255 255 255 / .72); }
.card--glass { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .18); }
.card--glass h3 { color: #fff; }
.card--glass p { color: rgb(255 255 255 / .75); }
.card--glass .card__icon { background: rgb(255 255 255 / .12); color: var(--c-300); }
.chip-num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--radio-full); background: var(--c-acento); color: var(--c-acento-texto); font-weight: 700; font-size: var(--t-sm); margin-bottom: var(--s-4); }
.photo { display: block; width: 100%; height: auto; border-radius: var(--radio-xl); box-shadow: var(--sh-md); background: var(--c-50); }
.photo--side { margin-top: var(--s-8); }
.sector { display: flex; gap: var(--s-4); align-items: flex-start; }
.sector__icon { width: 44px; height: 44px; flex: none; border-radius: var(--radio-m); background: var(--c-icono-fondo); color: var(--c-icono); display: grid; place-items: center; }
.sector__icon svg { width: 22px; height: 22px; }
.sector b { display: block; color: var(--c-tinta); font-size: var(--t-base); margin-bottom: 2px; }
.sector span:not(.sector__icon) { font-size: var(--t-sm); color: var(--c-texto-suave); }

/* Servicios en lista (variante) */
.svc-list { border-top: 1px solid var(--c-borde); }
.svc-row { display: grid; grid-template-columns: 48px 176px 1fr auto; gap: var(--s-6); align-items: center; padding-block: var(--s-6); border-bottom: 1px solid var(--c-borde); }
.svc-row__num { font-family: var(--fuente-titulos); font-size: var(--t-lg); font-weight: var(--peso-titulos); color: var(--c-400); }
.svc-row__media { width: 176px; }
.svc-row__thumb { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radio-m); background: var(--c-50); }
.svc-row h3 { font-family: var(--fuente-titulos); font-size: var(--t-xl); font-weight: var(--peso-titulos); margin-bottom: var(--s-2); display: flex; align-items: center; gap: var(--s-3); }
.svc-row h3 svg { width: 22px; height: 22px; color: var(--c-icono); flex: none; }
.svc-row p { font-size: var(--t-sm); color: var(--c-texto-suave); margin: 0; max-width: 44rem; }
.svc-row__puntos { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.svc-row__puntos li { font-size: var(--t-xs); font-weight: 600; color: var(--c-700); display: inline-flex; align-items: center; gap: 6px; }
.svc-row__puntos li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-acento); }
.svc-extra { margin-top: var(--s-8); }
@media (max-width: 1000px) { .svc-row { grid-template-columns: 40px 1fr auto; } .svc-row__media { display: none; } }
@media (max-width: 640px) {
    .svc-row { grid-template-columns: 36px 1fr; gap: var(--s-3) var(--s-4); align-items: start; }
    .svc-row__link { grid-column: 2; }
}

/* ---------- 11. Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); counter-reset: paso; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; counter-increment: paso; padding-top: var(--s-10); }
.step::before { content: counter(paso, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--fuente-titulos); font-size: var(--t-lg); font-weight: 600; color: var(--c-700); background: var(--c-50); border: 1px solid var(--c-100); width: 46px; height: 46px; border-radius: var(--radio-full); display: grid; place-items: center; }
.step b { display: block; color: var(--c-tinta); font-size: var(--t-base); font-weight: 700; margin-bottom: var(--s-2); }
.step p { font-size: var(--t-sm); color: var(--c-texto-suave); }
@media (max-width: 900px) { .steps, .steps--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .steps--3 { grid-template-columns: 1fr; } }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq__item { border: 1px solid var(--c-borde); border-radius: var(--radio-l); background: var(--c-superficie); overflow: hidden; transition: border-color var(--dur) var(--ease); }
.faq__item[open] { border-color: var(--c-200); box-shadow: var(--sh-sm); }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur-panel) var(--ease), content-visibility var(--dur-panel) allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-6); cursor: pointer; list-style: none; font-weight: 600; color: var(--c-tinta); font-size: var(--t-base); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--c-50); }
.faq__q svg { width: 20px; height: 20px; flex: none; color: var(--c-700); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__q svg { transform: rotate(45deg); }
.faq__a { padding: 0 var(--s-6) var(--s-5); color: var(--c-texto-suave); font-size: var(--t-sm); }

/* ---------- 14. Tabla ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-borde); border-radius: var(--radio-l); }
table.tarifas { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--c-superficie); }
table.tarifas th, table.tarifas td { padding: var(--s-4) var(--s-5); text-align: left; border-bottom: 1px solid var(--c-borde); font-size: var(--t-sm); }
table.tarifas tbody tr:last-child td { border-bottom: 0; }
table.tarifas tbody tr:hover { background: var(--c-fondo-alt); }
table.tarifas td b { color: var(--c-tinta); }

/* ---------- 15. Formulario ---------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--c-tinta); }
.req { color: var(--c-error); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); font: inherit; font-size: var(--t-base); color: var(--c-tinta); background: var(--c-superficie); border: 1.5px solid var(--c-borde); border-radius: var(--radio-m); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.field textarea { min-height: 130px; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: var(--s-10); }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; background: var(--c-texto-suave);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-200); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-700); box-shadow: 0 0 0 3px var(--c-100); }
.field__hint { font-size: var(--t-xs); color: var(--c-texto-suave); }
.field__error { font-size: var(--t-xs); color: var(--c-error); font-weight: 600; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-error); }
.field.has-error .field__error { display: block; }
.check { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--t-sm); color: var(--c-texto-suave); }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--c-700); }
.check .field__error { display: none; margin-top: var(--s-1); }
.check.has-error { color: var(--c-error); }
.check.has-error input { outline: 2px solid var(--c-error); outline-offset: 2px; }
.check.has-error .field__error { display: block; }
.form-estado { font-size: var(--t-sm); font-weight: 600; color: var(--c-700); }

/* ---------- 16. Contacto ---------- */
.contact-item { display: flex; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--c-borde); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .contact-item__icon { width: 42px; height: 42px; flex: none; border-radius: var(--radio-m); background: var(--c-icono-fondo); color: var(--c-icono); display: grid; place-items: center; }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-size: var(--t-sm); color: var(--c-tinta); }
.contact-item span:not(.contact-item__icon), .contact-item a { display: block; font-size: var(--t-sm); color: var(--c-texto-suave); }
.contact-item a:hover { color: var(--c-700); }
.map { border-radius: var(--radio-l); overflow: hidden; border: 1px solid var(--c-borde); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ---------- 17. Banda CTA ---------- */
.cta-band { background: var(--grad-hero); color: rgb(255 255 255 / .72); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(46rem 26rem at 50% 0%, rgb(var(--rgb-500) / .26), transparent 65%); }
.cta-band__inner { position: relative; z-index: 2; text-align: center; max-width: 44rem; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / .68); font-size: var(--t-md); margin-bottom: var(--s-8); }

/* ---------- Calidad ---------- */
.checklist { list-style: none; padding: 0; margin: 0; --gq: var(--s-8); }
.checklist li { display: flex; gap: var(--s-4); align-items: flex-start; }
.checklist__icon { width: 36px; height: 36px; flex: none; border-radius: var(--radio-full); background: var(--c-acento); color: var(--c-acento-texto); display: grid; place-items: center; }
.checklist__icon svg { width: 18px; height: 18px; }
.checklist b { display: block; color: var(--c-tinta); margin-bottom: 2px; }
.checklist span:not(.checklist__icon) { font-size: var(--t-sm); color: var(--c-texto-suave); }

/* ---------- Acceso ---------- */
.acceso { position: relative; min-height: 100vh; display: grid; place-items: center; padding: var(--s-6); background: var(--grad-hero); overflow: hidden; }
.acceso__card { position: relative; z-index: 2; width: 100%; max-width: 520px; text-align: center; background: var(--c-superficie); border-radius: var(--radio-xl); padding: clamp(var(--s-8), 5vw, var(--s-12)); box-shadow: var(--sh-lg); }
.acceso__logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--s-6); }
.acceso h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); }
.acceso p { color: var(--c-texto); }
.acceso__aviso { font-size: var(--t-sm); margin: var(--s-4) 0 var(--s-6); min-height: 1.6em; }
.acceso__barra { height: 4px; border-radius: 4px; background: var(--c-borde); overflow: hidden; margin-bottom: var(--s-6); }
.acceso__barra i { display: block; height: 100%; width: 0; background: var(--grad-boton); }
.acceso.is-contando .acceso__barra i { width: 100%; transition: width var(--seg, 4s) linear; }
.acceso__cancelar { background: none; border: 0; font: inherit; font-size: var(--t-sm); font-weight: 600; color: var(--c-700); text-decoration: underline; cursor: pointer; padding: var(--s-3); margin-top: var(--s-2); min-height: 44px; }

/* ---------- 19. Pie ---------- */
.footer { background: var(--c-pie-fondo); color: color-mix(in srgb, var(--c-pie-texto) 62%, transparent); padding-block: var(--s-16) var(--s-8); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(var(--s-8), 4vw, var(--s-12)); }
.footer p { font-size: var(--t-sm); line-height: 1.7; }
.footer h2 { color: var(--c-pie-texto); font-family: var(--fuente-texto); font-size: var(--t-sm); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; margin: 0 0 var(--s-5); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.footer a { display: inline-block; color: color-mix(in srgb, var(--c-pie-texto) 62%, transparent); font-size: var(--t-sm); padding-block: 6px; margin-block: -6px; }
.footer a:hover { color: var(--c-pie-texto); }
.footer__contact li { display: flex; gap: var(--s-3); font-size: var(--t-sm); }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--c-300); }
.footer__logo-tile { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 18px; margin-bottom: var(--s-5); }
.footer__logo-tile--libre { background: none; padding: 0; border-radius: 0; }
.footer__logo-tile .logo-icon { height: calc(var(--logo-alto) * .889); }
.footer__logo-tile .logo-text { height: calc(var(--logo-texto-alto) * .895); }
.footer__logo-marca { display: inline-flex; align-items: center; gap: 14px; margin-bottom: var(--s-5); }
.footer__logo-marca .footer__logo-tile { margin-bottom: 0; padding: 10px 14px; }
.footer__logo-marca .logo-marca { color: var(--logo-marca-color-pie, var(--c-pie-texto)); }
.footer .footer__nit { margin-top: var(--s-4); font-size: var(--t-xs); color: color-mix(in srgb, var(--c-pie-texto) 55%, transparent); }
.footer__bottom { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid color-mix(in srgb, var(--c-pie-texto) 12%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); font-size: var(--t-xs); color: color-mix(in srgb, var(--c-pie-texto) 55%, transparent); }
.footer__legal { background: var(--c-pie-fondo); color: color-mix(in srgb, var(--c-pie-texto) 62%, transparent); font-size: var(--t-xs); line-height: 1.7; padding-bottom: var(--s-10); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 21. Animación de entrada ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
html.js [data-reveal-group] > * { opacity: 0; transform: translateY(20px); transition: opacity 440ms var(--ease), transform 440ms var(--ease); }
html.js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 60ms; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 180ms; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 240ms; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 300ms; }

@media (hover: hover) and (pointer: fine) {
    .btn--primary:hover, .btn--light:hover, .btn--wa:hover { transform: translateY(-2px); }
    .card--hover:hover { transform: translateY(-3px); }
    .link-arrow:hover svg { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
    html, html:focus-within { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-property: opacity, background-color, border-color, color, box-shadow !important; transition-duration: 160ms !important; }
    [data-reveal], [data-reveal-group] > * { transform: none !important; }
    [data-reveal-group].is-visible > * { transition-delay: 0ms !important; }
    .nav__menu { transition: none !important; }
    .faq__item::details-content { transition: none !important; block-size: auto; }
    .acceso.is-contando .acceso__barra i { transition: none !important; }
}
@media print {
    .nav, .cta-band, .footer__legal { display: none; }
    body { color: #000; }
}
