/* AM Cortinas Metálicas · identidad provisional
   Concepto: chapa galvanizada (zinc), acero (azul petróleo oscuro) y amarillo de seguridad.
   Tipografía: Archivo variable; ancho condensado para titulares, como las letras pintadas en las cortinas de los locales.
   Para cambiar la paleta, editar solo los tokens de :root. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2-variations"), url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --zinc: #e4e8ea;         /* fondo general: chapa galvanizada clara */
  --zinc-2: #cfd6d9;       /* superficies secundarias, listones */
  --zinc-3: #aeb8bd;       /* sombras de listones, bordes suaves */
  --steel: #1d2b33;        /* texto y bandas oscuras */
  --steel-2: #3c4c55;      /* texto secundario sobre claro */
  --steel-3: #2a3a44;      /* muro en la ilustración */
  --mist: #b4c3ca;         /* texto secundario sobre oscuro */
  --paper: #ffffff;        /* formulario */
  --signal: #f5b800;       /* amarillo de seguridad: solo rellenos con texto oscuro */
  --signal-soft: #fff3c4;
  --line: #6b7a82;         /* bordes de campos (3:1) */
  --error: #a1251b;
  --focus: var(--steel);
  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --header-h: 72px;
  --bar-h: 0px;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: calc(var(--bar-h) + 24px);
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--zinc);
  color: var(--steel);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: clip;
  padding-bottom: var(--bar-h);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, summary, label, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(29, 43, 51, .12); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--signal); color: var(--steel); padding: 12px 16px; font-weight: 700; border-radius: var(--radius);
}
.skip:focus { top: 12px; }
main:focus:not(:focus-visible) { outline: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-stretch: 88%; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: var(--steel); }
.btn-signal:hover { background: #ffc81f; }
.btn-dark { background: var(--steel); color: var(--paper); }
.btn-dark:hover { background: #2b3f4a; }
.btn-dark:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; box-shadow: 0 0 0 3px var(--signal); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: rgba(29, 43, 51, .08); }
.hero .btn-line:hover, .mobile-bar .btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost:hover { text-decoration-thickness: 2px; }
.btn-ghost { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .2em; padding-inline: 8px; }
.btn-block { width: 100%; }
.ic { flex: none; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; text-underline-offset: .18em; }

/* ---------- Notas de revisión (solo vista previa) ---------- */
.note {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  margin-top: 14px; padding: 8px 12px;
  background: var(--signal-soft); color: var(--steel);
  border: 1px dashed #8a6a00; border-radius: var(--radius);
  font-size: .875rem; line-height: 1.45;
}
.note-inline { display: inline-flex; margin-top: 0; }
.note-tag { font-weight: 800; font-stretch: 85%; }
.notes-off .note { display: none; }

.preview-bar { background: var(--signal); color: var(--steel); font-size: .875rem; }
.preview-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 6px; }
@media (max-width: 479px) { .preview-bar .more { display: none; } }
.notes-toggle { background: transparent; border: 1.5px solid var(--steel); border-radius: 999px; padding: 4px 12px; min-height: 36px; cursor: pointer; font-weight: 650; font-size: .8125rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--zinc);
  border-bottom: 1px solid var(--zinc-3);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.scrolled .site-header { background: rgba(228, 232, 234, .94); box-shadow: 0 6px 20px -14px rgba(29, 43, 51, .55); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); transition: min-height .25s ease; }
