/* ==========================================================================
   Las Marquesinas Obras y Servicios — hoja de estilos de producción
   Traducción fiel del diseño (Claude Design) a clases reutilizables.
   Tokens → base → cabecera → héroes → secciones → componentes → pie → utilidades
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fuentes alojadas en local (assets/fonts/, licencia SIL OFL — ver LICENCIA.txt).
   Archivo y Manrope son variables (un archivo cubre el rango de pesos);
   IBM Plex Mono solo se usa en 400. unicode-range: latin-ext solo se descarga si hace falta.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --crema: #F7F4EF;
  --arena: #EDE7DE;
  --blanco: #FFFFFF;
  --tinta: #1C1B19;
  --tinta-2: #141311;
  --gris: #6E6A63;
  --gris-2: #5C5852;
  --gris-3: #615E5A;
  --terracota: #B4562B;
  --terracota-osc: #93441F;
  --melocoton: #E8C9AF;
  --melocoton-2: #F0CDAE;
  --hueso: #D9D2C6;
  --borde: #DED5C6;
  --borde-2: #CFC5B2;
  --pie-borde: #2C2924;
  --pie-borde-2: #3A362F;
  --pie-texto: #A8A196;
  --wa: #25D366;
  --wa-osc: #128C7E;
  --wa-tinta: #0B3D1E;

  --f-cuerpo: 'Archivo', Helvetica, Arial, sans-serif;
  --f-titulo: 'Manrope', Helvetica, sans-serif;
  --f-h1: Arial, 'Archivo', Helvetica, sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ancho: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);
  --radio: 2px;
  --z-cabecera: 80;
  --z-aside: 70;
  --z-barra: 85;
  --z-menu: 90;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--f-cuerpo);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--terracota); text-decoration: none; }
a:hover { color: var(--terracota-osc); }
:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }
img, picture, svg { max-width: 100%; }
img { height: auto; }
picture { display: block; }
h1, h2, h3, h4, p, ul, ol, dl, blockquote, figure { margin: 0; }
h1, h2, h3, h4, dt, strong { overflow-wrap: break-word; }
/* Alemán: palabras compuestas largas (Tragwerksverstärkung, Komplettsanierung…) se parten con guion */
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) h4, :lang(de) p, :lang(de) li, :lang(de) dt, :lang(de) dd { hyphens: auto; -webkit-hyphens: auto; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
main { background: var(--crema); display: block; }

.saltar {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--tinta); color: var(--crema); padding: 12px 18px; border-radius: var(--radio);
  font-weight: 600;
}
.saltar:focus { top: 12px; outline-color: var(--crema); }

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

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--terracota); margin: 0 0 18px;
}
.eyebrow--sm { font-size: 10px; letter-spacing: .22em; margin-bottom: 12px; }
.eyebrow--gris { color: var(--gris); }
.eyebrow--claro { color: var(--melocoton); }
.eyebrow--icono { display: flex; align-items: center; gap: 8px; }

.h2 {
  font-family: var(--f-titulo); font-size: clamp(30px, 4.2vw, 56px); font-weight: 700;
  letter-spacing: -.01em; line-height: 1.05; margin: 0;
}
.h2--pagina { font-size: clamp(28px, 3.8vw, 52px); }
.h2--suave { font-weight: 600; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.1; }
.h2--cta { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.02; }
.h2--cta-pagina { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.03; }
.h2--md { font-size: clamp(28px, 3.8vw, 50px); }
.h2--sm { font-size: clamp(26px, 3.4vw, 44px); }
.h2--legal { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.005em; line-height: 1.2; }
.h3 {
  font-family: var(--f-titulo); font-size: clamp(23px, 2.2vw, 29px); font-weight: 700;
  letter-spacing: -.005em; line-height: 1.15; margin: 0;
}
.h3--lg { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; }
.h3--sm { font-size: 17px; font-weight: 600; line-height: 1.3; }
.h3--md { font-size: 19px; font-weight: 600; line-height: 1.3; }

.texto { font-size: 16.5px; line-height: 1.75; color: var(--gris); }
.texto--lg { font-size: 17px; }
.texto--sm { font-size: 15px; line-height: 1.7; }
.texto--xs { font-size: 14.5px; line-height: 1.7; }
.texto--tinta { color: var(--tinta); }
.texto--claro { color: var(--arena); }
.texto--pie { color: var(--pie-texto); }
.mono { font-family: var(--f-mono); }
.mono--sm { font-family: var(--f-mono); font-size: 13px; line-height: 1.7; }
.mono--tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; }

