/*!
 * SEINSA Construcciones · Hoja de estilos
 * ------------------------------------------------------------------
 * 01 Tipografía      06 Hero            11 Contacto
 * 02 Tokens          07 Experiencia     12 Pie
 * 03 Base            08 Servicios       13 Flotantes
 * 04 Utilidades      09 Proceso         14 Animaciones
 * 05 Cabecera        10 Horario/mapa    15 Páginas legales · impresión
 */

/* 01 · Tipografía ------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin-v2.woff2") format("woff2-variations"),
       url("../fonts/archivo-var-latin-v2.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 62% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fuente de reserva ajustada a las métricas de Archivo (evita saltos al cargar) */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 101%;
  ascent-override: 87%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* 02 · Tokens ----------------------------------------------------- */
:root {
  /* Marca */
  --navy: #23313e;
  --navy-950: #121a22;
  --navy-900: #172029;
  --navy-800: #1d2834;
  --navy-700: #2c3c4b;
  --bone: #ebe9dc;
  --paper: #f5f3ec;
  --white: #fbfaf6;
  --steel: #44657f;
  --steel-300: #93abbe;

  /* Texto y líneas */
  --ink: var(--navy);
  --ink-soft: #505c67;
  --line: rgb(35 49 62 / 0.14);
  --line-strong: rgb(35 49 62 / 0.3);
  --on-dark: var(--bone);
  --on-dark-soft: rgb(235 233 220 / 0.72);
  --line-dark: rgb(235 233 220 / 0.16);

  /* Estado */
  --ok: #2f8f5b;
  --warn: #c07a1c;
  --off: #b4533f;
  --wa: #25d366;

  /* Tipografía */
  --font: "Archivo", "Archivo Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 0.55vw + 1rem, 1.375rem);
  --fs-xl: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  --fs-h3: clamp(1.75rem, 1.6vw + 1.15rem, 2.75rem);
  --fs-h2: clamp(2.5rem, 4.4vw + 0.75rem, 5rem);
  --fs-h1: clamp(3rem, 6.6vw + 0.5rem, 7.5rem);

  /* Espaciado y layout */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5.5rem, 11vw, 10rem);
  --header-h: 80px;
  --radius: 2px;

  /* Movimiento */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
}

/* 03 · Base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}

img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: var(--navy); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.on-dark :focus-visible, .hero :focus-visible, .footer :focus-visible, .menu :focus-visible,
.address :focus-visible, .notfound :focus-visible,
.header:not(.is-solid) :focus-visible, html.menu-open .header :focus-visible {
  outline-color: var(--bone);
}
[tabindex="-1"]:focus { outline: none; }

[hidden] { display: none !important; }

/* 04 · Utilidades ------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Retardos de animación (clases en lugar de atributos style: compatible con CSP) */
.d-06 { --d: 0.06s; } .d-08 { --d: 0.08s; } .d-10 { --d: 0.1s; } .d-12 { --d: 0.12s; }
.d-16 { --d: 0.16s; } .d-18 { --d: 0.18s; } .d-20 { --d: 0.2s; } .d-24 { --d: 0.24s; }
.d-30 { --d: 0.3s; } .d-45 { --d: 0.45s; } .d-60 { --d: 0.6s; } .d-80 { --d: 0.8s; }

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--navy);
  color: var(--bone);
  font-weight: 600;
  font-size: var(--fs-sm);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 2.25rem;
  height: 1px;
  margin-top: 0.62em;
  background: currentColor;
}
.on-dark .eyebrow, .hero .eyebrow { color: var(--steel-300); }

.section { padding-block: var(--section); position: relative; }
.on-dark { background: var(--navy); color: var(--on-dark); }

.section-head {
  display: grid;
  gap: 1.75rem 4rem;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}
.section-head h2 { font-size: var(--fs-h2); font-stretch: 84%; max-width: 15ch; }
.section-head__intro { color: var(--ink-soft); font-size: var(--fs-lg); max-width: 44ch; line-height: 1.55; }
.on-dark .section-head__intro { color: var(--on-dark-soft); }

@media (min-width: 960px) {
  .section-head { grid-template-columns: 1.35fr 1fr; align-items: end; }
  .section-head > :first-child { grid-column: 1; }
  .section-head__intro { justify-self: end; }
}