.scrolled .header-inner { min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.mark {
  display: inline-grid; place-items: center;
  background: var(--signal); color: var(--steel);
  font-weight: 900; font-stretch: 70%; font-size: 1.75rem; line-height: 1;
  padding: 6px 9px 5px; border-radius: 2px; letter-spacing: .01em;
  transition: transform .25s ease;
  transform-origin: left center;
}
.scrolled .site-header .mark { transform: scale(.88); }
.mark-text { font-weight: 700; font-stretch: 80%; font-size: 1rem; line-height: 1.05; max-width: 6.5em; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: .9688rem; border-radius: var(--radius); }
.main-nav a:hover { background: var(--zinc-2); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-call, .hdr-wa {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  text-decoration: none; font-weight: 700; font-stretch: 90%; border-radius: var(--radius);
}
.hdr-call { border: 2px solid var(--steel); }
.hdr-wa { background: var(--steel); color: var(--paper); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  background: transparent; border: 2px solid var(--steel); border-radius: var(--radius); cursor: pointer; font-weight: 700;
}
.menu-lines { display: grid; gap: 5px; width: 18px; }
.menu-lines i { display: block; height: 2px; background: currentColor; transition: transform .22s ease; }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  --focus: var(--signal);
  position: absolute; inset: 100% 0 auto; background: var(--steel); color: var(--paper);
  padding-block: 12px 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .22s ease;
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu ul a { display: block; padding: 14px 0; font-size: 1.375rem; font-weight: 700; font-stretch: 80%; text-decoration: none; border-bottom: 1px solid #34474f; }
.mobile-menu-contact { display: grid; gap: 10px; margin-top: 20px; }

@media (min-width: 600px) {
  .hdr-call, .hdr-wa { display: inline-flex; }
}
@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-actions { margin-left: 8px; }
  .menu-btn, .mobile-menu { display: none !important; }
}
@media (min-width: 960px) and (max-width: 1120px) {
  .hdr-call span { display: none; }
}

/* ---------- Hero ---------- */
.hero { --focus: var(--signal); background: var(--steel); color: var(--paper); padding-block: clamp(28px, 4.5vw, 64px) clamp(40px, 5vw, 72px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; display: grid; gap: 20px; }
.hero-h1 { font-size: 1.0625rem; font-weight: 600; color: var(--mist); line-height: 1.4; max-width: 30em; }
.hero-display {
  font-weight: 850; font-stretch: 62%; line-height: .9; letter-spacing: -.005em;
  font-size: clamp(3rem, 7.2vw, 6.5rem); text-wrap: balance; color: #f4f6f7;
  max-width: 11ch;
}
.hero-lead { font-size: 1.125rem; max-width: 34em; color: #dbe3e7; }
@media (max-width: 599px) {
  .hero-copy { gap: 16px; }
  .hero-h1 { font-size: .9688rem; }
  .hero-lead { font-size: 1.0313rem; }
  .path { min-height: 68px; padding: 12px 16px; }
}
.paths { display: grid; gap: 10px; max-width: 520px; }
.paths-label { font-weight: 700; color: var(--mist); font-size: .9375rem; }
.path {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; padding: 14px 18px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid #9fb0b8; color: var(--paper);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
/* Las dos opciones empiezan iguales; la elegida se pinta de amarillo. El amarillo lleno queda para «Escribir por WhatsApp». */
.path:hover { transform: translateY(-2px); border-color: var(--paper); }
.path-text { display: grid; gap: 2px; min-width: 0; }
.path strong { font-size: 1.25rem; font-weight: 750; font-stretch: 82%; line-height: 1.15; }
.path-text > span { font-size: .9375rem; opacity: .9; }
.path-mark {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid currentColor; opacity: .45; transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
}
.path-mark .ic { opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.path.is-selected { background: var(--signal); border-color: var(--signal); color: var(--steel); }
.path.is-selected .path-mark { opacity: 1; background: var(--steel); color: var(--signal); border-color: var(--steel); }
.path.is-selected .path-mark .ic { opacity: 1; transform: none; }
.hero-call { color: #dbe3e7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-on-dark { color: var(--paper); border-color: #9fb0b8; }
.btn-on-dark:hover { background: rgba(255, 255, 255, .12); border-color: var(--paper); }
@media (max-width: 639px) { .hero-actions .btn { flex: 1 1 100%; } }
.hero-call a { color: var(--paper); font-weight: 700; }
.inline-wa { display: inline; }
.inline-wa .ic { display: none; }

/* Ilustración: frente de local con cortina que se levanta */
.hero-visual { min-width: 0; display: grid; gap: 12px; }
.street { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.facade {
  position: relative; aspect-ratio: 5 / 4;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(0, 0, 0, .18) 23px 24px),
    var(--steel-3);
  padding: 9% 9% 0;
  display: grid; grid-template-rows: auto 1fr;
}
.roll {
  position: relative; z-index: 3; height: 34px;
  background: linear-gradient(180deg, #8d999f, #5d6a71);
  border-radius: 2px 2px 0 0;
}
.roll span { position: absolute; inset: auto 0 0; height: 4px; background: rgba(0, 0, 0, .3); }
.bay { position: relative; overflow: hidden; background: #111b20; }
.interior { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #ffe9a6 0%, #f5c84a 38%, #a9802a 100%); }
.lamp { position: absolute; top: 0; left: 50%; width: 22%; height: 6px; transform: translateX(-50%); background: #fffbe8; box-shadow: 0 0 40px 12px rgba(255, 245, 200, .7); }
.shelf { position: absolute; left: 8%; right: 52%; height: 5px; background: rgba(29, 43, 51, .55); }
.s1 { top: 30%; } .s2 { top: 50%; }
.counter { position: absolute; left: 48%; right: 8%; bottom: 0; height: 30%; background: rgba(29, 43, 51, .6); }
.curtain {
  position: absolute; inset: 0; z-index: 2;
  transform: translateY(-56%);
  will-change: transform;
}
.js .curtain { animation: lift 1.7s cubic-bezier(.45, .05, .2, 1) .35s both; }
@keyframes lift { from { transform: translateY(0); } to { transform: translateY(-56%); } }
.slats {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, #dfe5e8 0 3px, #c3cbcf 3px 15px, #9aa6ac 15px 17px, #eef2f3 17px 19px);
}
.slats i { display: none; }
.lettering {
  position: absolute; left: 6%; right: 6%; bottom: 12%;
  font-weight: 900; font-stretch: 62%; text-transform: uppercase; text-align: center;
  font-size: clamp(1.4rem, 5vw, 2.6rem); line-height: 1; color: var(--steel);
  letter-spacing: .02em;
}
.bottom-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: #4f5c63; }
.bottom-bar b { position: absolute; left: 50%; top: 3px; width: 18%; height: 6px; transform: translateX(-50%); background: #2b363c; border-radius: 3px; }
.rail { position: absolute; top: 0; bottom: 0; width: 8px; background: #6e7b82; z-index: 3; }
.rail-l { left: 0; } .rail-r { right: 0; }
.sidewalk { height: 22px; background: repeating-linear-gradient(90deg, #8a979d 0 58px, #7a878d 58px 60px); }
.hero-visual figcaption { max-width: 560px; margin-inline: auto; width: 100%; }
/* Foto real en la portada (reemplaza la ilustración cuando hero.photo existe) */
.hero-photo picture { display: block; position: relative; width: 100%; max-width: 440px; margin-inline: auto; }
.hero-photo picture::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--signal); z-index: 0; }
.hero-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.hero-photo figcaption { max-width: 440px; margin-top: 18px; }
@media (max-width: 899px) {
  .hero-photo picture { max-width: 520px; }
  .hero-photo picture::before { inset: 12px -12px -12px 12px; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 32%; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; }
  .paths { grid-template-columns: 1fr 1fr; max-width: 640px; }
  .paths-label { grid-column: 1 / -1; }
  .path { align-items: flex-start; }
}
@media (max-width: 899px) {
  .facade { aspect-ratio: 16 / 10; padding: 6% 10% 0; }
  .roll { height: 24px; }
}

/* Entrada coordinada al cargar */
.js .enter { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { display: grid; gap: 14px; align-content: start; min-width: 0; }
.section-head h2, .trust h2, .contact-side h2 {
  font-weight: 820; font-stretch: 70%; line-height: .95; letter-spacing: -.005em;
  font-size: clamp(2.4rem, 5.4vw, 4rem); text-wrap: balance; max-width: 14ch;
}
.section-head > p, .contact-side > p { color: var(--steel-2); max-width: 36em; }
.works .section-head > p { color: var(--steel); }

/* Servicios */
.services { background: var(--zinc); }
.services-grid { display: grid; gap: 40px; }
.svc-list { display: grid; min-width: 0; }
.svc {
  display: grid; gap: 14px 40px; padding-block: 30px 34px;
  border-top: 3px solid var(--steel);
}
.svc:last-child { border-bottom: 3px solid var(--steel); }
/* Detalle de cada servicio: en escritorio se ve siempre; en celular se abre al tocarlo */
.svc-body { display: contents; }
.svc-more { display: none; }
@media (max-width: 759px) {
  .js .svc-more { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; font-weight: 700; color: var(--steel); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
  .js .svc-more::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
  .js .svc-more[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
  .js .svc-more[aria-expanded="true"] .svc-more-open, .js .svc-more[aria-expanded="false"] .svc-more-close { display: none; }
  .js .svc.is-collapsed .svc-body { display: none; }
  .svc { padding-block: 22px 24px; }
}
/* Fotos de sección: el trabajo real, sin texto al pie */
.sec-photo { margin: 0; min-width: 0; }
.sec-photo picture { display: block; overflow: hidden; border-radius: var(--radius); background: var(--zinc-3); }
.sec-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
.svc-photo img { aspect-ratio: 4 / 3; }
.svc-head { display: grid; gap: 6px; }
.svc-name { font-weight: 700; font-size: .9375rem; color: var(--steel-2); }
.svc-need { font-weight: 800; font-stretch: 78%; font-size: clamp(1.75rem, 3.4vw, 2.4rem); line-height: 1.02; text-wrap: balance; }
.svc-desc { max-width: 34em; }
.svc-send p { font-weight: 700; font-size: .9375rem; margin-bottom: 6px; }
.svc-send li { position: relative; padding-left: 22px; font-size: .9688rem; }
.svc-send li + li { margin-top: 4px; }
.svc-send li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--steel); }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 6px; }
@media (min-width: 760px) {
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-head, .svc-actions { grid-column: 1 / -1; }
  .svc-has-photo { grid-template-areas: "head head" "desc photo" "send photo" "act act"; align-items: start; }
  .svc-has-photo .svc-head { grid-area: head; } .svc-has-photo .svc-desc { grid-area: desc; }
  .svc-has-photo .svc-send { grid-area: send; } .svc-has-photo .svc-actions { grid-area: act; }
  .svc-has-photo .svc-photo { grid-area: photo; }
}
@media (min-width: 1060px) {
  .services-grid { grid-template-columns: minmax(260px, .7fr) minmax(0, 1.6fr); gap: 64px; }
  .sticky-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* Aparición progresiva (solo elementos debajo de la pantalla, solo con JS) */
.reveal.pending { opacity: 0; transform: translateY(28px); }
.reveal.pending.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }

/* Trabajos */
.works { background: var(--zinc-2); }
.works .section-head { margin-bottom: 40px; }
.works-empty { display: grid; gap: 32px; align-items: center; }
.empty-frames { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 16 / 10; }
.empty-frames span { border: 2px dashed var(--line); border-radius: 2px; background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(29, 43, 51, .06) 14px 16px); }
.empty-frames span:first-child { grid-row: 1 / 3; }
.empty-copy { display: grid; gap: 12px; max-width: 34em; }
.empty-copy h3 { font-weight: 800; font-stretch: 78%; font-size: 1.75rem; line-height: 1.05; }
.empty-list-label { font-weight: 700; margin-top: 6px; }
.empty-copy li { position: relative; padding-left: 22px; }
.empty-copy li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--steel); }
@media (min-width: 860px) { .works-empty { grid-template-columns: 1fr 1fr; gap: 56px; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--steel); background: transparent; font-weight: 650; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--steel); color: var(--paper); }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
/* Cinco trabajos: uno destacado (2x2) y cuatro al lado, sin filas a medias */
@media (min-width: 900px) {
  .works-grid:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 19vw, 280px); }
  .works-grid:has(> li:nth-child(5):last-child) .work, .works-grid:has(> li:nth-child(5):last-child) picture { height: 100%; }
  .works-grid:has(> li:nth-child(5):last-child) img { height: 100%; aspect-ratio: auto; }
  .works-grid:has(> li:nth-child(5):last-child) > li:first-child { grid-column: span 2; grid-row: span 2; }
  .works-grid:has(> li:nth-child(5):last-child) > li:first-child .work,
  .works-grid:has(> li:nth-child(5):last-child) > li:first-child picture { height: 100%; }
  .works-grid:has(> li:nth-child(5):last-child) > li:first-child img { height: 100%; aspect-ratio: auto; }
}
.work { display: grid; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.work picture { overflow: hidden; background: var(--zinc-3); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.work:hover img { transform: scale(1.03); }
.work-caption { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 2px; font-weight: 650; }
.work { position: relative; }
.work-play { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--signal); color: var(--steel); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.work:hover .work-play { transform: scale(1.06); }
.js .work-item picture { clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.6, 0, .2, 1); }
.work-item.reveal.pending picture { clip-path: inset(0 0 100% 0); }
.work-item.reveal.pending.in picture { clip-path: inset(0 0 0 0); }
/* Celular: dos columnas y fotos verticales, para que la galería no alargue tanto la página */
@media (max-width: 639px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work img { aspect-ratio: 4 / 5; }
  .works-grid:has(> li:nth-child(5):last-child) > li:first-child { grid-column: 1 / -1; }
  .works-grid:has(> li:nth-child(5):last-child) > li:first-child img { aspect-ratio: 16 / 10; object-position: 50% 30%; }
  .work-caption { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0 4px; font-size: .9375rem; line-height: 1.25; }
}

/* Proceso */
.process-top { display: grid; gap: 32px; margin-bottom: 52px; }
.process-photo img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .process-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.steps { display: grid; gap: 28px 24px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 8px solid var(--steel); min-width: 0; }
.step-n { font-weight: 850; font-stretch: 62%; font-size: 3.25rem; line-height: .9; }
.step h3 { font-weight: 780; font-stretch: 82%; font-size: 1.375rem; line-height: 1.15; }
.step p { color: var(--steel-2); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Confianza */
.trust { --focus: var(--signal); background: var(--steel); color: var(--paper); padding-block: clamp(64px, 8vw, 112px); }
.trust h2 { max-width: 18ch; }
.trust-list { display: grid; gap: 32px; margin-top: 44px; }
.trust-list li { border-top: 3px solid var(--signal); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.trust-list h3 { font-weight: 780; font-stretch: 82%; font-size: 1.375rem; line-height: 1.15; }
.trust-list p { color: #d3dde2; }
.trust-list .note { color: var(--steel); }
@media (min-width: 860px) and (max-width: 999px) { .trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.trust-grid { display: grid; gap: 44px; }
.trust-photo img { aspect-ratio: 4 / 3; object-position: 50% 82%; }
@media (min-width: 1000px) {
  .trust-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; align-items: stretch; }
  .trust-photo, .trust-photo picture { height: 100%; }
  .trust-photo img { height: 100%; aspect-ratio: auto; min-height: 520px; object-position: 50% 30%; }
}

/* Zonas */
.zones-grid { display: grid; gap: 32px; align-items: end; }
.zones-side { display: grid; gap: 24px; min-width: 0; }
.zone-form { display: grid; gap: 8px; }
.zone-form label { font-weight: 700; }
.zone-row { display: flex; flex-wrap: wrap; gap: 10px; }
.zone-row input { flex: 1 1 220px; min-width: 0; }
.zone-ready { font-size: .9375rem; }
.areas h3 { font-weight: 750; font-size: 1.125rem; margin-bottom: 10px; }
.areas ul { display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--steel); border-radius: 999px; }
@media (min-width: 900px) { .zones-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Preguntas */
.faq { background: var(--zinc-2); }
.faq-grid { display: grid; gap: 32px; }
.faq-list { border-top: 2px solid var(--steel); min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; min-height: 56px;
  font-weight: 700; font-stretch: 90%; font-size: 1.1875rem; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; flex: none; width: 18px; height: 18px; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; transition: transform .25s ease; }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-a { padding: 0 0 22px; max-width: 40em; color: var(--steel-2); }
.faq-item[open] .faq-a { animation: rise .35s ease both; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: 64px; } }

/* ---------- Contacto ---------- */
.contact { background: var(--zinc); }
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-side { display: grid; gap: 18px; min-width: 0; }
.context-chip {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--zinc-3);
  font-weight: 700; font-size: .9688rem;
}
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--zinc-3); transition: background-color .25s ease; }
.context-chip.is-set { border-color: var(--steel); }
.context-chip.is-set .chip-dot { background: var(--signal); box-shadow: 0 0 0 2px var(--steel); }
.flash { animation: flash .6s ease; }
@keyframes flash { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.routes { display: grid; gap: 14px; margin-top: 4px; }
.route-phone { display: grid; gap: 8px; }
.route-number { font-weight: 850; font-stretch: 66%; font-size: clamp(2.4rem, 6vw, 3.25rem); line-height: 1; letter-spacing: .01em; user-select: all; font-variant-numeric: tabular-nums; }
.route-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.route-wa { justify-self: start; }
.route-mail { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; color: var(--steel-2); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } }

.inquiry {
  background: var(--paper); border: 1px solid var(--zinc-3); border-radius: 6px;
  padding: clamp(20px, 4vw, 40px); display: grid; gap: 20px; min-width: 0;
  box-shadow: 0 24px 48px -32px rgba(29, 43, 51, .45);
}
.form-head { display: grid; gap: 6px; }
.form-head h3 { font-weight: 800; font-stretch: 78%; font-size: 1.875rem; line-height: 1.05; }
.form-head p { color: var(--steel-2); font-size: .9688rem; }
.fields { display: grid; gap: 18px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-weight: 700; font-size: .9688rem; }
.opt { font-weight: 500; color: var(--steel-2); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 11px 14px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 1rem;
}
textarea { resize: vertical; min-height: 120px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--steel); }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-weight: 650; font-size: .9375rem; }
.hint, .small { font-size: .875rem; color: var(--steel-2); }
.strong { font-weight: 700; color: var(--steel); }
.zones .field-error { margin-top: 2px; }
.form-errors { padding: 14px 16px; border: 2px solid var(--error); border-radius: var(--radius); color: var(--error); }
.form-errors:focus { outline: 3px solid var(--signal); }
.form-errors p { font-weight: 750; }
.form-errors li { margin-top: 4px; }
.form-errors a { color: var(--error); }
.ready-box { display: grid; gap: 10px; padding: 18px; border: 2px solid var(--steel); border-radius: var(--radius); background: var(--signal-soft); }
.ready-title { display: flex; gap: 10px; align-items: center; font-weight: 800; font-stretch: 88%; font-size: 1.1875rem; }
.ready-box .btn { justify-self: start; }
.stale { font-weight: 650; color: var(--steel-2); padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* ---------- Pie ---------- */
.site-footer { --focus: var(--signal); background: var(--steel); color: #d3dde2; padding-block: 48px 40px; }
.footer-grid { display: grid; gap: 20px; }
.brand-footer .mark-text { color: var(--paper); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; overflow-wrap: anywhere; }
.footer-contact a, .footer-contact button { color: var(--paper); min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } }

/* ---------- Barra fija en celular ---------- */
.mobile-bar {
  --focus: var(--signal);
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: var(--steel);
  transition: transform .25s ease, visibility .25s;
}
.mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
.mobile-bar a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; min-width: 0;
  border-radius: var(--radius); text-decoration: none; font-weight: 750; font-stretch: 88%;
}
.mobile-bar a > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-call { border: 2px solid #9fb0b8; color: var(--paper); }
.mb-wa { background: var(--signal); color: var(--steel); }
.mb-context { font-weight: 600; }
.menu-open .mobile-bar, .modal-open .mobile-bar { transform: translateY(110%); visibility: hidden; }
@media (max-width: 959px) { :root { --bar-h: 72px; } }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* ---------- Modales ---------- */
.modal {
  width: min(960px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0;
  border: 0; border-radius: 6px; background: var(--paper); color: var(--steel);
  overscroll-behavior: contain;
}
.modal-text-only { width: min(620px, calc(100% - 24px)); }
.modal::backdrop { background: rgba(29, 43, 51, .82); }
.modal[open] { animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-inner { position: relative; display: grid; gap: 14px; padding: 56px clamp(18px, 4vw, 36px) 32px; }
.modal-close {
  position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: var(--radius); cursor: pointer;
}
.modal-close:hover { background: var(--zinc); }
.modal-title { font-weight: 800; font-stretch: 78%; font-size: 1.75rem; line-height: 1.1; }
.modal-media img, .modal-media video { width: 100%; max-height: 70vh; object-fit: contain; background: #0e161a; }
.modal-open { overflow: hidden; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pending { opacity: 1; transform: none; }
  .js .curtain { transform: translateY(-56%); }
}

/* Campo trampa para robots: fuera de pantalla, sin foco ni lectores */
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.inquiry { position: relative; }

/* Aceptación de uso de datos: casilla compacta y etiqueta táctil. */
.field label[for=f-privacy]{display:flex;align-items:flex-start;gap:10px;min-height:44px;cursor:pointer}
#f-privacy{width:20px;min-width:20px;min-height:20px;height:20px;flex:0 0 20px;margin-top:2px;accent-color:var(--signal)}
