/* =====================================================================
   Óptica Moraira — hoja de estilos
   ---------------------------------------------------------------------
   Concepto: «Luz de Moraira». Cal, arena, olivo y la montura redonda
   del logotipo.
   Minimalismo cálido y editorial: mucho aire, fotografía real y una
   tipografía serif que habla bajito.

   ÍNDICE
    1. Tipografías (alojadas en la propia web, sin llamar a Google)
    2. Variables: colores, tipografía, espacios, movimiento
    3. Base
    4. Utilidades de maquetación
    5. Tipografía editorial
    6. Botones y enlaces
    7. Cabecera y navegación
    8. Portada (hero)
    9. Bloques de la portada
   10. Componentes compartidos (pasos, citas, marcas, galería, FAQ…)
   11. Páginas interiores
   12. Visita / contacto y formulario
   13. Pie de página
   14. Guía de salud visual y páginas legales
   15. Movimiento (aparición suave) y preferencias de accesibilidad
   ===================================================================== */


/* 1. TIPOGRAFÍAS ------------------------------------------------------
   Outfit (titulares) y DM Sans (textos), ambas con licencia
   SIL Open Font License: uso comercial libre. Solo el juego "latin",
   que cubre español, inglés, alemán y neerlandés. */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}


/* 2. VARIABLES -------------------------------------------------------- */
:root {
  /* Colores (contraste comprobado con WCAG 2.2 AA; ver DISENO.md) */
  --cal: #FBF9F5;          /* fondo: blanco cálido de pared encalada */
  --arena: #F2ECE2;        /* superficie alternativa */
  --arena-oscura: #E4D9C8; /* bordes suaves, fondos de imagen */
  --tinta: #1F221C;        /* texto principal (15:1) */
  --tinta-suave: #5A5E54;  /* texto secundario (6,2:1) */
  --oliva: #4A5A36;          /* verde olivo: texto de marca, enlaces y botones (7,1:1) */
  --oliva-hondo: #38452A;    /* estado hover / activo */
  --acento: #8E9B66;     /* verde olivo claro: solo decorativo */
  --mar: #255F7A;          /* azul mar: palabras destacadas, números, lente (6,7:1) */
  --mar-claro: #8FC7DE;    /* azul sobre fondos oscuros (6,9:1) */
  --oliva-claro: #B5C48E;  /* verde olivo claro sobre fondos oscuros (6,8:1) */
  --verde-vivo: #2E7D32;   /* verde intenso: palabras destacadas y números (5,0:1 sobre cal) */
  --verde-vivo-claro: #9BE29B; /* verde intenso sobre fondos oscuros (8,5:1) */
  --agua: #E4EEEA;         /* superficie fría alternativa, como el mar al fondo */
  --roble: #8A5F3B;        /* acento del suelo de roble (5,3:1) */
  --noche: #1D3733;        /* bloques oscuros: verde mar profundo */
  --noche-texto: #F4EFE7;
  --noche-suave: #C9C2AE;
  --linea: rgba(31, 34, 28, 0.14);
  --linea-fuerte: rgba(31, 34, 28, 0.32);
  --foco: #4A5A36;

  /* Tipografía */
  --serif: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* titulares (nombre historico de la variable) */
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala tipográfica fluida (móvil → escritorio) */
  --t-display: clamp(2.6rem, 1.3rem + 5.4vw, 5.6rem);
  --t-h2: clamp(1.9rem, 1.35rem + 2.4vw, 3.2rem);
  --t-h3: clamp(1.3rem, 1.15rem + 0.6rem, 1.6rem);
  --t-entradilla: clamp(1.15rem, 1.02rem + 0.45vw, 1.35rem);
  --t-cuerpo: 1.0625rem;   /* 17 px */
  --t-pequeno: 0.875rem;
  --t-etiqueta: 0.75rem;

  /* Espacios: escala de 4 px */
  --e-1: 0.25rem; --e-2: 0.5rem; --e-3: 0.75rem; --e-4: 1rem; --e-5: 1.5rem;
  --e-6: 2rem; --e-7: 3rem; --e-8: 4rem; --e-9: 6rem; --e-10: 8rem;
  --margen: clamp(1rem, 0.5rem + 3vw, 3rem);          /* margen lateral */
  --seccion: clamp(4.5rem, 2.5rem + 7vw, 9.5rem);     /* aire entre secciones */
  --ancho: 82rem;                                     /* 1312 px */
  --ancho-texto: 38rem;

  /* Formas */
  --radio: 4px;
  --arco: 999px 999px 0 0 / 50% 50% 0 0; /* arco mediterráneo para fotografías */

  /* Movimiento */
  --suave: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duracion: 0.6s;

  --alto-cabecera: 4.75rem;
}


/* 3. BASE ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-cabecera) + 1rem);
}

body {
  margin: 0;
  background: var(--cal);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: var(--t-cuerpo);
  line-height: 1.65;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--linea); margin: 0; }

:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 3px;
  border-radius: 2px;
}
.zona-oscura :focus-visible { outline-color: var(--noche-texto); }

::selection { background: #DDE3C8; color: var(--tinta); }

.saltar {
  position: absolute; left: var(--e-4); top: -4rem; z-index: 100;
  padding: var(--e-3) var(--e-5);
  background: var(--tinta); color: var(--cal);
  text-decoration: none; border-radius: var(--radio);
}
.saltar:focus { top: var(--e-4); }

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


/* 4. MAQUETACIÓN ------------------------------------------------------ */
.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin-inline: auto;
  padding-inline: var(--margen);
}

.seccion { padding-block: var(--seccion); }
.seccion--arena { background: var(--arena); }
.seccion--agua { background: var(--agua); }
.seccion--ajustada { padding-block: calc(var(--seccion) * 0.6); }
.seccion + .seccion:not(.seccion--arena):not(.zona-oscura) { padding-top: 0; }

/* Rejilla de 12 columnas para composiciones asimétricas */
.rejilla {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  row-gap: var(--e-7);
}
.rejilla > * { grid-column: 1 / -1; }

.pila > * + * { margin-top: var(--e-5); }
.pila--amplia > * + * { margin-top: var(--e-6); }


