/* InfinityGlow Solutions — v4 (2026-11-03)
   Dirección: editorial claro. Negro de marca en header, hero y footer;
   contenido sobre blanco; serif editorial + grotesca limpia; fotos de espacios sin personas. */

:root {
  --black: #000000;
  --ink: #0e1415;
  --muted: #4a5759;
  --line: #dde4e6;
  --mist: #f1f5f6;
  --white: #ffffff;
  --cyan: #0cc0df;
  --teal: #0b7d91;
  --on-black: #e9eef0;
  --on-black-muted: #a9b4b7;
  --line-dark: #253033;

  /* Letra B elegida por COQUETO (2026-11-04): Caslon de rótulo para títulos + Hanken Grotesk para todo lo demás. */
  --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --section-y: clamp(72px, 9vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.hero-sub, .closing p { text-wrap: balance; }
p, .svc-desc, .who-services { text-wrap: pretty; }

/* Anillo de foco con 3:1 o más: azul petróleo de marca sobre fondos claros, cian sobre negro (4 nov). */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .on-black :focus-visible,
.site-footer :focus-visible, .mobile-bar :focus-visible, .skip-link:focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--black); padding: 10px 16px;
  font-family: var(--sans); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--teal); margin: 0 0 20px;
}
.label::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.on-black .label { color: var(--cyan); }

.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.25rem, 1.4rem + 2.8vw, 4rem);
  line-height: 1.04; letter-spacing: -0.005em;
}
.h2 .sans { font-family: var(--sans); font-weight: 300; letter-spacing: -0.02em; }

.lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); color: var(--muted); max-width: 38ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 2px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--cyan); color: var(--black); border: 1px solid var(--cyan); }
.btn-primary:hover { background: #3fd0ea; border-color: #3fd0ea; }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-dark { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--sans); font-weight: 500; color: var(--teal);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.text-link:hover { color: var(--ink); }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; font-family: var(--sans); font-size: 1rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-black); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan); }
.nav .nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 500; }
.nav .nav-phone svg { width: 17px; height: 17px; }
.nav .btn { color: var(--black); }
.nav .btn:hover { color: var(--black); }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--white); }
/* Primer pantallazo completo (pedido de COQUETO, 4 nov): título, frase y botones visibles al abrir, sin scroll,
   también en laptops bajas (Windows al 150%: ~1280x553). Los espacios y el título se ajustan a la ALTURA de la ventana (svh). */
.hero-where { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; margin: 0 0 clamp(14px, 3svh, 28px); font-family: var(--sans); font-size: 0.9375rem; color: var(--on-black); }
.hero-where::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { font-size: clamp(2.75rem, 0.9rem + 4.3vw, 5.25rem); font-size: clamp(2.75rem, min(0.9rem + 4.3vw, 13svh), 5.25rem); line-height: 1; letter-spacing: -0.005em; margin-bottom: 32px; margin-bottom: clamp(16px, 3.6svh, 32px); }
.hero h1 .l1, .hero h1 .l2 { display: block; font-family: var(--serif); font-weight: 400; line-height: 1; }
.hero h1 .l1 { max-width: 7ch; }
.hero-sub { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); line-height: 1.45; color: var(--on-black); max-width: 30ch; margin-bottom: 36px; margin-bottom: clamp(18px, 4svh, 36px); }
.hero .actions { margin-bottom: 22px; margin-bottom: clamp(10px, 2.4svh, 22px); }
.hero-note { font-family: var(--sans); font-size: 0.9375rem; color: var(--on-black-muted); margin: 0; }

/* Hero a pantalla completa: la foto es el escenario y el texto va encima. */
.hero-full {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 900px);
}
.hero-content { position: relative; z-index: 3; padding-block: clamp(72px, 10vw, 140px); padding-block: clamp(16px, 4svh, 140px); }
.hero-content > * { max-width: 640px; }
.hero-content .hero-sub { max-width: 30ch; }