/* Botones */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--bone);
  --btn-bd: var(--navy);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.5rem;
  padding: 0 1.6rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), background-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover-bg, var(--steel));
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--btn-hover-fg, var(--bone)); border-color: var(--btn-hover-bg, var(--steel)); }
.btn .icon { width: 1.2rem; height: 1.2rem; }
.btn .icon--arrow { transition: transform 0.45s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

.btn--light { --btn-bg: var(--bone); --btn-fg: var(--navy); --btn-bd: var(--bone); --btn-hover-bg: var(--white); --btn-hover-fg: var(--navy); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--bone); --btn-bd: rgb(235 233 220 / 0.45); --btn-hover-bg: var(--bone); --btn-hover-fg: var(--navy); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line-strong); --btn-hover-bg: var(--navy); --btn-hover-fg: var(--bone); }
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; padding-block: 0.6rem; }
}
.btn--sm { min-height: 2.75rem; padding: 0 1.1rem; font-size: var(--fs-sm); gap: 0.55rem; }
.btn--block { width: 100%; }

/* Enlace con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding-block: 0.35rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.45s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* 05 · Cabecera --------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  color: var(--bone);
  transition: transform 0.6s var(--ease), color 0.4s, background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.header::before {
  /* velo superior para garantizar contraste sobre el vídeo */
  content: "";
  position: absolute;
  inset: 0 0 -70px;
  background: linear-gradient(rgb(18 26 34 / 0.72), rgb(18 26 34 / 0.4) 55%, rgb(18 26 34 / 0));
  pointer-events: none;
  transition: opacity 0.4s;
}
.header:not(.is-solid) .nav a, .header:not(.is-solid) .brand__tag { text-shadow: 0 1px 12px rgb(18 26 34 / 0.6); }
html:not(.menu-open) .header.is-scrolled:not(.is-solid) {
  background: rgb(18 26 34 / 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgb(235 233 220 / 0.1);
}
html:not(.menu-open) .header.is-scrolled:not(.is-solid)::before { opacity: 0; }
.header.is-solid {
  color: var(--navy);
  background: rgb(245 243 236 / 0.88);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-solid::before { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }
html.menu-open .header { transform: none; color: var(--bone); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.menu-open .header::before { opacity: 0; }

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  flex-shrink: 0;
}
.brand__logo { height: 30px; width: auto; }
.brand__tag {
  display: none;
  padding-left: 0.9rem;
  border-left: 1px solid currentColor;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  opacity: 0.75;
}
@media (min-width: 1280px) { .brand__tag { display: block; white-space: nowrap; } }

.nav { display: none; }
.nav ul { display: flex; gap: clamp(1.5rem, 2.4vw, 2.5rem); }
.nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 0.75rem; }
.header .btn--header { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; --btn-hover-bg: var(--bone); --btn-hover-fg: var(--navy); }
.header.is-solid .btn--header { --btn-bd: var(--navy); --btn-hover-bg: var(--navy); --btn-hover-fg: var(--bone); }
.header .btn--header { display: none; }

@media (min-width: 1024px) {
  .header__inner:has(> .nav) { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { justify-self: start; }
  .header__actions { justify-self: end; }
  .nav { display: block; }
  .header .btn--header { display: inline-flex; }
}

/* Chip de estado (horario en vivo) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.3s;
}
.chip:hover { border-color: currentColor; }
.dot {
  --c: var(--off);
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}
[data-estado="abierto"] .dot { --c: var(--ok); }
[data-estado="pronto"] .dot { --c: var(--warn); }
[data-estado="abierto"] .dot::after, [data-estado="pronto"] .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  animation: pulse 2.4s var(--ease) infinite;
}
.header:not(.is-solid) [data-estado="abierto"] .dot { --c: #5ccf8c; }
.header:not(.is-solid) [data-estado="cerrado"] .dot { --c: #f08a74; }
.header:not(.is-solid) [data-estado="pronto"] .dot { --c: #f1b45c; }
html.menu-open .header [data-estado="abierto"] .dot { --c: #5ccf8c; }
html.menu-open .header [data-estado="cerrado"] .dot { --c: #f08a74; }

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

@media (max-width: 420px) {
  .header .chip { display: none; }
}

/* Botón de menú (móvil) */
.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.menu-toggle__bars::before { transform: translateY(-7px); }
.menu-toggle__bars::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); background: var(--bone); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); background: var(--bone); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Menú a pantalla completa */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--navy-900);
  color: var(--bone);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
}
html.menu-open .menu {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.8s var(--ease-io), visibility 0s;
}
html.menu-open { overflow: hidden; }
.menu__list { display: grid; gap: 0.15rem; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.6rem;
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 600;
  font-stretch: 80%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.menu__list a span {
  font-size: var(--fs-xs);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.15em;
  color: var(--steel-300);
}
html.menu-open .menu__list a { opacity: 1; transform: none; }
html.menu-open .menu__list li:nth-child(1) a { transition-delay: 0.18s; }
html.menu-open .menu__list li:nth-child(2) a { transition-delay: 0.23s; }
html.menu-open .menu__list li:nth-child(3) a { transition-delay: 0.28s; }
html.menu-open .menu__list li:nth-child(4) a { transition-delay: 0.33s; }
html.menu-open .menu__list li:nth-child(5) a { transition-delay: 0.38s; }
.menu__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  color: var(--on-dark-soft);
}
.menu__foot a:not(.btn) { color: var(--bone); }
.menu__foot .btn { justify-self: stretch; }