/* 5. TIPOGRAFÍA EDITORIAL --------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .cita-grande em {
  font-style: normal;
  font-weight: 300;
  color: var(--verde-vivo);
}
.zona-oscura h1 em, .zona-oscura h2 em { color: var(--verde-vivo-claro); }

.titulo-display { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
h2, .h2 { font-size: var(--t-h2); line-height: 1.1; }
h3, .h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }

.entradilla {
  font-family: var(--sans);
  font-size: var(--t-entradilla);
  line-height: 1.5;
  font-weight: 400;
  color: var(--tinta);
  max-width: 34em;
  text-wrap: pretty;
}

.texto { max-width: var(--ancho-texto); color: var(--tinta-suave); text-wrap: pretty; }
.texto strong { color: var(--tinta); font-weight: 600; }
.texto > * + * { margin-top: var(--e-4); }

/* Antetítulo con un pequeño círculo (la lente del logotipo) */
.antetitulo {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: var(--e-5);
  font-family: var(--sans);
  font-size: var(--t-etiqueta);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.antetitulo::before {
  content: '';
  width: 0.7em; height: 0.7em;
  border: 1.5px solid var(--mar);
  border-radius: 50%;
  flex: none;
}
.zona-oscura .antetitulo { color: var(--noche-suave); }

.numero {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--verde-vivo);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.nota { font-size: var(--t-pequeno); color: var(--tinta-suave); }


/* 6. BOTONES Y ENLACES ------------------------------------------------ */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--oliva);
  border-radius: 999px;
  background: var(--oliva);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--suave), color 0.3s var(--suave), border-color 0.3s var(--suave);
}
.boton:hover { background: var(--oliva-hondo); border-color: var(--oliva-hondo); }
.boton:active { transform: translateY(1px); }

.boton--linea { background: transparent; color: var(--tinta); border-color: var(--linea-fuerte); }
.boton--linea:hover { background: var(--tinta); border-color: var(--tinta); color: var(--cal); }

.zona-oscura .boton { background: var(--noche-texto); border-color: var(--noche-texto); color: var(--noche); }
.zona-oscura .boton:hover { background: #fff; border-color: #fff; }
.zona-oscura .boton--linea { background: transparent; color: var(--noche-texto); border-color: rgba(244, 239, 231, 0.4); }
.zona-oscura .boton--linea:hover { background: var(--noche-texto); color: var(--noche); }

.boton--pequeno { min-height: 2.5rem; padding: 0.55rem 1.15rem; font-size: 0.875rem; }
.boton svg { width: 1.1em; height: 1.1em; flex: none; }

.botones { display: flex; flex-wrap: wrap; gap: var(--e-3); align-items: center; }

/* Enlace editorial con flecha */
.enlace {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-block: 0.35em;
  color: var(--oliva);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--suave);
}
.enlace::after {
  content: '→';
  transition: transform 0.4s var(--suave);
}
.enlace:hover { background-size: 0 1px; background-position: 100% 100%; }
.enlace:hover::after { transform: translateX(4px); }
.zona-oscura .enlace { color: var(--noche-texto); }

.texto a, .legal a, .tema a, .faq a { color: var(--oliva); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.texto a:hover, .legal a:hover, .tema a:hover, .faq a:hover { color: var(--oliva-hondo); text-decoration-thickness: 2px; }


/* 7. CABECERA Y NAVEGACIÓN -------------------------------------------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--suave), box-shadow 0.3s var(--suave);
}
@supports (backdrop-filter: blur(1px)) {
  .cabecera { background: rgba(251, 249, 245, 0.82); backdrop-filter: saturate(1.4) blur(14px); }
}
.cabecera--con-sombra { border-bottom-color: var(--linea); }

.cabecera__fila {
  display: flex;
  align-items: center;
  gap: var(--e-5);
  min-height: var(--alto-cabecera);
}

/* Logotipo: símbolo original + nombre en tipografía de la web */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--tinta);
  flex: none;
}
.logo img { width: 48px; height: 21px; }
.logo__nombre {
  display: grid;
  line-height: 1;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo__nombre small {
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.nav { margin-left: auto; }
.nav__lista { display: flex; gap: clamp(1rem, 2vw, 2rem); margin: 0; padding: 0; list-style: none; }
.nav__lista a {
  position: relative;
  display: block;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--tinta);
}
.nav__lista a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0.2rem;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--suave);
}
.nav__lista a:hover::after,
.nav__lista a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav__lista a[aria-current='page'] { color: var(--oliva); }

.cabecera__acciones { display: flex; align-items: center; gap: var(--e-3); }

.idiomas { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.idiomas a {
  display: grid; place-items: center;
  min-width: 2.25rem; min-height: 2.25rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-decoration: none; color: var(--tinta-suave);
  border-radius: 999px;
}
.idiomas a:hover { color: var(--tinta); background: var(--arena); }
.idiomas a[aria-current='true'] { color: var(--tinta); }

.icono-boton {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--linea);
  border-radius: 50%;
  color: var(--tinta);
  background: transparent;
  text-decoration: none;
  transition: background-color 0.3s var(--suave), border-color 0.3s var(--suave);
}
.icono-boton:hover { background: var(--arena); border-color: var(--linea-fuerte); }
.icono-boton svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.boton-menu { display: none; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.boton-menu span { display: block; width: 1.1rem; height: 1px; background: currentColor; transition: transform 0.35s var(--suave), opacity 0.2s; }
.boton-menu span + span { margin-top: 5px; }
.boton-menu[aria-expanded='true'] span:first-child { transform: translateY(3px) rotate(45deg); }
.boton-menu[aria-expanded='true'] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Menú móvil a pantalla completa */
.menu-movil {
  position: fixed;
  inset: var(--alto-cabecera) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: var(--e-7);
  padding: var(--e-6) var(--margen) var(--e-7);
  background: var(--cal);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--suave), visibility 0.35s;
}
/* Al abrir, la visibilidad cambia al instante (para poder llevar el foco dentro) */
.menu-movil--abierto { visibility: visible; opacity: 1; transition: opacity 0.35s var(--suave), visibility 0s; }
.menu-movil ul { margin: 0; padding: 0; list-style: none; }
.menu-movil__principal a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--linea);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
}
.menu-movil__principal a[aria-current='page'] { color: var(--oliva); }
.menu-movil__principal .numero { font-size: 0.85rem; }
.menu-movil__pie { display: grid; gap: var(--e-5); margin-top: auto; }
.menu-movil__pie .boton { width: 100%; }
.menu-movil__datos { font-size: var(--t-pequeno); color: var(--tinta-suave); }
.menu-movil__datos a { color: var(--tinta); }

