/* ============================================================
   AVI — main.css — components & layout
   ============================================================ */

/* .avi-logo vive en brand.css (lo usa también el panel) */

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__logo { width: clamp(120px, 22vw, 190px); color: var(--cream); opacity: 0; animation: fadeUp 1s var(--ease) 0.15s forwards; }
.loader__bar { width: min(220px, 50vw); height: 1px; background: var(--line); margin-top: 2rem; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s linear; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(18,13,10,0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav__logo { color: var(--cream); transition: color 0.4s, opacity 0.4s; }
.nav__logo .avi-logo { width: 92px; }
.nav__logo:hover { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.6rem); }
.nav__links a {
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim);
  position: relative; padding-block: 0.4rem; transition: color 0.35s var(--ease);
}
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.4s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--cream); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { display: inline-flex; }
.nav__burger { display: none; width: 30px; height: 18px; position: relative; }
/* El dibujo son 30x18, pero un dedo necesita ~44. Se agranda SOLO el área de
   toque con un pseudo-elemento: las tres rayas no se mueven. */
.nav__burger::after { content: ''; position: absolute; inset: -13px -10px; }
.nav__burger span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--cream); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav__burger span:nth-child(1){ top: 0; } .nav__burger span:nth-child(2){ top: 8px; } .nav__burger span:nth-child(3){ top: 16px; }
body.menu-open .nav__burger span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2){ opacity: 0; }
body.menu-open .nav__burger span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* mobile menu */
.nav__mobile {
  position: fixed; inset: 0; z-index: 80; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: var(--pad);
  opacity: 0; visibility: hidden; transform: translateY(-2%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
body.menu-open .nav__mobile { opacity: 1; visibility: visible; transform: none; }
.nav__mobile a { font-family: var(--serif); font-size: clamp(1.8rem, 8vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.05em; color: var(--cream); }
.nav__mobile a:hover { color: var(--accent); }

/* ---------- Manifesto / Criterio strip ---------- */
.criterio { position: relative; overflow: hidden; }
.criterio__media { position: absolute; inset: 0; z-index: 0; }
.criterio__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.criterio__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 8%, rgba(18,16,16,0.5) 60%, var(--ink)); }
.criterio .wrap { position: relative; z-index: 1; }
.criterio__q { font-family: var(--serif); font-weight: 200; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(1.9rem, 1rem + 4vw, 4.4rem); line-height: 1.08; max-width: 20ch; }
.criterio__q b { color: var(--accent); font-weight: 300; }
.criterio__note { margin-top: 1.8rem; color: var(--cream-dim); max-width: 44ch; }

/* ---------- Section head ---------- */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); flex-wrap: wrap; }
.shead__title { max-width: 20ch; }
.shead__num { font-size: 0.72rem; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; }

/* ---------- Services grid ----------
   La foto ahora se ve SIEMPRE (antes solo en hover: la grilla era una fila de
   cajas negras). Sin descripciones: el nombre del servicio se basta solo. */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.svc {
  position: relative; overflow: hidden; border-radius: 3px;
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
}
.svc__img { position: absolute; inset: 0; z-index: 0; transition: transform 1.6s var(--ease); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.72) saturate(0.94); }
.svc:hover .svc__img { transform: scale(1.045); }
.svc::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(10,9,9,0.78)); }
.svc__t { position: relative; z-index: 2; font-family: var(--serif); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.18rem); font-weight: 300; }
/* Son ocho servicios en tres columnas: el último ocupa dos y cierra la retícula. */
.svc--wide { grid-column: span 2; aspect-ratio: 8 / 3; }

/* ---------- Full-bleed: la foto manda, sin nada encima ---------- */
.bleed { position: relative; width: 100%; overflow: hidden;
  height: clamp(60svh, 78vw, 92svh); }
.bleed img, .bleed video { width: 100%; height: 100%; object-fit: cover; }
.bleed--short { height: clamp(46svh, 56vw, 68svh); }
.bleed__cap { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(1.6rem, 4vw, 3rem);
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(243,240,234,0.72); }
.bleed::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,16,16,0.34), transparent 26%, transparent 62%, rgba(18,16,16,0.6)); }

/* ---------- Proyecto: una sola foto, grande ---------- */
.proj-shot { display: block; overflow: hidden; border-radius: 3px;
  aspect-ratio: 16 / 9; }
.proj-shot img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease); }
.proj-shot:hover img { transform: scale(1.03); }
.proj-shot + .proj-head { margin-top: clamp(1.2rem, 2.5vw, 1.8rem); margin-bottom: 0; }
@media (max-width: 640px) { .proj-shot { aspect-ratio: 4 / 3; } }