/* 06 · Hero ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--bone);
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img, .hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__video.is-playing { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(18 26 34 / 0.62) 0%, rgb(18 26 34 / 0.18) 55%, rgb(18 26 34 / 0) 75%),
    linear-gradient(180deg, rgb(18 26 34 / 0) 35%, rgb(18 26 34 / 0.55) 72%, rgb(18 26 34 / 0.92) 100%);
}

.hero__content {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}
.hero__eyebrow {
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
  padding: 0.55em 0.85em;
  color: var(--bone) !important;
  background: rgb(18 26 34 / 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
}
.hero__eyebrow-loc { margin-left: -0.85rem; }
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  font-stretch: 80%;
  line-height: 0.94;
  letter-spacing: -0.025em;
}
@media (min-width: 760px) { .hero__title .line { white-space: nowrap; } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; }
.hero__lead {
  margin-top: clamp(1.5rem, 3.2vh, 2.25rem);
  max-width: 40ch;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: rgb(235 233 220 / 0.86);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: clamp(2rem, 4.5vh, 3rem);
}

.hero__bar {
  margin-top: clamp(2.5rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgb(235 233 220 / 0.22);
  font-size: var(--fs-sm);
  color: rgb(235 233 220 / 0.78);
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 2.25rem; }
.hero__facts li { display: inline-flex; align-items: center; }
.hero__facts strong { color: var(--bone); font-weight: 600; margin-right: 0.3em; }
.hero__facts li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  margin: 0 1.1rem 0 -1.15rem;
}
.hero__controls { display: flex; align-items: center; gap: 1.25rem; min-height: 2.75rem; }
.hero__scroll {
  display: none;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 2.25rem;
  background: rgb(235 233 220 / 0.3);
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bone);
  animation: scrollcue 2.2s var(--ease-io) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
@media (min-width: 760px) { .hero__scroll { display: inline-flex; } }

.video-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(235 233 220 / 0.35);
  border-radius: 50%;
  color: var(--bone);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.video-toggle:hover { background: var(--bone); color: var(--navy); border-color: var(--bone); }
.video-toggle .icon { width: 1rem; height: 1rem; }
.video-toggle.is-pending { visibility: hidden; opacity: 0; }
.video-toggle { transition: background-color 0.3s, border-color 0.3s, color 0.3s, opacity 0.4s; }
.video-toggle [data-icon="play"] { display: none; }
.video-toggle[data-state="paused"] [data-icon="play"] { display: block; }
.video-toggle[data-state="paused"] [data-icon="pause"] { display: none; }

@media (max-width: 759px) {
  .hero::after {
    background: linear-gradient(180deg,
      rgb(18 26 34 / 0.5) 0%, rgb(18 26 34 / 0.28) 18%, rgb(18 26 34 / 0.55) 36%,
      rgb(18 26 34 / 0.82) 58%, rgb(18 26 34 / 0.94) 100%);
  }
  .hero__lead { text-shadow: 0 1px 12px rgb(18 26 34 / 0.6); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { flex-direction: column; gap: 0.25rem; font-size: 0.8125rem; }
  .hero__facts li + li::before { display: none; }
  .hero__eyebrow-loc { display: none; }
}
@media (max-width: 359px) { .hero__title { font-size: 2.75rem; } }

/* Móvil en horizontal: hero compacto para que se vea la llamada a la acción */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 56px; }
  .hero__content { padding-top: calc(var(--header-h) + 0.75rem); padding-bottom: 1rem; }
  .hero__eyebrow { margin-bottom: 0.5rem; }
  .hero__title { font-size: clamp(2.25rem, 7vh + 1.25rem, 3.25rem); }
  .hero__lead { margin-top: 0.6rem; font-size: 1rem; max-width: 56ch; }
  .hero__actions { margin-top: 1rem; }
  .hero__actions .btn { flex: 0 1 auto; }
  .hero__bar { margin-top: 1rem; padding-top: 0.75rem; }
  .menu { padding-top: calc(var(--header-h) + 1rem); }
  .menu__list a { font-size: 1.75rem; padding-block: 0.3rem; }
  .menu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; align-content: start; }
  .menu__foot { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* 07 · Experiencia ------------------------------------------------ */
.about__statement {
  font-size: clamp(1.75rem, 3.1vw + 0.6rem, 3.6rem);
  font-weight: 500;
  font-stretch: 92%;
  line-height: 1.12;
  letter-spacing: -0.022em;
  max-width: 22ch;
  margin-top: 2rem;
  text-wrap: balance;
}
.about__statement em { font-style: normal; color: var(--steel); }

.about__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  margin-top: clamp(4rem, 8vw, 7.5rem);
}
@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
}

