/* La Paz Caballeros. Barbería de barrio: azul marino como tinta, rojo de poste de barbero como único acento.
   Títulos en Big Shoulders Display (rótulo condensado), texto en DM Sans.
   Formas: botones y opciones en píldora, fotos y tarjetas 22px, burbujas del chat 18px. */

:root {
  --fondo: #f3f4f6;
  --superficie: #e6e9ef;
  --tarjeta: #ffffff;
  --tinta: #0f1a2e;
  --tinta-suave: #4b5568;
  --borde: #d5dae3;
  --acento: #d62839;
  --acento-texto: #c21f30;
  --sobre-acento: #ffffff;
  --burbuja-usuario: #0f1a2e;
  --sobre-usuario: #ffffff;
  --abierto: #15803d;
  --radio: 22px;
  --sombra: 0 24px 50px -24px rgb(15 26 46 / .35);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --texto: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0b1220;
    --superficie: #131c2e;
    --tarjeta: #18233a;
    --tinta: #eef2f8;
    --tinta-suave: #a6b0c3;
    --borde: #26324b;
    --acento-texto: #ff6b78;
    --burbuja-usuario: #d62839;
    --sobre-usuario: #ffffff;
    --abierto: #4ade80;
    --sombra: 0 24px 50px -24px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #0b1220;
  --superficie: #131c2e;
  --tarjeta: #18233a;
  --tinta: #eef2f8;
  --tinta-suave: #a6b0c3;
  --borde: #26324b;
  --acento-texto: #ff6b78;
  --burbuja-usuario: #d62839;
  --sobre-usuario: #ffffff;
  --abierto: #4ade80;
  --sombra: 0 24px 50px -24px rgb(0 0 0 / .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 400 1.0625rem/1.6 var(--texto); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 900 clamp(2.4rem, 5.5vw, 4rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; margin-bottom: 2rem; }
.contenedor { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 480px) { .contenedor { padding-inline: 16px; } }
section { padding-block: clamp(4rem, 9vw, 7rem); }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid var(--tinta);
  background: var(--tinta); color: var(--fondo); font: 700 1rem/1 var(--texto);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background .2s, border-color .2s, color .2s;
}
.boton i { font-size: 1.25rem; }
.boton:active { transform: scale(.97); }
.boton-acento { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); }
.boton-acento:hover { background: var(--tinta); border-color: var(--tinta); color: var(--fondo); }
.boton-borde { background: transparent; color: var(--tinta); border-color: var(--borde); }
.boton-borde:hover { border-color: var(--tinta); }
.boton-pequeno { padding: .6rem 1.05rem; font-size: .95rem; }

