/* ==========================================================
   Plantilla web para talleres mecánicos — Puntoweb Studio
   Los colores --primario* los ajusta app.js desde config.json
   ========================================================== */

@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --primario: #d9480f;
  --primario-texto: #b23a0b;   /* versión legible sobre blanco */
  --primario-oscuro: #a8380b;
  --primario-suave: #fdeee7;
  --sobre-primario: #ffffff;

  --tinta: #1b1d22;
  --tinta-2: #4a4f59;
  --tinta-3: #6b7280;
  --linea: #e6e3df;
  --fondo: #ffffff;
  --fondo-suave: #f7f5f2;
  --oscuro: #17181c;
  --whatsapp: #1fa855;
  --whatsapp-oscuro: #178a45;
  --estrella: #f5a623;

  --radio: 16px;
  --radio-boton: 14px;
  --sombra: 0 1px 2px rgb(20 20 30 / .05), 0 6px 20px rgb(20 20 30 / .06);
  --ancho: 1120px;
  --fuente: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--primario); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* Iconos de línea */
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.relleno, .whatsapp-flotante svg { fill: currentColor; stroke: none; }

/* ---------- Franja de propuesta ---------- */
.propuesta {
  background: var(--oscuro);
  color: #c9cbd1;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 8px 16px;
}
.propuesta a { color: #fff; font-weight: 600; text-underline-offset: 2px; }
.propuesta strong { color: #fff; font-weight: 600; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linea);
}
.cabecera__in { display: flex; align-items: center; gap: 24px; height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.marca__icono {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--primario); color: var(--sobre-primario);
}
.marca__icono svg { width: 19px; height: 19px; }
.menu { display: none; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--tinta-2); }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--tinta); }
.cabecera__tel {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--primario-texto);
  padding: 8px 12px; border-radius: 10px; background: var(--primario-suave);
}
.cabecera__tel svg { width: 17px; height: 17px; }
@media (max-width: 420px) { .cabecera__tel span { display: none; } }
@media (min-width: 960px) {
  .menu { display: flex; }
  .cabecera__tel { margin-left: 8px; }
}