/* ---------- Statement: una sola idea, mucho aire ---------- */
.statement { text-align: center; }
.statement__q { font-family: var(--serif); font-weight: 200; text-transform: uppercase;
  letter-spacing: 0.03em; line-height: 1.2; font-size: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  max-width: 19ch; margin-inline: auto; }
.statement__q em { font-style: normal; color: var(--accent); }

/* ---------- El detalle: tira de tres primeros planos ---------- */
.detalle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.detalle { position: relative; overflow: hidden; border-radius: 3px; }
.detalle img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3;
  transition: transform 1.6s var(--ease); }
.detalle:hover img { transform: scale(1.04); }
.detalle figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1.1rem, 2.4vw, 1.7rem); font-size: 0.82rem; color: var(--cream);
  background: linear-gradient(transparent, rgba(10,9,9,0.72)); }
@media (max-width: 760px) { .detalle-grid { grid-template-columns: 1fr; } }

/* ---------- Cómo trabajamos: cuatro golpes cortos ---------- */
.beats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.beat__n { font-size: 0.62rem; letter-spacing: 0.28em; color: var(--cream-mute); }
.beat__t { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); font-weight: 300; margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--line); }
.beat__d { color: var(--cream-dim); font-size: 0.88rem; margin-top: 0.7rem; line-height: 1.6; }
@media (max-width: 860px) { .beats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .beats { grid-template-columns: 1fr; } .svc-grid { grid-template-columns: 1fr; } }
@media (min-width: 521px) and (max-width: 860px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } .svc--wide { aspect-ratio: 16 / 7; } }

/* ---------- Seamless (feature split) ---------- */
/* La imagen pesa más que el texto: 1.45 vs 1 (pedido del cliente). */
.feature { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.feature--rev { grid-template-columns: 1fr 1.45fr; }
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; border-radius: 3px; overflow: hidden; aspect-ratio: 5/4; }
.feature__media img, .feature__media video { width: 100%; height: 100%; object-fit: cover; }
.feature__media--phone { aspect-ratio: auto; display: grid; place-items: center; background: transparent; }
.phone { width: min(300px, 74%); border-radius: 34px; overflow: hidden; border: 8px solid #0c0a08;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(243,240,234,0.06); }
.feature__body h3 { margin-bottom: 1.3rem; }
.feature__list { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.feature__list li { display: flex; gap: 0.9rem; align-items: baseline; color: var(--cream-dim); font-size: 0.95rem; }
.feature__list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.proj { position: relative; overflow: hidden; border-radius: 6px; min-height: 300px; }
.proj--wide { grid-column: span 7; }
.proj--tall { grid-column: span 5; }
.proj--half { grid-column: span 6; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.8s; filter: brightness(0.72); }
.proj:hover img { transform: scale(1.06); filter: brightness(0.85); }
.proj__meta { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(1.3rem, 3vw, 2rem);
  background: linear-gradient(transparent, rgba(12,9,6,0.9)); }
.proj__cat { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.proj__name { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); font-weight: 300; margin-top: 0.4rem; }
.proj__credit { color: var(--cream-mute); font-size: 0.76rem; margin-top: 0.4rem; letter-spacing: 0.04em; }

/* ---------- Brands (muro de logos reales, monocromo) ---------- */
.brands { --scale: 1; display: flex; flex-wrap: wrap; gap: clamp(2.2rem, 6vw, 5.2rem);
  align-items: center; justify-content: center; padding-block: 2.4rem; }
.brands__k { flex-basis: 100%; text-align: center; font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cream-mute); margin-bottom: 0.4rem; }
.brand-logo { display: block; background-color: currentColor; color: var(--cream-mute); opacity: 0.62;
  height: calc(var(--h) * var(--scale)); width: calc(var(--h) * var(--scale) * var(--ar));
  transition: color 0.45s var(--ease), opacity 0.45s var(--ease);
  -webkit-mask: var(--src) no-repeat center / contain; mask: var(--src) no-repeat center / contain; }
.brand-logo:hover { color: var(--cream); opacity: 1; }
@media (max-width: 640px) { .brands { --scale: 0.74; gap: 1.6rem 2.4rem; } }

/* ---------- Film (video del cliente, enmarcado tipo bezel AVI) ---------- */
.film { position: relative; }
.film__head { text-align: center; max-width: 46ch; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.film__k { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.film__t { font-family: var(--serif); font-weight: 200; text-transform: uppercase; letter-spacing: 0.04em;
  line-height: 1.12; font-size: clamp(1.6rem, 1rem + 1.9vw, 2.5rem); margin-top: 0.9rem; }
.film__sub { color: var(--cream-dim); margin-top: 1rem; font-size: 0.98rem; }

.film__frame { position: relative; max-width: 1080px; margin-inline: auto; border-radius: 18px;
  padding: clamp(8px, 1.1vw, 14px); background: linear-gradient(150deg, rgba(243,240,234,0.15), rgba(255,255,255,0.05) 38%, rgba(0,0,0,0.35));
  box-shadow: 0 50px 110px -40px rgba(0,0,0,0.85), 0 0 0 1px var(--line) inset; }
.film__screen { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.film__screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
  transition: opacity 0.7s var(--ease); }
.film__scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,16,16,0.28), transparent 40%, rgba(18,16,16,0.55));
  transition: opacity 0.7s var(--ease); }