/* ---------- Aviso y navegación ---------- */
.aviso { margin: 0; padding: .55rem 16px; text-align: center; font-size: .88rem; font-weight: 500; background: var(--tinta); color: var(--fondo); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in oklab, var(--fondo) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--borde); }
.nav-dentro { height: 66px; display: flex; align-items: center; gap: 2rem; }
.marca { font: 900 1.7rem/1 var(--display); text-transform: uppercase; text-decoration: none; margin: 0; white-space: nowrap; }
.marca small { font: 600 .78rem/1 var(--texto); letter-spacing: .1em; color: var(--acento-texto); margin-left: .15rem; }
.nav-enlaces { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-enlaces a { text-decoration: none; font-weight: 500; color: var(--tinta-suave); }
.nav-enlaces a:hover { color: var(--tinta); }
@media (max-width: 860px) { .nav-enlaces { display: none; } .nav-dentro .boton { margin-left: auto; } }

/* ---------- Portada ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 4.5rem); }
.estado { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; font-weight: 600; color: var(--tinta-suave); }
.estado::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tinta-suave); }
.estado.abierto { color: var(--abierto); }
.estado.abierto::before { background: var(--abierto); animation: latido 2.4s ease-in-out infinite; }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--abierto) 45%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.hero-titulo { font: 900 clamp(3.2rem, 9.5vw, 7rem)/.88 var(--display); text-transform: uppercase; display: grid; }
.hero-titulo .linea:nth-child(2) { color: var(--acento-texto); }
.hero-eslogan { max-width: 40ch; color: var(--tinta-suave); font-size: 1.15rem; margin: 1.5rem 0 2rem; }
.hero-botones { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-foto img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100dvh - 150px); object-fit: cover; border-radius: 28px; background: var(--superficie); }
@media (prefers-reduced-motion: no-preference) {
  .hero-titulo .linea { animation: subir .9s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 90ms); }
  .hero-texto > :not(h1) { animation: subir .9s cubic-bezier(.16,1,.3,1) both .3s; }
  .hero-foto { animation: destapar 1.1s cubic-bezier(.16,1,.3,1) both .15s; }
}
@keyframes subir { from { opacity: 0; transform: translateY(26px); } }
@keyframes destapar { from { opacity: 0; clip-path: inset(0 0 14% 0 round 28px); } to { clip-path: inset(0 0 0 0 round 28px); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-foto { order: -1; }
  .hero-foto img { aspect-ratio: 16 / 11; max-height: none; }
}

/* ---------- Cinta ---------- */
.cinta { background: var(--acento); color: var(--sobre-acento); overflow: hidden; padding-block: .85rem; }
.cinta-pista { display: flex; width: max-content; animation: cinta 34s linear infinite; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
.cinta span { font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; display: inline-flex; align-items: center; }
.cinta span::after { content: ""; width: 1.6rem; height: .5rem; margin-inline: 1.3rem; border-radius: 99px;
  background: repeating-linear-gradient(-45deg, var(--sobre-acento) 0 4px, transparent 4px 8px); opacity: .9; }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cinta-pista { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: .5rem; } }

/* ---------- Servicios ---------- */
.servicios-dentro { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lista-servicios { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tinta); }
.servicio {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .5rem 1.5rem;
  padding: 1.5rem 1rem 1.5rem 1.25rem; border-bottom: 1px solid var(--borde); position: relative; cursor: default;
  transition: background .25s;
}
.servicio::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acento); transform: scaleY(0); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.servicio.activo { background: var(--tarjeta); }
.servicio.activo::before { transform: scaleY(1); }
.servicio-mini { display: none; }
.servicio h3 { font: 800 clamp(1.7rem, 3vw, 2.3rem)/1 var(--display); text-transform: uppercase; }
.servicio p { margin: .35rem 0 0; color: var(--tinta-suave); }
.servicio-min { display: inline-block; margin-left: .25rem; font-size: .9rem; font-weight: 600; color: var(--tinta); }
.servicio-precio { font: 900 clamp(2rem, 3.5vw, 2.8rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.servicio-precio.sin-precio { font: 600 1rem/1.2 var(--texto); color: var(--tinta-suave); }
.servicio-reservar { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--acento-texto); text-decoration: none; white-space: nowrap; }
.servicio-reservar:hover { text-decoration: underline; text-underline-offset: 4px; }
.servicio-vista { position: sticky; top: 90px; }
.servicio-vista img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); background: var(--superficie); transition: opacity .35s ease; }
@media (max-width: 860px) {
  .servicios-dentro { grid-template-columns: 1fr; }
  .servicio-vista { display: none; }
  .servicio { grid-template-columns: 64px 1fr; column-gap: 1rem; padding: 1.1rem .5rem 1.1rem .9rem; align-items: start; }
  .servicio-mini { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 14px; grid-row: span 3; }
  .servicio-precio { grid-column: 2; font-size: 1.9rem; }
  .servicio-reservar { grid-column: 2; }
}

/* ---------- El peluquero ---------- */
.peluquero { background: var(--superficie); }
.peluquero-dentro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.peluquero-foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); background: var(--fondo); }
.cifras { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-bottom: 1.5rem; }
.cifra { display: grid; }
.cifra-num { font: 900 clamp(4rem, 9vw, 6.5rem)/.9 var(--display); color: var(--acento-texto); font-variant-numeric: tabular-nums; }
.cifra-txt { font-weight: 600; color: var(--tinta-suave); }
.peluquero-desc { font-size: 1.2rem; max-width: 42ch; margin: 0; }
@media (max-width: 860px) { .peluquero-dentro { grid-template-columns: 1fr; } .peluquero-foto { aspect-ratio: 16 / 11; } }

