/* =========================================================
   Metal Vivo — sitio público
   Paleta: carbón #060606 · negro #000 · blanco #FDFDFD
   Acento oliva sólo para la cifra de m² de cada modelo.
   Tipografía: Sora (variable 300–800), escala 1.333. Los font-stretch que quedan no tienen efecto.
   ========================================================= */

:root {
    --carbon: #060606;
    --negro: #000000;
    --blanco: #FDFDFD;
    --acero: #8C8C88;
    --junta: #1C1C1C;
    --oliva: #8DA05E;
    --oliva-claro: #A9BC7C;
    --oliva-sombra: rgba(141, 160, 94, .14);

    --t-sm: 0.8235rem;   /* 14px */
    --t-base: 1.0625rem; /* 17px */
    --t-md: 1.4167rem;   /* 22.7px */
    --t-lg: 1.8884rem;   /* 30.2px */

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1320px;
    --nav-h: 76px;
    --section: clamp(84px, 11vw, 168px);
    --ease: cubic-bezier(.7, 0, .2, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    margin: 0;
    background: var(--carbon);
    color: var(--blanco);
    font-family: Sora, system-ui, sans-serif;
    font-size: var(--t-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 200; background: var(--blanco); color: var(--negro); padding: 10px 14px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--oliva); outline-offset: 3px; }
::selection { background: var(--oliva); color: var(--negro); }

/* Barra de progreso de lectura bajo la navegación */
.progreso { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--oliva); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 32px; height: 32px; }