.film__play { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(66px, 7vw, 88px); height: clamp(66px, 7vw, 88px); border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--cream);
  background: rgba(20,15,11,0.42); border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(14px);
  transition: transform 0.5s var(--ease), background 0.4s, opacity 0.5s var(--ease); }
.film__play:hover { transform: translate(-50%, -50%) scale(1.07); background: rgba(243,240,234,0.18); }
/* El path del triangulo ya viene opticamente centrado en el viewBox:
   un margin-left aqui lo corre por segunda vez y se ve chueco. */
.film__play svg { width: 26%; fill: currentColor; }
.film__play.is-loading { animation: filmPulse 1.4s ease-in-out infinite; }
@keyframes filmPulse { 0%,100% { opacity: 1 } 50% { opacity: 0.42 } }
.film__cap { position: absolute; z-index: 4; left: clamp(1rem, 2.4vw, 2rem); bottom: clamp(1rem, 2.4vw, 1.6rem);
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim);
  transition: opacity 0.6s var(--ease); pointer-events: none; }
.film__frame.playing .film__poster, .film__frame.playing .film__scrim,
.film__frame.playing .film__play,   .film__frame.playing .film__cap { opacity: 0; pointer-events: none; }

/* ---------- Agenda ---------- */
.agenda { max-width: 1000px; margin-inline: auto; }
.agenda__frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--ink-2); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.8); }
.agenda__frame iframe { display: block; width: 100%; height: 760px; border: 0; }
.agenda__foot { text-align: center; color: var(--cream-mute); font-size: 0.85rem; margin-top: 1.4rem; }
.agenda__foot a { color: var(--accent); border-bottom: 1px solid rgba(243,240,234,0.32); }
.agenda__pend { text-align: center; border: 1px solid var(--line); border-radius: 16px;
  background: var(--ink-2); padding: clamp(2.4rem, 7vw, 4.5rem) clamp(1.2rem, 4vw, 3rem); }
.agenda__k { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 720px) { .agenda__frame iframe { height: 1020px; } }

/* Solicitud de cita (mientras AVI no tenga calendario en línea) */
.agenda__cita { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2);
  padding: clamp(1.6rem, 4vw, 3rem); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.8); }
.agenda__pasos { list-style: none; margin-top: 2.2rem; display: grid; gap: 1rem; }
.agenda__pasos li { display: flex; gap: 0.9rem; align-items: baseline;
  color: var(--cream-dim); font-size: 0.9rem; line-height: 1.55;
  border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.agenda__pasos span { font-size: 0.66rem; letter-spacing: 0.2em; color: var(--cream-mute); }
.agenda__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.agenda__opt { text-transform: none; letter-spacing: 0; color: var(--cream-mute); }
/* El <select> no estaba en la regla de los campos: sin esto sale con el
   estilo del sistema (blanco) en medio de un formulario oscuro. */
.contact__form select { background: rgba(243,240,234,0.04); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.9rem 2.4rem 0.9rem 1rem; color: var(--cream); font: inherit;
  font-size: 16px; letter-spacing: 0; text-transform: none; appearance: none;
  transition: border-color 0.3s var(--ease);
  background-image: linear-gradient(45deg, transparent 50%, var(--cream-mute) 50%),
                    linear-gradient(135deg, var(--cream-mute) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.85rem) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.contact__form select:focus { outline: none; border-color: var(--accent); }
/* Las opciones las pinta el sistema: en modo claro salían texto crema
   sobre fondo blanco, ilegibles. */
.contact__form select option { background: var(--ink-2); color: var(--cream); }
/* El date de iOS/Safari se encoge y pierde el color heredado. */
.contact__form input[type="date"] { min-height: 3.15rem; -webkit-appearance: none; }
.contact__form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.75); cursor: pointer; }
@media (max-width: 860px) {
  .agenda__cita { grid-template-columns: 1fr; }
  .agenda__pasos { margin-top: 1.6rem; }
}
/* El input date tiene un ancho mínimo propio (mm/dd/yyyy + el icono): en dos
   columnas por debajo de ~560px se come la mitad de la fila y la franja queda
   apretada. En teléfono van uno debajo del otro. */
