/* =====================================================================
   ESTILOS DE LA PLANTILLA
   ---------------------------------------------------------------------
   Normalmente NO hace falta tocar este archivo: el estilo, la portada y
   los colores se eligen en js/datos.js.

   1. Los 3 estilos (variables CSS)
   2. Base
   3. Componentes: botones, barra, portada, secciones...
   4. Detalles propios de cada estilo
   ===================================================================== */


/* ---------- 1. LOS 3 ESTILOS ---------- */

/* Anton: letra de cartel para los títulos del estilo moderno (alojada en la propia web) */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fuentes/anton-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: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fuentes/anton-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Young Serif: letra de rótulo antiguo para los títulos del estilo cálido */
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fuentes/young-serif-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: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fuentes/young-serif-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* MODERNO — peluquerías, barberías, estética, gimnasios */
:root,
[data-estilo="moderno"] {
  --fondo: #f4f3ef;
  --fondo-alt: #e8e6df;
  --superficie: #ffffff;
  --texto: #0f0f0f;
  --oscuro: #0f0f0f;     /* fondo de la barra y de los bloques oscuros (cámbialo en datos.js → colores) */
  --oscuro-2: #181818;   /* tarjetas dentro de los bloques oscuros */
  --filtro-fotos: grayscale(1);   /* fotos en blanco y negro; "grayscale(0)" en datos.js → colores para dejarlas en color */
  --texto-suave: #55534f;
  --borde: #d6d3cc;
  --primario: #0f0f0f;
  --primario-contraste: #ffffff;
  --acento: #ff5b2e;

  --fuente-titulos: "Anton", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --fuente-texto: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --peso-titulos: 400;
  --espaciado-titulos: 0.005em;
  --radio: 0px;
  --radio-boton: 0px;
  --sombra: none;
}

/* CÁLIDO — bares, restaurantes, panaderías */
[data-estilo="calido"] {
  --fondo: #fbf6ee;
  --fondo-alt: #f3e8d8;
  --superficie: #fffcf6;
  --texto: #2b1d14;
  --texto-suave: #6b5747;
  --borde: #e3d3bf;
  --primario: #a4441c;
  --primario-contraste: #ffffff;
  --acento: #d39a35;
  /* Pizarra: fondo de la portada, la carta y el pie. Sale del color principal (cámbialo en datos.js → colores → "oscuro") */
  --oscuro: color-mix(in srgb, var(--primario) 26%, #1b110b);
  --crema: #f7eddd;      /* texto sobre la pizarra */

  --fuente-titulos: "Young Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fuente-texto: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --peso-titulos: 400;
  --espaciado-titulos: -0.01em;
  --radio: 18px;
  --radio-boton: 999px;
  --sombra: 0 1px 2px rgb(70 40 10 / .06), 0 10px 30px rgb(70 40 10 / .08);
}

/* SERIO — clínicas, talleres, asesorías */
[data-estilo="serio"] {
  --fondo: #ffffff;
  --fondo-alt: #f1f5f9;
  --superficie: #ffffff;
  --texto: #13202d;
  --texto-suave: #4c5a68;
  --borde: #d8e0e8;
  --primario: #1d4e7a;
  --primario-contraste: #ffffff;
  --acento: #23968a;

  --fuente-titulos: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fuente-texto: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --peso-titulos: 600;
  --espaciado-titulos: -0.01em;
  --radio: 8px;
  --radio-boton: 8px;
  --sombra: 0 1px 2px rgb(15 35 60 / .06), 0 6px 20px rgb(15 35 60 / .06);
}

/* Colores que no cambian con el estilo */
:root {
  --whatsapp: #0f7a40;
  --estrellas: #a87800;   /* dorado oscuro: 3:1 o más sobre fondos claros */
  --alto-barra: 64px;
}


/* ---------- 2. BASE ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--fuente-titulos);
  font-weight: var(--peso-titulos);
  letter-spacing: var(--espaciado-titulos);
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 5.5vw, 2.75rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }

[hidden] { display: none !important; }

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

.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--primario); color: var(--primario-contraste);
  padding: 10px 16px; border-radius: var(--radio);
}
.saltar:focus { top: 16px; }

.contenedor {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.icono { width: 1.25em; height: 1.25em; flex-shrink: 0; }

section[id] { scroll-margin-top: var(--alto-barra); }


/* ---------- 3. COMPONENTES ---------- */

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radio-boton);
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.boton:hover { filter: brightness(1.08); }
.boton:active { transform: scale(.98); }