@media (max-width: 1023px) {
  .nav, .cabecera__acciones .boton, .cabecera__acciones .idiomas { display: none; }
  .boton-menu { display: flex; }
  .cabecera__acciones { margin-left: auto; }
}
@media (min-width: 1024px) {
  .menu-movil { display: none; }
}
/* Móviles estrechos: el teléfono ya está en la portada y en la barra inferior */
@media (max-width: 419px) {
  .cabecera__acciones .icono-boton--telefono { display: none; }
  .logo__nombre { font-size: 1.3rem; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .cabecera__acciones .icono-boton--telefono { display: none; }
}


/* 8. PORTADA (HERO) --------------------------------------------------- */
.hero { padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); padding-bottom: var(--seccion); }

.hero__rejilla { align-items: end; row-gap: var(--e-7); }
.hero__texto { grid-column: 1 / -1; }
.hero__titulo { margin-block: var(--e-2) var(--e-6); }
.hero__titulo .antetitulo { display: flex; width: max-content; }
.hero__entradilla { margin-bottom: var(--e-6); }

.hero__imagen { grid-column: 1 / -1; position: relative; }
.hero__imagen img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: var(--arco);
  background: var(--arena-oscura);
}
/* Pequeña ficha flotante sobre la foto: dirección y estado de apertura */
.hero__ficha {
  position: absolute;
  left: clamp(-1rem, -2vw, 0rem);
  bottom: var(--e-6);
  display: grid;
  gap: 0.15rem;
  max-width: 17rem;
  padding: var(--e-4) var(--e-5);
  background: var(--cal);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: 0 18px 40px -24px rgba(38, 43, 32, 0.45);
  font-size: var(--t-pequeno);
}
.hero__ficha strong { font-weight: 600; }

.datos-rapidos {
  display: flex; flex-wrap: wrap; gap: var(--e-3) var(--e-6);
  margin-top: var(--e-7); padding: var(--e-5) 0 0; list-style: none;
  border-top: 1px solid var(--linea);
  font-size: var(--t-pequeno); color: var(--tinta-suave);
}
.datos-rapidos li { display: flex; align-items: center; gap: 0.55em; }
.datos-rapidos svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--oliva); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (min-width: 768px) {
  .hero__texto { grid-column: 1 / span 7; padding-bottom: var(--e-6); }
  .hero__imagen { grid-column: 8 / -1; }
}
@media (min-width: 1100px) {
  .hero__texto { grid-column: 1 / span 7; }
  .hero__imagen { grid-column: 8 / span 5; }
  .hero__imagen img { aspect-ratio: 4 / 5.4; }
}

/* Estado "abierto / cerrado" */
.estado-tienda { display: inline-flex; align-items: center; gap: 0.5em; }
.estado-tienda::before {
  content: '';
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--tinta-suave); flex: none;
}
.estado-tienda--abierto::before { background: #2E9B57; box-shadow: 0 0 0 3px rgba(46, 155, 87, 0.18); }
.estado-tienda--cerrado::before { background: #B4553C; }


/* 9. BLOQUES DE LA PORTADA -------------------------------------------- */

/* Declaración de intenciones: una frase grande y tres ideas */
.declaracion__frase {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.05rem + 2.1vw, 2.7rem);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.declaracion__frase em { font-style: normal; font-weight: 300; color: var(--verde-vivo); }
.declaracion__ideas {
  grid-column: 1 / -1;
  display: grid; gap: var(--e-6);
  margin: 0; padding: var(--e-6) 0 0; list-style: none;
  border-top: 1px solid var(--linea);
}
.declaracion__ideas h3 { font-size: 1.35rem; margin-block: var(--e-2) var(--e-3); }
.declaracion__ideas p { color: var(--tinta-suave); }
@media (min-width: 768px) {
  .declaracion__frase { grid-column: 1 / span 10; }
  .declaracion__ideas { grid-template-columns: repeat(3, 1fr); gap: var(--e-7); }
}

/* Servicios en la portada: foto fija + índice editorial */
.servicios-portada__cabecera { grid-column: 1 / -1; }
.servicios-portada__foto { grid-column: 1 / -1; }
.servicios-portada__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); }
.servicios-portada__lista { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linea); }
@media (min-width: 900px) {
  .servicios-portada__cabecera { grid-column: 1 / span 8; }
  .servicios-portada__foto { grid-column: 1 / span 5; }
  .servicios-portada__foto > div { position: sticky; top: calc(var(--alto-cabecera) + 2rem); }
  .servicios-portada__lista { grid-column: 7 / -1; }
}

.indice-servicio { border-bottom: 1px solid var(--linea); }
.indice-servicio a {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: var(--e-2) var(--e-4);
  align-items: baseline;
  padding-block: var(--e-6);
  text-decoration: none;
}
.indice-servicio h3 { transition: color 0.3s var(--suave); }
.indice-servicio p { grid-column: 2 / 3; color: var(--tinta-suave); max-width: 32rem; }
.indice-servicio .flecha {
  grid-column: 3; grid-row: 1;
  color: var(--oliva);
  transition: transform 0.4s var(--suave);
}
.indice-servicio a:hover h3 { color: var(--oliva); }
.indice-servicio a:hover .flecha { transform: translateX(6px); }

/* Escaparate: selección de monturas (sin precios, no es tienda online) */
.escaparate { display: grid; gap: var(--e-6) clamp(1rem, 2.5vw, 2.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .escaparate { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.montura__foto {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radio);
  aspect-ratio: 4 / 3;
}
.montura__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--suave); }
.montura:hover .montura__foto img { transform: scale(1.04); }
.montura__marca { margin-top: var(--e-4); font-size: var(--t-etiqueta); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinta-suave); }
.montura__modelo { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }

.cabecera-bloque {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: var(--e-5);
  margin-bottom: var(--e-8);
}
.cabecera-bloque > div { max-width: 46rem; }
.cabecera-bloque .entradilla { margin-top: var(--e-5); }


/* 10. COMPONENTES COMPARTIDOS ----------------------------------------- */