@media (max-width: 560px) { .agenda__row { grid-template-columns: 1fr; } }

/* CTA de agenda en contacto */
.agenda-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2);
  padding: clamp(1.6rem, 4vw, 2.6rem); }
.agenda-cta__k { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }

/* Estado "recibido" del formulario */
.contact__ok h3 { font-family: var(--serif); font-weight: 200; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.5rem; color: var(--accent); }
.contact__ok p { color: var(--cream-dim); margin-top: 0.8rem; font-size: 0.95rem; line-height: 1.6; }
.contact__ok-next { border-top: 1px solid var(--line-soft); padding-top: 1.2rem; margin-top: 1.4rem !important; }
.contact__ok .btn { margin-top: 1.2rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: 1.4rem; }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scrollx 34s linear infinite; }
.marquee__track span { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(1.2rem, 1rem + 1.4vw, 2rem); color: var(--cream-mute); font-weight: 200; display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::after { content: '·'; color: var(--accent); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Closer / Contact ---------- */
.closer { position: relative; overflow: hidden; text-align: center; }
.closer__media { position: absolute; inset: 0; z-index: 0; }
.closer__media video, .closer__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.closer__media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 40%, rgba(18,13,10,0.4), var(--ink) 82%); }
.closer .wrap { position: relative; z-index: 1; }
.closer__q { font-family: var(--serif); font-weight: 200; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(2rem, 1rem + 4.6vw, 5rem); line-height: 1.06; max-width: 16ch; margin-inline: auto; }
.closer__sub { margin: 1.6rem auto 2.4rem; color: var(--cream-dim); max-width: 46ch; }
.closer__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__logo { width: 100px; color: var(--cream); margin-bottom: 1.2rem; }
.footer__tag { color: var(--cream-dim); font-size: 0.9rem; max-width: 32ch; }
.footer__col h4 { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-mute); margin-bottom: 1.1rem; }
.footer__col a, .footer__col p { display: block; color: var(--cream-dim); font-size: 0.9rem; margin-bottom: 0.6rem; transition: color 0.35s; }
.footer__col a:hover { color: var(--accent); }
/* Un link DENTRO de un <p> (ej. "Instagram · @avi.rd") es parte de la línea,
   no un item de la lista de arriba: sin la regla se lleva el display:block y
   se parte en dos renglones. */
.footer__col p a { display: inline; margin-bottom: 0; }
/* La ubicación no es un canal de contacto: va separada y más apagada. */
.footer__col p.footer__loc { margin-top: 1rem; color: var(--cream-mute); max-width: 24ch; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-top: 1.8rem; }
.footer__copy { font-size: 0.76rem; color: var(--cream-mute); letter-spacing: 0.04em; }
.powered { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-mute); transition: color 0.35s; }
.powered:hover { color: var(--cream); }
.powered img, .powered svg { height: 18px; width: auto; opacity: 0.8; }

/* ---------- Page hero (interior pages) ---------- */
.phero { position: relative; padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.phero__bg { position: absolute; inset: 0; z-index: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.phero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,13,10,0.6), var(--ink)); }
.phero .wrap { position: relative; z-index: 1; }
.phero__crumb { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.phero__lede { margin-top: 1.5rem; }

/* whatsapp float */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 70;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); box-shadow: 0 14px 34px -10px rgba(0,0,0,0.6);
  transition: transform 0.4s var(--ease); }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .control { justify-self: stretch; width: 100%; }
  .feature, .feature--rev { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .proj--wide, .proj--tall, .proj--half { grid-column: span 12; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   EL RECORRIDO — interactive walk-through hero
   ============================================================ */
.walk { position: relative; height: 560vh; background: var(--ink); }
.walk__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }

.station { position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: visibility 0.6s; will-change: opacity; }
.station.is-visible { visibility: visible; opacity: 1; }   /* opacity:1 = no-JS fallback; JS sets inline opacity for crossfade */
.station__bg { position: absolute; inset: 0; overflow: hidden; }
.station__bg img, .station__bg video { width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transform-origin: center; }
.station__grade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,13,10,0.45) 0%, rgba(18,13,10,0) 30%, rgba(18,13,10,0.15) 55%, rgba(18,13,10,0.9) 100%);
  transition: background 1.6s var(--ease), opacity 1.6s var(--ease); }