/* anchos de medida (en ch) */
.max-15 { max-width: 15ch; } .max-18 { max-width: 18ch; } .max-20 { max-width: 20ch; } .max-22 { max-width: 22ch; }
.max-40 { max-width: 40ch; } .texto--gris-3 { color: var(--gris-3); }
.wa__icono { margin-right: 9px; flex-shrink: 0; }
/* Honeypot del formulario: fuera de pantalla, no en display:none para que los bots lo rellenen */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.max-24 { max-width: 24ch; } .max-26 { max-width: 26ch; } .max-34 { max-width: 34ch; }
.max-42 { max-width: 42ch; } .max-44 { max-width: 44ch; } .max-46 { max-width: 46ch; }
.max-48 { max-width: 48ch; } .max-52 { max-width: 52ch; } .max-56 { max-width: 56ch; }
.max-76 { max-width: 76ch; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* márgenes */
.mb-6 { margin-bottom: 6px; } .mb-8 { margin-bottom: 8px; } .mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; } .mb-14 { margin-bottom: 14px; } .mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; } .mb-20 { margin-bottom: 20px; } .mb-22 { margin-bottom: 22px; }
.mb-24 { margin-bottom: 24px; } .mb-26 { margin-bottom: 26px; } .mb-28 { margin-bottom: 28px; }
.mb-30 { margin-bottom: 30px; } .mb-34 { margin-bottom: 34px; }
.mb-titulo { margin-bottom: clamp(30px, 4vw, 48px); }
.mb-titulo-lg { margin-bottom: clamp(32px, 4vw, 52px); }
.mb-titulo-xl { margin-bottom: clamp(36px, 4vw, 56px); }
.mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; } .mt-26 { margin-top: 26px; }
.mt-bloque { margin-top: clamp(36px, 4vw, 56px); }
.mt-bloque-lg { margin-top: clamp(40px, 5vw, 64px); }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 18px 30px; border-radius: var(--radio);
  font-size: 16.5px; font-weight: 600; line-height: 1.2; text-align: center;
  position: relative; overflow: hidden; cursor: pointer; border: 1px solid transparent;
  background-repeat: no-repeat; background-position: center; background-size: 0% 0%;
  transition: background-size 700ms var(--ease), color 400ms var(--ease),
              border-color 400ms var(--ease), transform 400ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:hover { background-size: 260% 260%; }
.btn--primario {
  background-color: var(--terracota); color: var(--crema); border-color: var(--terracota);
  background-image: radial-gradient(circle, var(--tinta) 0%, var(--tinta) 100%);
}
.btn--primario:hover { color: var(--crema); border-color: var(--tinta); }
.btn--claro {
  border-color: rgba(247, 244, 239, .6); color: var(--crema);
  background-image: radial-gradient(circle, var(--terracota) 0%, var(--terracota) 100%);
}
.btn--claro:hover { color: var(--crema); border-color: var(--terracota); }
.btn--linea {
  border-color: var(--tinta); color: var(--tinta);
  background-image: radial-gradient(circle, var(--tinta) 0%, var(--tinta) 100%);
}
.btn--linea:hover { color: var(--crema); border-color: var(--tinta); }
.btn--tinta {
  background-color: var(--tinta); color: var(--crema); border-color: var(--tinta);
  background-image: radial-gradient(circle, var(--terracota) 0%, var(--terracota) 100%);
}
.btn--tinta:hover { color: var(--crema); }
.btn--md { min-height: 52px; padding: 16px 28px; font-size: 16px; }
.btn--md-b { min-height: 52px; padding: 16px 26px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 14px 22px; font-size: 14.5px; }
.btn--sm:hover { background-size: 210% 210%; }
.btn--form { min-height: 52px; padding: 17px 30px; font-size: 16px; font-family: var(--f-cuerpo); }
.btn--form-b { min-height: 52px; padding: 17px 26px; font-size: 16px; }
.btn svg { flex-shrink: 0; }
.botones { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.botones--12 { gap: 12px; }

.enlace-sub {
  font-size: 15px; font-weight: 600; color: var(--terracota);
  border-bottom: 1px solid var(--terracota); padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-cabecera);
  background: rgba(247, 244, 239, .94); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 18px var(--pad-x);
  transition: background 400ms var(--ease), border-color 400ms var(--ease), padding 400ms var(--ease);
}
.cabecera.es-fija { background: var(--crema); border-bottom-color: var(--borde); padding-top: 10px; padding-bottom: 10px; }
.cabecera__int {
  max-width: var(--ancho); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.marca { display: flex; align-items: center; gap: 12px; color: var(--tinta); min-height: 44px; }
.marca:hover { color: var(--tinta); }
.marca__img { width: auto; height: clamp(34px, 3.4vw, 42px); display: block; }
.marca__txt { display: flex; flex-direction: column; gap: 2px; }
.marca__nombre { font-weight: 700; font-size: clamp(17px, 2vw, 21px); letter-spacing: -.005em; line-height: 1; }
.marca__sub { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gris-2); }