.boton--principal { background: var(--primario); color: var(--primario-contraste); }
.boton--whatsapp { background: var(--whatsapp); color: #fff; }
.boton--secundario { background: transparent; color: inherit; border-color: currentColor; }
.boton--carta { grid-column: 1 / -1; background: var(--acento); color: #1a1a1a; }
.boton--grande { min-height: 56px; font-size: 1.0625rem; padding: 0 26px; }
.boton--pequeno { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.boton--ancho { width: 100%; }

.enlace-flecha { font-weight: 600; color: var(--primario); text-underline-offset: 4px; }
.enlace-flecha::after { content: " →"; }

/* Aviso temporal */
.aviso {
  background: var(--acento);
  color: #1a1a1a;
  text-align: center;
  font-weight: 600;
  padding: 10px 20px;
  font-size: .9375rem;
}

/* Barra superior */
.barra {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fondo) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--borde);
}
.barra__dentro {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--alto-barra);
}
.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--fuente-titulos);
  font-weight: var(--peso-titulos);
  font-size: 1.125rem;
  letter-spacing: var(--espaciado-titulos);
  min-width: 0;
}
.marca__nombre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca__inicial {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radio);
  background: var(--primario);
  color: var(--primario-contraste);
  font-size: 1.125rem;
  flex-shrink: 0;
}
.marca img { height: 36px; width: auto; }

.menu { display: none; gap: 28px; }
.menu a {
  text-decoration: none;
  color: var(--texto-suave);
  font-size: .9375rem;
  font-weight: 500;
}
.menu a:hover { color: var(--texto); }
@media (min-width: 860px) {
  .menu { display: flex; }
}

/* Portada (común) */
.portada { position: relative; }
.portada__texto { max-width: 640px; }
.portada__lema { font-size: clamp(1.125rem, 3vw, 1.3125rem); margin-bottom: 1.75em; }
.portada__botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 440px;
}
.portada__botones .boton { padding-inline: 12px; }

.antetitulo {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: .9em;
}