.about__media { position: relative; }
.about__media .frame { aspect-ratio: 4 / 5; }
.about__media figcaption {
  margin-top: 0.9rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.about__body { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .about__body { padding-top: 2rem; position: sticky; top: calc(var(--header-h) + 2rem); } }

.counter { display: flex; align-items: flex-end; gap: 1.25rem; }
.counter__num {
  font-size: clamp(7rem, 15vw, 13.5rem);
  font-weight: 600;
  font-stretch: 68%;
  line-height: 0.78;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.counter__num sup {
  font-size: 0.42em;
  vertical-align: top;
  position: relative;
  top: 0.04em;
  margin-left: 0.04em;
  color: var(--steel);
}
.counter__label {
  padding-bottom: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.about__text { color: var(--ink-soft); font-size: var(--fs-lg); line-height: 1.6; max-width: 46ch; }

.values { display: grid; border-top: 1px solid var(--line); }
.values li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.25rem 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.values__n { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; color: var(--steel); padding-top: 0.3rem; }
.values h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.values p { grid-column: 2; color: var(--ink-soft); font-size: 0.975rem; }

/* Marco de imagen con revelado */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--bone);
  border-radius: var(--radius);
}
.frame picture { display: block; width: 100%; height: 100%; }
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

/* 08 · Servicios -------------------------------------------------- */
.services { background: var(--white); }
.service-list { display: grid; gap: clamp(5rem, 10vw, 9rem); }
.service {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
@media (min-width: 960px) {
  .service { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); }
  .service__media { grid-column: 1 / span 7; }
  .service__body { grid-column: 8 / span 5; }
  .service:nth-child(even) .service__media { grid-column: 6 / span 7; grid-row: 1; }
  .service:nth-child(even) .service__body { grid-column: 1 / span 5; grid-row: 1; }
}
.service__media .frame { aspect-ratio: 16 / 11; }
.service__media a:hover img, .service__media a:focus-visible img { transform: scale(1.035); }
.service__media a { display: block; border-radius: var(--radius); }

.service__n {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
.service__n b {
  font-size: 3.25rem;
  font-weight: 500;
  font-stretch: 70%;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--navy);
}
.service h3 {
  margin-top: 1.5rem;
  font-size: var(--fs-h3);
  font-stretch: 86%;
}
.service__desc { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.0625rem; max-width: 42ch; }
.service__list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.service__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 0.5rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
}
.service__list li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-top: 1.5px solid var(--steel);
  border-right: 1.5px solid var(--steel);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.service__cta { margin-top: 2.25rem; }
@media (max-width: 420px) {
  .service__list { grid-template-columns: 1fr; }
}

/* 09 · Proceso ---------------------------------------------------- */
.process { background: var(--navy); color: var(--on-dark); overflow: hidden; }
.process::before {
  /* motivo de cubierta del logotipo */
  content: "";
  position: absolute;
  right: -6vw;
  top: -2vw;
  width: min(62vw, 820px);
  aspect-ratio: 267 / 57;
  background: url("../brand/parts/roof.svg") center / contain no-repeat;
  opacity: 0.05;
  filter: invert(1);
  pointer-events: none;
}
.steps {
  display: grid;
  gap: 0;
  counter-reset: paso;
}
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 2rem 2rem 2.5rem 0;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line-dark);
}
.step::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease) var(--d, 0s);
}
.step.is-in::after { transform: scaleX(1); }
.step__n {
  display: block;
  font-size: 3.5rem;
  font-weight: 500;
  font-stretch: 68%;
  line-height: 1;
  color: var(--steel-300);
  letter-spacing: -0.02em;
}
.step h3 { margin-top: 2.25rem; font-size: 1.5rem; font-stretch: 90%; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: 0.8rem; color: var(--on-dark-soft); font-size: 0.975rem; max-width: 30ch; }

/* 10 · Horario y ubicación --------------------------------------- */
.visit__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 1024px) {
  .visit__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: stretch; }
}

.visit__grid > *, .contact__grid > *, .about__grid > *, .service > * { min-width: 0; }
.horario { display: grid; gap: 2.25rem; align-content: start; }
.horario > *, .status > * { min-width: 0; }