/* ---------- Opiniones ---------- */
.rotador-resenas { display: grid; }
.resena { grid-area: 1 / 1; margin: 0; max-width: 900px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s ease, transform .7s cubic-bezier(.16,1,.3,1), visibility 0s .6s; }
.resena.visible { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.estrellas { color: var(--acento); display: flex; gap: 3px; font-size: 1.3rem; margin-bottom: 1rem; }
.resena blockquote { margin: 0 0 1.25rem; font: 600 clamp(1.5rem, 3.4vw, 2.5rem)/1.25 var(--texto); letter-spacing: -0.01em; }
.resena figcaption { font-weight: 600; color: var(--tinta-suave); }
.puntos { display: flex; gap: .5rem; margin-top: 2rem; }
.puntos button { width: 34px; height: 6px; border-radius: 99px; border: 0; background: var(--borde); cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.puntos button[aria-selected="true"] { background: var(--acento); width: 54px; }

/* ---------- Asistente de citas ---------- */
.cita { background: color-mix(in oklab, var(--tinta) 6%, var(--fondo)); }
.cita-dentro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cita-texto p { color: var(--tinta-suave); font-size: 1.15rem; max-width: 40ch; }
.cita-pregunta { font-size: 1rem !important; }
.chat { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 26px; box-shadow: var(--sombra); display: flex; flex-direction: column; height: min(620px, 78dvh); overflow: hidden; }
.chat-cabecera { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--borde); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--sobre-acento); font-size: 1.3rem; flex: none; }
.chat-nombre { margin: 0; font-weight: 700; }
.chat-sub { margin: 0; font-size: .85rem; color: var(--abierto); }
.chat-reiniciar { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--borde); background: transparent; color: var(--tinta-suave); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.chat-reiniciar:hover { color: var(--tinta); border-color: var(--tinta); }
.chat-mensajes { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; scroll-behavior: smooth; }
.msg { max-width: 84%; padding: .7rem .95rem; border-radius: 18px; line-height: 1.45; font-size: .98rem; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: var(--superficie); border-bottom-left-radius: 6px; }
.msg-bot a { color: var(--acento-texto); font-weight: 600; }
.msg-usuario { align-self: flex-end; background: var(--burbuja-usuario); color: var(--sobre-usuario); border-bottom-right-radius: 6px; }
@media (prefers-reduced-motion: no-preference) { .msg { animation: entra .35s cubic-bezier(.16,1,.3,1); } }
@keyframes entra { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.puntos-escribiendo { display: inline-flex; gap: 4px; padding: .2rem 0; }
.puntos-escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--tinta-suave); animation: escribe 1s infinite ease-in-out; }
.puntos-escribiendo i:nth-child(2) { animation-delay: .15s; }
.puntos-escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes escribe { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.resumen { min-width: min(260px, 60vw); }
.resumen-titulo { margin: 0 0 .5rem; font: 800 1.3rem/1 var(--display); text-transform: uppercase; }
.resumen dl { margin: 0; display: grid; gap: .3rem; }
.resumen dl div { display: flex; justify-content: space-between; gap: 1rem; }
.resumen dt { color: var(--tinta-suave); }
.resumen dd { margin: 0; font-weight: 600; text-align: right; }
.chat-opciones { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1.1rem; max-height: 164px; overflow-y: auto; }
.chat-opciones:not(:empty) { padding-block: .3rem .8rem; }
.opcion { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--borde); background: var(--tarjeta); color: var(--tinta); font: 600 .95rem/1.1 var(--texto); cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; font-variant-numeric: tabular-nums; }
.opcion small { font-weight: 500; color: var(--tinta-suave); }
.opcion:hover { border-color: var(--tinta); }
.opcion:active { transform: scale(.97); }
.opcion-principal { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); }
.opcion-principal:hover { border-color: var(--acento); filter: brightness(1.08); }
.chat-form { display: flex; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--borde); }
.chat-form input { flex: 1; min-width: 0; padding: .75rem 1rem; border-radius: 999px; border: 1.5px solid var(--borde); background: var(--fondo); color: var(--tinta); font: 400 1rem/1.3 var(--texto); }
.chat-form input::placeholder { color: var(--tinta-suave); }
.chat-form input:focus { outline: none; border-color: var(--tinta); }
.chat-enviar { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--tinta); color: var(--fondo); font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; flex: none; }
@media (max-width: 860px) {
  .cita-dentro { grid-template-columns: 1fr; }
  .chat { height: min(600px, 80dvh); }
}

/* ---------- Horario ---------- */
.visitanos { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.horario { margin: 0 0 1.5rem; }
.horario-dia { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--borde); font-variant-numeric: tabular-nums; }
.horario-dia dt { font-weight: 600; }
.horario-dia dd { margin: 0; color: var(--tinta-suave); }
.horario-dia.cerrado dd { opacity: .7; }
.horario-dia.hoy { border-bottom-color: var(--acento); }
.horario-dia.hoy dt::after { content: " (hoy)"; font-weight: 500; color: var(--acento-texto); }
.horario-dia.hoy dd { color: var(--tinta); font-weight: 700; }
.direccion, .accesible { display: flex; gap: .5rem; align-items: flex-start; color: var(--tinta-suave); margin: 0 0 .5rem; }
.direccion i, .accesible i { margin-top: .25rem; }
.enlace { display: inline-flex; align-items: center; gap: .3rem; margin-top: .75rem; font-weight: 700; color: var(--acento-texto); text-decoration: none; }
.enlace:hover { text-decoration: underline; text-underline-offset: 4px; }
.mapa { width: 100%; min-height: 400px; height: 100%; border: 0; border-radius: var(--radio); background: var(--superficie); }
@media (max-width: 860px) { .visitanos { grid-template-columns: 1fr; } .mapa { min-height: 300px; } }

/* ---------- Pie ---------- */
.pie { border-top: 2px solid var(--tinta); padding-block: 2.5rem 3rem; color: var(--tinta-suave); }
.pie-dentro { display: grid; gap: .9rem; }
.pie p { margin: 0; }
.pie .marca { color: var(--tinta); }
.pie-contacto { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.pie-contacto a, .pie-contacto span { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.pie-contacto a:hover { color: var(--tinta); }
.creditos { font-size: .875rem; }

/* ---------- Aparición al bajar ---------- */
.con-animacion .revelar { transition: opacity .8s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.con-animacion .revelar:not(.visto) { opacity: 0; transform: translateY(28px) scale(.98); }