/* Estado "Abierto ahora / Cerrado" */
.estado {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .9375rem;
  font-weight: 600;
  margin: 1.25em 0 0;
}
.estado::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #b4b4b4;
}
.estado.esta-abierto::before { background: #1fae5b; box-shadow: 0 0 0 4px rgb(31 174 91 / .2); }
.tarjeta .estado { margin: 0 0 1em; }

/* Portada tipo FOTO: foto de fondo y texto blanco encima */
[data-portada="foto"] .portada {
  display: flex;
  align-items: flex-end;
  min-height: min(86svh, 760px);
  color: #fff;
  background: #222;
  overflow: hidden;
}
[data-portada="foto"] .portada__foto {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
[data-portada="foto"] .portada::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .45) 45%, rgb(0 0 0 / .15) 100%);
}
[data-portada="foto"] .portada__dentro {
  position: relative; z-index: 1;
  padding-block: 120px 48px;
}
[data-portada="foto"] .portada .antetitulo { color: rgb(255 255 255 / .85); }
[data-portada="foto"] .portada .boton--principal { background: #fff; color: #161616; }

/* Portada tipo DIVIDIDA: texto y foto lado a lado */
[data-portada="dividida"] .portada {
  display: flex;
  flex-direction: column;
  background: var(--fondo-alt);
}
[data-portada="dividida"] .portada__foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
[data-portada="dividida"] .portada__dentro { padding-block: 36px 48px; }
@media (min-width: 860px) {
  [data-portada="dividida"] .portada {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: min(80svh, 700px);
  }
  [data-portada="dividida"] .portada__foto {
    grid-column: 2; grid-row: 1;
    height: 100%;
    aspect-ratio: auto;
  }
  [data-portada="dividida"] .portada__dentro {
    grid-column: 1; grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: none;
    padding-inline: 20px 56px;
  }
  [data-portada="dividida"] .portada__texto { width: 100%; max-width: 520px; }
}

/* Portada tipo COLOR: fondo de color, sin foto */
[data-portada="color"] .portada {
  background: var(--primario);
  color: var(--primario-contraste);
}
[data-portada="color"] .portada__foto { display: none; }
[data-portada="color"] .portada__dentro { padding-block: 72px 64px; }
[data-portada="color"] .portada .antetitulo { color: inherit; opacity: .8; }
[data-portada="color"] .portada .boton--principal { background: var(--primario-contraste); color: var(--primario); }
[data-portada="color"] .portada .boton--whatsapp { box-shadow: 0 0 0 2px rgb(255 255 255 / .35); }
@media (min-width: 860px) {
  [data-portada="color"] .portada__dentro { padding-block: 120px 112px; }
}

/* Secciones */
.seccion { padding-block: 72px; }
.seccion--alt { background: var(--fondo-alt); }
@media (min-width: 860px) {
  .seccion { padding-block: 104px; }
}
.seccion__cabecera { max-width: 640px; margin-bottom: 40px; }
.seccion__intro { color: var(--texto-suave); margin: 0; }

/* Servicios y precios */
.servicios {
  display: grid;
  gap: 40px;
}
@media (min-width: 760px) {
  .servicios { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
}
.servicios__grupo h3 {
  padding-bottom: .6em;
  border-bottom: 2px solid var(--texto);
  margin-bottom: .25em;
}
.precios { list-style: none; margin: 0; padding: 0; }
.precios li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--borde);
}
.precios .servicio { font-weight: 600; }
.precios li::after { content: ""; flex: 1; order: 1; }
.precios .precio { order: 2; margin-left: auto; font-weight: 600; white-space: nowrap; }
.precios small {
  order: 3;
  flex-basis: 100%;
  color: var(--texto-suave);
  font-size: .9375rem;
}

/* Galería */
.galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.galeria a {
  display: block;
  overflow: hidden;
  border-radius: var(--radio);
  background: var(--borde);
}
.galeria a:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.galeria img {
  width: 100%; height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .4s ease;
}
.galeria a:hover img { transform: scale(1.04); }
@media (min-width: 760px) {
  .galeria { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .galeria a:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: auto; }
}

/* Visor de fotos */
.visor {
  padding: 0;
  border: 0;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
  background: transparent;
}
.visor::backdrop { background: rgb(0 0 0 / .92); }
.visor[open] { display: grid; place-items: center; }
.visor img {
  max-width: min(92vw, 1100px);
  max-height: 86dvh;
  width: auto; height: auto;
  border-radius: 4px;
}
.visor__boton {
  position: fixed;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .14);
  color: #fff;
  cursor: pointer;
}
.visor__boton:hover { background: rgb(255 255 255 / .26); }
.visor__cerrar { top: 16px; right: 16px; }
.visor__anterior { left: 12px; top: 50%; translate: 0 -50%; }
.visor__siguiente { right: 12px; top: 50%; translate: 0 -50%; }

/* Sobre nosotros */
.nosotros { display: grid; gap: 36px; align-items: center; }
.nosotros__foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radio);
  max-height: 560px;
}
.nosotros__texto > p:not(.antetitulo) { color: var(--texto-suave); max-width: 56ch; }
@media (min-width: 860px) {
  .nosotros { grid-template-columns: 5fr 6fr; gap: 72px; }
  .nosotros__foto { max-height: none; }
}
.destacados {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 2em 0 0;
  padding: 0;
}
.destacados li {
  display: flex;
  flex-direction: column;
  padding-top: 14px;
  border-top: 2px solid var(--acento);
}
.destacados strong {
  font-family: var(--fuente-titulos);
  font-weight: var(--peso-titulos);
  font-size: 1.25rem;
}
.destacados span { color: var(--texto-suave); font-size: .9375rem; }