/* Muro de marcas: logotipos en negro, ordenados y en calma */
.muro-marcas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--linea);
  border-left: 1px solid var(--linea);
}
@media (min-width: 600px) { .muro-marcas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .muro-marcas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .muro-marcas--amplio { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.muro-marcas li {
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.25rem 1.75rem;
  border-right: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}
.muro-marcas img {
  width: auto; max-width: 78%; max-height: 2.4rem;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  opacity: 0.86;
  transition: opacity 0.3s var(--suave);
}
.muro-marcas li:hover img { opacity: 1; }

/* Pasos del proceso de atención */
.pasos {
  display: grid; gap: var(--e-6);
  margin: 0; padding: 0; list-style: none;
  counter-reset: paso;
}
@media (min-width: 768px) { .pasos { grid-template-columns: repeat(2, 1fr); gap: var(--e-7) var(--e-7); } }
@media (min-width: 1100px) { .pasos { grid-template-columns: repeat(4, 1fr); } }
.paso { padding-top: var(--e-5); border-top: 1px solid var(--linea-fuerte); }
.paso h3 { font-size: 1.4rem; margin-block: var(--e-3) var(--e-3); }
.paso p { color: var(--tinta-suave); }
.zona-oscura .paso { border-top-color: rgba(244, 239, 231, 0.3); }
.zona-oscura .paso p { color: var(--noche-suave); }
.zona-oscura .numero { color: var(--verde-vivo-claro); }

/* Reseñas reales de Google */
.resenas { display: grid; gap: var(--e-5); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .resenas { grid-template-columns: repeat(3, 1fr); } }
.resena {
  display: flex; flex-direction: column; gap: var(--e-5);
  height: 100%;
  padding: var(--e-6);
  background: var(--cal);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
}
.resena blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 400;
}
.resena figcaption { margin-top: auto; font-size: var(--t-pequeno); color: var(--tinta-suave); }
.resena figcaption strong { color: var(--tinta); font-weight: 600; }
.estrellas { color: var(--verde-vivo); letter-spacing: 0.2em; font-size: 0.85rem; }
.resena__idioma { font-size: var(--t-etiqueta); letter-spacing: 0.1em; text-transform: uppercase; }

/* Galería de la tienda: composición asimétrica */
.galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.4vw, 1.25rem);
  margin: 0; padding: 0; list-style: none;
}
.galeria img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radio); }
.galeria li:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.galeria li:nth-child(2), .galeria li:nth-child(3) { aspect-ratio: 3 / 4; }
.galeria li:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .galeria { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(9rem, 14vw, 13rem); }
  .galeria li { aspect-ratio: auto !important; }
  .galeria li:nth-child(1) { grid-column: 1 / span 7; grid-row: span 3; }
  .galeria li:nth-child(2) { grid-column: 8 / span 5; grid-row: span 2; }
  .galeria li:nth-child(3) { grid-column: 8 / span 2; grid-row: span 2; display: none; }
  .galeria li:nth-child(4) { grid-column: 8 / span 5; grid-row: span 2; }
  .galeria li:nth-child(5) { grid-column: 1 / span 7; grid-row: span 1; display: none; }
}

/* Foto con arco mediterráneo */
.foto-arco img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--arco); }
.pie-foto { margin-top: var(--e-3); font-size: var(--t-pequeno); color: var(--tinta-suave); }

/* Preguntas frecuentes (acordeón nativo <details>) */
.faq { max-width: 52rem; border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--e-5);
  padding-block: var(--e-5);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 0.75rem; height: 0.75rem;
  background:
    linear-gradient(var(--oliva), var(--oliva)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--oliva), var(--oliva)) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--suave);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--oliva); }
.faq details > div { padding-bottom: var(--e-5); max-width: 44rem; color: var(--tinta-suave); }
.faq details > div > * + * { margin-top: var(--e-3); }

/* Lista con trazo fino */
.lista-trazo { margin: 0; padding: 0; list-style: none; }
.lista-trazo li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid var(--linea);
  color: var(--tinta);
}
.lista-trazo li::before {
  content: '';
  position: absolute; left: 0; top: 1.35rem;
  width: 0.8rem; height: 1px; background: var(--mar);
}

/* Aviso de información pendiente de confirmar */
.pendiente { background: #FFF2C6; padding: 0 0.25em; border-radius: 2px; }

/* Marco de FOTO PENDIENTE: ocupa el sitio exacto de la fotografía real.
   Cuando llegue la foto, se sustituye el <div class="foto-pendiente">
   por <img src="img/fotos/..." alt="..." width="..." height="...">. */
.foto-pendiente {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--proporcion, 4 / 5);
  padding: var(--e-5);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(37, 95, 122, 0.2), transparent 55%),
    linear-gradient(160deg, #EDE4D4, #D9E3DD);
  color: var(--tinta-suave);
  text-align: center;
  font-size: var(--t-pequeno);
  border-radius: var(--radio);
}
.foto-pendiente::before {
  content: '';
  position: absolute; inset: 0.75rem;
  border: 1px dashed rgba(31, 34, 28, 0.25);
  border-radius: inherit;
}
.foto-pendiente span { position: relative; display: grid; gap: 0.35rem; justify-items: center; max-width: 18rem; }
.foto-pendiente strong { font-size: var(--t-etiqueta); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tinta); }
.foto-pendiente img { width: 3rem !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; border-radius: 0 !important; opacity: 0.55; }
.foto-pendiente--arco { border-radius: var(--arco); }
.foto-pendiente--arco::before { border-radius: var(--arco); }
.zona-oscura .foto-pendiente { background: linear-gradient(160deg, #2A4642, #3F3A33); color: var(--noche-suave); }
.zona-oscura .foto-pendiente strong { color: var(--noche-texto); }
.zona-oscura .foto-pendiente::before { border-color: rgba(244, 239, 231, 0.25); }

/* Índice tipográfico de marcas (sin logotipos: más elegante y uniforme) */
.indice-marcas {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.2em 0;
  margin: 0; padding: 0; list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1rem + 1.9vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.indice-marcas li { white-space: nowrap; }
.indice-marcas li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 0.22em; height: 0.22em;
  margin: 0 0.45em;
  border: 1px solid var(--mar);
  border-radius: 50%;
  vertical-align: middle;
}
.indice-marcas li:nth-child(3n + 2) { font-weight: 300; color: var(--verde-vivo); }
.indice-marcas--compacto { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem); }

.lista-marcas { columns: 2 12rem; column-gap: var(--e-6); margin: 0; padding: 0; list-style: none; }
.lista-marcas li { break-inside: avoid; padding: 0.6rem 0; border-bottom: 1px solid var(--linea); font-family: var(--serif); font-size: 1.35rem; }


/* 11. PÁGINAS INTERIORES ---------------------------------------------- */
.cabecera-pagina { padding-top: clamp(2.5rem, 1.5rem + 5vw, 6rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.cabecera-pagina h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; max-width: 15ch; }
.cabecera-pagina .entradilla { margin-top: var(--e-6); }

.migas { margin-bottom: var(--e-6); font-size: var(--t-pequeno); color: var(--tinta-suave); }
.migas ol { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0; padding: 0; list-style: none; }
.migas li + li::before { content: '/'; margin-right: 0.5em; opacity: 0.5; }
.migas a { color: inherit; }

.portada-interior img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radio); }
@media (max-width: 767px) { .portada-interior img { aspect-ratio: 4 / 3; } }