.status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.1rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.status .dot { width: 0.85rem; height: 0.85rem; margin-top: 0.85rem; }
.status .dot::after { inset: -6px; }
.status__title {
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  font-weight: 600;
  font-stretch: 82%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.status__detail {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-size: var(--fs-lg);
  color: var(--ink-soft);
}
.status__detail [data-h-cuenta]:not(:empty) {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.65rem;
  border-radius: 99px;
  background: rgb(35 49 62 / 0.07);
  color: var(--navy);
  font-size: 0.85em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.status__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.clock {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.clock time {
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.clock .icon { width: 1.05rem; height: 1.05rem; color: var(--steel); }
.status .btn.is-wa { --btn-hover-bg: var(--wa); --btn-hover-fg: var(--navy-950); }
.status .btn .icon-wa { display: none; }
.status .btn.is-wa .icon-wa { display: block; }
.status .btn.is-wa .icon-phone { display: none; }

/* Línea del día */
.tl { padding-top: 2.25rem; }
.tl__track {
  position: relative;
  height: 0.75rem;
  border-radius: 1rem;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 12)) 0 50% / 100% 100% no-repeat,
    rgb(35 49 62 / 0.06);
}
.tl__bloque {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--a);
  width: calc(var(--b) - var(--a));
  border-radius: 1rem;
  background: var(--navy);
}
.tl__ahora {
  position: absolute;
  top: -1.9rem;
  bottom: -0.45rem;
  left: var(--x);
  width: 0;
  transition: left 1s linear;
}
.tl__ahora::before {
  content: "";
  position: absolute;
  top: 1.45rem; bottom: 0;
  left: -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--off);
  box-shadow: 0 0 0 1.5px var(--white);
}
[data-estado="abierto"] ~ * .tl__ahora::before { background: var(--ok); }
[data-estado="pronto"] ~ * .tl__ahora::before { background: var(--warn); }
.tl__ahora span {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(calc(var(--p, 50) * -1%));
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  background: var(--navy);
  color: var(--bone);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tl__escala {
  position: relative;
  height: 1.5rem;
  margin-top: 0.65rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.tl__marca { position: absolute; left: var(--x); white-space: nowrap; }
.tl__marca--fin { transform: translateX(-100%); }
.tl__vacio { font-weight: 500; }

/* Semana */
.week__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.week__label span { letter-spacing: 0.02em; text-transform: none; font-weight: 400; color: var(--ink-soft); }
@media (max-width: 379px) {
  .week__label { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .week { gap: 0.25rem; }
  .dia { padding-inline: 0; }
  .dia__nombre { letter-spacing: 0.04em; font-size: 0.625rem; }
}
.week {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}
.dia {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.25rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.dia:hover { border-color: var(--line-strong); }
.dia__nombre { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.dia__num { font-size: 1.375rem; font-weight: 600; font-stretch: 80%; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dia__marca { width: 1.4rem; height: 3px; border-radius: 2px; background: var(--navy); margin-top: 0.15rem; }
.dia--cerrado .dia__marca { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.dia--festivo .dia__marca { background: repeating-linear-gradient(90deg, var(--off) 0 3px, transparent 3px 5px); }
.dia--cerrado .dia__num, .dia--festivo .dia__num { color: var(--ink-soft); }
.dia__hoy {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0.4rem;
  border-radius: 99px;
  background: var(--steel);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2rem;
  text-transform: uppercase;
}
.dia[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--bone); }
.dia[aria-checked="true"] .dia__nombre { color: var(--steel-300); }
.dia[aria-checked="true"] .dia__num { color: var(--bone); }
.dia[aria-checked="true"] .dia__marca { background: var(--bone); }
.dia[aria-checked="true"].dia--cerrado .dia__marca { background: transparent; box-shadow: inset 0 0 0 1px rgb(235 233 220 / 0.5); }
.dia[aria-checked="true"].dia--festivo .dia__marca { background: repeating-linear-gradient(90deg, #f08a74 0 3px, transparent 3px 5px); }
.week__detail {
  margin-top: 1rem;
  min-height: 1.6em;
  font-size: 0.975rem;
  color: var(--ink);
}

/* Horario estático (sin JavaScript / resumen) */
.hours {
  display: grid;
  border-top: 1px solid var(--line);
}
.hours > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.hours dt { font-weight: 600; }
.hours dd { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.horario:not(.is-live) [data-live-only] { display: none; }
.horario__note { font-size: var(--fs-sm); color: var(--ink-soft); }

/* Ubicación */
.place {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.map {
  position: relative;
  flex: 1 1 auto;
  min-height: 420px;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bone);
  isolation: isolate;
}
@media (min-width: 1024px) { .map { aspect-ratio: auto; } }
.map__canvas { position: absolute; inset: 0; z-index: 0; }
.map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.map.is-ready .map__fallback { display: none; }
.map__pin-static { width: 3rem; height: auto; color: var(--navy); }

/* Leaflet: estilo sobrio de los mapas */
.map .leaflet-container { font-family: var(--font); background: var(--bone); }
.map .tiles-sobrias { filter: grayscale(1) sepia(0.12) contrast(1.02) brightness(1.04); }
.map .leaflet-control-zoom { border: 0 !important; box-shadow: 0 6px 20px rgb(23 32 41 / 0.14) !important; border-radius: var(--radius) !important; overflow: hidden; }
.map .leaflet-control-zoom a {
  width: 2.5rem !important;
  height: 2.5rem !important;
  line-height: 2.4rem !important;
  color: var(--navy) !important;
  font-weight: 400;
  border-color: var(--line) !important;
}
.map .leaflet-control-attribution { font-size: 0.625rem; background: rgb(245 243 236 / 0.85) !important; color: var(--ink-soft); }
.map .leaflet-control-attribution a { color: var(--steel); }
.map-pin { position: relative; }
.map-pin__body {
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--navy);
  box-shadow: 0 10px 24px rgb(23 32 41 / 0.35);
  transition: transform 0.4s var(--ease);
}
.map-pin:hover .map-pin__body { transform: rotate(-45deg) translate(2px, -2px); }
.map-pin__body svg { width: 30px; height: 24px; color: var(--bone); transform: rotate(45deg); }
.map-pin__shadow {
  position: absolute;
  left: 50%; top: 62px;
  width: 22px; height: 9px;
  margin-left: -11px;
  border-radius: 50%;
  background: rgb(23 32 41 / 0.3);
  filter: blur(2px);
}
.map .leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: 0 12px 32px rgb(23 32 41 / 0.2); }
.map .leaflet-popup-content { margin: 1rem 1.15rem; font-size: 0.875rem; line-height: 1.45; color: var(--ink); }
.map .leaflet-popup-content strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.map .leaflet-popup-content { max-width: calc(100vw - 7rem); }
.map .leaflet-popup-content a { color: var(--steel); font-weight: 600; }
.map .leaflet-popup-content a { white-space: nowrap; }
.map .leaflet-popup-content .icon { display: inline-block; width: 0.9em; height: 0.9em; vertical-align: -0.1em; margin-left: 0.2em; }

.address {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--navy);
  color: var(--bone);
  border-radius: var(--radius);
}
.address__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-300); }
.address__street { margin-top: 0.6rem; font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; font-style: normal; }
.address__street small { display: block; margin-top: 0.4rem; font-size: 0.9375rem; font-weight: 400; color: var(--on-dark-soft); letter-spacing: 0; }
.address__street mark { background: none; color: var(--bone); font-weight: 600; }
.address__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.address__apps {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  color: var(--on-dark-soft);
}
.address__apps a { color: var(--bone); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(235 233 220 / 0.35); text-underline-offset: 0.25em; transition: text-decoration-color 0.3s; }
.address__apps a:hover { text-decoration-color: var(--bone); }

/* 11 · Contacto --------------------------------------------------- */
.contact { background: var(--bone); }
.contact__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.contact h2 { font-size: var(--fs-h2); font-stretch: 84%; margin-top: 1.5rem; max-width: 12ch; }
.contact__intro { margin-top: 1.5rem; font-size: var(--fs-lg); color: var(--ink-soft); max-width: 40ch; }

.channels { margin-top: 3rem; border-top: 1px solid var(--line-strong); }
.channel {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 0.5s var(--ease);
}
.channel__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.channel__icon .icon { width: 1.15rem; height: 1.15rem; }
.channel__label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.channel__value { display: block; margin-top: 0.15rem; font-size: clamp(1.0625rem, 0.8vw + 0.95rem, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
.channel__value--sm { font-size: clamp(1rem, 0.6vw + 0.85rem, 1.375rem); }
.channel > .icon { width: 1.25rem; height: 1.25rem; transition: transform 0.5s var(--ease); }
.channel:hover { padding-inline: 0.5rem; }
.channel:hover .channel__icon { background: var(--navy); color: var(--bone); border-color: var(--navy); }
.channel:hover > .icon { transform: translate(3px, -3px); }
.channel--wa:hover .channel__icon { background: var(--wa); border-color: var(--wa); color: #fff; }

/* Formulario */
.form {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgb(23 32 41 / 0.18);
}
.form__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 2rem; }
.form__head h3 { font-size: var(--fs-xl); font-stretch: 88%; }
.form__head p { font-size: var(--fs-xs); color: var(--ink-soft); white-space: nowrap; }
.form__grid { display: grid; gap: 1.6rem 1.5rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }

.field { position: relative; display: grid; gap: 0.45rem; align-content: start; }
.field label, .field legend {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field label .opt { letter-spacing: 0.02em; text-transform: none; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid rgb(35 49 62 / 0.55);
  border-radius: 0;
  background: transparent;
  font-size: 1.0625rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323313e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") right 0.1rem center / 1.15rem no-repeat;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #646f7a; opacity: 1; }
.field input, .field textarea {
  background: linear-gradient(var(--steel), var(--steel)) 0 100% / 0 1px no-repeat;
  transition: border-color 0.3s, background-size 0.6s var(--ease);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-bottom-color: var(--navy); box-shadow: 0 1px 0 var(--navy); border-radius: 0; outline: none; }
.field input:focus-visible, .field textarea:focus-visible { background-size: 100% 1px; }

.field.has-error input, .field.has-error textarea, .field.has-error select,
.field.has-error input:focus-visible, .field.has-error textarea:focus-visible {
  border-bottom-color: var(--off);
  box-shadow: 0 1px 0 var(--off);
  background-size: 0 1px;
}
.field__error { font-size: var(--fs-sm); color: var(--off); }
.field__error:empty { display: none; }

/* Selector de tipo de obra */
.types { border: 0; padding: 0; margin: 0; min-width: 0; }
.types legend { padding: 0; margin-bottom: 0.85rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.types__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.type { position: relative; }
.type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 1px solid rgb(35 49 62 / 0.55);
  border-radius: 99px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.type span:hover { border-color: var(--navy); }
.type input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--bone); }
.type input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }

.form__actions { margin-top: 2.25rem; display: grid; gap: 1rem; }
.form__actions .btn { --btn-hover-bg: var(--wa); --btn-hover-fg: var(--navy-950); }
.form__alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.form__alt button { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--line-strong); }
.form__alt button:hover { text-decoration-color: currentColor; }
.form__privacy { font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.5; }
.form__privacy a { text-decoration: underline; text-underline-offset: 0.2em; }
html:not(.js) .form { display: none; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header .btn--header { display: inline-flex; }
.nojs-note { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--white); border-radius: var(--radius); font-size: 0.975rem; }

/* 12 · Pie -------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
  overflow: hidden;
}
.footer__top { display: grid; gap: 3.5rem; padding-bottom: clamp(4rem, 7vw, 6rem); }
@media (min-width: 960px) { .footer__top { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); } }
.footer__logo { width: clamp(180px, 22vw, 250px); color: var(--bone); }
.footer__cols { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-300); margin-bottom: 1.1rem; line-height: 1.4; }
.footer address { font-style: normal; }
.footer ul { display: grid; gap: 0.45rem; }
.footer a:not(.btn) { color: var(--bone); transition: color 0.3s; }
.footer a:not(.btn):hover { color: var(--steel-300); }
.footer__cta {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: clamp(3.5rem, 6vw, 5rem);
}
@media (min-width: 960px) { .footer__cta { grid-template-columns: 1fr auto; align-items: center; } }
.footer__claim { font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 600; font-stretch: 80%; line-height: 1; letter-spacing: -0.02em; color: var(--bone); max-width: 18ch; text-wrap: balance; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* 13 · Elementos flotantes --------------------------------------- */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 3.5rem;
  padding: 0 1.25rem 0 0.4rem;
  border-radius: 99px;
  background: var(--navy);
  color: var(--bone);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 12px 30px -8px rgb(18 26 34 / 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem) scale(0.96);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), background-color 0.3s, visibility 0s linear 0.6s;
}
.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), background-color 0.3s, visibility 0s;
}
html:not(.js) .wa-float { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.wa-float:focus-visible { outline: 2px solid var(--navy-950); outline-offset: 2px; box-shadow: 0 0 0 2px var(--bone), 0 12px 30px -8px rgb(18 26 34 / 0.45); }
.wa-float:hover { background: var(--navy-700); }
.wa-float__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
}
.wa-float__icon .icon { width: 1.45rem; height: 1.45rem; }
@media (max-width: 640px) {
  .wa-float { padding: 0; width: 3.5rem; justify-content: center; }
  .wa-float__icon { background: transparent; color: var(--wa); }
  .wa-float__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--bone);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: 0 16px 40px -12px rgb(18 26 34 / 0.5);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 1.1rem; height: 1.1rem; color: #5ccf8c; }

/* 14 · Animaciones ------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js [data-reveal="frame"] {
    opacity: 1;
    transform: none;
    clip-path: inset(12% 0 0 0);
    transition: clip-path 1.5s var(--ease) var(--d, 0s);
  }
  .js [data-reveal="frame"] img { transform: scale(1.12); transition: transform 1.8s var(--ease) var(--d, 0s); }
  .js [data-reveal="frame"].is-in { clip-path: inset(0 0 0 0); }
  .js [data-reveal="frame"].is-in img { transform: none; }
  .js .service__media a:hover [data-reveal="frame"].is-in img { transform: scale(1.035); }

  .js .hero__title .line > span { transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
  .js .hero__title .line + .line > span { animation-delay: 0.12s; }
  .js-late .hero__title .line > span, .js-late .hero__fade { animation: none; opacity: 1; transform: none; }
  .js .hero__fade { opacity: 0; animation: fadeup 1.2s var(--ease) forwards; animation-delay: var(--d, 0.35s); }
}

@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .dot::after { display: none; }
}

/* 15 · Páginas secundarias --------------------------------------- */
.page-plain { background: var(--paper); }
.page-plain .header { color: var(--navy); background: rgb(245 243 236 / 0.92); box-shadow: 0 1px 0 var(--line); }
.page-plain .header::before { display: none; }
.legal {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: var(--section);
}
.legal__inner { max-width: 760px; }
.legal h1 { font-size: var(--fs-h2); font-stretch: 84%; margin-top: 1.5rem; }
.legal__updated { margin-top: 1rem; color: var(--ink-soft); font-size: var(--fs-sm); }
.legal nav { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.legal nav a { padding: 0.5rem 1rem; border: 1px solid var(--line-strong); border-radius: 99px; font-size: var(--fs-sm); font-weight: 500; }
.legal nav a:hover { background: var(--navy); color: var(--bone); border-color: var(--navy); }
.legal section { margin-top: clamp(3.5rem, 6vw, 5rem); scroll-margin-top: calc(var(--header-h) + 2rem); }
.legal h2 { font-size: var(--fs-xl); font-stretch: 88%; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.legal h3 { font-size: 1.15rem; margin-top: 2rem; }
.legal p, .legal li { margin-top: 1rem; color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; }
.legal dl { margin-top: 1.25rem; display: grid; border-top: 1px solid var(--line); }
.legal dl > div { display: grid; gap: 0.15rem 1.5rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .legal dl > div { grid-template-columns: 12rem 1fr; } }
.legal dt { font-weight: 600; }
.legal dd { color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.legal section a { color: var(--steel); text-decoration: underline; text-underline-offset: 0.2em; }
.pending { background: #fff1c2; color: #6b4e00; padding: 0 0.3em; border-radius: 2px; font-weight: 600; }

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  text-align: center;
  background: var(--navy);
  color: var(--bone);
}
.notfound__inner { display: grid; justify-items: center; gap: 1.5rem; max-width: 34rem; }
.notfound__code { font-size: clamp(6rem, 22vw, 12rem); font-weight: 600; font-stretch: 66%; line-height: 0.8; letter-spacing: -0.04em; color: var(--steel-300); }
.notfound h1 { font-size: var(--fs-xl); }
.notfound p { color: var(--on-dark-soft); }

/* Impresión */
@media print {
  .header, .menu, .wa-float, .toast, .hero__media, .video-toggle, .map, .form, .hero__scroll, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero::after { display: none; }
  .on-dark, .process, .footer, .address { background: none !important; color: #000 !important; }
  .section { padding-block: 2rem; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-weight: 400; }
  .js [data-reveal], .js .hero__fade, .js .hero__title .line > span, .js [data-reveal="frame"], .js [data-reveal="frame"] img {
    opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; transition: none !important;
  }
  .hero, .hero *, .on-dark *, .process *, .footer *, .address * { color: #000 !important; text-shadow: none !important; }
  .footer__logo { filter: brightness(0); }
  .btn { background: none !important; border: 1px solid #000 !important; color: #000 !important; }
  .frame, .service, .step { break-inside: avoid; }
}
.page-plain .footer { padding-top: 0; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }
@media (max-width: 480px) { .notfound__actions { display: grid; width: 100%; } }
@media (max-height: 500px) and (orientation: landscape) { .notfound__code { font-size: 5rem; } .notfound__inner { gap: 0.9rem; } }
@media (max-width: 359px) {
  .page-plain .header__inner { gap: 1rem; }
  .page-plain .brand__logo { height: 26px; }
  .page-plain .header .link-arrow { white-space: nowrap; }
}