/* Reseñas */
.resenas { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .resenas { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.resena {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}
.resena__estrellas { color: var(--estrellas); letter-spacing: .1em; margin-bottom: .75em; }
.resena blockquote { margin: 0 0 1.25em; flex: 1; }
.resena blockquote p { margin: 0; font-size: 1.0625rem; }
.resena figcaption { display: flex; flex-direction: column; font-size: .9375rem; }
.resena figcaption span { color: var(--texto-suave); }
.resenas__mas { margin: 28px 0 0; }

/* Valoración de Google (alternativa a las reseñas cuando aún no hay permiso para copiarlas) */
.valoracion {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 28px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}
@media (min-width: 760px) {
  .valoracion { grid-template-columns: auto 1fr auto; gap: 36px; padding: 36px 40px; }
}
.valoracion__nota {
  margin: 0;
  font-family: var(--fuente-titulos);
  font-weight: var(--peso-titulos);
  font-size: clamp(3.25rem, 10vw, 4.5rem);
  line-height: 1;
}
.valoracion__texto p { margin: 0; }
.valoracion .resena__estrellas { font-size: 1.375rem; margin-bottom: .2em; }
.valoracion__total { color: var(--texto-suave); }
.temas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.temas li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--fondo-alt);
  font-size: .875rem;
}
.seccion--alt .temas li { background: var(--fondo); }

/* Horario y ubicación */
.visita { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .visita { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.tarjeta {
  padding: 28px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}
.tarjeta h3 { display: flex; align-items: center; gap: .5em; }
.tarjeta h3 .icono { color: var(--primario); }
.tarjeta__nota { color: var(--texto-suave); font-size: .9375rem; margin: 1em 0 0; }
.tarjeta__nota:empty { display: none; }

.horario { width: 100%; border-collapse: collapse; }
.horario th, .horario td {
  padding: 10px 0;
  border-bottom: 1px solid var(--borde);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
.horario td { text-align: right; }
.horario td span { display: block; white-space: nowrap; }
.horario .cerrado { color: var(--texto-suave); }
.horario tr.hoy th, .horario tr.hoy td { font-weight: 700; }
.horario .etiqueta-hoy {
  display: inline-block;
  margin-left: .5em;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primario);
  color: var(--primario-contraste);
  font-size: .75rem;
  font-weight: 600;
  vertical-align: 2px;
}

.direccion { font-style: normal; margin-bottom: 1.25em; font-size: 1.125rem; }
.contacto { list-style: none; margin: 1.5em 0 0; padding: 0; }
.contacto li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.contacto .icono { color: var(--texto-suave); }
.contacto a { text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Pie de página */
.pie {
  background: var(--texto);
  color: color-mix(in srgb, var(--fondo) 78%, transparent);
  padding-top: 56px;
  font-size: .9375rem;
}
.pie a { color: inherit; text-underline-offset: 3px; }
.pie a:hover { color: var(--fondo); }
.pie__dentro { display: grid; gap: 28px; }
@media (min-width: 760px) {
  .pie__dentro { grid-template-columns: 2fr 1fr 1fr; }
}
.pie__nombre {
  font-family: var(--fuente-titulos);
  font-weight: var(--peso-titulos);
  font-size: 1.375rem;
  color: var(--fondo);
  margin-bottom: .4em;
}
.pie__texto { margin: 0 0 .25em; }
.pie__contacto { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.redes { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; align-content: start; }
.redes a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--fondo) 30%, transparent);
}
.pie__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: 96px; /* hueco para el botón flotante */
  border-top: 1px solid color-mix(in srgb, var(--fondo) 18%, transparent);
}
.pie__legal p { margin: 0; }
@media (min-width: 760px) {
  .pie__legal { padding-bottom: 28px; }
}

/* Botón flotante de WhatsApp */
.whatsapp-flotante {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 20px rgb(0 0 0 / .25);
  transition: transform .15s ease;
}
.whatsapp-flotante:hover { transform: scale(1.06); }
.whatsapp-flotante .icono { width: 30px; height: 30px; }