/* ---------- Portada (foto a sangre con degradado) ---------- */
.portada {
  position: relative; isolation: isolate; overflow: hidden;
  background: #121418; color: #fff;
  padding: 300px 0 34px;
}
/* Móvil: la foto es una franja arriba y el texto va debajo sobre fondo oscuro */
.portada__foto {
  position: absolute; top: 0; left: 0; z-index: -2;
  width: 100%; height: 380px; max-width: none;
  object-fit: cover; object-position: 64% 70%;
}
.portada::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgb(18 20 24 / 0) 0, rgb(18 20 24 / .15) 170px,
    rgb(18 20 24 / .85) 300px, #121418 380px);
}
.portada__in { display: grid; }
.estado {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; padding: 5px 12px 5px 10px; margin-bottom: 16px;
}
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b4b9c2; }
.estado.abierto::before { background: #2fd27a; box-shadow: 0 0 0 4px rgb(47 210 122 / .25); }
.portada h1 { font-size: clamp(38px, 10vw, 68px); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.portada__lema { font-size: clamp(19px, 4.6vw, 24px); color: rgb(255 255 255 / .86); margin-top: 10px; font-weight: 500; }
.portada__lema span {
  color: #fff; font-weight: 700; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--primario);
  text-decoration-thickness: 4px; text-underline-offset: 7px;
}

.nota-google {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin-top: 22px; text-decoration: none; font-size: 15px; color: rgb(255 255 255 / .82);
}
.nota-google strong { color: #fff; }
.nota-google:hover span:last-child { text-decoration: underline; }

.estrellas { display: inline-flex; gap: 2px; }
.estrellas svg { width: 20px; height: 20px; stroke: none; }
.estrellas--grande svg { width: 34px; height: 34px; }

.botones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; max-width: 460px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 22px; border-radius: var(--radio-boton);
  font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.boton svg { width: 22px; height: 22px; flex: none; }
.boton:active { transform: scale(.98); }
.boton--principal { background: var(--primario); color: var(--sobre-primario); box-shadow: 0 6px 18px -6px var(--primario); }
.boton--principal:hover { background: var(--primario-oscuro); }
.boton--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 6px 18px -6px var(--whatsapp); }
.boton--whatsapp:hover { background: var(--whatsapp-oscuro); }
.boton--contorno { border-color: var(--linea); background: #fff; color: var(--tinta); }
.boton--contorno:hover { border-color: var(--tinta-3); }
.portada .boton--principal, .portada .boton--whatsapp { box-shadow: 0 8px 22px -8px rgb(0 0 0 / .6); }
.portada__nota { margin-top: 12px; font-size: 14px; color: rgb(255 255 255 / .68); }

@media (min-width: 860px) {
  .portada { padding: 120px 0 128px; min-height: 620px; display: flex; align-items: center; }
  .portada__foto { inset: 0; height: 100%; object-position: center 30%; }
  .portada::before {
    background: linear-gradient(90deg,
      rgb(12 14 18 / .94) 0%, rgb(12 14 18 / .80) 38%,
      rgb(12 14 18 / .25) 68%, rgb(12 14 18 / 0) 100%);
  }
  .portada__texto { max-width: 560px; }
}

/* ---------- Secciones ---------- */
.seccion { padding: 64px 0; }
.seccion--suave { background: var(--fondo-suave); }
.antetitulo {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primario-texto); margin-bottom: 10px;
}
.seccion h2 { font-size: clamp(28px, 6.4vw, 42px); font-weight: 800; }
.seccion__intro { margin-top: 12px; color: var(--tinta-2); max-width: 560px; }
@media (min-width: 860px) { .seccion { padding: 96px 0; } }

/* Servicios */
.servicios { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
.servicio {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 18px;
}
.servicio__icono {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--primario-suave); color: var(--primario-texto);
}
.servicio__icono svg { width: 26px; height: 26px; }
.servicio h3 { font-size: 18px; font-weight: 700; }
.servicio p { font-size: 15px; color: var(--tinta-2); margin-top: 4px; }
@media (min-width: 600px) { .servicios { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 960px) {
  .servicios { grid-template-columns: repeat(4, 1fr); }
  .servicio { flex-direction: column; padding: 24px; }
}

/* Precios orientativos */
.seccion--precios { padding-top: 0; }
.precios {
  margin-top: 28px; background: var(--fondo); border: 1px solid var(--linea);
  border-radius: var(--radio); overflow: hidden; max-width: 760px;
}
.precio {
  display: flex; align-items: baseline; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid var(--linea);
}
.precio:last-child { border-bottom: 0; }
.precio__nombre { font-weight: 600; }
.precio__detalle { display: block; font-size: 14px; color: var(--tinta-3); font-weight: 400; margin-top: 2px; }
.precio__puntos { flex: 1; border-bottom: 2px dotted var(--linea); min-width: 16px; transform: translateY(-5px); }
.precio__importe { font-weight: 800; font-size: 18px; white-space: nowrap; color: var(--primario-texto); font-variant-numeric: tabular-nums; }
.precio__importe small { font-size: 13px; font-weight: 600; color: var(--tinta-3); margin-right: 4px; }
.precios__nota { margin-top: 12px; font-size: 14px; color: var(--tinta-3); }
.precios__boton { margin-top: 22px; }
@media (max-width: 420px) { .precio { padding: 14px 16px; } .precio__puntos { display: none; } .precio__nombre { flex: 1; } }

/* Motivos */
.motivos { display: grid; gap: 14px; margin-top: 32px; }
.motivo { background: #fff; border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra); }
.motivo__icono {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primario); color: var(--sobre-primario); margin-bottom: 16px;
}
.motivo__icono svg { width: 22px; height: 22px; }
.motivo h3 { font-size: 19px; font-weight: 700; }
.motivo p { color: var(--tinta-2); margin-top: 6px; font-size: 16px; }
@media (min-width: 700px) { .motivos { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1040px) { .motivos { grid-template-columns: repeat(4, 1fr); } }

/* Opiniones */
.opiniones {
  text-align: center; max-width: 620px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.opiniones__nota { font-size: clamp(72px, 20vw, 108px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; margin-top: 24px; }
.opiniones__nota small { font-size: .3em; color: var(--tinta-3); letter-spacing: 0; font-weight: 600; margin-left: 4px; }
.opiniones .estrellas { margin-top: 12px; }
.opiniones__total { margin-top: 12px; color: var(--tinta-2); }
.opiniones .boton { margin-top: 28px; }

/* Botón "Pedir presupuesto" de la portada */
.boton--presupuesto {
  grid-column: 1 / -1; background: rgb(255 255 255 / .1); color: #fff;
  border-color: rgb(255 255 255 / .35); min-height: 52px; font-size: 17px;
}
.boton--presupuesto:hover { background: rgb(255 255 255 / .18); }
.sin-whatsapp .portada .botones { grid-template-columns: 1fr 1fr; max-width: 460px; }
.sin-whatsapp .boton--presupuesto { grid-column: auto; min-height: 58px; }
@media (max-width: 380px) {
  .sin-whatsapp .portada .botones { grid-template-columns: 1fr; }
}

/* Pide presupuesto */
.presupuesto { display: grid; gap: 28px; }
@media (min-width: 960px) { .presupuesto { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }
.formulario, .formulario__ok, .formulario__demo {
  background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 22px; box-shadow: var(--sombra);
}
.seccion--suave .formulario { background: #fff; }
.campos { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.campo { display: grid; gap: 6px; font-size: 15px; font-weight: 600; grid-column: 1 / -1; }
.campo:nth-child(3), .campo:nth-child(4) { grid-column: auto; }
@media (min-width: 600px) {
  .campos { grid-template-columns: repeat(6, 1fr); }
  .campo:nth-child(1), .campo:nth-child(2) { grid-column: span 3; }
  .campo:nth-child(3), .campo:nth-child(4), .campo:nth-child(5) { grid-column: span 2; }
}
.campo input, .campo textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--tinta);
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--linea); border-radius: 10px;
  background: var(--fondo); min-height: 50px;
}
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--primario); box-shadow: 0 0 0 3px var(--primario-suave); }
.campo small { font-weight: 400; color: var(--tinta-3); font-size: 13px; }
.campo--foto { margin-top: 18px; }
.campo--foto input { padding: 10px; background: var(--fondo-suave); }
.cuando { border: 0; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.cuando legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.cuando label {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer;
  border: 1.5px solid var(--linea); border-radius: 10px; font-size: 16px;
}
.cuando label:has(input:checked) { border-color: var(--primario); background: var(--primario-suave); font-weight: 600; }
.cuando input, .acepto input { width: 20px; height: 20px; accent-color: var(--primario); flex: none; margin: 0; }
.acepto { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 15px; color: var(--tinta-2); }
.acepto a { color: var(--primario-texto); font-weight: 600; }
.formulario__error { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #9b1c1c; font-size: 15px; }
.formulario__enviar { width: 100%; margin-top: 18px; }
.formulario__enviar[disabled] { opacity: .6; cursor: wait; }
.formulario__nota { margin-top: 10px; font-size: 13px; color: var(--tinta-3); text-align: center; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulario__ok, .formulario__demo { text-align: center; padding: 40px 24px; display: grid; justify-items: center; gap: 12px; }
.formulario__ok[hidden], .formulario__demo[hidden], .formulario[hidden] { display: none; }
.formulario__ok h3, .formulario__demo h3 { font-size: 22px; }
.formulario__demo p { color: var(--tinta-2); max-width: 420px; }
.formulario__demo-tipo { font-weight: 700; color: var(--tinta) !important; }
.formulario__ok-icono {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--primario); color: var(--sobre-primario);
}
.formulario__ok-icono svg { width: 28px; height: 28px; stroke-width: 2.5; }

/* Dónde */
.donde { display: grid; gap: 28px; }
.direccion { display: flex; gap: 10px; margin-top: 18px; font-weight: 600; font-size: 18px; }
.direccion svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--primario-texto); }
.horario { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 16px; }
.horario th, .horario td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--linea); }
.horario th { font-weight: 600; width: 36%; }
.tramo { white-space: nowrap; }
@media (max-width: 400px) { .horario th, .horario td { padding: 10px 8px; font-size: 15px; } }
.horario td { color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.horario tr.hoy { background: var(--primario-suave); }
.horario tr.hoy th, .horario tr.hoy td { color: var(--tinta); font-weight: 700; }
.horario tr.hoy th::after { content: " · hoy"; font-weight: 500; color: var(--primario-texto); font-size: 14px; }
.horario td.cerrado { color: var(--tinta-3); }
.horario__nota { margin-top: 10px; font-size: 14px; color: var(--tinta-3); }
.horario__nota:empty { display: none; }
.botones--compactos { margin-top: 24px; }
.botones--compactos .boton { min-height: 52px; font-size: 16px; padding: 0 14px; white-space: nowrap; }
.botones--compactos .boton svg { width: 19px; height: 19px; }
.mapa {
  border-radius: var(--radio); overflow: hidden; background: #e9e6e1;
  min-height: 320px; box-shadow: var(--sombra);
}
.mapa { position: relative; }
.mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.mapa iframe[hidden], .mapa__cargar[hidden] { display: none; }
.mapa__cargar {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; font: inherit; color: var(--tinta);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background:
    linear-gradient(rgb(255 255 255 / .55), rgb(255 255 255 / .55)),
    repeating-linear-gradient(0deg, transparent 0 46px, rgb(0 0 0 / .06) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgb(0 0 0 / .06) 46px 48px),
    var(--fondo-suave);
}
.mapa__cargar svg { width: 40px; height: 40px; color: var(--sobre-primario); background: var(--primario); border-radius: 50%; padding: 9px; }
.mapa__cargar span { display: grid; text-align: left; line-height: 1.3; }
.mapa__cargar strong { font-size: 18px; }
.mapa__cargar small { font-size: 13px; color: var(--tinta-3); }
.mapa__cargar:hover strong { text-decoration: underline; }
@media (min-width: 860px) {
  .donde { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
  .mapa, .mapa iframe { min-height: 460px; }
}

/* Pie */
.pie { background: var(--oscuro); color: #a9adb6; padding: 48px 0 110px; font-size: 15px; }
.pie__in { display: grid; gap: 14px; }
.pie__nombre { color: #fff; font-weight: 800; font-size: 20px; }
.pie a { color: #fff; text-decoration: none; font-weight: 600; }
.pie__aviso { font-size: 13px; color: #80848d; max-width: 560px; }
.pie__copy { font-size: 13px; color: #80848d; }
@media (min-width: 860px) { .pie { padding-bottom: 48px; } }

/* Botón flotante de WhatsApp (solo móvil) */
.whatsapp-flotante {
  position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / .22);
  transform: translateY(0); transition: transform .25s ease, opacity .25s ease;
}
.whatsapp-flotante svg { width: 32px; height: 32px; }
.whatsapp-flotante.oculto { transform: translateY(90px); opacity: 0; pointer-events: none; }
@media (min-width: 860px) { .whatsapp-flotante { display: none; } }

/* Taller sin WhatsApp (teléfono fijo): solo "Llamar" y flotante de llamada */
.sin-whatsapp .boton--whatsapp { display: none; }
.sin-whatsapp .whatsapp-flotante { background: var(--primario); color: var(--sobre-primario); }
.sin-whatsapp .whatsapp-flotante svg { fill: none; stroke: currentColor; width: 26px; height: 26px; }

/* Modo oficial: sin rastro de la propuesta */
.modo-oficial .propuesta, .modo-oficial #aviso-propuesta, .modo-oficial .pie__copy--propuesta { display: none; }
html:not(.modo-oficial) .pie__copy--oficial { display: none; }
.pie__copy a { color: inherit; }

/* ---------- Fotos en secciones ---------- */
.foto-cercano { margin: 28px 0 0; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 3 / 2; background: #ddd; }
.foto-cercano img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.por-que .motivos { margin-top: 16px; }
@media (min-width: 700px) { .por-que .motivos { margin-top: 18px; } }
@media (min-width: 1040px) {
  .por-que { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 24px; margin-top: 36px; align-items: stretch; }
  .foto-cercano { margin: 0; aspect-ratio: auto; height: 100%; min-height: 420px; }
  .por-que .motivos { margin-top: 0; grid-template-columns: 1fr 1fr; }
}

.seccion--foto { position: relative; isolation: isolate; overflow: hidden; background: #121418; color: #fff; }
.seccion__fondo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.seccion--foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(12 14 18 / .80); }
.seccion--foto .antetitulo { color: rgb(255 255 255 / .75); }
.seccion--foto .opiniones__nota small { color: rgb(255 255 255 / .6); }
.seccion--foto .opiniones__total { color: rgb(255 255 255 / .82); }
.seccion--foto .opiniones__total strong { color: #fff; }
.seccion--foto .boton--contorno { border-color: #fff; }

/* ---------- Otros sectores (peluquería, clínica, restaurante, reformas) ---------- */
.campo select {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--tinta);
  width: 100%; padding: 12px 40px 12px 14px; border: 1.5px solid var(--linea); border-radius: 10px;
  min-height: 50px; appearance: none; -webkit-appearance: none;
  background: var(--fondo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 20px;
}
.campo select:focus { outline: none; border-color: var(--primario); box-shadow: 0 0 0 3px var(--primario-suave); }
.campo input[type="date"] { -webkit-appearance: none; appearance: none; display: block; }
.campos--libre { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.campos--libre .campo { grid-column: 1 / -1; }
.campos--libre .campo--medio, .campos--libre .campo--tercio { grid-column: auto; }
.campos--libre .campo--medio:has(select, input[type="date"]),
.campos--libre .campo--tercio:has(input[type="date"]) { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .campos--libre { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .campos--libre .campo { grid-column: 1 / -1; }
  .campos--libre .campo--medio,
  .campos--libre .campo--medio:has(select, input[type="date"]) { grid-column: span 3; }
  .campos--libre .campo--tercio,
  .campos--libre .campo--tercio:has(input[type="date"]) { grid-column: span 2; }
}
.cuando--fila { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cuando--fila { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.cuando--fila legend { grid-column: 1 / -1; }

/* ---------- La carta (restaurantes): platos destacados + menú del día ---------- */
.platos { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .platos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .platos { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.plato { background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px 20px; }
.estilo-barrio .plato { background: #fffaf2; }
.plato__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.plato__nombre { font-size: 19px; font-weight: 700; }
.estilo-barrio .plato__nombre { font-family: var(--serif); font-size: 21px; }
.plato__precio { flex: none; font-weight: 800; font-size: 19px; color: var(--primario-texto); font-variant-numeric: tabular-nums; }
.plato__desc { margin-top: 6px; font-size: 15px; color: var(--tinta-2); }
.plato--ejemplo i { display: block; height: 14px; border-radius: 7px; background: var(--linea); }
.plato--ejemplo .ej-nombre { width: 60%; height: 18px; }
.plato--ejemplo .ej-precio { width: 3.2em; background: var(--primario-suave); }
.plato--ejemplo .ej-desc { width: 85%; margin-top: 12px; }
.plato--ejemplo:nth-child(2) .ej-nombre { width: 45%; }
.plato--ejemplo:nth-child(3) .ej-nombre { width: 70%; }
.carta__ejemplo { margin-top: 12px; font-size: 14px; color: var(--tinta-3); }
.menu-dia { margin-top: 22px; background: var(--primario); color: var(--sobre-primario); border-radius: var(--radio); padding: 22px 24px; max-width: 640px; }
.menu-dia[hidden] { display: none; }
.menu-dia__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.menu-dia__titulo { font-size: 22px; font-weight: 800; }
.estilo-barrio .menu-dia__titulo { font-family: var(--serif); font-size: 25px; }
.menu-dia strong { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.menu-dia p { margin-top: 8px; opacity: .92; }
.menu-dia__dias { font-size: 14px; }
.menu-dia--ejemplo .ej-precio { display: inline-block; width: 2.4em; height: 22px; border-radius: 8px; background: rgb(255 255 255 / .3); vertical-align: middle; }
#carta .precios__boton { margin-top: 26px; }

/* ---------- Cabecera: nombre largo en una sola línea (app.js reduce la letra) ---------- */
.marca { min-width: 0; flex: 0 1 auto; }
.marca__icono { flex: none; }
.marca [data-bind="nombre"] { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabecera__tel { flex: none; }

/* ---------- Botones de portada en peluquería, clínica y restaurante ----------
   1.º la acción (Pedir cita / Reservar mesa) a todo lo ancho; debajo Llamar y WhatsApp. */
.botones--accion .boton--accion { grid-column: 1 / -1; }
.sin-whatsapp .portada .botones--accion .boton--llamar { grid-column: 1 / -1; }
.portada .boton--llamar { background: #fff; color: var(--tinta); border-color: var(--linea); }

/* ---------- Botones flotantes de los sectores (móvil): Llamar + WhatsApp ---------- */
.flotantes {
  position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; gap: 12px;
  transition: transform .25s ease, opacity .25s ease;
}
.flotantes.oculto { transform: translateY(160px); opacity: 0; pointer-events: none; }
.flotante {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgb(0 0 0 / .22); text-decoration: none;
}
.flotante--llamar { background: var(--primario); color: var(--sobre-primario); }
.flotante--llamar svg { width: 26px; height: 26px; }
.flotante--whatsapp { background: var(--whatsapp); color: #fff; }
.flotante--whatsapp svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.sin-whatsapp .flotante--whatsapp { display: none; }
@media (min-width: 860px) { .flotantes { display: none; } }

/* ---------- Restaurante: portada a pantalla completa, foto oscurecida y titular ---------- */
html.sector-restaurante .portada {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: min(calc(100svh - 110px), 760px);
  padding: 90px 0 28px; background: #140f0b; color: #fff;
}
html.sector-restaurante .portada::before {
  display: block; content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(12 9 6 / .30) 0%, rgb(12 9 6 / .50) 40%, rgb(12 9 6 / .90) 100%);
}
html.sector-restaurante .portada__foto {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; transform: none; object-fit: cover; object-position: center;
}
html.sector-restaurante .portada__in { width: 100%; }
html.sector-restaurante .portada__nombre {
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .85);
}
html.sector-restaurante .portada h1 {
  color: #fff; margin-top: 10px; font-size: clamp(36px, 10vw, 78px); line-height: 1.02; text-wrap: balance;
  text-shadow: 0 2px 24px rgb(0 0 0 / .35);
}
html.sector-restaurante .estado {
  background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .25); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html.sector-restaurante .portada .botones { margin-top: 28px; }
html.sector-restaurante .portada .boton--accion { min-height: 64px; font-size: 20px; }
html.sector-restaurante .portada .boton--llamar { background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .55); }
html.sector-restaurante .nota-google { color: rgb(255 255 255 / .85); margin-top: 18px; }
html.sector-restaurante .nota-google strong { color: #fff; }
@media (min-width: 860px) {
  html.sector-restaurante .portada { justify-content: center; min-height: 680px; padding: 140px 0 120px; }
  html.sector-restaurante .portada__in { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
  html.sector-restaurante .portada__texto { max-width: 640px; }
}

/* ---------- Restaurante: selector de disponibilidad en 4 pasos ---------- */
.formulario[data-paso]:not([data-paso="4"]) > .acepto,
.formulario[data-paso]:not([data-paso="4"]) > .formulario__enviar,
.formulario[data-paso]:not([data-paso="4"]) > .formulario__nota { display: none; }
.reserva__resumen { display: flex; flex-wrap: wrap; gap: 8px; }
.reserva__resumen:not(:empty) { margin-bottom: 16px; }
.reserva__chip {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--tinta); background: var(--primario-suave); border: 1.5px solid transparent;
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.reserva__chip span { font-weight: 600; font-size: 12px; color: var(--primario-texto); text-decoration: underline; }
.reserva__chip:hover { border-color: var(--primario); }
.reserva__paso[hidden] { display: none; }
.reserva__titulo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin: 0 0 14px; outline: none; }
.estilo-barrio .reserva__titulo { font-family: var(--serif); font-size: 22px; }
.reserva__titulo span {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primario); color: var(--sobre-primario); font-family: var(--fuente); font-size: 14px;
}
.reserva__atras {
  display: inline-block; font: inherit; font-size: 15px; font-weight: 700; color: var(--primario-texto);
  background: none; border: 0; padding: 4px 0; margin: 0 0 8px; cursor: pointer;
}
.reserva__opcion {
  font: inherit; color: var(--tinta); background: var(--fondo); cursor: pointer;
  border: 1.5px solid var(--linea); border-radius: 12px; min-height: 52px; padding: 6px 4px;
  -webkit-tap-highlight-color: transparent; transition: border-color .15s ease, background-color .15s ease;
}
.reserva__opcion:hover:not(:disabled) { border-color: var(--primario); }
.reserva__opcion[aria-pressed="true"] { background: var(--primario); border-color: var(--primario); color: var(--sobre-primario); }
.reserva__opcion:disabled { cursor: not-allowed; background: var(--fondo-suave); color: var(--tinta-3); opacity: .7; }
.reserva__personas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.reserva__personas .reserva__opcion { font-size: 19px; font-weight: 800; }
.reserva__personas .reserva__mas { grid-column: 1 / -1; font-size: 16px; font-weight: 700; }
.reserva__grupo { margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--fondo-suave); display: grid; gap: 12px; }
.reserva__grupo[hidden] { display: none; }
.reserva__dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.reserva__dia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 66px; line-height: 1.15; padding: 6px 0; }
.reserva__dia b { font-size: 19px; font-weight: 800; }
.reserva__dia small { font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.reserva__dia small:last-child { text-transform: none; font-size: 10.5px; }
.reserva__dia.no b { text-decoration: line-through; font-weight: 600; }
.reserva__turnos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.reserva__turnos[hidden] { display: none; }
.reserva__turno { font-size: 17px; font-weight: 800; min-height: 48px; }
.reserva__horas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .reserva__horas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reserva__hora { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 60px; line-height: 1.2; }
.reserva__hora b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.reserva__hora small { font-size: 12px; font-weight: 600; color: #2f7a4a; }
.reserva__hora.pocas { border-color: #e7a33e; background: #fff6e6; }
.reserva__hora.pocas small { color: #a35a00; font-weight: 800; }
.reserva__hora.completo b { text-decoration: line-through; }
.reserva__hora.completo small { color: var(--tinta-3); }
.reserva__hora[aria-pressed="true"] small { color: inherit; }
.reserva__leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--tinta-3); }
.reserva__leyenda span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--linea); background: var(--fondo); }
.reserva__leyenda .pocas::before { border-color: #e7a33e; background: #fff6e6; }
.reserva__leyenda .completo::before { background: var(--fondo-suave); }
.reserva__vacio { padding: 14px; border-radius: 12px; background: var(--fondo-suave); color: var(--tinta-2); grid-column: 1 / -1; }
/* Demostración: así llegaría el email */
.correo { display: grid; gap: 4px; text-align: left; background: var(--fondo-suave); border: 1px solid var(--linea); border-radius: 12px; padding: 14px 16px; margin-top: 6px; font-size: 15px; }
.correo__asunto { font-weight: 800; color: var(--tinta); margin-bottom: 4px; }
.correo__linea b { display: inline-block; min-width: 92px; color: var(--tinta); }
/* Reserva en un sistema externo (TheFork, CoverManager, Restoo) */
.reserva-externa { display: grid; gap: 12px; justify-items: start; }
.reserva-externa h3 { font-size: 22px; }
/* ---------- Peluquería y clínica: paso 1 del selector de cita ---------- */
.cita__servicios { display: grid; gap: 8px; }
@media (min-width: 600px) { .cita__servicios { grid-template-columns: 1fr 1fr; } }
.cita__servicio { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; padding: 12px 14px; min-height: 62px; }
.cita__nombre { font-size: 17px; font-weight: 800; line-height: 1.25; }
.cita__meta { font-size: 14px; color: var(--tinta-2); font-weight: 600; }
.cita__servicio[aria-pressed="true"] .cita__meta { color: inherit; opacity: .9; }
.cita__duda { border-style: dashed; }
.cita__nota { margin-top: 10px; font-size: 13px; color: var(--tinta-3); }
.cita__nota[hidden] { display: none; }
.reserva--cita .reserva__turno { min-height: 46px; }
.reserva__hora.pasada b { text-decoration: line-through; }
.reserva__hora.pasada small { color: var(--tinta-3); }

/* ---------- Opiniones: "Ver opiniones en Google" con texto claro sobre la foto oscura ---------- */
.seccion--foto .boton--contorno,
html .seccion--foto .boton--contorno { color: #fff; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .85); }
html .seccion--foto .boton--contorno:hover { background: rgb(255 255 255 / .18); border-color: #fff; }
html .seccion--foto .boton--contorno svg { color: #fff; }
/* Estilo claro: la sección de opiniones es clara, el botón va oscuro */
html.estilo-claro .seccion--foto .boton--contorno { color: var(--tinta); background: #fff; border-color: var(--tinta); }
html.estilo-claro .seccion--foto .boton--contorno svg { color: var(--tinta); }
/* Carta de ejemplo: etiqueta en cada plato sin precio */
.plato__ejemplo { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--tinta-3); background: var(--fondo-suave); border: 1px dashed var(--linea); border-radius: 999px; padding: 3px 9px; }
/* Botón de Instagram en "Horario y ubicación" */
.botones--compactos .boton--instagram { grid-column: 1 / -1; }
/* Portada con titular (peluquería, clínica, reformas): nombre y barrio en pequeño encima */
.portada__nombre { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primario-texto); margin-bottom: 8px; }
:is(.sector-peluqueria, .sector-clinica, .sector-reformas) .portada h1.portada__titular { font-size: clamp(36px, 10vw, 68px); }
/* Etiqueta "Ejemplo" en servicios de una propuesta */
.etiqueta-ejemplo { display: inline-block; vertical-align: middle; margin-left: 6px; font-family: var(--fuente); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--tinta-3); background: var(--fondo-suave); border: 1px dashed var(--linea); border-radius: 999px; padding: 2px 8px; }
/* Precio real en la tarjeta de un servicio y nota bajo la lista */
.servicio__precio { margin-top: 4px; font-weight: 800; color: var(--primario-texto); font-variant-numeric: tabular-nums; }
.servicios__nota { margin-top: 18px; font-size: 14px; color: var(--tinta-3); }
.servicios__nota a { color: var(--primario-texto); font-weight: 700; }
/* Otras valoraciones (p. ej. Treatwell) bajo la de Google */
.opiniones__otras { margin-top: 10px; font-size: 15px; color: rgb(255 255 255 / .85); }
.opiniones__otras a { color: inherit; text-underline-offset: 3px; }
.opiniones__otras strong { color: #fff; }
html.estilo-claro .opiniones__otras { color: var(--tinta-2); }
html.estilo-claro .opiniones__otras strong { color: var(--tinta); }