/* ---------- Tipografía ---------- */
.h2 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-stretch: 112%;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.02;
    text-wrap: balance;
}
.h3 { font-size: var(--t-lg); font-stretch: 108%; font-weight: 650; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 20px; }
.lead { color: #C9C9C5; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); max-width: 56ch; }
.lead a { color: var(--blanco); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 2px; border: 1px solid transparent;
    font-weight: 600; font-size: 0.9375rem; line-height: 1.2; letter-spacing: 0.005em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
}
.btn-light { background: var(--blanco); color: var(--negro); }
.btn-light:hover { background: #DADAD6; }
.btn-line { border-color: rgba(253, 253, 253, .35); color: var(--blanco); background: transparent; }
.btn-line:hover { border-color: var(--blanco); }
.btn-dark { background: var(--negro); color: var(--blanco); }
.btn-dark:hover { background: #262626; }
.btn-sm { padding: 10px 16px; font-size: var(--t-sm); }
.btn-wide { width: 100%; justify-content: center; padding-block: 16px; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(6, 6, 6, .94); border-bottom-color: var(--junta); backdrop-filter: blur(10px); }
.nav-inner { height: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: block; color: var(--blanco); }
.logo { width: 92px; height: auto; display: block; }
.logo-lg { width: 132px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav-links a:not(.btn) { text-decoration: none; font-size: 0.9375rem; color: #D6D6D2; padding: 6px 0; background: linear-gradient(var(--oliva), var(--oliva)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.nav-links a:not(.btn):hover, .nav-links a.is-current { color: var(--blanco); background-size: 100% 2px; }
.nav-cta { padding: 11px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(253,253,253,.3); border-radius: 2px; width: 44px; height: 44px; place-items: center; cursor: pointer; }
.nav-toggle-close { display: none; }

/* ---------- Portada ---------- */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: flex-end;
    background: var(--negro); overflow: hidden; isolation: isolate;
}
/* Carrusel: cada foto entra como una persiana de chapa (máscara de listones) */
@property --slat { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; }
.hero-slide.is-active, .hero-slide.is-leaving { opacity: 1; visibility: visible; }
.hero-slide.is-active { z-index: 2; }
.hero-slide.is-leaving { z-index: 1; }
.hero-slide.is-entering {
    -webkit-mask-image: linear-gradient(90deg, #000 var(--slat), transparent var(--slat));
    mask-image: linear-gradient(90deg, #000 var(--slat), transparent var(--slat));
    -webkit-mask-size: calc(100% / 14 + .5px) 100%; mask-size: calc(100% / 14 + .5px) 100%;
    -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
    animation: persiana 1.15s var(--ease) both;
}
@keyframes persiana { from { --slat: 0%; } to { --slat: 100%; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.78) saturate(.9); }
.hero-slide.is-active .hero-img { animation: acercar 8s ease-out both; }
@keyframes acercar { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.6), transparent 160px),
        linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 42%, rgba(0,0,0,.1) 70%),
        linear-gradient(to right, rgba(0,0,0,.55), transparent 60%);
}
.hero-content { padding-block: calc(var(--nav-h) + 40px) clamp(56px, 9vh, 112px); }
.hero-title {
    font-size: clamp(3.4rem, 10.5vw, 9.4rem);
    font-weight: 800; font-stretch: 125%;
    line-height: .9; letter-spacing: -0.04em;
    max-width: 11ch; margin-bottom: 28px;
}
.hero-sub { font-size: clamp(1.0625rem, 1.6vw, 1.35rem); color: #E2E2DE; max-width: 44ch; margin-bottom: 32px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* La chapa acanalada: listones que se abren como persiana al cargar */
.chapa { position: absolute; inset: 0; display: flex; z-index: 1; pointer-events: none; }
.chapa span {
    flex: 1;
    background: repeating-linear-gradient(90deg, #050505 0 9px, #1a1a1a 9px 10px, #020202 10px 19px, #0d0d0d 19px 20px);
    transform-origin: left center;
    animation: abrir 1s var(--ease) forwards;
    animation-delay: calc(200ms + var(--i) * 55ms);
}
@keyframes abrir { to { transform: scaleX(0); } }
.hero-text > *, .hero-controls { animation: aparecer .8s ease-out both; animation-delay: 1.05s; }
.hero-text > .hero-sub { animation-delay: 1.2s; }
.hero-text > .hero-actions { animation-delay: 1.35s; }
.hero-controls { animation-delay: 1.5s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } }

/* Texto a la izquierda, controles del carrusel a la derecha */
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; }
.hero-text { grid-column: 1 / -1; grid-row: 1; }
.hero-controls { grid-column: 2; grid-row: 1; align-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; padding-bottom: 3px; }
.hero-leyenda { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: var(--t-sm); color: #D6D6D2; min-height: 2.8em; max-width: 30ch; }
.hero-leyenda a { color: var(--oliva); font-weight: 600; text-decoration: none; background: linear-gradient(var(--oliva), var(--oliva)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.hero-leyenda a:hover { background-size: 100% 1px; }
.hero-leyenda.is-changing > * { animation: aparecer .5s ease-out both; }
.hero-nav { display: flex; align-items: center; gap: 18px; }
.hero-count { display: flex; align-items: baseline; gap: 6px; font-stretch: 120%; font-size: var(--t-sm); color: var(--acero); font-variant-numeric: tabular-nums; }
.hero-count b { color: var(--blanco); font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; }
.hero-bars { display: flex; gap: 6px; }
.hero-bars button { width: 36px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.hero-bars span { position: relative; display: block; width: 100%; height: 3px; background: rgba(253, 253, 253, .22); overflow: hidden; transition: background-color .2s; }
.hero-bars button:hover span { background: rgba(253, 253, 253, .45); }
.hero-bars span::after { content: ""; position: absolute; inset: 0; background: var(--oliva); transform: scaleX(0); transform-origin: left; }
.hero-bars .is-past span::after { transform: scaleX(1); }
.hero-bars .is-active span::after { animation: llenar var(--dur, 6000ms) linear forwards; animation-play-state: paused; }
.hero.is-ready:not(.is-paused):not(.is-hover) .hero-bars .is-active span::after { animation-play-state: running; }
@keyframes llenar { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 6px; }
.hero-arrows button {
    width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(253, 253, 253, .28); color: var(--blanco);
    backdrop-filter: blur(6px); transition: background-color .25s, border-color .25s, color .25s;
}
.hero-arrows button:hover { background: var(--oliva); border-color: var(--oliva); color: var(--negro); }
.hero-arrows .icon { width: 18px; height: 18px; }
.ico-play { display: none; }
.hero.is-paused .ico-play { display: block; }
.hero.is-paused .ico-pausa { display: none; }
.hero.is-paused [data-pause] { border-color: var(--oliva); color: var(--oliva); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section:nth-of-type(even) { background: var(--negro); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h2 { margin-bottom: 18px; }
.row-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.row-head .h2 { margin: 0; }
.row-head .lead { margin: 0; justify-self: end; }

/* Nosotros */
.nosotros-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.nosotros-text .h2 { margin-bottom: 32px; max-width: 18ch; }
.nosotros-text p { max-width: 60ch; color: #D2D2CE; }
.datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--junta); }
.datos div { display: flex; flex-direction: column-reverse; }
.datos dt { color: var(--acero); font-size: var(--t-sm); line-height: 1.4; }
.datos dd { margin: 0 0 6px; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 750; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1; color: var(--oliva); }
.datos { border-top-color: transparent; background: linear-gradient(var(--oliva), var(--oliva)) 0 0 / 64px 2px no-repeat, linear-gradient(var(--junta), var(--junta)) 0 0 / 100% 1px no-repeat; }
.nosotros-img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.nosotros-img img { width: 100%; height: 100%; object-fit: cover; }

/* Servicios */
.servicios-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.servicios-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.servicios-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.servicios-list li { padding: 32px 0 36px; border-top: 1px solid var(--junta); }
.servicios-list .icon-lg { margin-bottom: 22px; color: var(--oliva); }
.servicios-list h3 { font-size: var(--t-md); font-weight: 650; font-stretch: 105%; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 10px; }
.servicios-list p { color: #B4B4B0; margin: 0; max-width: 40ch; }

/* Modelos */
.modelos-list { border-bottom: 1px solid var(--junta); }
.modelo {
    display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 4.8fr) minmax(0, 3.6fr);
    gap: clamp(20px, 3vw, 48px); align-items: end;
    padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--junta);
}
.modelo-num {
    align-self: start; text-decoration: none; color: var(--oliva);
    font-size: clamp(3.6rem, 6.6vw, 6.4rem); font-weight: 800; font-stretch: 125%; white-space: nowrap;
    letter-spacing: -0.05em; line-height: .85; font-variant-numeric: tabular-nums;
}
.modelo-num small { font-size: .28em; letter-spacing: 0; margin-left: .12em; font-weight: 600; vertical-align: top; position: relative; top: .25em; }
.modelo-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--junta); }
.modelo-img img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; filter: brightness(.92); }
.modelo:hover .modelo-img img { filter: brightness(1.04); }
.modelo-info h3 { font-size: var(--t-lg); font-stretch: 110%; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.modelo-info h3 a { text-decoration: none; }
.modelo-info h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--oliva); text-underline-offset: 6px; }
.modelo { transition: background-color .4s; }
.modelo:hover { background: linear-gradient(90deg, var(--oliva-sombra), transparent 45%); }
.modelo-info > p { color: #C2C2BE; margin-bottom: 20px; }
.specs-inline { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 24px; }
.specs-inline div { display: flex; flex-direction: column; }
.specs-inline dt { color: var(--acero); font-size: var(--t-sm); }
.specs-inline dd { margin: 0; font-weight: 650; font-size: 1.15rem; }

/* Proceso: es una secuencia real, por eso va numerado */
.proceso-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.proceso-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.proceso-aside .section-head { margin-bottom: 36px; }
.proceso-media { position: relative; margin-bottom: 36px; padding: 0 0 22px 22px; }
.proceso-media::before {
    content: ""; position: absolute; inset: 22px 22px 0 0; z-index: 0;
    background: repeating-linear-gradient(90deg, #121212 0 9px, #1f1f1f 9px 10px, #0a0a0a 10px 19px, #171717 19px 20px);
}
.proceso-img { position: relative; z-index: 1; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.proceso-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9) saturate(.9); }
.proceso-nota {
    position: relative; z-index: 2; margin: -34px 0 0 auto; width: fit-content; max-width: 88%;
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    background: var(--negro); border: 1px solid var(--junta); border-left: 3px solid var(--oliva);
    font-size: 0.95rem; color: #D6D6D2; line-height: 1.35;
}
.proceso-nota .icon { color: var(--oliva); }

/* Línea de tiempo vertical que se llena al hacer scroll */
.pasos { --prog: 0; position: relative; display: flex; flex-direction: column; gap: 16px; }
.pasos::before, .pasos::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; }
.pasos::before { background: #262626; }
.pasos::after { background: var(--oliva); transform-origin: top; transform: scaleY(var(--prog)); box-shadow: 0 0 12px rgba(141, 160, 94, .5); }
.paso { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; align-items: start; }
.paso-nodo {
    position: relative; z-index: 1; width: 56px; height: 56px; margin-top: 10px;
    display: grid; place-items: center;
    background: var(--carbon); border: 2px solid #333; color: var(--acero);
    font-size: 1.3rem; font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums;
    transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease-out);
}
.paso.is-on .paso-nodo { background: var(--oliva); border-color: var(--oliva); color: var(--negro); box-shadow: 0 0 0 6px var(--oliva-sombra); }
.paso-card {
    display: flex; gap: 20px; align-items: flex-start; padding: 26px 28px;
    border: 1px solid var(--junta); background: rgba(255, 255, 255, .012);
    transition: background-color .4s, border-color .4s, transform .45s var(--ease-out);
}
.paso.is-on .paso-card { border-color: rgba(141, 160, 94, .32); background: rgba(141, 160, 94, .05); }
.paso:hover .paso-card { border-color: var(--oliva); transform: translateX(6px); }
.paso:hover .paso-nodo { transform: scale(1.06); }
.paso-icono {
    flex: none; width: 48px; height: 48px; display: grid; place-items: center;
    color: var(--oliva); border: 1px solid rgba(141, 160, 94, .4); transition: background-color .4s, color .4s;
}
.paso-icono .icon { width: 24px; height: 24px; }
.paso.is-on .paso-icono { background: var(--oliva-sombra); }
.paso:hover .paso-icono { background: var(--oliva); color: var(--negro); }
.paso h3 { font-size: var(--t-md); font-weight: 650; font-stretch: 105%; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 8px; }
.paso p { color: #B4B4B0; margin: 0; max-width: 52ch; }
.paso-final .paso-nodo { border-radius: 50%; }
.paso-final.is-on .paso-card { background: linear-gradient(90deg, rgba(141, 160, 94, .14), rgba(141, 160, 94, .03)); }

/* Cómo está hecha: corte de la pared en planta y listado de capas */
.sistema-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.sistema-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.sistema-aside .section-head { margin-bottom: 36px; }

/* Texturas de cada material, en grises: el oliva queda para la capa activa */
.tex { background-color: #1a1a19; }
.tex-chapa { background: #262625 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M4 0l6 7-6 7' fill='none' stroke='%23A3A39F' stroke-width='1.6'/%3E%3C/svg%3E") center top / 14px 14px repeat-y; }
.tex-osb {
    background:
        repeating-linear-gradient(32deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 7px),
        repeating-linear-gradient(-58deg, rgba(0, 0, 0, .35) 0 3px, transparent 3px 9px),
        #3a3936;
}
.tex-acero {
    background:
        linear-gradient(90deg, #9A9A96 0 3px, transparent 3px calc(100% - 3px), #9A9A96 calc(100% - 3px)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 8px),
        #121212;
}
.tex-aislacion { background: #1d1d1c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none'%3E%3Cpath d='M4 0C36 0 36 10 20 10S4 20 36 20' fill='none' stroke='%23B7B7B2' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 22px repeat-y; }
.tex-barrera { background: repeating-linear-gradient(180deg, #C9C9C5 0 6px, transparent 6px 11px) center / 2px 100% no-repeat, #101010; }
.tex-yeso { background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.5px) 0 0 / 6px 6px, #4a4a47; }

.corte { margin-bottom: 36px; }
.corte-capas {
    display: flex; gap: 2px; height: clamp(260px, 30vw, 400px);
    padding: 2px; background: var(--negro); border: 1px solid var(--junta);
}
.corte-capas .tex { position: relative; transition: filter .35s, box-shadow .35s; }
.corte-capas .tex-chapa { flex: .6; }
.corte-capas .tex-osb { flex: .8; }
.corte-capas .tex-acero { flex: 2.2; }
.corte-capas .tex-aislacion { flex: 2.6; }
.corte-capas .tex-barrera { flex: .25; }
.corte-capas .tex-yeso { flex: .9; }
.corte-capas b {
    position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
    padding: 3px 6px; font-size: .72rem; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums;
    background: var(--carbon); border: 1px solid #2a2a2a; color: #C9C9C5;
    transition: background-color .3s, color .3s, border-color .3s;
}
.corte-capas.has-activa .tex:not(.is-activa) { filter: brightness(.45) grayscale(1); }
.corte-capas .tex.is-activa { box-shadow: inset 0 0 0 2px var(--oliva); }
.corte-capas .tex.is-activa b { background: var(--oliva); border-color: var(--oliva); color: var(--negro); }
.corte-pie { display: flex; justify-content: space-between; margin: 12px 0 0; color: var(--acero); font-size: var(--t-sm); }

.capas { border-bottom: 1px solid var(--junta); }
.capa {
    position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px 28px; align-items: center; padding: 28px 20px; border-top: 1px solid var(--junta);
    transition: background-color .4s;
}
.capa::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 2px; background: var(--oliva); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.capa.is-activa { background: linear-gradient(90deg, var(--oliva-sombra), transparent 60%); }
.capa.is-activa::before { transform: scaleY(1); }
.capa-muestra { position: relative; width: 64px; height: 64px; border: 1px solid #2a2a2a; transition: border-color .35s; }
.capa-muestra b {
    position: absolute; right: -1px; bottom: -1px; padding: 3px 5px;
    font-size: .68rem; font-weight: 650; line-height: 1; background: var(--carbon); color: #C9C9C5;
    transition: background-color .3s, color .3s;
}
.capa.is-activa .capa-muestra { border-color: var(--oliva); }
.capa.is-activa .capa-muestra b { background: var(--oliva); color: var(--negro); }
.capa h3 { font-size: var(--t-md); font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 6px; }
.capa p { color: #B4B4B0; margin: 0; max-width: 46ch; }
.capa .capa-dato { display: flex; flex-direction: column; align-items: flex-end; text-align: right; max-width: 14ch; }
.capa-dato strong { color: var(--oliva); font-size: clamp(1.5rem, 2.3vw, 1.95rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.capa-dato span { color: var(--acero); font-size: var(--t-sm); line-height: 1.35; margin-top: 6px; }

/* Galería */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; justify-self: end; }
.filtros button { padding: 9px 16px; background: none; border: 1px solid #333; border-radius: 99px; cursor: pointer; font-size: var(--t-sm); color: #CFCFCB; transition: background-color .2s, color .2s, border-color .2s; }
.filtros button:hover { border-color: var(--oliva); color: var(--blanco); }
.filtros button[aria-pressed="true"] { background: var(--oliva); color: var(--negro); border-color: var(--oliva); font-weight: 600; }
.galeria-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 240px); grid-auto-flow: dense; gap: 8px; }
.galeria-grid li { overflow: hidden; background: var(--junta); }
.galeria-grid li.is-wide { grid-column: span 2; grid-row: span 2; }
.galeria-grid li[hidden] { display: none; }
.galeria-grid a { display: block; height: 100%; cursor: zoom-in; }
.galeria-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.galeria-grid a:hover img { transform: scale(1.03); }

/* Clientes y testimonios */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(32px, 5vw, 72px); padding-block: 32px; border-block: 1px solid var(--junta); margin-bottom: clamp(48px, 7vw, 88px); }
.logo-item { display: block; text-decoration: none; color: #77777A; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 650; font-stretch: 75%; letter-spacing: -0.01em; transition: color .2s; }
a.logo-item:hover, .logo-item:hover { color: var(--oliva); }
.logo-item img { max-height: 44px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .55; transition: opacity .2s; }
a.logo-item:hover img { opacity: 1; }
.testimonios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.testimonio { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.testimonio blockquote { margin: 0; }
.testimonio blockquote p { font-size: var(--t-md); line-height: 1.4; letter-spacing: -0.01em; margin: 0; text-indent: -0.42em; }
.testimonio blockquote p::before { content: "“"; color: var(--oliva); }
.testimonio blockquote p::after { content: "”"; color: var(--oliva); }
.testimonio { padding-top: 24px; border-top: 2px solid var(--oliva); }
.testimonio figcaption { display: flex; align-items: center; gap: 14px; color: var(--acero); font-size: var(--t-sm); line-height: 1.45; }
.testimonio figcaption strong { color: var(--blanco); font-weight: 600; font-size: var(--t-base); }
.testimonio figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* Preguntas */
.faqs-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.faq-list { border-bottom: 1px solid var(--junta); }
.faq-list details { border-top: 1px solid var(--junta); }
.faq-list summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
    padding: 24px 0; font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 300; font-size: 1.6em; line-height: .6; color: var(--oliva); transition: transform .25s var(--ease); }
.faq-list details[open] { box-shadow: inset 2px 0 0 var(--oliva); }
.faq-list details[open] summary, .faq-list details[open] .faq-a { padding-left: 20px; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-a { color: #C2C2BE; padding: 0 0 28px; max-width: 64ch; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contacto-info .h2 { margin-bottom: 20px; max-width: 14ch; }
.datos-contacto { margin-top: 40px; display: flex; flex-direction: column; }
.datos-contacto li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--junta); }
.datos-contacto li:last-child { border-bottom: 1px solid var(--junta); }
.datos-contacto .icon { color: var(--oliva); }
.datos-contacto a { text-decoration: none; }
.datos-contacto a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contacto-form { background: var(--blanco); color: var(--negro); padding: clamp(24px, 3.5vw, 44px); border-radius: 2px; }
.contacto-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.contacto-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.contacto-form .field > span { font-size: var(--t-sm); font-weight: 600; color: #2A2A2A; }
.contacto-form .field em { font-style: normal; font-weight: 400; color: #6F6F6B; }
.contacto-form input, .contacto-form select, .contacto-form textarea {
    width: 100%; font: inherit; color: var(--negro); background: #F4F4F1;
    border: 1px solid #D7D7D3; border-radius: 2px; padding: 12px 14px;
}
.contacto-form textarea { resize: vertical; min-height: 130px; }
.contacto-form input:focus, .contacto-form select:focus, .contacto-form textarea:focus { outline: 2px solid var(--negro); outline-offset: 0; border-color: var(--negro); background: #fff; }
.contacto-form .btn-light { background: var(--negro); color: var(--blanco); }
.contacto-form .btn-light:hover { background: #2A2A2A; }
.contacto-form :focus-visible { outline-color: var(--negro); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; margin-bottom: 22px; border-radius: 2px; font-size: 0.97rem; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert-ok { background: #EAF0DD; border-left: 3px solid #5E7236; }
.alert-error { background: #F8E6E2; border-left: 3px solid #B3402F; }

/* Mapa */
.mapa { position: relative; height: clamp(360px, 46vw, 520px); background: var(--negro); }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(.92) contrast(.88) brightness(.95); }
.mapa-card {
    position: absolute; left: var(--gutter); bottom: 32px; max-width: 320px;
    background: var(--negro); border: 1px solid var(--junta); border-left: 3px solid var(--oliva); padding: 22px 24px;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.mapa-card span { color: #C2C2BE; margin-bottom: 10px; }
@media (min-width: 900px) { .mapa-card { left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); } }

/* Pie */
.footer { position: relative; overflow: hidden; background: var(--negro); padding-block: clamp(56px, 7vw, 96px) 28px; }
.with-icon { display: inline-flex; align-items: center; gap: 10px; }

/* Fila superior: marca y accesos de contacto */
.footer-top {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap;
    padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px);
    background: linear-gradient(var(--junta), var(--junta)) var(--gutter) 100% / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.footer-logo { display: inline-block; color: var(--blanco); }
.footer-brand p { color: #B4B4B0; max-width: 32ch; margin: 18px 0 0; font-size: 1.05rem; line-height: 1.5; }
.footer-accesos { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-acceso {
    display: flex; align-items: center; gap: 14px; min-width: 240px;
    padding: 16px 20px; text-decoration: none; color: var(--blanco);
    border: 1px solid #262626; background: rgba(255, 255, 255, .015);
    transition: border-color .3s, background-color .3s, transform .35s var(--ease-out);
}
.footer-acceso .icon { width: 26px; height: 26px; color: var(--oliva); flex: none; transition: color .3s; }
.footer-acceso span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.3; }
.footer-acceso small { color: var(--acero); font-weight: 500; font-size: 0.8rem; }
.footer-acceso:hover { border-color: var(--oliva); background: var(--oliva-sombra); transform: translateY(-3px); }

/* Columnas */
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: 0.97rem; }
.footer-col h2 { font-size: var(--t-sm); font-weight: 650; color: var(--oliva); margin-bottom: 6px; }
.footer-col a { text-decoration: none; color: #D6D6D2; }
.footer-col a:hover { color: var(--oliva-claro); }
.footer-col span { color: #B4B4B0; }
.footer-col .with-icon { align-items: flex-start; }
.footer-col .with-icon .icon { width: 18px; height: 18px; color: var(--oliva); margin-top: 2px; }
.footer-modelo { display: flex; align-items: baseline; gap: 10px; }
.footer-modelo b { min-width: 3.6em; color: var(--oliva); font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }
.footer-modelo b small { font-size: .65em; margin-left: .1em; font-weight: 600; }
.footer-redes { display: flex; gap: 8px; }
.footer-redes a {
    display: grid; place-items: center; width: 46px; height: 46px;
    border: 1px solid #2A2A2A; color: var(--blanco);
    transition: background-color .25s, border-color .25s, color .25s, transform .35s var(--ease-out);
}
.footer-redes a:hover { background: var(--oliva); border-color: var(--oliva); color: var(--negro); transform: translateY(-3px); }
.footer-ig { margin: 8px 0 0; color: var(--acero); font-size: var(--t-sm); max-width: 24ch; }
.footer-ig a { color: var(--blanco); }

/* Marca gigante con textura de chapa */
.footer-marca {
    margin: clamp(40px, 6vw, 80px) 0 0; padding-inline: var(--gutter); text-align: center; white-space: nowrap;
    font-size: clamp(3rem, 12.6vw, 12.5rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.04em; line-height: .82;
    color: transparent; user-select: none;
    background: repeating-linear-gradient(90deg, #1c1c1c 0 9px, #2c2c2c 9px 10px, #141414 10px 19px, #222 19px 20px);
    -webkit-background-clip: text; background-clip: text;
    transition: background-position 1.6s var(--ease-out);
}
.footer:hover .footer-marca { background-position: 60px 0; }

/* Legales */
.footer-legal {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; margin-top: 28px; padding-top: 22px;
    background: linear-gradient(var(--junta), var(--junta)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
    color: var(--acero); font-size: var(--t-sm);
}
.footer-legal .credito { justify-self: end; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--blanco); }
.footer-arriba { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #262626; color: #D6D6D2; transition: border-color .25s, color .25s; }
.footer-arriba .icon { width: 16px; height: 16px; color: var(--oliva); transition: transform .35s var(--ease-out); }
.footer-arriba:hover { border-color: var(--oliva); }
.footer-arriba:hover .icon { transform: translateY(-3px); }
.credito strong { color: var(--oliva); font-weight: 650; transition: color .2s; }
.credito:hover strong { color: var(--oliva-claro); text-decoration: underline; text-underline-offset: 4px; }

/* Flotantes */
.float-wa, .float-top { position: fixed; right: max(20px, env(safe-area-inset-right)); z-index: 40; display: grid; place-items: center; text-decoration: none; }
.float-wa { bottom: max(20px, env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; background: var(--oliva); color: var(--negro); box-shadow: 0 8px 28px rgba(0, 0, 0, .5); transition: transform .2s; }
.float-wa:hover { transform: scale(1.06); }
.float-wa { transition: transform .35s var(--ease-out, ease), opacity .3s, visibility .3s; }
.float-wa.is-away { opacity: 0; visibility: hidden; transform: scale(.6); pointer-events: none; }
.float-wa .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.float-top { bottom: calc(max(20px, env(safe-area-inset-bottom)) + 72px); right: calc(max(20px, env(safe-area-inset-right)) + 7px); width: 44px; height: 44px; background: rgba(12, 12, 12, .92); border: 1px solid #2E2E2E; color: var(--blanco); transition: opacity .25s, transform .25s, border-color .2s; }
.float-top:hover { border-color: var(--oliva); color: var(--oliva); }
.float-top[hidden] { display: grid; opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .96); color: var(--blanco); }
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 92vh; }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: #C2C2BE; font-size: var(--t-sm); }
.lightbox button { background: none; border: 1px solid #333; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lightbox button:hover { border-color: var(--oliva); color: var(--oliva); }
.lb-close { position: absolute; top: 20px; right: 20px; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }

/* ---------- Página de modelo ---------- */
.page .nav { background: rgba(6, 6, 6, .94); border-bottom-color: var(--junta); }
.modelo-hero { padding: calc(var(--nav-h) + clamp(32px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px); }
.modelo-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.crumbs { display: flex; gap: 10px; color: var(--acero); font-size: var(--t-sm); margin-bottom: 36px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blanco); }
.modelo-num.big { font-size: clamp(5rem, 12vw, 10rem); display: block; margin-bottom: 18px; }
.modelo-hero-text .h2 { margin-bottom: 14px; }
.modelo-hero-text .lead { margin-bottom: 28px; }
.modelo-hero-text .specs-inline { padding-block: 20px; border-block: 1px solid var(--junta); margin-bottom: 28px; }
.modelo-main { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--junta); cursor: zoom-in; }
.modelo-main img { width: 100%; height: 100%; object-fit: cover; }
.modelo-main.placeholder { display: grid; place-items: center; color: var(--acero); cursor: default; padding: 24px; text-align: center; }
/* Visor: contador en oliva, leyenda y flechas debajo de la foto */
.visor-barra { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-top: 14px; }
.visor-cuenta { margin: 0; color: var(--acero); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.visor-cuenta b { color: var(--oliva); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.visor-alt { margin: 0; color: #B4B4B0; font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visor-flechas { display: flex; gap: 6px; }
.visor-flechas button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--junta); background: transparent; color: var(--blanco); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.visor-flechas button:hover { border-color: var(--oliva); color: var(--oliva); background: var(--oliva-sombra); }
.crumbs [aria-current] { color: var(--oliva); }
.ficha div:hover dt { color: var(--oliva); }
.modelo-detalle-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); }
.prose p { color: #D2D2CE; max-width: 62ch; }
.ficha { margin: 0; border-bottom: 1px solid var(--junta); }
.ficha div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--junta); }
.ficha dt { color: var(--acero); }
.ficha dd { margin: 0; }
.nota { color: var(--acero); font-size: var(--t-sm); margin-top: 16px; }
.ficha-wrap { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.adaptar-titulo { font-size: var(--t-md); font-weight: 650; letter-spacing: -0.01em; margin: 44px 0 6px; }
.adaptar { display: grid; gap: 0; border-bottom: 1px solid var(--junta); max-width: 62ch; }
.adaptar li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--junta); }
.adaptar li:first-child { border-top: 0; }
.adaptar .icon { color: var(--oliva); width: 26px; height: 26px; margin-top: 2px; }
.adaptar strong { display: block; font-weight: 650; margin-bottom: 2px; }
.adaptar span { color: #B4B4B0; }
.modelo-plazo { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 16px 20px; background: var(--oliva-sombra); border-left: 2px solid var(--oliva); color: #D2D2CE; max-width: 62ch; }
.modelo-plazo .icon { color: var(--oliva); flex: none; }
/* Mosaico de fotos del modelo */
.modelo-fotos { border-top: 1px solid var(--junta); }
.modelo-fotos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 230px); grid-auto-flow: dense; gap: 8px; }
.modelo-fotos-grid li { overflow: hidden; background: var(--junta); }
.modelo-fotos-grid li.is-wide { grid-column: span 2; grid-row: span 2; }
.modelo-fotos-grid a { display: block; height: 100%; cursor: zoom-in; }
.modelo-fotos-grid img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); transition: transform .6s var(--ease-out), filter .3s; }
.modelo-fotos-grid a:hover img { transform: scale(1.04); filter: brightness(1.05); }
.otros-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.otros-head .h3 { margin: 0; }
.otros-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.otros-list a { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; text-decoration: none; }
.otros-list img { grid-column: 1 / -1; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 12px; filter: brightness(.9); transition: filter .3s; }
.otros-list a:hover img { filter: brightness(1.05); }
.otros-num { color: var(--oliva); font-size: 2.6rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.04em; line-height: 1; }
.otros-num small { font-size: .4em; margin-left: .1em; }
.otros-name { font-weight: 600; }
.not-found { padding-top: calc(var(--nav-h) + 96px); min-height: 70vh; }
.not-found .lead { margin: 18px 0 32px; }

/* =========================================================
   Refinamientos de diseño por sección
   ========================================================= */

/* La hoja del logo siempre en oliva */
.logo path:nth-of-type(3) { fill: var(--oliva); }

.row-head { align-items: end; }

/* Secciones negras con textura de chapa casi imperceptible */
.section:nth-of-type(even) {
    background-color: var(--negro);
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 26px);
}

/* Portada: franja inferior con acceso a los modelos */
.hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
.hero-content { padding-bottom: clamp(40px, 7vh, 80px); }
.hero-modelos {
    position: relative; z-index: 2;
    border-top: 1px solid rgba(253, 253, 253, .14);
    background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px);
    animation: aparecer .8s ease-out 1.5s both;
}
.hero-modelos-inner { display: grid; grid-auto-flow: column; grid-template-columns: auto; grid-auto-columns: minmax(0, 1fr); }
.hero-modelos-label { align-self: center; padding: 20px 28px 20px 0; color: var(--acero); font-size: var(--t-sm); max-width: 9ch; line-height: 1.3; }
.hero-modelos a {
    display: flex; flex-direction: column; gap: 2px; padding: 18px 24px;
    border-left: 1px solid rgba(253, 253, 253, .1); text-decoration: none;
    transition: background-color .3s;
    position: relative;
}
.hero-modelos a::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--oliva); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.hero-modelos a:hover { background: var(--oliva-sombra); }
.hero-modelos a:hover::after { transform: scaleX(1); }
.hero-modelos strong { color: var(--oliva); font-size: 1.7rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1; }
.hero-modelos strong small { font-size: .5em; margin-left: .15em; font-weight: 600; }
.hero-modelos span { color: #C9C9C5; font-size: var(--t-sm); }

/* Nosotros: marco de chapa detrás de la foto y sello oliva */
.nosotros-media { position: relative; padding: 0 28px 28px 0; }
.nosotros-media::before {
    content: ""; position: absolute; inset: 28px 0 0 28px; z-index: 0;
    background: repeating-linear-gradient(90deg, #121212 0 9px, #1f1f1f 9px 10px, #0a0a0a 10px 19px, #171717 19px 20px);
}
.nosotros-img { position: relative; z-index: 1; }
.sello {
    position: absolute; z-index: 2; left: -28px; bottom: 64px; margin: 0;
    display: flex; align-items: center; gap: 14px;
    background: var(--oliva); color: var(--negro);
    padding: 18px 24px; font-weight: 700; font-stretch: 110%; line-height: 1.25;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.sello .icon { width: 30px; height: 30px; stroke-width: 1.8; }

/* Servicios: tarjetas con icono en placa oliva */
.servicios-grid .section-head .btn { margin-top: 12px; }
.servicios-list { gap: 12px; }
.servicios-list li { padding: 32px 28px 34px; border: 1px solid var(--junta); background: rgba(255, 255, 255, .012); transition: background-color .35s, border-color .35s; }
.servicios-list li:hover { background: rgba(141, 160, 94, .06); border-color: rgba(141, 160, 94, .35); }
.serv-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 26px; border: 1px solid rgba(141, 160, 94, .45); background: var(--oliva-sombra); transition: background-color .35s, border-color .35s; }
.servicios-list .serv-icon .icon-lg { margin: 0; width: 28px; height: 28px; }
.servicios-list li:hover .serv-icon { background: var(--oliva); border-color: var(--oliva); }
.servicios-list li:hover .serv-icon .icon-lg { color: var(--negro); }

/* Modelos */
.tag-destacado { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px 10px; font-size: 0.78rem; font-weight: 600; color: var(--oliva); border: 1px solid rgba(141, 160, 94, .5); background: var(--oliva-sombra); }
.tag-destacado .icon { width: 13px; height: 13px; fill: currentColor; }


/* Galería */
.galeria-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--junta); }
.galeria-foot p { margin: 0; color: #B4B4B0; }
.modelos-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; }
.modelos-foot p { margin: 0; color: #B4B4B0; }
.modelos-page { padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 64px)); }

/* Clientes: franja de logos en movimiento continuo */
.marquee {
    display: flex; overflow: hidden; border-block: 1px solid var(--junta); margin-bottom: clamp(48px, 7vw, 88px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee .logos { flex: none; flex-wrap: nowrap; border: 0; margin: 0; padding: 34px 0; padding-right: clamp(32px, 5vw, 72px); animation: desfile 32s linear infinite; }
.marquee:hover .logos { animation-play-state: paused; }
@keyframes desfile { to { transform: translateX(-100%); } }
.logo-item { white-space: nowrap; }
.testimonios { align-items: stretch; }

/* Banda de llamado a la acción */
.cta-banda {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--oliva); color: var(--negro);
    padding-block: clamp(64px, 8vw, 112px);
}
.cta-banda::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 9px, rgba(255, 255, 255, .06) 9px 10px, transparent 10px 19px, rgba(0, 0, 0, .1) 19px 20px);
}
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.cta-titulo { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.cta-cuerpo p { font-size: 1.1rem; max-width: 42ch; margin-bottom: 24px; color: #1C2410; }
.btn-dark::before { background: var(--blanco); }
.btn-dark:hover { background: var(--negro); color: var(--negro); }
.btn-line-dark { border-color: rgba(0, 0, 0, .55); color: var(--negro); background: transparent; }
.btn-line-dark::before { background: var(--negro); }
.btn-line-dark:hover { color: var(--oliva); border-color: var(--negro); }
.cta-banda :focus-visible { outline-color: var(--negro); }

/* Preguntas: tarjeta lateral */
.faq-aside { margin-top: 28px; padding: 24px; border: 1px solid var(--junta); border-left: 3px solid var(--oliva); background: rgba(255, 255, 255, .015); max-width: 360px; }
.faq-aside p { color: #C2C2BE; margin-bottom: 18px; }
.faq-aside strong { color: var(--blanco); }
.faqs-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }

/* Contacto: encabezado dentro del formulario */
.contacto-form { border-top: 4px solid var(--oliva); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.form-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid #E4E4E0; }
.form-head h3 { font-size: var(--t-lg); font-weight: 750; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.form-head p { margin: 0; color: #5E5E5A; font-size: 0.95rem; }
.contacto-form input:hover, .contacto-form select:hover, .contacto-form textarea:hover { border-color: #B9B9B4; }
.contacto-form input:focus, .contacto-form select:focus, .contacto-form textarea:focus { outline-color: #5E7236; border-color: #5E7236; }
/* Campos obligatorios y errores por campo */
.req { color: #5E7236; font-weight: 700; }
.form-nota { margin: -10px 0 18px; font-size: var(--t-sm); color: #6F6F6B; }
.contacto-form .field-error {
    display: flex; align-items: flex-start; gap: 6px;
    color: #A33A2A; font-size: 0.85rem; font-weight: 500; line-height: 1.35;
}
.contacto-form .field-error::before {
    content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px;
    border-radius: 50%; background: #A33A2A; color: #fff; font-size: 11px; font-weight: 800;
}
.contacto-form .field-error[hidden] { display: none; }
.contacto-form .has-error > span:first-child { color: #A33A2A; }
.contacto-form .has-error input, .contacto-form .has-error textarea, .contacto-form .has-error select {
    border-color: #A33A2A; background: #FDF3F1; box-shadow: inset 3px 0 0 #A33A2A;
}
.contacto-form .has-error input:focus, .contacto-form .has-error textarea:focus { outline-color: #A33A2A; border-color: #A33A2A; }
.contacto-form .has-error { animation: sacudir .35s ease-in-out; }
@keyframes sacudir { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.contacto-form .alert[hidden] { display: none; }

.datos-contacto li { transition: padding-left .35s var(--ease-out); }
.datos-contacto li:hover { padding-left: 8px; }

/* Pie */
.footer { border-top: 0; background-image: linear-gradient(var(--oliva), var(--oliva)); background-size: 100% 2px; background-repeat: no-repeat; }

@media (max-width: 900px) {
    .hero-modelos-inner { overflow-x: auto; scrollbar-width: none; grid-auto-columns: minmax(130px, 1fr); }
    .hero-modelos-inner::-webkit-scrollbar { display: none; }
    .hero-modelos-label { display: none; }
    .hero-modelos a:first-of-type { border-left: 0; }
    .nosotros-media { padding: 0 16px 16px 0; }
    .nosotros-media::before { inset: 16px 0 0 16px; }
    .sello { left: 12px; bottom: 32px; padding: 14px 18px; font-size: .95rem; }
    .cta-grid { grid-template-columns: 1fr; }
    .hero-content { grid-template-columns: 1fr; gap: 28px; }
    .hero-text, .hero-controls { grid-column: 1; grid-row: auto; }
    .hero-controls { align-items: stretch; }
    .hero-leyenda { align-items: flex-start; text-align: left; min-height: 0; max-width: none; }
    .proceso-grid { grid-template-columns: 1fr; }
    .proceso-aside { position: static; }
    .proceso-media { max-width: 560px; }
    .sistema-grid { grid-template-columns: 1fr; }
    .sistema-aside { position: static; }
    .corte { max-width: 560px; }
    .corte-capas { height: 220px; }
    .faqs-grid .section-head { position: static; }
}

/* =========================================================
   Movimiento: entradas al hacer scroll y respuestas al hover.
   Las entradas sólo se activan con JS (clase .js en <html>).
   ========================================================= */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Entrada de la portada: foto que se acomoda y nav que baja */
.home .nav { animation: bajar .8s var(--ease-out) 1s both; }
@keyframes bajar { from { opacity: 0; transform: translateY(-16px); } }

/* Revelado de bloques */
.js [data-reveal] {
    opacity: 0; transform: translateY(32px);
    transition: opacity .9s ease, transform 1.1s var(--ease-out);
    transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Revelado de fotos: se descubren como una persiana que sube */
/* El clip-path va en la imagen: en el elemento observado anularía la intersección */
.js [data-reveal="img"] { opacity: 1; transform: none; }
.js [data-reveal="img"] img {
    clip-path: inset(100% 0 0 0); transform: scale(1.14);
    transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease-out), filter .4s;
    transition-delay: var(--d, 0ms);
}
.js [data-reveal="img"].is-in img { clip-path: inset(0); transform: scale(1); }

/* Corte de la pared: las capas suben como listones, de afuera hacia adentro */
.js [data-reveal="corte"] { opacity: 1; transform: none; }
.js [data-reveal="corte"] .tex { transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease) calc(var(--i) * 90ms), filter .35s, box-shadow .35s; }
.js [data-reveal="corte"].is-in .tex { transform: none; }

/* Galería: las fotos aparecen al filtrar */
.galeria-grid li.is-shown { animation: aparecerFoto .55s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes aparecerFoto { from { opacity: 0; transform: scale(.96); } }

/* Botones: barrido horizontal, como una chapa que se corre */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    transform: scaleX(0); transform-origin: right center;
    transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn .icon { transition: transform .35s var(--ease-out); }
.btn:hover .icon { transform: translateX(-2px) rotate(-8deg); }
.btn-light:hover { background: var(--blanco); color: var(--negro); }
.btn-light::before { background: var(--oliva); }
.btn-line::before { background: var(--oliva); }
.btn-line:hover { color: var(--negro); border-color: var(--oliva); }
.contacto-form .btn-light::before { background: var(--oliva); }
.contacto-form .btn-light:hover { background: var(--negro); color: var(--negro); }
.btn:active { transform: translateY(1px); }

/* Modelos */
.modelo-num { transition: transform .6s var(--ease-out); }
.modelo:hover .modelo-num { transform: translateX(10px); }
.modelo:hover .modelo-img img { transform: scale(1.045); filter: brightness(1.04); }

/* Servicios: la junta superior se completa y el icono sube */
.servicios-list li { position: relative; }
.servicios-list li::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--oliva);
    transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.servicios-list li:hover::before { transform: scaleX(1); }
.servicios-list .icon-lg { transition: transform .5s var(--ease-out), color .3s; }
.servicios-list li:hover .icon-lg { transform: translateY(-4px); color: var(--oliva-claro); }


/* Galería: pie de foto al pasar el mouse */
.galeria-grid a { position: relative; }
.galeria-grid a::after {
    content: attr(data-caption); position: absolute; inset: auto 0 0 0;
    padding: 48px 16px 14px; font-size: var(--t-sm); color: var(--blanco);
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .45s var(--ease-out);
}
.galeria-grid a:hover::after, .galeria-grid a:focus-visible::after { opacity: 1; transform: none; }
.galeria-grid img { transition: transform .9s var(--ease-out), filter .4s; }
.galeria-grid a:hover img { transform: scale(1.06); filter: brightness(.9); }

/* Contacto y FAQ */
.datos-contacto li .icon { transition: color .25s, transform .4s var(--ease-out); }
.datos-contacto li:hover .icon { color: var(--oliva-claro); transform: scale(1.12); }
.faq-list summary { transition: color .2s, padding .3s var(--ease-out); }
.faq-list summary:hover { color: var(--oliva-claro); }
.faq-list summary:hover::after { color: var(--oliva-claro); }
.faq-list details[open] .faq-a { animation: desplegar .45s var(--ease-out); }
@keyframes desplegar { from { opacity: 0; transform: translateY(-6px); } }

/* Otros modelos y pie */
.otros-num { transition: transform .5s var(--ease-out); display: inline-block; }
.otros-list a:hover .otros-num { transform: translateX(6px); }
.footer-col > a { transition: color .2s, transform .35s var(--ease-out); }
.footer-col > a:hover { transform: translateX(4px); }

/* WhatsApp: un aviso suave unos segundos después de cargar */
.float-wa::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--oliva); opacity: 0;
    animation: aviso 1.6s ease-out 4s 2;
}
@keyframes aviso { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
.float-top .icon { transition: transform .35s var(--ease-out); }
.float-top:hover .icon { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .modelo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
    .modelo-num { grid-column: 1 / -1; }
    .testimonios { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --nav-h: 64px; }
    .nav-toggle { display: grid; }
    .nav-links {
        position: fixed; inset: var(--nav-h) 0 0; background: var(--negro);
        flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px;
        padding: 28px var(--gutter) 40px; border-top: 1px solid var(--junta);
        opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
    }
    .nav.is-open { background: var(--negro); }
    .nav.is-open .nav-links { opacity: 1; visibility: visible; }
    .nav.is-open .nav-toggle-open { display: none; }
    .nav.is-open .nav-toggle-close { display: block; }
    .nav-links a:not(.btn) { font-size: 1.9rem; font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; padding: 8px 0; }
    .nav-cta { margin-top: 24px; padding: 16px 22px; font-size: 1rem; }

    .row-head { grid-template-columns: 1fr; }
    .row-head .lead, .filtros { justify-self: start; }
    .nosotros-grid, .servicios-grid, .faqs-grid, .contacto-grid, .modelo-hero-grid, .modelo-detalle-grid { grid-template-columns: 1fr; }
    .servicios-grid .section-head { position: static; }
    .nosotros-img { aspect-ratio: 4 / 3; }
    .galeria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modelo-hero-text { order: 2; }
    .modelo-media { order: 1; }
    .otros-list { grid-template-columns: 1fr 1fr; }
    .ficha-wrap { position: static; }
    .modelo-fotos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 30vw, 220px); }
    .mapa-card { bottom: 16px; right: var(--gutter); max-width: none; }
}

@media (max-width: 640px) {
    .hero-actions .btn { width: 100%; justify-content: center; }
    .datos { grid-template-columns: 1fr; gap: 20px; }
    .servicios-list { grid-template-columns: 1fr; }
    .modelo { grid-template-columns: 1fr; gap: 18px; }
    .visor-barra { grid-template-columns: auto auto; justify-content: space-between; }
    .visor-alt { display: none; }
    .otros-list { grid-template-columns: 1fr; }
    .pasos::before, .pasos::after { left: 21px; }
    .paso { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
    .paso-nodo { width: 44px; height: 44px; font-size: 1.05rem; margin-top: 4px; }
    .paso-card { flex-direction: column; gap: 14px; padding: 20px; }
    .paso-icono { width: 40px; height: 40px; }
    .paso:hover .paso-card { transform: none; }
    .capa { grid-template-columns: 48px minmax(0, 1fr); gap: 14px 16px; padding: 22px 0 22px 14px; align-items: start; }
    .capa-muestra { width: 48px; height: 48px; }
    .capa .capa-dato { grid-column: 2; flex-direction: row; align-items: baseline; gap: 8px; text-align: left; max-width: none; }
    .capa-dato strong { font-size: 1.35rem; }
    .capa-dato span { margin: 0; }
    .hero-controls { align-items: stretch; }
    .hero-leyenda { align-items: flex-start; text-align: left; min-height: 0; }
    .hero-nav { justify-content: space-between; }
    .hero-bars { flex: 1; }
    .hero-bars button { width: auto; flex: 1; }
    .testimonios { grid-template-columns: 1fr; }
    .contacto-form .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
    .footer-accesos, .footer-acceso { width: 100%; min-width: 0; }
    .footer-legal { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer-legal .credito { justify-self: center; }
    .footer-legal .footer-arriba { order: -1; }
    .galeria-grid li.is-wide { grid-column: span 2; grid-row: span 1; }
    .otros-list { grid-template-columns: 1fr; }
    .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
    .lightbox figure { grid-column: 1 / -1; grid-row: 1; padding: 64px 12px 0; }
    .lb-prev { grid-column: 1; grid-row: 2; margin-bottom: 24px; }
    .lb-next { grid-column: 2; grid-row: 2; margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .chapa { display: none; }
    .hero-text > *, .hero-controls, .home .nav, .float-wa::after, .galeria-grid li.is-shown, .hero-modelos { animation: none; }
    .marquee .logos { animation: none; }
    .contacto-form .has-error { animation: none; }
    .marquee .logos[aria-hidden] { display: none; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee .logos:first-child { flex-wrap: wrap; flex: 1; }
    .pasos::after { box-shadow: none; }
    .hero-slide.is-entering { animation: none; -webkit-mask-image: none; mask-image: none; }
    .hero-slide.is-active .hero-img { animation: none; }
    .hero-bars .is-active span::after { animation: none; transform: scaleX(1); }
    .js [data-reveal], .js [data-reveal="img"] { opacity: 1; transform: none; clip-path: none; }
    .js [data-reveal="img"] img { transform: none; clip-path: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