/* Páginas legales */
.legal { padding-block: 56px 96px; }
.legal .contenedor { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.legal h2 { font-size: 1.375rem; margin-top: 2em; }
.legal p, .legal li { color: var(--texto-suave); }
.legal strong { color: var(--texto); }
.falta { background: #ffe58a; color: #5a4300; padding: 0 4px; border-radius: 3px; font-weight: 600; }


/* ---------- 4. DETALLES DE CADA ESTILO ---------- */

/* ===== CÁLIDO: casa de comidas =====
   Portada oscura con el nombre grande y centrado, foto en arco que asoma por abajo,
   carta escrita en una pizarra, fotos tipo polaroid, opiniones sin cajas y bordes ondulados. */
[data-estilo="calido"] body {
  background-image: radial-gradient(rgb(120 80 40 / .06) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
[data-estilo="calido"] h2 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.1; }
[data-estilo="calido"] .barra { border-bottom: 1px dashed var(--borde); }
[data-estilo="calido"] .marca__inicial { border-radius: 50%; }
[data-estilo="calido"] .marca { font-size: 1.1875rem; }
[data-estilo="calido"] .boton--secundario { border-style: dashed; }

/* Adorno de puntos debajo de los títulos */
[data-estilo="calido"] .seccion__cabecera { margin-inline: auto; text-align: center; }
[data-estilo="calido"] .seccion__cabecera h2::after,
[data-estilo="calido"] .servicios__grupo h3::after,
[data-estilo="calido"][data-portada="foto"] .portada__texto::before {
  content: "";
  display: block;
  width: 64px; height: 10px;
  margin: .5em auto 0;
  background: radial-gradient(circle, var(--acento) 3px, transparent 3.5px) 0 0 / 16px 10px repeat-x;
}

/* Portada FOTO en cálido: pizarra oscura, nombre grande centrado y la foto en arco asomando abajo */
[data-estilo="calido"][data-portada="foto"] .portada {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 52px 20px 0;
  overflow: visible;
  color: var(--crema);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(255 220 170 / .10), transparent 60%) 0 0 / 100% calc(100% - 96px) no-repeat,
    linear-gradient(var(--oscuro), var(--oscuro)) 0 0 / 100% calc(100% - 96px) no-repeat;
}
[data-estilo="calido"][data-portada="foto"] .portada::after { content: none; }
[data-estilo="calido"][data-portada="foto"] .portada__dentro { order: 1; padding: 0 0 40px; }
[data-estilo="calido"][data-portada="foto"] .portada__texto { max-width: 1000px; margin-inline: auto; }
[data-estilo="calido"][data-portada="foto"] .portada__texto::before { margin: 0 auto 22px; }
[data-estilo="calido"][data-portada="foto"] .portada h1 {
  font-size: clamp(3rem, 12vw, 6.75rem);
  line-height: 1;
  margin-bottom: .3em;
}
[data-estilo="calido"][data-portada="foto"] .portada__lema {
  max-width: 34ch;
  margin-inline: auto;
  color: color-mix(in srgb, var(--crema) 82%, transparent);
}
[data-estilo="calido"][data-portada="foto"] .portada__botones { margin-inline: auto; }
[data-estilo="calido"][data-portada="foto"] .portada .boton--principal {
  background: var(--primario);
  color: var(--primario-contraste);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .18);
}
[data-estilo="calido"][data-portada="foto"] .portada .estado { color: var(--crema); }
[data-estilo="calido"][data-portada="foto"] .portada__foto {
  order: 2;
  position: relative; inset: auto;
  width: min(100%, 1040px); height: auto;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--superficie);
  border-radius: 50% 50% var(--radio) var(--radio) / 26% 26% var(--radio) var(--radio);
  box-shadow: 0 30px 60px -28px rgb(40 20 5 / .55);
}
@media (min-width: 760px) {
  [data-estilo="calido"][data-portada="foto"] .portada { padding-top: 80px; }
  [data-estilo="calido"][data-portada="foto"] .portada__foto {
    aspect-ratio: 2 / 1;
    border-radius: 50% 50% var(--radio) var(--radio) / 34% 34% var(--radio) var(--radio);
  }
}

/* Portada DIVIDIDA en cálido: foto en arco */
[data-portada="dividida"][data-estilo="calido"] .portada__foto,
[data-estilo="calido"] .nosotros__foto { border-radius: 999px 999px var(--radio) var(--radio); }