/* Capa de la foto: el JS mueve --mx/--my (mouse) y --sy/--ss (scroll) para dar profundidad. */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0) scale(var(--ss, 1.02));
  will-change: transform;
}
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 50%; transform-origin: 62% 52%;
  /* Curva de cámara: más contraste y un poco menos de saturación, como una foto de arquitectura revelada. */
  filter: contrast(1.05) saturate(0.95) brightness(1.02);
}
/* Video del hero (montaje de las 5 escenas). Arranca por JS; mientras tanto se ve la foto. */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%;
  filter: contrast(1.05) saturate(0.95) brightness(1.02);
  opacity: 0; transition: opacity .8s ease;
}
.hero-video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
/* Botón de pausa del video (WCAG 2.2.2). Solo aparece con JavaScript y si el video puede correr. */
.hero-pause {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 4;
  min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.6); border-radius: 2px;
  background: rgba(0,0,0,.55); color: var(--white); font-family: var(--sans); font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s ease;
}
.hero-pause:hover { background: rgba(0,0,0,.8); }
.hero-pause[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-pause { display: none; } }
.fx { position: absolute; inset: 0; pointer-events: none; }
/* Tono partido: luces cálidas arriba (lámparas), sombras frías abajo (cian de la marca). */
.fx-tone {
  background: linear-gradient(180deg, rgba(255, 214, 170, .26) 0%, rgba(255, 214, 170, 0) 45%, rgba(10, 150, 175, 0) 62%, rgba(10, 150, 175, .12) 100%);
  mix-blend-mode: soft-light;
}
/* Brillo del piso pulido. */
.fx-floor { background: linear-gradient(to top, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%); mix-blend-mode: screen; }
/* Reflejo de luz que cruza el vidrio cada tanto. */
.fx-light { overflow: hidden; mix-blend-mode: screen; }
.fx-light::before {
  content: ""; position: absolute; top: -15%; bottom: -15%; left: 0; width: 38%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 48%, rgba(200,244,252,.12) 54%, rgba(255,255,255,0) 100%);
  transform: translateX(-140%) skewX(-14deg); opacity: 0;
}
/* Legibilidad: negro de la marca a la izquierda y abajo, viñeta de lente en los bordes. */
.fx-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.76) 30%, rgba(0,0,0,.42) 44%, rgba(0,0,0,.12) 56%, rgba(0,0,0,0) 66%),
    radial-gradient(ellipse 95% 95% at 64% 46%, rgba(0,0,0,0) 62%, rgba(0,0,0,.28) 100%);
}
/* Grano fino de película sobre todo el cuadro. */
.fx-grain { z-index: 2; background: url("/assets/img/grain.webp") repeat; background-size: 192px; opacity: .05; mix-blend-mode: overlay; }