.nav { display: none; align-items: center; gap: clamp(14px, 1.8vw, 28px); flex-wrap: nowrap; }
.nav__enlace, .nav__btn {
  color: var(--tinta); font-size: 14.5px; font-weight: 500; padding: 10px 0;
  background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.nav__enlace:hover, .nav__btn:hover { color: var(--terracota-osc); }
.nav__enlace[aria-current="page"] { color: var(--terracota); }
.nav__btn .flecha { font-size: 9px; }
.desplegable { position: relative; display: flex; align-items: center; }
.desplegable__panel {
  position: absolute; top: 100%; left: -16px; min-width: 210px; background: var(--crema);
  border: 1px solid var(--borde); padding: 8px; display: none;
  box-shadow: 0 24px 48px -24px rgba(28, 27, 25, .28);
}
.desplegable.abierto .desplegable__panel, .desplegable:focus-within .desplegable__panel { display: block; }
.desplegable__panel a { display: block; padding: 10px 12px; color: var(--tinta); font-size: 14.5px; white-space: nowrap; }
.desplegable__panel a:hover { color: var(--terracota); }
.desplegable__panel a[aria-current="page"] { color: var(--terracota); }

.idiomas { display: flex; align-items: center; gap: 6px; }
.idioma {
  background: none; border: 0; cursor: pointer; padding: 0; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center; opacity: .62; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: transform 400ms var(--ease), opacity 400ms var(--ease);
}
.idioma:hover, .idioma:focus-visible { opacity: 1; transform: scale(1.12); }
.idioma[aria-current="true"] { opacity: 1; }
.idioma__b {
  display: block; border-radius: 50%; overflow: hidden; line-height: 0;
  box-shadow: 0 0 0 1px rgba(28, 27, 25, .22), 0 2px 6px -2px rgba(28, 27, 25, .35);
}
.idioma[aria-current="true"] .idioma__b { box-shadow: 0 0 0 2px var(--terracota), 0 2px 6px -2px rgba(28, 27, 25, .35); }
.idioma svg { display: block; width: 26px; height: 26px; border-radius: 50%; }
.idiomas--menu { gap: 10px; align-self: flex-start; margin-bottom: 20px; }
.idiomas--menu .idioma { min-width: 48px; min-height: 48px; }
.idiomas--menu .idioma svg { width: 34px; height: 34px; }
.idiomas--menu .idioma__b { box-shadow: 0 0 0 1px rgba(247, 244, 239, .34), 0 2px 8px -2px rgba(0, 0, 0, .5); }
.idiomas--menu .idioma[aria-current="true"] .idioma__b { box-shadow: 0 0 0 2px var(--melocoton), 0 2px 8px -2px rgba(0, 0, 0, .5); }
.idiomas--menu .idioma:focus-visible { outline-color: var(--melocoton); }

.cabecera__movil { display: flex; align-items: center; gap: 10px; }
.cabecera__tel {
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--tinta); color: var(--tinta); border-radius: var(--radio); font-size: 15px; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.cabecera__menu-btn {
  min-width: 44px; min-height: 44px; background: var(--tinta); color: var(--crema); border: 0;
  border-radius: var(--radio); font-size: 10px; letter-spacing: .12em; padding: 0 14px; cursor: pointer;
}

/* Contacto rápido flotante (solo escritorio) */
.flotante {
  position: fixed; left: clamp(14px, 1.8vw, 28px); bottom: clamp(18px, 2.6vw, 34px); z-index: var(--z-aside);
  display: none; flex-direction: column; gap: 12px; align-items: flex-start;
}
.flotante__btn {
  display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%;
  position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; isolation: isolate;
  background-repeat: no-repeat; background-position: center; background-size: 0% 0%;
  transition: background-size 700ms var(--ease), color 400ms var(--ease), transform 400ms var(--ease);
}
.flotante__btn:hover { background-size: 210% 210%; }
.flotante__btn:active { transform: scale(.97); }
.flotante__btn--tel {
  background-color: var(--terracota); color: var(--crema); font-size: 22px;
  box-shadow: 0 16px 34px -16px rgba(28, 27, 25, .5);
  background-image: radial-gradient(circle closest-side, var(--tinta) 0%, var(--tinta) 99%, rgba(28, 27, 25, 0) 100%);
}
.flotante__btn--tel:hover { color: var(--crema); }
.flotante__btn--tel:focus-visible { outline-color: var(--tinta); }
.flotante__btn--wa {
  background-color: var(--wa); color: var(--wa-tinta);
  box-shadow: 0 16px 34px -16px rgba(28, 27, 25, .45);
  background-image: radial-gradient(circle closest-side, var(--wa-osc) 0%, var(--wa-osc) 99%, rgba(18, 140, 126, 0) 100%);
}
.flotante__btn--wa:hover { color: var(--blanco); }
.flotante__btn--wa:focus-visible { outline-color: var(--wa-tinta); }

/* Menú móvil (diálogo a pantalla completa) */
.menu-movil {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--tinta); color: var(--crema);
  padding: 24px clamp(20px, 6vw, 48px) 40px; display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease), visibility 450ms;
}
.menu-movil.abierto { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-movil__top { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.menu-movil__marca { display: flex; align-items: center; gap: 10px; }
.menu-movil__marca img { width: auto; height: 30px; }
.menu-movil__marca span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; color: var(--pie-texto); }
.menu-movil__cerrar {
  min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--pie-borde-2); color: var(--crema);
  border-radius: var(--radio); font-size: 18px; cursor: pointer;
}
.menu-movil__nav { margin: clamp(20px, 4vh, 44px) 0; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.menu-movil__nav a {
  color: var(--crema); font-family: var(--f-titulo); font-size: clamp(28px, 8vw, 40px); font-weight: 600;
  letter-spacing: -.005em; padding: 8px 0;
}
.menu-movil__nav a[aria-current="page"] { color: var(--melocoton); }
.menu-movil__zonas {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--pie-texto);
  border-top: 1px solid var(--pie-borde); padding-top: 20px; flex-shrink: 0;
}
.menu-movil__zonas span { padding: 8px 0; }
.menu-movil__zonas .zona { color: var(--arena); }
body.menu-abierto { overflow: hidden; }

/* Barra inferior móvil */
.barra-movil {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-barra);
  display: grid; grid-template-columns: 1fr 1fr; background: var(--tinta); border-top: 1px solid var(--pie-borde);
}
.barra-movil a {
  min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--crema); font-size: 16px; font-weight: 600;
}
.barra-movil a:hover { color: var(--crema); }
.barra-movil__wa { background: var(--terracota); }