/* Secciones de color con borde ondulado, como un toldo */
[data-estilo="calido"] .seccion--alt { position: relative; }
[data-estilo="calido"] .seccion--alt::before,
[data-estilo="calido"] .seccion--alt::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 12px;
  background: radial-gradient(circle at 10px 12px, var(--fondo-alt) 10px, transparent 10.5px) 0 0 / 20px 12px repeat-x;
}
[data-estilo="calido"] .seccion--alt::before { top: -11px; }
[data-estilo="calido"] .seccion--alt::after { bottom: -11px; rotate: 180deg; }

/* La carta, escrita en una pizarra */
[data-estilo="calido"] .servicios {
  gap: 0;
  padding: 36px 24px;
  background: var(--oscuro);
  color: var(--crema);
  border-radius: var(--radio);
  outline: 1px solid rgb(255 255 255 / .16);
  outline-offset: -10px;
  box-shadow: 0 30px 60px -30px rgb(40 20 5 / .6);
}
[data-estilo="calido"] .servicios__grupo { padding: 0 4px; }
[data-estilo="calido"] .servicios__grupo + .servicios__grupo {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px dashed rgb(255 255 255 / .2);
}
@media (min-width: 760px) {
  [data-estilo="calido"] .servicios {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 56px 16px;
  }
  [data-estilo="calido"] .servicios__grupo { padding: 0 28px; }
  [data-estilo="calido"] .servicios__grupo + .servicios__grupo {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-left: 1px dashed rgb(255 255 255 / .2);
  }
}
[data-estilo="calido"] .servicios__grupo h3 {
  border-bottom: 0;
  margin-bottom: .6em;
  font-size: 1.75rem;
  text-align: center;
  color: var(--crema);
}
[data-estilo="calido"] .precios li { border-bottom: 0; padding: 9px 0; }
[data-estilo="calido"] .precios li::after {
  border-bottom: 2px dotted rgb(255 255 255 / .28);
  align-self: center;
  min-width: 20px;
}
[data-estilo="calido"] .precios .precio { color: var(--acento); }
[data-estilo="calido"] .precios small { color: color-mix(in srgb, var(--crema) 68%, transparent); }

/* Galería tipo polaroid */
[data-estilo="calido"] .galeria { gap: 18px; padding: 6px; }
[data-estilo="calido"] .galeria a {
  padding: 8px 8px 26px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 22px -10px rgb(70 40 10 / .45);
  rotate: -1.6deg;
  transition: rotate .3s ease;
}
[data-estilo="calido"] .galeria a:nth-child(even) { rotate: 1.4deg; }
[data-estilo="calido"] .galeria a:nth-child(3n) { rotate: -.6deg; }
[data-estilo="calido"] .galeria a:hover { rotate: 0deg; }
[data-estilo="calido"] .galeria img { border-radius: 2px; }

/* Opiniones sin cajas: comillas grandes y la frase en letra de rótulo */
[data-estilo="calido"] .resena {
  align-items: center;
  padding: 8px 12px;
  background: none;
  border: 0;
  border-radius: 0;
  text-align: center;
}
[data-estilo="calido"] .resena::before {
  content: "“";
  height: .55em;
  font-family: var(--fuente-titulos);
  font-size: 5rem;
  line-height: 1;
  color: var(--primario);
}
[data-estilo="calido"] .resena + .resena { padding-top: 32px; border-top: 1px dashed color-mix(in srgb, var(--texto) 22%, transparent); }
@media (min-width: 860px) {
  [data-estilo="calido"] .resenas { gap: 0; }
  [data-estilo="calido"] .resena { padding: 8px 32px; }
  [data-estilo="calido"] .resena + .resena { padding-top: 8px; border-top: 0; border-left: 1px dashed color-mix(in srgb, var(--texto) 22%, transparent); }
}
[data-estilo="calido"] .resena blockquote p { font-family: var(--fuente-titulos); font-size: 1.3125rem; line-height: 1.4; }