@media (prefers-reduced-motion: no-preference) {
  /* Entra con un zoom lento y luego "respira" muy despacio. La foto se ve desde el primer cuadro. */
  .hero-media img { animation: hero-in 2.4s cubic-bezier(.16, 1, .3, 1) both; }
  .fx-light::before { animation: glass-sweep 13s cubic-bezier(.45, 0, .2, 1) 1.4s infinite; }
}
@keyframes hero-in { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes glass-sweep {
  0% { transform: translateX(-140%) skewX(-14deg); opacity: 0; }
  4% { opacity: 1; }
  26% { transform: translateX(300%) skewX(-14deg); opacity: 1; }
  30%, 100% { transform: translateX(300%) skewX(-14deg); opacity: 0; }
}

/* Foto del hero de páginas internas (Services). */
.hero-photo { position: relative; overflow: hidden; background: #1a1a1a; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

.figure { position: relative; margin: 0; overflow: hidden; background: var(--mist); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
/* El mismo revelado de cámara en todas las fotos, con grano fino, para que parezcan de una sola sesión. */
.figure img, .hero-photo img { filter: contrast(1.05) saturate(0.92) brightness(1.02); }
.band img { filter: contrast(1.05) saturate(0.92) brightness(1.02); object-position: 50% 62%; }
.who-photo img { object-position: 58% 50%; }
.how-photo img { object-position: 42% 55%; }
.figure::after, .hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/grain.webp") repeat; background-size: 192px; opacity: .04; mix-blend-mode: overlay;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
/* Dos secciones grises seguidas (Services: tipos de local + cierre) no suman dos márgenes. */
.section-mist + .section-mist { padding-top: 0; }
.section-mist { background: var(--mist); --teal: #0a7486; } /* 4.96:1 sobre mist; #0b7d91 da 4.39 */
.on-black { background: var(--black); color: var(--white); }

.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head > :first-child { grid-column: 1 / span 7; }
.section-head > :last-child:not(:first-child) { grid-column: 9 / -1; justify-self: end; }

/* Who we clean for */
.who-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.who-photo { grid-column: 1 / span 5; aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
.who-list-wrap { grid-column: 7 / -1; }
.who-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.who-list li { padding: 26px 0 24px; border-bottom: 1px solid var(--line); }
.who-name { font-family: var(--serif); font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem); line-height: 1.12; }
.who-services { margin: 8px 0 0; font-size: 0.9375rem; color: var(--muted); }
.who-services span { white-space: nowrap; }
.who-more { margin-top: 32px; }

/* What we clean */
.band { aspect-ratio: 21 / 8; margin-bottom: clamp(40px, 5vw, 64px); }
.services-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.services-grid li { border-top: 1px solid #cfd8db; }
.services-grid a { display: flex; flex-direction: column; gap: 6px; padding: 22px 0 28px; text-decoration: none; height: 100%; }
.svc-name { font-family: var(--sans); font-size: 1.1875rem; font-weight: 500; line-height: 1.3; }
.svc-desc { font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }
.services-grid a:hover .svc-name { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.how-photo { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.how-copy { grid-column: 7 / -1; }
.how-copy .h2 { margin-bottom: clamp(32px, 4vw, 48px); }
.steps { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 4px 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-size: 3rem; line-height: 0.9; color: var(--teal); }
.step-title { font-family: var(--sans); font-size: 1.375rem; font-weight: 500; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* What you can count on: la rutina de calidad como una sola frase grande */
.count-title { margin-bottom: clamp(28px, 3vw, 40px); }
.statement {
  margin: 0; max-width: 38ch;
  font-family: var(--serif); font-weight: 400; color: var(--on-black-muted);
  font-size: clamp(1.75rem, 1.1rem + 2.1vw, 3.25rem); line-height: 1.22; letter-spacing: -0.005em; text-wrap: pretty;
}
/* Las frases subrayadas no se parten entre líneas. */
.statement em { font-style: normal; color: var(--white); box-shadow: inset 0 -0.08em 0 var(--cyan); white-space: nowrap; }

.promises { list-style: none; margin: clamp(64px, 8vw, 112px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.promises li { border-top: 1px solid var(--line-dark); padding: 24px 0 32px; }
.promises h3 { font-family: var(--sans); font-size: 1.1875rem; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.promises p { margin: 0; color: var(--on-black-muted); font-size: 1rem; }

/* FAQ compacto (pedido de COQUETO, 4 nov): dos columnas en escritorio y filas más bajas.
   En celular se ven las primeras preguntas y el resto queda detrás de un botón (solo con JS). */
.faq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 44px; padding: 15px 0; cursor: pointer; list-style: none;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--teal), var(--teal)) center / 14px 1.5px no-repeat,
              linear-gradient(var(--teal), var(--teal)) center / 1.5px 14px no-repeat;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--teal); }
.faq-list .answer { padding: 0 40px 18px 0; color: var(--muted); font-size: 1rem; }
.faq-list .answer p { margin: 0; }
.faq-more { display: none; }
.faq-more[hidden] { display: none !important; }

/* Closing */
.closing-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing .h2 { max-width: 16ch; margin-bottom: 20px; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 5rem); }
.closing p { font-size: 1.25rem; color: var(--muted); margin-bottom: 36px; }
.closing .actions { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--black); color: var(--white); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); min-height: 520px; }
.page-hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 7vw, 96px) clamp(28px, 4vw, 64px) clamp(56px, 7vw, 96px)
           max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.75rem, 1.6rem + 3.6vw, 5rem); line-height: 1; letter-spacing: -0.005em; margin-bottom: 24px; max-width: 14ch; }
.page-hero p { color: var(--on-black); font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem); max-width: 44ch; margin-bottom: 32px; }
.page-hero.compact .page-hero-grid { grid-template-columns: 1fr; min-height: 0; }
.page-hero.compact h1 { max-width: none; }

/* Services page */
.svc-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.svc-block:last-child { border-bottom: 1px solid var(--line); }
.svc-block .main { grid-column: 1 / span 7; }
.svc-block h2 { font-family: var(--sans); font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); font-weight: 500; line-height: 1.2; margin-bottom: 12px; }
.svc-block .main p { color: var(--muted); margin: 0; max-width: 46ch; }
.svc-block .side { grid-column: 9 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.good-for { font-size: 1rem; color: var(--ink); line-height: 1.55; margin: 0; }
.good-for strong { display: block; font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--teal); margin-bottom: 4px; }