/* Bloque editorial texto + imagen, alternable */
.bloque-editorial { align-items: center; }
.bloque-editorial__texto { grid-column: 1 / -1; }
.bloque-editorial__imagen { grid-column: 1 / -1; }
.bloque-editorial__imagen img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); }
@media (min-width: 900px) {
  .bloque-editorial__texto { grid-column: 1 / span 6; }
  .bloque-editorial__imagen { grid-column: 8 / -1; }
  .bloque-editorial--invertido .bloque-editorial__texto { grid-column: 7 / -1; grid-row: 1; }
  .bloque-editorial--invertido .bloque-editorial__imagen { grid-column: 1 / span 5; grid-row: 1; }
}

/* Ficha de servicio */
.servicio { padding-block: var(--e-8); border-top: 1px solid var(--linea); }
.servicio:first-child { border-top: 0; padding-top: 0; }
.servicio__rejilla { row-gap: var(--e-5); }
.servicio__titulo { grid-column: 1 / -1; }
.servicio__titulo h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); margin-top: var(--e-3); }
.servicio__cuerpo { grid-column: 1 / -1; }
.servicio__cuerpo .lista-trazo { margin-top: var(--e-5); }
.servicio__cuerpo .botones { margin-top: var(--e-6); }
@media (min-width: 900px) {
  .servicio__titulo { grid-column: 1 / span 5; }
  .servicio__cuerpo { grid-column: 7 / -1; }
}

/* Índice de anclas de la página de servicios */
.indice-anclas { display: flex; flex-wrap: wrap; gap: var(--e-2); margin: var(--e-6) 0 0; padding: 0; list-style: none; }
.indice-anclas a {
  display: inline-flex; align-items: center; min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--linea-fuerte); border-radius: 999px;
  font-size: var(--t-pequeno); text-decoration: none;
  transition: background-color 0.3s var(--suave), color 0.3s var(--suave);
}
.indice-anclas a:hover { background: var(--tinta); color: var(--cal); border-color: var(--tinta); }

/* Marcas agrupadas */
.grupo-marcas + .grupo-marcas { margin-top: var(--e-9); }
.grupo-marcas__cabecera { display: grid; gap: var(--e-3); margin-bottom: var(--e-6); }
@media (min-width: 900px) {
  .grupo-marcas__cabecera { grid-template-columns: 5fr 7fr; align-items: end; gap: var(--e-7); }
}
.grupo-marcas__cabecera p { color: var(--tinta-suave); max-width: 36rem; }

/* Llamada final, sobria */
.llamada { text-align: left; }
.llamada__caja {
  display: grid; gap: var(--e-6); align-items: end;
  padding-block: var(--e-8);
  border-top: 1px solid var(--linea-fuerte);
}
@media (min-width: 900px) { .llamada__caja { grid-template-columns: 7fr 5fr; } .llamada__caja .botones { justify-content: flex-end; } }


/* 12. VISITA / CONTACTO ----------------------------------------------- */
.zona-oscura { background: var(--noche); color: var(--noche-texto); }
.zona-oscura .texto, .zona-oscura p { color: var(--noche-suave); }
.zona-oscura h2, .zona-oscura h3, .zona-oscura strong { color: var(--noche-texto); }
.zona-oscura a { color: var(--noche-texto); }