/* Valoración, horario y dirección: hojas de papel con costura */
[data-estilo="calido"] .tarjeta,
[data-estilo="calido"] .valoracion {
  border: 0;
  box-shadow: var(--sombra);
  outline: 1.5px dashed var(--borde);
  outline-offset: -10px;
}
[data-estilo="calido"] .tarjeta { padding: 32px; }
[data-estilo="calido"] .tarjeta h3 { font-size: 1.5rem; }
[data-estilo="calido"] .destacados li { border-top: 0; text-align: center; padding: 14px 10px; background: var(--fondo-alt); border-radius: var(--radio); }

/* Pie en la misma pizarra que la portada */
[data-estilo="calido"] .pie { background: var(--oscuro); color: color-mix(in srgb, var(--crema) 78%, transparent); }
[data-estilo="calido"] .pie__nombre,
[data-estilo="calido"] .pie a:hover { color: var(--crema); }

/* ===== MODERNO: directo y con mucho contraste =====
   Portada negra con título enorme, fotos en blanco y negro, servicios numerados y bloques oscuros. */
[data-estilo="moderno"] main h1,
[data-estilo="moderno"] main h2 { text-transform: uppercase; line-height: .95; }
[data-estilo="moderno"] h1 { font-size: clamp(2.6rem, 11.5vw, 7.5rem); }
[data-estilo="moderno"] h2 { font-size: clamp(2rem, 8vw, 4.25rem); }
[data-estilo="moderno"] .antetitulo { color: var(--texto); }
[data-estilo="moderno"] .antetitulo::before {
  content: "";
  display: inline-block;
  width: 28px; height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--acento);
}
/* Barra negra */
[data-estilo="moderno"] .barra {
  --fondo: var(--oscuro); --texto: #f4f3ef; --texto-suave: #a3a19b; --borde: #262626;
  background: var(--oscuro);
  color: #f4f3ef;
}
[data-estilo="moderno"] .marca { text-transform: uppercase; letter-spacing: -0.01em; }
@media (max-width: 480px) {
  [data-estilo="moderno"] .marca { font-size: 0.95rem; gap: 8px; }
}
[data-estilo="moderno"] .marca__inicial,
[data-estilo="moderno"] .barra .boton--principal { background: var(--acento); color: var(--oscuro); }
/* Portada FOTO en moderno: fondo negro, título gigante y foto en blanco y negro */
[data-estilo="moderno"][data-portada="foto"] .portada {
  display: grid;
  min-height: 0;
  background: var(--oscuro);
  color: #fff;
}
[data-estilo="moderno"][data-portada="foto"] .portada::after { content: none; }
[data-estilo="moderno"][data-portada="foto"] .portada__foto {
  position: relative; inset: auto;
  order: 2;
  width: 100%; height: auto;
  aspect-ratio: 4 / 3.3;
  border-top: 8px solid var(--acento);
  filter: var(--filtro-fotos) contrast(1.12);
}
[data-estilo="moderno"][data-portada="foto"] .portada__dentro { order: 1; padding-block: 44px 36px; }
[data-estilo="moderno"][data-portada="foto"] .portada .antetitulo { color: #f4f3ef; }
[data-estilo="moderno"][data-portada="foto"] .portada .boton--principal { background: var(--acento); color: var(--oscuro); }
@media (min-width: 860px) {
  [data-estilo="moderno"][data-portada="foto"] .portada {
    grid-template-columns: 1.15fr .85fr;
    min-height: min(88svh, 780px);
  }
  [data-estilo="moderno"][data-portada="foto"] .portada__foto {
    order: 0; grid-column: 2; grid-row: 1;
    height: 100%; aspect-ratio: auto;
    border-top: 0; border-left: 8px solid var(--acento);
  }
  [data-estilo="moderno"][data-portada="foto"] .portada__dentro {
    grid-column: 1; grid-row: 1;
    align-self: end;
    max-width: none; margin: 0;
    padding: 120px 48px 72px max(20px, calc((100vw - 1120px) / 2 + 20px));
  }
  [data-estilo="moderno"][data-portada="foto"] .portada__texto { max-width: 700px; }
}
/* Bloques oscuros en las secciones alternas */
[data-estilo="moderno"] .seccion--alt {
  --fondo: var(--oscuro); --fondo-alt: var(--oscuro); --superficie: var(--oscuro-2);
  --texto: #f4f3ef; --texto-suave: #a3a19b; --borde: #2b2b2b;
  --primario: #f4f3ef; --primario-contraste: var(--oscuro);
  --estrellas: #e0a100;
  background: var(--oscuro);
  color: var(--texto);
}
[data-estilo="moderno"] .seccion--alt .enlace-flecha { color: var(--acento); }
/* Servicios numerados 01, 02, 03 */
[data-estilo="moderno"] .servicios { counter-reset: grupo; }
[data-estilo="moderno"] .servicios__grupo { counter-increment: grupo; border-top: 3px solid var(--texto); padding-top: 18px; }
[data-estilo="moderno"] .servicios__grupo h3 {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 0;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
[data-estilo="moderno"] .servicios__grupo h3::before {
  content: counter(grupo, decimal-leading-zero);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--acento);
}
[data-estilo="moderno"] .precios .precio { font-weight: 800; }
/* Galería pegada, en blanco y negro hasta pasar el ratón */
[data-estilo="moderno"] .galeria { gap: 3px; }
@media (hover: hover) {
  [data-estilo="moderno"] .galeria img { filter: var(--filtro-fotos); transition: filter .4s ease, transform .4s ease; }
  [data-estilo="moderno"] .galeria a:hover img { filter: none; }
}
[data-estilo="moderno"] .nosotros__foto { filter: var(--filtro-fotos); outline: 3px solid var(--acento); outline-offset: 10px; }
[data-estilo="moderno"] .destacados li { border-top: 3px solid var(--acento); }
[data-estilo="moderno"] .destacados strong { font-size: 1.6rem; text-transform: uppercase; }
[data-estilo="moderno"] .resena { position: relative; padding-top: 48px; }
[data-estilo="moderno"] .resena::before {
  content: "“";
  position: absolute; top: 4px; left: 24px;
  font-family: var(--fuente-titulos);
  font-size: 4.5rem; line-height: 1;
  color: var(--acento);
}
[data-estilo="moderno"] .resena blockquote p { font-size: 1.125rem; font-weight: 600; }
[data-estilo="moderno"] .tarjeta,
[data-estilo="moderno"] .valoracion { border: 2px solid var(--texto); }
[data-estilo="moderno"] .seccion--alt .valoracion,
[data-estilo="moderno"] .seccion--alt .resena { border-color: var(--borde); }
[data-estilo="moderno"] .boton { text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }

/* Serio: ordenado y sobrio, barra de color en los títulos, tarjetas con sombra suave */
[data-estilo="serio"] .antetitulo { color: var(--primario); letter-spacing: .1em; }
[data-portada="foto"][data-estilo="serio"] .portada .antetitulo { color: #bfe3ff; }
[data-estilo="serio"] .seccion__cabecera h2 {
  padding-left: 16px;
  border-left: 4px solid var(--acento);
}
[data-estilo="serio"] .servicios__grupo {
  padding: 24px 28px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}
[data-estilo="serio"] .servicios__grupo h3 { border-bottom: 1px solid var(--borde); color: var(--primario); }
[data-estilo="serio"] .precios li:last-child { border-bottom: 0; }
[data-estilo="serio"] .tarjeta, [data-estilo="serio"] .resena { box-shadow: var(--sombra); }
[data-estilo="serio"] .resena__estrellas { color: var(--acento); color: color-mix(in srgb, var(--acento) 60%, var(--texto)); }


/* ---------- PANEL "PROBAR ESTILOS" (solo con ?probar en la dirección) ---------- */
.probador {
  position: fixed;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  gap: 8px;
  width: min(260px, calc(100vw - 100px));
  padding: 14px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .35);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.probador strong { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.probador label { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; }
.probador select, .probador input {
  font: inherit; color: #111;
  min-height: 32px; border-radius: 6px; border: 0; padding: 0 6px; width: 100%;
}
.probador input[type="color"] { padding: 2px; }
.probador small { color: #aaa; }

/* ===== LOS 3 ESTILOS: el título habla solo =====
   Sin etiqueta pequeña encima de los títulos y sin palabras sueltas al final de los párrafos. */
.antetitulo { display: none; }
p { text-wrap: pretty; }