.types-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.types-grid li { border-top: 1px solid #cfd8db; padding: 24px 0 32px; }
.types-grid h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; margin-bottom: 10px; }
.types-grid .type-links { list-style: none; margin: 0; padding: 0; }
.types-grid .type-links li { border: 0; padding: 0; }
.types-grid .type-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-bottom: 1px solid #dbe3e5; color: var(--teal); text-decoration: none; font-size: 0.9375rem; }
.types-grid .type-links a::after { content: "\2192"; color: var(--muted); }
.types-grid .type-links a:hover { color: var(--ink); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.contact-form { grid-column: 1 / span 7; }
.contact-aside { grid-column: 9 / -1; border-top: 1px solid var(--line); padding-top: 24px; }
.contact-aside h2 { font-family: var(--serif); font-size: 2rem; margin-bottom: 20px; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); margin-top: 18px; }
.contact-aside dd { margin: 4px 0 0; font-family: var(--sans); font-size: 1.25rem; font-weight: 500; }
.contact-aside dd a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--teal); }
.contact-aside dd a:hover { text-decoration: underline; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; }
.field .req { color: var(--teal); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #7b8a8d; /* 3.58:1 sobre blanco; antes #b9c5c8 (1.77:1) */ border-radius: 2px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3261e; }
.field .error { font-size: 0.875rem; color: #b3261e; min-height: 0; }
.form-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot p { margin: 0; font-size: 0.875rem; color: var(--muted); }
.form-status { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 2px; background: var(--mist); }
.form-status[hidden] { display: none; }
.form-status p { margin: 0; }
.form-status .preview-note { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }

/* Privacy */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--sans); font-size: 1.375rem; font-weight: 500; margin: 40px 0 12px; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--teal); display: inline-block; padding-block: 11px; margin-block: -11px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--on-black); padding: clamp(64px, 7vw, 96px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand img { width: 220px; margin-bottom: 20px; }
.footer-brand p { color: var(--on-black-muted); max-width: 30ch; margin: 0; }
.footer-col { grid-column: span 3; font-family: var(--sans); }
.footer-col h2 { font-family: var(--sans); font-size: 0.9375rem; color: var(--cyan); margin-bottom: 8px; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-black); font-size: 1.0625rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-col:first-of-type { grid-column: 7 / span 3; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.875rem; color: var(--on-black-muted); }
.footer-bottom p { margin: 0; }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid, .promises, .types-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 22px; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .brand img { height: 44px; }
  .nav .nav-phone, .nav .btn { display: none; }
  .nav { gap: 20px; font-size: 0.9375rem; }

  .page-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .page-hero-grid .hero-photo { order: -1; aspect-ratio: 16 / 9; }
  .page-hero-copy { padding: 40px var(--gutter) 56px; }
  /* Celular: la foto llena la pantalla y el texto va abajo sobre el negro. */
  .hero-full { align-items: flex-end; min-height: calc(100svh - var(--header-h)); }
  .hero-pause { top: 16px; bottom: auto; }
  .hero-content { padding-block: 120px 48px; padding-block: clamp(24px, 8svh, 120px) clamp(20px, 4svh, 48px); }
  .hero-media img { object-position: 64% 50%; }
  .fx-scrim {
    background:
      linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.82) 42%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.1) 100%),
      radial-gradient(ellipse 120% 80% at 60% 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,.45) 100%);
  }

  .section-head > :first-child, .section-head > :last-child:not(:first-child) { grid-column: 1 / -1; justify-self: start; }
  .who-photo, .who-list-wrap, .how-photo, .how-copy,
  .contact-form, .contact-aside, .footer-brand, .footer-col, .footer-col:first-of-type { grid-column: 1 / -1; justify-self: stretch; }
  .who-photo { position: static; aspect-ratio: 16 / 10; }
  .faq-cols { grid-template-columns: 1fr; }
  .faq-rest { border-top: 0; }
  .faq.is-collapsed .faq-rest { display: none; }
  .faq.is-collapsed .faq-more { display: inline-flex; margin-top: 24px; }
  .how-photo { aspect-ratio: 16 / 10; }
  .band { aspect-ratio: 16 / 10; }


  .svc-block .main, .svc-block .side { grid-column: 1 / -1; }
  .faq-list .answer { padding-right: 0; }
}

@media (max-width: 759px) {
  body { padding-bottom: 72px; }
  .services-grid, .promises, .types-grid, .form-grid { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--black); border-top: 1px solid var(--line-dark);
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 12px; }
  .hero .actions .btn, .closing .actions .btn { flex: 1 1 auto; }
  .hero-full { min-height: calc(100svh - var(--header-h) - 72px); }
  .footer-brand img { width: 168px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .nav { gap: 14px; }
  .brand img { height: 38px; }
}

/* Android chicos (360 px): el logo y el menú no caben juntos sin achicar un poco el logo. */
@media (max-width: 380px) {
  .site-header .wrap { gap: 12px; }
  .brand img { height: 34px; }
}