/* room caption (small, editorial — no chunky UI) */
.station__cap { position: absolute; left: var(--pad); bottom: clamp(3rem,8vw,6rem); z-index: 6; max-width: 30ch; }
.station__room { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: clamp(1.6rem,1rem+2.6vw,3rem); font-weight: 200; display: block; }
.station__cap p { color: var(--cream-dim); margin-top: 0.5rem; font-size: 0.98rem; }

/* hotspot — subtle pulsing point, tap to trigger */
.hotspot { position: absolute; left: var(--x); top: var(--y); z-index: 7;
  width: 54px; height: 54px; transform: translate(-50%,-50%);
  display: grid; place-items: center; opacity: 0; transition: opacity 0.8s var(--ease); }
.station.is-current .hotspot { opacity: 1; }
.hotspot__dot { position: relative; width: 13px; height: 13px; border-radius: 50%;
  background: rgba(255,244,230,0.95); box-shadow: 0 0 14px 3px rgba(255,214,160,0.7); }
.hotspot__dot::before, .hotspot__dot::after { content: ''; position: absolute; inset: 50%;
  width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  border: 1px solid rgba(255,224,180,0.6); animation: ping 2.6s var(--ease) infinite; }
.hotspot__dot::after { animation-delay: 1.3s; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 80%,100% { transform: scale(3.6); opacity: 0; } }
.hotspot__label { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream); background: rgba(18,16,16,0.5); backdrop-filter: blur(6px);
  padding: 0.4em 0.8em; border-radius: 100px; border: 1px solid var(--line);
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none; }
.hotspot:hover .hotspot__label, .station.is-current .hotspot .hotspot__label { opacity: 1; }
.station.fx-on .hotspot { opacity: 0; pointer-events: none; }

/* — FX: light pools ignite in sequence — */
.fx-lights { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fx-lights .lp { position: absolute; border-radius: 50%; opacity: 0; transform: scale(0.6);
  mix-blend-mode: screen; transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); }
.station.fx-on .fx-lights .lp { opacity: 1; transform: none; }
.station.fx-on .fx-lights .lp:nth-child(2) { transition-delay: 0.25s; }
.station.fx-on .fx-lights .lp:nth-child(3) { transition-delay: 0.5s; }
.station.fx-on .fx-lights .lp:nth-child(4) { transition-delay: 0.75s; }

/* — FX: multizone sound ripples — */
.fx-waves { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fx-waves .wv { position: absolute; left: var(--wx); top: var(--wy); width: 24px; height: 24px;
  margin: -12px 0 0 -12px; border-radius: 50%; border: 1px solid rgba(255,224,180,0.5); opacity: 0; }
.station.fx-on .fx-waves .wv { animation: ripple 3.2s var(--ease) infinite; }
.station.fx-on .fx-waves .wv:nth-child(2) { animation-delay: 1.1s; }
.station.fx-on .fx-waves .wv:nth-child(3) { animation-delay: 2.2s; }
@keyframes ripple { 0% { transform: scale(0.4); opacity: 0.7; } 100% { transform: scale(12); opacity: 0; } }

/* — FX: cinema (blackout descends + screen glow) — */
.fx-shade { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 66%;
  transform: translateY(-104%); transition: transform 2.4s var(--ease);
  background: linear-gradient(180deg, #0a0705, #17110c);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 3px, transparent 3px 36px), linear-gradient(180deg,#0a0705,#17110c);
  box-shadow: 0 24px 46px rgba(0,0,0,0.55); }
.fx-shade::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.5)); border-bottom: 2px solid rgba(243,240,234,0.28); }
.fx-screen { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none;
  background: radial-gradient(40% 30% at 50% 42%, rgba(120,150,205,0.32), transparent 70%);
  transition: opacity 1.8s var(--ease); }
.fx-dark { position: absolute; inset: 0; z-index: 2; background: #0a0705; opacity: 0; pointer-events: none; transition: opacity 2.2s var(--ease); }
.station.fx-on .fx-shade { transform: translateY(0); }
.station.fx-on .fx-screen { opacity: 1; }
.station.fx-on .fx-dark { opacity: 0.66; }

/* — Station 5 closer — */
.station__close { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 1.4rem; padding: var(--pad); }
.station__close .avi-logo { width: clamp(150px,22vw,240px); color: var(--white); }
.station__close p { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 200; font-size: clamp(1.4rem,1rem+2vw,2.6rem); max-width: 18ch; }

/* HUD: persistent logo + scroll cue */
.walk__hud { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.walk__logo { position: absolute; left: var(--pad); top: calc(var(--nav-h) + 1.4rem); width: clamp(120px,15vw,170px); color: var(--white); transition: opacity 0.6s var(--ease); }
.walk__cue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-mute);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; transition: opacity 0.6s var(--ease); }
.walk__cue::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s var(--ease) infinite; }
.walk.scrolled .walk__logo, .walk.scrolled .walk__cue { opacity: 0; }