.visita__rejilla { row-gap: var(--e-8); }
.visita__titulo { grid-column: 1 / -1; }
.visita__datos { grid-column: 1 / -1; display: grid; gap: var(--e-6); }
.visita__foto { grid-column: 1 / -1; }
.visita__foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0%; border-radius: var(--arco); opacity: 0.95; }
@media (min-width: 600px) { .visita__datos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .visita__titulo { grid-column: 1 / span 7; }
  .visita__datos { grid-column: 1 / span 7; }
  .visita__foto { grid-column: 9 / -1; grid-row: 1 / span 2; align-self: end; }
}
.dato__etiqueta {
  margin-bottom: var(--e-2);
  font-size: var(--t-etiqueta); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.zona-oscura .dato__etiqueta { color: #9FD0C4; }
.dato__valor { font-size: 1.0625rem; line-height: 1.6; }
.zona-oscura .dato__valor { color: var(--noche-texto); }
.dato__valor a { text-decoration-color: rgba(244, 239, 231, 0.4); text-underline-offset: 0.2em; }
.dato__valor a:hover { text-decoration-color: currentColor; }

.horario { width: 100%; border-collapse: collapse; font-size: 1rem; }
.horario th { text-align: left; font-weight: 400; padding: 0.15rem 1rem 0.15rem 0; }
.horario td { text-align: right; padding: 0.15rem 0; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Tarjetas de contacto directo */
.canales { display: grid; gap: var(--e-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .canales { grid-template-columns: repeat(3, 1fr); } }
.canal {
  display: grid; gap: var(--e-2); align-content: start;
  height: 100%;
  padding: var(--e-6);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--cal);
  text-decoration: none;
  transition: border-color 0.3s var(--suave), transform 0.4s var(--suave);
}
.canal:hover { border-color: var(--oliva); transform: translateY(-2px); }
.canal svg { width: 1.6rem; height: 1.6rem; margin-bottom: var(--e-3); fill: none; stroke: var(--oliva); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.canal h3 { font-size: 1.45rem; }
.canal__valor { color: var(--oliva); font-weight: 500; }
.canal p { color: var(--tinta-suave); font-size: var(--t-pequeno); }

/* Formulario de solicitud de cita */
.formulario { display: grid; gap: var(--e-5); }
.formulario__fila { display: grid; gap: var(--e-5); }
@media (min-width: 640px) { .formulario__fila { grid-template-columns: 1fr 1fr; } }
.campo { display: grid; gap: var(--e-2); }
.campo label, .campo legend { font-size: var(--t-pequeno); font-weight: 600; }
.campo .opcional { font-weight: 400; color: var(--tinta-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo textarea { min-height: 7rem; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--oliva); box-shadow: 0 0 0 3px rgba(74, 90, 54, 0.18); }
.campo [aria-invalid='true'] { border-color: #A23B26; }
.campo__error { font-size: var(--t-pequeno); color: #A23B26; min-height: 0; }
.campo__error:empty { display: none; }
.campo__ayuda { font-size: var(--t-pequeno); color: var(--tinta-suave); }
fieldset.campo { border: 0; padding: 0; margin: 0; }
.opciones-radio { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-top: var(--e-2); }
.opciones-radio label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 1rem;
  border: 1px solid var(--linea-fuerte); border-radius: 999px;
  font-weight: 400; cursor: pointer;
}
.opciones-radio input { accent-color: var(--oliva); margin: 0; }
.opciones-radio label:has(input:checked) { border-color: var(--oliva); background: #ECEFDF; }
.casilla { display: flex; gap: var(--e-3); align-items: flex-start; font-size: var(--t-pequeno); color: var(--tinta-suave); }
.casilla input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--oliva); flex: none; }
.formulario__aviso {
  padding: var(--e-4) var(--e-5);
  border-left: 2px solid var(--oliva);
  background: #ECEFDF;
  font-size: var(--t-pequeno);
}
.formulario__aviso:empty { display: none; }
.formulario__aviso--error { border-left-color: #A23B26; background: #F8E9E4; }

.caja-formulario { padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--cal); border: 1px solid var(--linea); border-radius: var(--radio); }

/* Página de contacto: texto a la izquierda, formulario y mapa a la derecha */
.contacto__intro, .contacto__formulario, .contacto__horario, .contacto__mapa { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .contacto__intro, .contacto__horario { grid-column: 1 / span 5; }
  .contacto__formulario, .contacto__mapa { grid-column: 7 / -1; }
  .contacto__intro, .contacto__horario { position: sticky; top: calc(var(--alto-cabecera) + 2rem); align-self: start; }
}

/* Utilidades pequeñas para no repetir estilos en línea */
.ancho-completo { grid-column: 1 / -1; }
.sin-aire-arriba { padding-top: 0 !important; }
.mt-5 { margin-top: var(--e-5); }
.mt-6 { margin-top: var(--e-6); }
.mt-8 { margin-top: var(--e-8); }

/* Mapa que solo se carga si la persona lo pide (privacidad y velocidad) */
.mapa {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--noche);
}
.mapa::before { content: ''; position: absolute; inset: 0; background: rgba(38, 43, 32, 0.62); }
.mapa__aviso { position: relative; display: grid; gap: var(--e-4); justify-items: center; max-width: 22rem; padding: var(--e-5); text-align: center; color: var(--noche-texto); font-size: var(--t-pequeno); }
.mapa__aviso a { color: inherit; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* 13. PIE DE PÁGINA --------------------------------------------------- */
.pie { padding-top: var(--e-9); padding-bottom: var(--e-6); }
.pie__rejilla { row-gap: var(--e-7); }
.pie__marca { grid-column: 1 / -1; }
.pie__columna { grid-column: span 12; }
@media (min-width: 600px) { .pie__columna { grid-column: span 6; } }
@media (min-width: 1000px) {
  .pie__marca { grid-column: 1 / span 3; }
  .pie__columna { grid-column: span 2; }
  .pie__columna--ancha { grid-column: span 3; }
  .pie__columna--ancha:last-child { grid-column: span 4; }
}
.pie .horario th { white-space: nowrap; }
.pie .logo { color: var(--noche-texto); }
.pie .logo__nombre small { color: var(--noche-suave); }
.pie__marca p { margin-top: var(--e-5); max-width: 22rem; color: var(--noche-suave); font-size: var(--t-pequeno); }
.pie__titulo { margin-bottom: var(--e-4); font-family: var(--sans); font-size: var(--t-etiqueta); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #9FD0C4; }
.pie ul { margin: 0; padding: 0; list-style: none; }
.pie li + li { margin-top: 0.35rem; }
.pie a { text-decoration: none; color: var(--noche-texto); }
.pie a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.pie__columna, .pie address { font-size: 0.9375rem; color: var(--noche-suave); }
.redes { display: flex; gap: var(--e-2); margin-top: var(--e-5) !important; }
.redes li + li { margin-top: 0; }
.redes a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(244, 239, 231, 0.25); border-radius: 50%;
}
.redes a:hover { border-color: var(--noche-texto); text-decoration: none; }
.redes svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pie__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-4);
  margin-top: var(--e-8); padding-top: var(--e-5);
  border-top: 1px solid rgba(244, 239, 231, 0.16);
  font-size: 0.8125rem; color: var(--noche-suave);
}
.pie__legal ul { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); }
.pie__legal li + li { margin-top: 0; }

/* Botón de llamada / WhatsApp fijo en el móvil */
.barra-movil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1px;
  background: var(--linea);
  border-top: 1px solid var(--linea);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform 0.4s var(--suave);
}
.barra-movil--visible { transform: none; }
.barra-movil a {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 3.5rem;
  background: var(--cal);
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; color: var(--tinta);
}
.barra-movil a:last-child { background: var(--oliva); color: #fff; }
.barra-movil svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1024px) { .barra-movil { display: none; } }
@media (max-width: 1023px) { .pie { padding-bottom: calc(var(--e-6) + 3.5rem); } }


/* 14. GUÍA DE SALUD VISUAL Y PÁGINAS LEGALES -------------------------- */
.guia { row-gap: var(--e-7); }
.guia__indice { grid-column: 1 / -1; }
.guia__temas { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .guia__indice { grid-column: 1 / span 3; }
  .guia__indice nav { position: sticky; top: calc(var(--alto-cabecera) + 2rem); }
  .guia__temas { grid-column: 5 / -1; }
}
.guia__indice ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linea); }
.guia__indice li { border-bottom: 1px solid var(--linea); }
.guia__indice a { display: block; padding: 0.55rem 0; font-size: 0.9375rem; text-decoration: none; color: var(--tinta-suave); }
.guia__indice a:hover { color: var(--oliva); }
@media (max-width: 999px) {
  .guia__indice ol { display: flex; flex-wrap: wrap; gap: var(--e-2); border: 0; }
  .guia__indice li { border: 0; }
  .guia__indice a { padding: 0.35rem 0.9rem; border: 1px solid var(--linea-fuerte); border-radius: 999px; font-size: var(--t-pequeno); }
}