@media (min-width: 1040px) {
  .nav { display: flex; }
  .cabecera__movil { display: none; }
  .flotante { display: flex; }
  .barra-movil { display: none; }
  .menu-movil { display: none; }
}
/* Móvil y tablet: cabecera compacta, marca en una sola línea (a 360px partía en tres) */
@media (max-width: 1039px) {
  .cabecera { padding-top: 12px; padding-bottom: 12px; }
  .cabecera.es-fija { padding-top: 8px; padding-bottom: 8px; }
  .cabecera__int { gap: 12px; }
  .marca { gap: 10px; min-width: 0; }
  .marca__nombre { white-space: nowrap; }
  .marca__sub { white-space: nowrap; letter-spacing: .14em; font-size: 10px; }
  .cabecera__menu-btn { font-size: 11px; letter-spacing: .1em; }
}
@media (max-width: 479px) {
  .marca__sub { display: none; }
  .marca__img { height: 36px; }
}

/* --------------------------------------------------------------------------
   Héroes
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end;
  overflow: hidden; background: var(--tinta);
}
.hero--inicio { min-height: min(92vh, 960px); }
.hero--contacto { min-height: min(70vh, 660px); }
.hero__fondo { position: absolute; inset: -8% 0; }
.hero__fondo picture, .hero__fondo img { width: 100%; height: 100%; display: block; }
.hero__fondo img { object-fit: cover; }
.hero__velo { position: absolute; inset: 0; pointer-events: none; }
.hero__velo--a { background: linear-gradient(12deg, rgba(28, 27, 25, .94) 0%, rgba(28, 27, 25, .80) 46%, rgba(28, 27, 25, .50) 100%); }
.hero__velo--b { background: linear-gradient(to top, rgba(28, 27, 25, .80) 0%, rgba(28, 27, 25, .42) 46%, rgba(28, 27, 25, 0) 82%); }
.hero--inicio .hero__velo--a {
  background: linear-gradient(to right, rgba(20, 19, 17, .88) 0%, rgba(20, 19, 17, .70) 46%, rgba(20, 19, 17, .34) 78%, rgba(20, 19, 17, .18) 100%),
              linear-gradient(to top, rgba(20, 19, 17, .72) 0%, rgba(20, 19, 17, .30) 38%, rgba(20, 19, 17, 0) 70%);
}
.hero__int {
  position: relative; width: 100%; max-width: var(--ancho); margin: 0 auto;
  padding: clamp(130px, 14vw, 180px) var(--pad-x) clamp(46px, 6vw, 80px);
}
.hero--inicio .hero__int { padding: clamp(150px, 17vw, 230px) var(--pad-x) clamp(52px, 6vw, 88px); }
.hero--contacto .hero__int { padding: clamp(126px, 13vw, 170px) var(--pad-x) clamp(44px, 5vw, 72px); }
.hero__eyebrow { color: var(--melocoton); margin-bottom: 22px; }
.h1 {
  font-family: var(--f-h1); font-size: clamp(36px, 5.6vw, 74px); font-weight: 700; letter-spacing: -.01em;
  line-height: 1.04; margin: 0 0 24px; color: var(--crema); max-width: 26ch; text-wrap: balance;
}
.h1--inicio { font-size: clamp(42px, 6.6vw, 90px); line-height: 1.06; margin-bottom: 26px; max-width: 15ch; }
.h1--inicio span { display: block; }
.h1 em { font-style: italic; color: var(--melocoton); }
.h1--contacto { font-size: clamp(36px, 5.4vw, 72px); max-width: 24ch; }
.h1--legal {
  color: var(--tinta); font-size: clamp(34px, 4.8vw, 64px); line-height: 1; margin-bottom: 20px; max-width: 22ch;
}
.hero__texto { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--arena); max-width: 52ch; margin: 0 0 30px; }
.hero--inicio .hero__texto { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--hueso); margin-bottom: 34px; }
.hero--contacto .hero__texto { font-size: clamp(16.5px, 1.4vw, 19px); margin-bottom: 0; }

.miga {
  margin-bottom: 26px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--arena);
}
.miga a { color: var(--arena); }
.miga a:hover { color: var(--crema); }
.miga [aria-current] { color: var(--melocoton-2); }
.miga--oscura { color: var(--gris); }
.miga--oscura a { color: var(--gris); }
.miga--oscura a:hover { color: var(--tinta); }
.miga--oscura [aria-current] { color: var(--terracota); }

/* --------------------------------------------------------------------------
   Secciones y rejillas
   -------------------------------------------------------------------------- */
.seccion { padding: clamp(64px, 9vw, 130px) var(--pad-x); }
.seccion--pagina { padding: clamp(56px, 8vw, 120px) var(--pad-x); }
.seccion--compacta { padding: clamp(48px, 6vw, 80px) var(--pad-x); }
.seccion--media { padding: clamp(48px, 6vw, 90px) var(--pad-x); }
.seccion--stats { padding: clamp(40px, 5vw, 64px) var(--pad-x); }
.seccion--sin-arriba { padding-top: 0; }
.seccion--legal { padding: clamp(112px, 12vw, 152px) var(--pad-x) clamp(56px, 8vw, 110px); }
.seccion--arena { background: var(--arena); }
.seccion--tinta { background: var(--tinta); color: var(--arena); }
.contenedor { max-width: var(--ancho); margin: 0 auto; }