/* progress rail */
.walk__progress { position: absolute; left: 0; top: 0; height: 2px; width: 100%; z-index: 9; background: transparent; }
.walk__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }

@media (max-width: 640px) {
  .hotspot { width: 48px; height: 48px; }
  .station__cap { bottom: 7rem; }
}

/* ============================================================
   HERO — interior + criterio + trust card
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,16,16,0.62) 0%, rgba(18,16,16,0.05) 28%, rgba(18,16,16,0.2) 55%, rgba(18,16,16,0.92) 100%),
    radial-gradient(120% 80% at 82% 26%, transparent 42%, rgba(18,16,16,0.42)); }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: flex-end;
  padding-bottom: clamp(3.5rem, 8vw, 6rem); padding-top: calc(var(--nav-h) + 2rem); }
.hero__copy { max-width: 40ch; }
.hero__title { font-family: var(--serif); font-weight: 200; text-transform: uppercase; letter-spacing: 0.03em;
  line-height: 1.12; font-size: clamp(1.7rem, 0.9rem + 2.3vw, 2.85rem); max-width: 16ch; }
.hero__title em { font-style: normal; color: var(--accent); font-weight: 300; }
.hero__sub { margin-top: 1.5rem; max-width: 42ch; color: var(--cream-dim);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.18rem); }
.hero__actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scrollcue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-mute);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.hero__scrollcue::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero__trust { justify-self: end; width: min(300px, 100%);
  background: rgba(20,15,11,0.5); border: 1px solid var(--line); backdrop-filter: blur(16px);
  border-radius: 16px; padding: 1.3rem 1.4rem; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7); }
.hero__trust-k { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cream-mute); }
.hero__trust-brands { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; margin: 0.8rem 0 1.2rem; }
.hero__trust-brands span { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.04em; color: var(--cream); }
.hero__trust-proj { border-top: 1px solid var(--line-soft); padding-top: 1rem; display: grid; gap: 0.25rem; }
.hero__trust-cat { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.hero__trust-proj strong { font-family: var(--serif); font-weight: 300; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.2rem; }
.hero__trust-proj small { color: var(--cream-mute); font-size: 0.78rem; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero__trust { justify-self: stretch; width: 100%; }
  .hero__copy { max-width: none; }
}

/* hero still: subtle ken-burns */
.hero__kb { animation: kenburns 30s ease-in-out infinite alternate; transform-origin: 60% 45%; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13); } }

/* ============================================================
   Showcase — La casa responde (interactive)
   ============================================================ */
.responder { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.responder__stage { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #0c0a08; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7); }
.responder__video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Cada clip vive en su propia capa precargada; el cambio es un crossfade,
   nunca un swap de src (eso dejaba el video en negro un instante). */
.responder__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.28s var(--ease); pointer-events: none; z-index: 1; }
.responder__layer.show { opacity: 1; }
.responder__badge { position: absolute; top: 1rem; left: 1rem; display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream);
  background: rgba(18,16,16,0.5); backdrop-filter: blur(6px); padding: 0.45em 0.85em; border-radius: 100px; border: 1px solid var(--line); }
.responder__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.responder__panel { display: flex; flex-direction: column; justify-content: center; }
.responder__sub { color: var(--cream-dim); max-width: 34ch; margin-bottom: 1.6rem; font-size: 1.02rem; }
.responder__actions { display: grid; gap: 0.7rem; }
.ract { text-align: left; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; color: var(--cream);
  font-size: 0.82rem; letter-spacing: 0.06em; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.3s var(--ease), opacity 0.3s; }
.ract::after { content: '→'; opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s; color: var(--accent); }
.ract:hover { border-color: var(--cream-mute); transform: translateY(-1px); }
.ract:hover::after { opacity: 1; transform: none; }
.ract.active { border-color: var(--accent); background: rgba(243,240,234,0.10); }
.ract.active::after { opacity: 1; transform: none; }
.ract[disabled] { opacity: 0.4; pointer-events: none; }
.responder__cta { margin-top: 1.6rem; align-self: flex-start; }
@media (max-width: 860px) { .responder { grid-template-columns: 1fr; } }