.tema { padding-block: var(--e-8); border-top: 1px solid var(--linea); }
.tema:first-child { padding-top: 0; border-top: 0; }
.tema h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: var(--e-5); }
.tema h3 { font-size: 1.35rem; margin-block: var(--e-6) var(--e-3); }
.tema p, .tema li, .tema td, .tema th { color: var(--tinta-suave); }
.tema p + p { margin-top: var(--e-4); }
.tema ul { padding-left: 1.2rem; }
.tema li + li { margin-top: 0.35rem; }
.tema strong { color: var(--tinta); }
.tema__entradilla { font-family: var(--sans); font-size: 1.15rem; line-height: 1.55; color: var(--tinta) !important; }
.tema__columnas { display: grid; gap: 0 var(--e-7); }
@media (min-width: 768px) { .tema__columnas { grid-template-columns: 1fr 1fr; } }
.tema__consejo {
  margin-top: var(--e-6);
  padding: var(--e-5) var(--e-6);
  background: var(--arena);
  border-left: 2px solid var(--mar);
  border-radius: 0 var(--radio) var(--radio) 0;
}
.tema__consejo, .tema__consejo p { color: var(--tinta) !important; }
.tema--alarma { padding: var(--e-6); border: 1px solid #D9A796; background: #FBF1EC; border-radius: var(--radio); margin-top: var(--e-6); }
.tabla { width: 100%; border-collapse: collapse; margin-top: var(--e-4); font-size: 0.9375rem; }
.tabla th, .tabla td { padding: 0.7rem 0.75rem 0.7rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); }
.tabla th { color: var(--tinta) !important; font-weight: 600; }
.tabla-scroll { overflow-x: auto; }

.aviso-sanitario { margin-top: var(--e-8); padding: var(--e-5) var(--e-6); border: 1px solid var(--linea); border-radius: var(--radio); font-size: var(--t-pequeno); color: var(--tinta-suave); }

.legal { max-width: 48rem; }
.legal h2 { font-size: 1.6rem; margin-top: var(--e-7); margin-bottom: var(--e-4); }
.legal p, .legal li { color: var(--tinta-suave); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: var(--e-4); }
.legal .tabla-scroll { margin-block: var(--e-4); }

/* Página 404 */
.error-404 { min-height: 60vh; display: grid; align-content: center; }


/* 15. MOVIMIENTO Y ACCESIBILIDAD -------------------------------------
   El contenido es visible siempre. Solo si hay JavaScript y la persona
   no ha pedido "reducir movimiento", los bloques bajo la primera
   pantalla aparecen con un desplazamiento corto. */
.js .aparecer {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--suave), transform 0.9s var(--suave);
}
.js .aparecer--visible { opacity: 1; transform: none; }

.foto-zoom { overflow: hidden; border-radius: var(--radio); }
.foto-zoom img { transition: transform 1.4s var(--suave); }
a:hover .foto-zoom img, .foto-zoom:hover img { transform: scale(1.03); }

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

@media print {
  .cabecera, .barra-movil, .menu-movil, .pie__legal ul, .mapa { display: none !important; }
  body { background: #fff; }
}

/* Ajustes puntuales */
.galeria .foto-pendiente { height: 100%; aspect-ratio: auto; }
.titulo-corto { max-width: 18ch; }
.declaracion__ideas--sin-linea { border-top: 0; padding-top: 0; }
.pie__estado { margin-bottom: var(--e-3); }
.horario--contacto { max-width: 26rem; }

/* =====================================================================
   16. TONO CERCANO Y FAMILIAR (noviembre 2026)
   Formas más redondeadas, un toque de amarillo sol en los detalles,
   ilustraciones de trazo y una sección para toda la familia.
   ===================================================================== */
:root {
  --radio: 18px;                 /* antes 4 px: todo más amable */
  --sol: #F2B544;                /* amarillo sol: solo decorativo, nunca texto */
  --sol-suave: #FBE7B8;
}
.boton { border-radius: 999px; }
.canal, .resena, .caja-formulario, .campo input, .campo select, .campo textarea, .tema__consejo, .tema--alarma, .aviso-sanitario, .hero__ficha { border-radius: var(--radio); }
.campo input, .campo select, .campo textarea { border-radius: 12px; }
.indice-anclas a, .guia__indice a { border-radius: 999px; }

/* Subrayado "a mano" bajo la palabra destacada del titular */
.subrayado {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.subrayado::after {
  content: '';
  position: absolute;
  left: -0.05em; right: -0.05em; bottom: -0.08em;
  height: 0.42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14c40-8 80-9 120-6 30 2 50 3 74 1' fill='none' stroke='%23F2B544' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
  opacity: 0.9;
}

/* Sol tras la foto de portada */
.hero__imagen::before {
  content: '';
  position: absolute;
  top: -5%; right: -8%;
  width: 46%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sol);
  opacity: 0.85;
  z-index: -1;
}
.hero__imagen { z-index: 0; }

/* Sección "Para toda la familia" */
.familia { display: grid; gap: var(--e-5); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .familia { grid-template-columns: repeat(3, 1fr); gap: var(--e-6); } }
.familia__tarjeta {
  display: grid; gap: var(--e-3); align-content: start;
  padding: var(--e-6);
  background: var(--cal);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  transition: transform 0.4s var(--suave), box-shadow 0.4s var(--suave);
}
.familia__tarjeta:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(31, 34, 28, 0.35); }
.familia__tarjeta svg { width: 4.5rem; height: 4.5rem; margin-bottom: var(--e-2); fill: none; stroke: var(--tinta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.familia__tarjeta svg .sol { fill: var(--sol); stroke: none; }
.familia__tarjeta svg .agua { fill: var(--mar-claro); stroke: none; opacity: 0.6; }
.familia__tarjeta h3 { font-size: 1.35rem; }
.familia__tarjeta p { color: var(--tinta-suave); }
.familia__tarjeta .enlace { margin-top: var(--e-2); }
.seccion--sol { background: var(--sol-suave); }

/* Etiqueta redonda tipo pegatina */
.pegatina {
  display: inline-grid; place-items: center;
  width: 6.5rem; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sol);
  color: var(--tinta);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.15;
  text-align: center;
  padding: 0.6rem;
  transform: rotate(-8deg);
}
.hero__pegatina { position: absolute; left: -1rem; top: 6%; z-index: 1; box-shadow: 0 10px 24px -14px rgba(31, 34, 28, 0.5); }
@media (max-width: 767px) { .hero__pegatina { left: 0.5rem; top: 1rem; width: 5.5rem; font-size: 0.75rem; } .hero__imagen::before { width: 55%; } }

/* Pequeños guiños: ola bajo algunos antetítulos del bloque familiar */
.ola { display: block; width: 4.5rem; height: 0.6rem; margin-top: var(--e-3); }
.ola path { fill: none; stroke: var(--mar); stroke-width: 2; stroke-linecap: round; }

/* El sol y la pegatina no deben provocar scroll horizontal */
.hero { overflow-x: clip; }

/* Foto panorámica de cabecera (página "La óptica") */
.foto-ancha img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 60%; border-radius: var(--radio); background: var(--arena-oscura); }
@media (max-width: 599px) { .foto-ancha img { aspect-ratio: 4 / 3; } }