.rejilla { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rejilla--cab { gap: clamp(20px, 3vw, 48px); align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.rejilla--tarjetas { gap: clamp(18px, 2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.rejilla--tarjetas-320 { gap: clamp(18px, 2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.rejilla--tarjetas-260 { gap: clamp(18px, 2vw, 26px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rejilla--stats { gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rejilla--media { gap: clamp(32px, 5vw, 80px); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.rejilla--centro { align-items: center; }
.rejilla--cta { gap: clamp(28px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.rejilla--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rejilla--galeria { gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lista-fases { list-style: none; margin: 0; padding: 0; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.lista-fases > li { border-top: 1px solid var(--pie-borde); padding-top: 18px; }
.lista-fases .eyebrow { margin-bottom: 10px; }
.rejilla--galeria-4 { gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .rejilla--galeria-4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Componentes
   -------------------------------------------------------------------------- */
/* Cifras */
.stat__num {
  display: flex; flex-direction: column; gap: 8px; font-family: var(--f-titulo);
  font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.01em; line-height: 1.05;
  overflow-wrap: anywhere; hyphens: auto;
}
.stat__num small, .stat__num .sub { font-size: .44em; font-weight: 600; letter-spacing: 0; }
.stat__texto { font-size: 15px; line-height: 1.6; color: var(--gris); }
.regla { height: 1px; background: var(--borde-2); margin: 16px 0; }
.regla--22 { margin: 0 0 22px; }
.regla--24 { margin: 0 0 24px; }
.regla--borde { background: var(--borde); }

/* Marcos de imagen */
.marco { position: relative; width: 100%; overflow: hidden; border-radius: var(--radio); background: var(--arena); }
.marco picture, .marco img { width: 100%; height: 100%; display: block; object-fit: cover; }
.marco--32 { aspect-ratio: 3 / 2; }
.marco--43 { aspect-ratio: 4 / 3; }
.marco--34 { aspect-ratio: 3 / 4; }
.marco--45 { aspect-ratio: 4 / 5; }
.marco--169 { aspect-ratio: 16 / 9; }
.marco--1610 { aspect-ratio: 16 / 10; }
.marco--borde { background: var(--borde); }

/* Tarjetas de servicio */
.tarjeta {
  display: block; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: clamp(22px, 2.4vw, 32px); color: var(--tinta); box-shadow: 0 1px 0 rgba(28, 27, 25, .08);
}
.tarjeta:hover { color: var(--tinta); }
.tarjeta .marco { margin-bottom: 24px; }
.tarjeta .h3 { margin-bottom: 12px; }
.tarjeta--simple { padding: 26px; }
.tarjeta--oscura { background: var(--tinta); color: var(--arena); border-color: var(--tinta); }
.tarjeta__tel {
  font-family: var(--f-cuerpo); font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.005em;
  color: var(--tinta); display: block; padding: 10px 0; min-height: 44px; line-height: 1.3;
}
.tarjeta--oscura .tarjeta__tel { color: var(--crema); display: inline-flex; align-items: center; gap: 10px; }
.tarjeta__tel:hover { color: var(--terracota); }
.tarjeta--oscura .tarjeta__tel:hover { color: var(--melocoton); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  border: 1px solid var(--borde); background: var(--blanco); border-radius: var(--radio);
  padding: 10px 16px; font-size: 14.5px; color: var(--tinta);
}
.bloque-linea { border-top: 1px solid var(--borde); padding-top: clamp(24px, 3vw, 36px); }
.bloque-linea--28 { padding-top: 28px; }

/* Listas con reglas */
.lista-partidas > li { border-top: 1px solid var(--borde); padding: 18px 0; display: grid; gap: 6px; }
.lista-partidas > li:last-child { border-bottom: 1px solid var(--borde); }
.lista-partidas p { font-size: 15px; line-height: 1.7; color: var(--gris); }
.lista-claves > li { border-top: 1px solid var(--borde-2); padding: 18px 0; display: grid; gap: 4px; }
.lista-claves > li:last-child { border-bottom: 1px solid var(--borde-2); }
.lista-claves strong { font-family: var(--f-titulo); font-size: 19px; font-weight: 600; }
.lista-claves span, .lista-claves p { font-size: 15px; line-height: 1.7; color: var(--gris); }
.lista-simple > li { border-top: 1px solid var(--borde-2); padding: 14px 0; font-size: 15.5px; line-height: 1.7; color: var(--gris); }
.lista-simple > li:last-child { border-bottom: 1px solid var(--borde-2); }
.lista-simple--borde > li { border-color: var(--borde); }
.lista-puntos { padding-left: 18px; list-style: disc; font-size: 16.5px; line-height: 1.9; color: var(--gris); }
.lista-puntos li::marker { color: var(--gris); }
.lista-pasos { counter-reset: paso; display: grid; gap: 0; }
.lista-pasos > li { border-top: 1px solid var(--borde); padding: 18px 0; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.lista-pasos > li:last-child { border-bottom: 1px solid var(--borde); }
.lista-pasos > li::before {
  counter-increment: paso; content: counter(paso, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; color: var(--terracota); padding-top: 4px;
}
.lista-pasos p { font-size: 15px; line-height: 1.7; color: var(--gris); }

/* Precios / horquillas */
.precio { font-family: var(--f-titulo); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.precio small { font-family: var(--f-cuerpo); font-size: 14px; font-weight: 400; color: var(--gris); letter-spacing: 0; }

/* Reseñas */
.resena {
  margin: 0; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: clamp(24px, 2.6vw, 34px);
}
.resena__g { display: block; width: 44px; height: 44px; margin-bottom: 14px; }
.resena__texto { margin: 0 0 18px; font-size: 19px; line-height: 1.5; letter-spacing: -.01em; text-wrap: pretty; }
.resena__autor { font-size: 14px; color: var(--gris); line-height: 1.6; }
.resena__autor .mono--tag { display: inline-block; margin-top: 2px; }
.cita { font-size: 15px; line-height: 1.7; color: var(--gris); font-style: normal; }

/* Teléfonos grandes (bloque CTA) */
.telefonos { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.telefonos a {
  font-family: var(--f-cuerpo); font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--tinta);
  padding: 9px 0; min-height: 44px; line-height: 1.3; display: inline-flex; align-items: center; gap: 0;
}
.telefonos--sm a { font-size: clamp(24px, 2.6vw, 32px); }
.telefonos a:hover { color: var(--terracota); }
.telefonos a small { font-size: 14px; font-weight: 400; color: var(--gris); margin-left: .35em; }
.telefonos a .mono--tag { font-size: 12px; color: var(--gris); text-transform: uppercase; margin-left: .35em; }
.telefonos .wa { color: var(--terracota); }
.telefonos .wa:hover { color: var(--terracota-osc); }
.telefonos .wa svg { margin-right: 9px; flex-shrink: 0; }

/* Definiciones (contacto) */
.datos { display: grid; gap: 16px; }
.datos dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); margin-bottom: 6px; }
.datos dd { margin: 0; font-size: 16px; line-height: 1.7; color: var(--tinta); }
.datos dd a { color: var(--tinta); text-decoration: underline; text-decoration-color: var(--borde-2); text-underline-offset: 3px; }
.datos dd a:hover { color: var(--terracota); }

/* Mapa */
.mapa { border: 1px solid var(--borde-2); border-radius: var(--radio); overflow: hidden; background: var(--crema); }
.mapa iframe { display: block; width: 100%; height: min(56vw, 440px); border: 0; }

/* Comparador antes / después */
.comparador {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radio);
  background: var(--arena); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: col-resize;
  --pos: 50%;
}
.comparador__capa { position: absolute; inset: 0; }
.comparador__capa picture, .comparador__capa img { width: 100%; height: 100%; display: block; object-fit: cover; }
.comparador__capa--antes { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparador__etiqueta {
  position: absolute; top: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em;
  background: rgba(28, 27, 25, .72); color: var(--crema); padding: 5px 9px; border-radius: var(--radio); pointer-events: none;
}
.comparador__etiqueta--antes { left: 12px; }
.comparador__etiqueta--despues { right: 12px; }
.comparador__linea {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px);
  background: var(--crema); box-shadow: 0 0 0 1px rgba(28, 27, 25, .25); pointer-events: none;
}
.comparador__tirador {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--crema); color: var(--tinta); border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 13px; cursor: col-resize;
  box-shadow: 0 2px 12px rgba(28, 27, 25, .35);
}
.comparador__tirador:focus-visible { outline: 2px solid var(--terracota); outline-offset: 2px; }

/* Formulario */
.formulario { background: var(--crema); border: 1px solid var(--borde); border-radius: var(--radio); padding: clamp(24px, 3.5vw, 44px); }
.formulario__titulo {
  font-family: var(--f-titulo); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.025em;
  line-height: 1.1; margin: 0 0 8px;
}
.formulario__intro { margin: 0 0 26px; font-size: 15.5px; line-height: 1.7; color: var(--gris); max-width: 46ch; }
.campos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.campos--mas { margin-top: 6px; }
.campos--mas[hidden] { display: none; }
.campo { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--tinta); }
.campo--ancho { grid-column: 1 / -1; }
.campo input, .campo select, .campo textarea {
  font-family: var(--f-cuerpo); font-size: 16px; padding: 13px 14px; min-height: 48px;
  border: 1px solid var(--borde-2); border-radius: var(--radio); background: var(--blanco); color: var(--tinta);
  width: 100%;
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo input[type="file"] { padding: 12px; font-size: 15px; border-style: dashed; color: var(--gris); }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--terracota); outline-offset: 1px; }
.campo input:user-invalid, .campo select:user-invalid { border-color: var(--terracota); }
.formulario__mas {
  margin-top: 18px; background: none; border: 0; padding: 12px 0; min-height: 44px; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--terracota);
  display: flex; align-items: center; gap: 8px;
}
.consentimiento {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 13.5px; line-height: 1.65;
  color: var(--gris); cursor: pointer; font-weight: 400;
}
.consentimiento input { width: 22px; height: 22px; min-width: 22px; margin: 1px 0 0; accent-color: var(--terracota); }
.consentimiento a { text-decoration: underline; text-underline-offset: 2px; }
.formulario__acciones { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.formulario__nota { margin: 18px 0 0; font-size: 13px; color: var(--gris); line-height: 1.6; }
.formulario__error { margin: 14px 0 0; font-size: 14px; color: var(--terracota-osc); }
.formulario__error:empty { display: none; }
.formulario__ok { padding: 12px 0; }
.formulario__ok[hidden] { display: none; }
.formulario__ok h2 { font-family: var(--f-titulo); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 14px; }
.formulario__ok p { margin: 0 0 22px; font-size: 16px; line-height: 1.75; color: var(--gris); max-width: 48ch; }

/* Bloque legal */
.legal { max-width: 76ch; display: grid; gap: 34px; }
.legal h2 { margin-bottom: 12px; }
.legal p { font-size: 16.5px; line-height: 1.8; color: var(--gris); }
.legal p + p { margin-top: 12px; }
.legal p.texto--tinta { color: var(--tinta); margin-bottom: 12px; }
.legal ul { padding-left: 18px; list-style: disc; font-size: 16.5px; line-height: 1.9; color: var(--gris); }
.legal ul li::marker { color: var(--gris); }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--borde-2); }
.legal a:hover { text-decoration-color: currentColor; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; color: var(--gris); }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--borde); vertical-align: top; }
.legal th { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); font-weight: 400; }
.legal tr:last-child td { border-bottom: 1px solid var(--borde); }
.pendiente { font-family: var(--f-mono); border-bottom: 1px dashed var(--gris); }
.fecha { font-family: var(--f-mono); font-size: 15px; color: var(--gris); margin: 0 0 clamp(36px, 4vw, 56px); }
.legal ol { padding-left: 20px; font-size: 16.5px; line-height: 1.9; color: var(--gris); }
.legal li + li { margin-top: 4px; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.pie { background: var(--tinta); color: var(--arena); padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(96px, 10vw, 64px); }
@media (min-width: 1040px) { .pie { padding-bottom: clamp(48px, 6vw, 64px); } }
.pie__rejilla { max-width: var(--ancho); margin: 0 auto; display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pie__logo { width: auto; height: clamp(110px, 12vw, 150px); display: block; margin: 0 0 18px; }
.pie__texto { font-size: 15px; line-height: 1.7; color: var(--pie-texto); max-width: 34ch; }
.pie__titulo { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gris); font-weight: 400; margin: 0 0 18px; }
.pie__col { display: flex; flex-direction: column; gap: 2px; }
.pie__col a { color: var(--arena); font-size: 15px; padding: 7px 0; min-height: 44px; display: flex; align-items: center; }
.pie__col a:hover { color: var(--melocoton); }
.pie__col a[aria-current="page"] { color: var(--melocoton); }
.pie__col .zona { color: var(--arena); font-size: 15px; padding: 7px 0; }
.pie__col .tel { font-size: 17px; font-weight: 600; padding: 11px 0; line-height: 1.3; display: inline-flex; }
.pie__col .tel small { font-size: 13px; font-weight: 400; color: var(--pie-texto); margin-left: .35em; }
.pie__col .mail { font-size: 15px; padding: 11px 0; }
.pie__col .wa { color: var(--terracota); font-size: 15px; padding: 11px 0; display: inline-flex; align-items: center; }
.pie__col .wa svg { margin-right: 9px; }
.pie__col .wa:hover { color: var(--melocoton); }
.pie__dir { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--pie-texto); }
.pie__horario { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--pie-texto); }
.pie__legal { margin: 18px 0 0; font-size: 13px; line-height: 1.7; color: var(--gris); font-family: var(--f-mono); }
.pie__base {
  max-width: var(--ancho); margin: clamp(40px, 5vw, 64px) auto 0; border-top: 1px solid var(--pie-borde); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--gris);
}
.pie__idiomas { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pie__idiomas a { color: var(--gris); }
.pie__idiomas a:hover { color: var(--arena); }
.pie__idiomas a[aria-current="true"] { color: var(--arena); }

/* --------------------------------------------------------------------------
   Móvil y tablet (≤1039px): comodidad de uso. Escritorio (≥1040px) no cambia.
   Revisión 2026-08-18 sobre capturas 390/768: rejillas a una columna cuando eran
   "título | contenido", héroes más cortos, botones a ancho completo en móvil,
   etiquetas mono ≥11-12px, objetivos táctiles ≥44px, tabla de cookies apilada.
   -------------------------------------------------------------------------- */
@media (max-width: 1039px) {
  /* Rejillas "título | contenido" → una columna; las de tarjetas/galerías siguen en varias */
  .rejilla, .rejilla--cab, .rejilla--cta, .rejilla--media { grid-template-columns: 1fr; }
  .rejilla--cab { align-items: start; gap: 16px; margin-bottom: clamp(28px, 4vw, 40px); }
  .rejilla--media { gap: 28px; }
  .rejilla--media .marco--45 { aspect-ratio: 16 / 10; }
  .rejilla--centro { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .rejilla--tarjetas { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
  .rejilla--tarjetas-320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .rejilla--tarjetas-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .rejilla--galeria { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .rejilla--galeria-4 { grid-template-columns: repeat(2, 1fr); }
  .lista-fases { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
  .contenedor.rejilla > .lista-partidas, .contenedor.rejilla > .lista-claves, .contenedor.rejilla > dl { max-width: 64ch; }
  .seccion--arena + .seccion--arena { padding-top: clamp(36px, 5vw, 56px); }

  /* Héroes más cortos: el contenido llega antes */
  .hero { min-height: min(62vh, 640px); }
  .hero--inicio { min-height: min(80vh, 760px); }
  .hero--contacto { min-height: min(56vh, 560px); }
  .hero__int { padding-top: clamp(112px, 12vw, 150px); padding-bottom: clamp(40px, 5vw, 64px); }
  .hero--inicio .hero__int { padding-top: clamp(120px, 15vw, 170px); }
  .hero--contacto .hero__int { padding-top: clamp(108px, 12vw, 150px); }
  .h1 { font-size: clamp(34px, 5.4vw, 56px); }
  .h1--inicio { font-size: clamp(38px, 6.2vw, 64px); }
  .h1--contacto { font-size: clamp(34px, 5.2vw, 54px); }

  /* Tipografía auxiliar legible en pantallas pequeñas */
  .eyebrow { font-size: 12px; letter-spacing: .16em; }
  .eyebrow--sm, .pie__titulo, .datos dt, .legal th, .comparador__etiqueta, .menu-movil__marca span { font-size: 11px; letter-spacing: .14em; }
  .mono--tag, .miga { font-size: 12px; letter-spacing: .12em; }
  .cabecera__menu-btn { font-size: 12px; letter-spacing: .08em; }
  .resena__texto { font-size: 17px; line-height: 1.55; }
  .legal { max-width: 66ch; }
  .legal a[href^="tel:"] { white-space: nowrap; }

  /* Formulario */
  .formulario__mas { font-size: 12px; letter-spacing: .09em; text-align: left; justify-content: flex-start; flex-wrap: wrap; line-height: 1.4; }
  .formulario__nota, .consentimiento, .pie__base { font-size: 14px; }
  .consentimiento { padding: 4px 0; gap: 14px; }
  .consentimiento input { width: 24px; height: 24px; min-width: 24px; margin-top: 0; }

  /* Objetivos táctiles y pistas de interacción */
  .telefonos a { text-decoration: underline; text-decoration-color: var(--borde-2); text-underline-offset: 6px; text-decoration-thickness: 1px; }
  .enlace-sub { display: inline-block; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--terracota); text-underline-offset: 4px; padding: 10px 0; margin: -10px 0; }
  .pie__idiomas { gap: 0 10px; }
  .pie__idiomas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: 0 -6px; }
  .pie__base { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pie__col .zona { padding: 11px 0; }
  .mapa iframe { height: clamp(260px, 62vw, 440px); }

  /* Menú móvil: sin recorte por arriba si no cabe, y la barra Llamar | WhatsApp sigue accesible */
  .menu-movil { justify-content: flex-start; padding-bottom: 88px; }
  .menu-movil__nav { margin: auto 0; padding: clamp(20px, 4vh, 44px) 0; }
  .menu-movil__nav a { font-size: clamp(26px, 7vw, 36px); padding: 6px 0; }
  body.menu-abierto .barra-movil { z-index: calc(var(--z-menu) + 1); }
}
/* En pantallas táctiles el mapa no captura el desplazamiento; el botón "Abrir mapa" lo abre completo */
@media (hover: none) and (pointer: coarse) { .mapa iframe { pointer-events: none; } }

/* Tablet (600–1039px) */
@media (min-width: 600px) and (max-width: 1039px) {
  .rejilla--stats { grid-template-columns: repeat(2, 1fr); }
  .lista-fases { grid-template-columns: repeat(2, 1fr); }
  .lista-fases > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 720px) and (max-width: 1039px) {
  .pie__rejilla { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .pie__rejilla > :first-child { grid-column: 1 / -1; }
  .pie__logo { height: 96px; }
}

/* Móvil (≤599px) */
@media (max-width: 599px) {
  .hero { min-height: 0; }
  .hero--inicio { min-height: min(72vh, 640px); }
  .hero__int { padding-top: 100px; padding-bottom: 36px; }
  .hero--inicio .hero__int { padding-top: 108px; padding-bottom: 40px; }
  .hero--contacto .hero__int { padding-top: 100px; }
  .h1 { font-size: clamp(31px, 8.4vw, 36px); margin-bottom: 18px; }
  .h1--inicio { font-size: clamp(36px, 9.6vw, 42px); margin-bottom: 20px; }
  .h1--contacto { font-size: clamp(31px, 8.4vw, 36px); }
  .hero__texto, .hero--inicio .hero__texto { font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
  .hero__eyebrow { font-size: 11.5px; letter-spacing: .12em; margin-bottom: 16px; }
  .miga { margin-bottom: 18px; }
  .botones { gap: 10px; }
  .botones .btn, .formulario__acciones .btn { width: 100%; flex: 1 1 100%; }
  .formulario__acciones { gap: 10px; }
  .tarjeta { padding: 18px; }
  .tarjeta .marco--32 { aspect-ratio: 16 / 9; margin-bottom: 16px; }
  .rejilla--media .marco--45 { aspect-ratio: 4 / 3; }
  .rejilla--centro .marco--34 { aspect-ratio: 4 / 5; }
  .resena { padding: 22px; }
  .rejilla--galeria-4 { gap: 12px; }
  .rejilla--galeria-4 figcaption { font-size: 13.5px; line-height: 1.55; }
  /* Tabla de cookies apilada: una ficha por fila */
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { border-top: 1px solid var(--borde); padding: 14px 0; }
  .legal tr:last-child { border-bottom: 1px solid var(--borde); }
  .legal td, .legal tr:last-child td { border: 0; padding: 2px 0; }
  .legal td:first-child { color: var(--tinta); font-size: 16px; }
  .legal td:last-child::before { content: "Duración: "; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
  :lang(en) .legal td:last-child::before { content: "Duration: "; }
  :lang(de) .legal td:last-child::before { content: "Dauer: "; }
}

/* --------------------------------------------------------------------------
   Movimiento
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); will-change: opacity, transform; }
[data-reveal].visto { opacity: 1; transform: none; }
[data-rule] { transform-origin: left center; transform: scaleX(0); transition: transform 800ms var(--ease); }
[data-rule].visto { transform: scaleX(1); }
[data-tilt] { transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
.no-js [data-reveal], .no-js [data-rule] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; transition: opacity 500ms ease; }
  [data-rule] { transform: none; }
  .btn, .idioma, .flotante__btn, .menu-movil, .cabecera { transition: none; }
}