/* ---------- Responder dock: dimmer slider + icon toggles ---------- */
.responder__dock { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 0.25rem; padding: 0.45rem;
  border-radius: 16px; background: rgba(10,7,5,0.66); border: 1px solid var(--line);
  box-shadow: 0 18px 44px -18px rgba(0,0,0,0.75); }
.dimmer { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.85rem; color: var(--accent); }
.dimmer > svg { width: 22px; height: 22px; flex: none; }
/* El input mide 26px de alto para que se pueda agarrar con el dedo; la barra
   sigue siendo de 4px porque el color vive en el track, no en el elemento. */
.dimmer__range { -webkit-appearance: none; appearance: none; width: 118px; height: 26px;
  background: transparent; cursor: pointer; }
.dimmer__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px;
  background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill, 100%) 100% no-repeat, rgba(243,240,234,0.18); }
.dimmer__range::-moz-range-track { height: 4px; border-radius: 4px;
  background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill, 100%) 100% no-repeat, rgba(243,240,234,0.18); }
.dimmer__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px;
  margin-top: -5.5px; /* centra el thumb de 15px sobre la barra de 4px */
  border-radius: 50%; background: var(--cream); box-shadow: 0 0 9px rgba(243,240,234,0.55); cursor: pointer; }
.dimmer__range::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 9px rgba(243,240,234,0.55); cursor: pointer; }
.ric { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; width: 66px; padding: 0.6rem 0.3rem;
  border-radius: 12px; color: var(--cream-dim); cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease); }
.ric > svg { width: 24px; height: 24px; transition: filter 0.3s; }
.ric__label { font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ric:hover { color: var(--cream); background: rgba(243,240,234,0.06); transform: translateY(-2px); }
.ric.on { color: var(--accent); background: rgba(243,240,234,0.12); }
.ric.on > svg { filter: drop-shadow(0 0 7px rgba(243,240,234,0.45)); }
.dimmer + .ric { position: relative; }
.dimmer + .ric::before { content: ''; position: absolute; left: -3px; top: 20%; bottom: 20%; width: 1px; background: var(--line-soft); }
@media (max-width: 600px) {
  .responder__dock { flex-wrap: wrap; justify-content: center; gap: 0.2rem; left: 50%; width: max-content; max-width: 92%; }
  .dimmer__range { width: 84px; } .ric { width: 56px; }
}

/* ============================================================
   Internal pages — galleries, project heads, diario, contact
   ============================================================ */
.feature__media-inner { position: absolute; inset: 0; }
.feature__media-inner img, .feature__media-inner video { width: 100%; height: 100%; object-fit: cover; }

.proj-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.proj-head__cat { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.proj-head h2 { margin: 0.4rem 0 0.5rem; }
.proj-head__credit { color: var(--cream-mute); font-size: 0.9rem; letter-spacing: 0.03em; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4/5; display: block; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16/10; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); filter: brightness(1); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery__item--wide { grid-column: span 2; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .gallery__item, .gallery__item--wide { grid-column: auto; aspect-ratio: 4/3; } }

.diario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.diario-card { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.2rem); min-height: 220px; display: flex; flex-direction: column; gap: 0.8rem; transition: background 0.5s var(--ease); }
.diario-card:hover { background: var(--ink-2); }
.diario-card__tag { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.diario-card h3 { font-family: var(--serif); font-weight: 300; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); line-height: 1.2; margin-top: auto; }
@media (max-width: 760px) { .diario-grid { grid-template-columns: 1fr; } }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__list { margin-top: 2rem; display: grid; gap: 0.9rem; }
.contact__list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-soft); padding-bottom: 0.7rem; }
.contact__list .k { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-mute); }
.contact__list .v { font-size: 0.9rem; }
.contact__form { display: grid; gap: 1.1rem; }
.contact__form label { display: grid; gap: 0.5rem; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); }
.contact__form input, .contact__form textarea { background: rgba(243,240,234,0.04); border: 1px solid var(--line); border-radius: 10px;
  /* 16px NO es capricho: por debajo de eso Safari de iOS hace zoom al enfocar
     el campo y descuadra la página. Nunca bajarlo. */
  padding: 0.9rem 1rem; color: var(--cream); font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; transition: border-color 0.3s var(--ease); }
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--accent); }
.contact__form .btn { justify-self: start; margin-top: 0.4rem; }
.contact__note { font-size: 0.78rem; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* motion: subtle continuous ken-burns on the large background images */
.phero__bg img, .closer__media img, .criterio__media img {
  animation: kenburns 34s ease-in-out infinite alternate;
  transform-origin: 58% 42%;
}
@media (prefers-reduced-motion: reduce) {
  .phero__bg img, .closer__media img, .criterio__media img, .hero__kb { animation: none; }
}

/* ---------- Lightbox ----------
   Las fotos abrían el JPG crudo y el visitante quedaba varado en un
   archivo sin nav ni manera de volver. Ahora abren encima de la página. */
/* `display: grid` le gana a la regla [hidden] del navegador: sin esto, al
   cerrar el lightbox queda un overlay invisible encima comiéndose los
   clics de toda la página. */
.lb[hidden] { display: none; }
.lb { position: fixed; inset: 0; z-index: 90; display: grid; align-items: center;
  grid-template-columns: auto 1fr auto; gap: clamp(.4rem, 2vw, 1.5rem);
  padding: clamp(3.4rem, 7vw, 4.5rem) clamp(.6rem, 3vw, 3rem);
  background: rgba(10, 8, 7, 0.94); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .26s var(--ease); }
.lb.is-open { opacity: 1; }
body.lb-open { overflow: hidden; }

.lb__fig { grid-column: 2; display: grid; justify-items: center; gap: 1rem; min-width: 0; }
.lb__img { max-width: 100%; max-height: calc(100vh - 11rem); object-fit: contain;
  border-radius: 8px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
  opacity: 0; transition: opacity .3s var(--ease); }
.lb__img.is-lista { opacity: 1; }
.lb__cap { display: flex; gap: 1.2rem; align-items: baseline; flex-wrap: wrap; justify-content: center;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-mute);
  text-align: center; }