/* Portada con fotografía de la fachada */
.hero__figura { margin: 0; }
.hero__figura img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: 50% 0%;   /* ancla arriba: el rótulo siempre visible, la acera fuera */
  border-radius: var(--arco);
  background: var(--arena-oscura);
  box-shadow: 0 30px 60px -40px rgba(31, 34, 28, 0.5);
}
.hero__figura figcaption { margin-top: var(--e-3); text-align: center; }

/* =====================================================================
   17. AVISO DE COOKIES (noviembre 2026)
   Aceptar y rechazar al mismo nivel, configuración por categorías.
   El aviso lo crea main.js (apartado 6b); el botón del pie lo reabre.
   ===================================================================== */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: var(--e-3);
  pointer-events: none;
}
.cookies__caja {
  pointer-events: auto;
  max-width: 44rem; margin: 0 auto;
  padding: var(--e-5);
  background: var(--cal);
  color: var(--tinta);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio);
  box-shadow: 0 24px 60px -24px rgba(31, 34, 28, 0.45);
}
.cookies__titulo { margin: 0 0 var(--e-2); font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.cookies__texto { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--tinta-suave); }
.cookies__texto a { color: var(--oliva); text-decoration: underline; text-underline-offset: 0.15em; }
.cookies__opciones { display: grid; gap: var(--e-3); margin-top: var(--e-4); padding-top: var(--e-4); border-top: 1px solid var(--linea); }
.cookies__opcion { display: grid; grid-template-columns: auto 1fr; gap: var(--e-3); align-items: start; font-size: 0.9rem; line-height: 1.45; cursor: pointer; }
.cookies__opcion input { margin-top: 0.2em; width: 1.1rem; height: 1.1rem; accent-color: var(--oliva); }
.cookies__opcion strong { display: block; color: var(--tinta); }
.cookies__opcion span { color: var(--tinta-suave); }
.cookies__botones { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-top: var(--e-4); }
@media (max-width: 1023px) { .cookies { bottom: 4.25rem; } }   /* por encima de la barra de contacto del móvil */
@media (max-width: 599px) { .cookies__botones .boton { flex: 1 1 auto; justify-content: center; } }
@media print { .cookies { display: none !important; } }

/* Botón "Configurar cookies" del pie, con el aspecto de los enlaces */
.pie__cookies { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: inherit; }
.pie__cookies:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.pie__cookies:focus-visible { outline: 2px solid var(--sol); outline-offset: 3px; border-radius: 2px; }
.cookies [hidden] { display: none !important; }   /* las clases con display propio no deben anular el atributo hidden */

/* =====================================================================
   18. PROMOCIÓN TEMPORAL (Black Friday, noviembre 2026)
   Bloque oscuro con acento amarillo sol, a juego con el cartel impreso.
   main.js lo oculta fuera de las fechas data-desde / data-hasta.
   ===================================================================== */
.promo { background: #141511; color: var(--cal); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.promo[hidden] { display: none !important; }
.promo__caja { display: grid; gap: var(--e-5); align-items: center; }
.promo__etiqueta { margin: 0 0 var(--e-2); font-size: var(--t-etiqueta); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sol); font-weight: 600; }
.promo__titulo { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.015em; color: #fff; text-wrap: balance; }
.promo__cifra { color: var(--sol); font-weight: 700; font-size: 1.25em; letter-spacing: -0.03em; }
.promo__texto { margin: var(--e-3) 0 0; font-size: 1.05rem; line-height: 1.5; color: rgba(251, 249, 245, 0.88); max-width: 46ch; }
.promo__texto strong { color: var(--sol); font-weight: 700; }
.promo__nota { margin: var(--e-3) 0 0; font-size: 0.8rem; line-height: 1.45; color: rgba(251, 249, 245, 0.6); max-width: 52ch; }
.promo__acciones { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.boton--sol { background: var(--sol); border-color: var(--sol); color: #141511; }
.boton--sol:hover { background: #F7C85F; border-color: #F7C85F; }
.boton--linea-clara { background: transparent; color: var(--cal); border-color: rgba(251, 249, 245, 0.45); }
.boton--linea-clara:hover { background: var(--cal); border-color: var(--cal); color: #141511; }
@media (min-width: 900px) {
  .promo__caja { grid-template-columns: minmax(0, 1.6fr) auto; }
  .promo__acciones { flex-direction: column; align-items: stretch; min-width: 16rem; }
}
@media print { .promo { display: none !important; } }