.lb__n { color: var(--cream-dim); }

.lb__x, .lb__nav { display: grid; place-items: center; cursor: pointer; color: var(--cream);
  background: rgba(243,240,234,.06); border: 1px solid var(--line); border-radius: 50%;
  transition: background .3s, border-color .3s, transform .3s var(--ease); }
.lb__x:hover, .lb__nav:hover { background: rgba(243,240,234,.16); border-color: rgba(243,240,234,.42); }
.lb__x { position: absolute; top: clamp(.8rem, 2.4vw, 1.6rem); right: clamp(.8rem, 2.4vw, 1.6rem);
  width: 46px; height: 46px; z-index: 2; }
.lb__x svg { width: 20px; height: 20px; }
.lb__nav { width: 46px; height: 46px; align-self: center; }
.lb__nav svg { width: 18px; height: 18px; }
.lb__nav--prev { grid-column: 1; }
.lb__nav--next { grid-column: 3; }
.lb__x:focus-visible, .lb__nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* En teléfono las flechas estorban más de lo que ayudan: se pasa con swipe
   y quedan los puntos de agarre grandes abajo. */
@media (max-width: 640px) {
  .lb { grid-template-columns: 1fr; padding-inline: .6rem; }
  .lb__fig { grid-column: 1; }
  .lb__nav { position: absolute; bottom: clamp(.8rem, 3vw, 1.4rem); width: 52px; height: 52px; }
  .lb__nav--prev { left: 22%; }
  .lb__nav--next { right: 22%; }
  .lb__img { max-height: calc(100vh - 13rem); }
}
@media (prefers-reduced-motion: reduce) {
  .lb, .lb__img { transition: none; }
}

/* Señal de que la foto se puede abrir (antes no había ninguna) */
.gallery__item, .proj-shot { cursor: zoom-in; }

/* Acceso al panel de AVI: discreto, para ellos, no para el visitante */
.footer__panel { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream-mute); transition: color 0.35s; margin-inline-start: auto; }
.footer__panel:hover { color: var(--accent); }

/* ---------- Ficha de proyecto ----------
   Antes cada proyecto era UNA foto suelta: no representaba la obra y no
   había nada que recorrer. Ahora van varias, y todas abren en el lightbox. */
.proyecto { margin-inline: auto; max-width: 1160px; padding-inline: var(--pad);
  margin-block: clamp(3.5rem, 9vw, 7rem); }
.proyecto__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.4vw, 1.1rem); }
.proj-shot--lead { grid-column: 1 / -1; }
/* Con solo dos fotos, la segunda a media columna deja un hueco al lado:
   que ocupe el ancho igual que la portada. */
.proyecto__fotos > .proj-shot:nth-child(2):last-child { grid-column: 1 / -1; }
/* Todas al mismo encuadre: las del cliente vienen en formatos distintos. */
.proyecto__fotos .proj-shot { aspect-ratio: 16 / 9; }
.proyecto .proj-head { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
@media (max-width: 640px) { .proyecto__fotos { grid-template-columns: 1fr; } }

.shead__sub { color: var(--cream-mute); font-size: 0.95rem; margin-top: .7rem; max-width: 46ch; }
