/* =========================================================
   Remolino Barbería — estilos (demo de Tereré Estudio)
   Concepto: la página es una charla. Sin formularios: cartel tipográfico + chat.
   ========================================================= */
@font-face { font-family: "Bonum"; src: url("../../fonts/bonum-bolditalic.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Bonum"; src: url("../../fonts/bonum-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --papel: #f1ebe0;
  --papel-2: #e7dfd0;
  --blanco: #fffdf8;
  --tinta: #141210;
  --tinta-2: #3d3832;
  --suave: #6e665c;
  --rojo: #c8281e;
  --rojo-osc: #a51f17;
  --azul: #1d3a6e;
  --bronce: #b08a3e;
  --linea: rgba(20, 18, 16, .14);
  --tit: "Bonum", "Bookman Old Style", Georgia, serif;
  --txt: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --te-toast-bg: var(--tinta);
  --te-toast-fg: var(--papel);
  --te-demo-bg: var(--tinta);
  --te-demo-fg: var(--papel);
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1rem/1.5 var(--txt); overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--tit); font-weight: 700; line-height: 1.05; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }
em { font-style: italic; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; font: 600 .95rem/1 var(--txt); text-decoration: none; cursor: pointer; }
.btn svg { width: 20px; height: 20px; }
.btn--rojo { background: var(--rojo); color: #fff; }
.btn--rojo:hover { background: var(--rojo-osc); }
.btn--wa { background: #148a47; color: #fff; }
.btn--ig { background: #b4246f; color: #fff; min-height: 40px; padding: 8px 16px; }

/* ---------- Escena ---------- */
.escena { display: grid; grid-template-columns: minmax(0, 1fr); }
.charla, .lateral, .cartel { min-width: 0; }
@media (min-width: 1100px) { .escena { grid-template-columns: minmax(0, 1fr) 640px minmax(0, 1fr); gap: 32px; padding: 0 24px; } }

/* Cartel lateral con el poste de barbería (solo PC) */
.cartel { display: none; }
@media (min-width: 1100px) {
  .cartel { display: flex; justify-content: flex-end; gap: 22px; position: sticky; top: 0; height: 100dvh; padding: 40px 0; }
  .cartel__texto { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 italic clamp(6rem, 9vw, 10rem)/.85 var(--tit); color: var(--tinta); letter-spacing: -.02em; }
}
.poste { width: 34px; border-radius: 18px; overflow: hidden; border: 3px solid var(--tinta); background: var(--blanco); position: relative; }
.poste span { position: absolute; inset: -60px 0; background: repeating-linear-gradient(-35deg, var(--rojo) 0 14px, var(--blanco) 14px 28px, var(--azul) 28px 42px, var(--blanco) 42px 56px); }
@media (prefers-reduced-motion: no-preference) { .poste span { animation: gira 2.4s linear infinite; } }
@keyframes gira { to { transform: translateY(56px); } }

/* ---------- Charla ---------- */
.charla { position: relative; display: flex; flex-direction: column; min-height: 100dvh; background: var(--papel); background-image: radial-gradient(rgba(20, 18, 16, .07) 1px, transparent 1px); background-size: 18px 18px; }
@media (min-width: 1100px) { .charla { border-left: 1px solid var(--linea); border-right: 1px solid var(--linea); } }
.charla__cab { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(241, 235, 224, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.charla__cab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 4px; background: repeating-linear-gradient(90deg, var(--rojo) 0 16px, var(--blanco) 16px 24px, var(--azul) 24px 40px, var(--blanco) 40px 48px); background-size: 48px 4px; }
@media (prefers-reduced-motion: no-preference) { .charla__cab::after { animation: franja 1.6s linear infinite; } }
@keyframes franja { to { background-position: 48px 0; } }
.charla__logo { width: 150px; }
.estado { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--suave); text-align: right; }
.estado__punto { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #25a35a; box-shadow: 0 0 0 3px rgba(37, 163, 90, .2); }

.registro { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 14px 24px; }
.separador { display: flex; justify-content: center; margin: 4px 0 8px; }
.separador span { padding: 4px 12px; border-radius: 999px; background: var(--papel-2); font-size: .74rem; color: var(--suave); }

.msj { position: relative; max-width: 86%; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: var(--blanco); box-shadow: 0 1px 0 rgba(20, 18, 16, .1); align-self: flex-start; overflow-wrap: anywhere; }
.msj p + p { margin-top: 6px; }
.msj--yo { align-self: flex-end; border-radius: 18px 4px 18px 18px; background: var(--tinta); color: var(--papel); }
.msj--cartel { max-width: 96%; padding: 14px 18px 16px; }
.msj--cartel h1, .msj--cartel p { font: 700 clamp(2.1rem, 1.3rem + 4vw, 3.4rem)/1 var(--tit); letter-spacing: -.01em; }
.msj--cartel em { color: var(--rojo); }
.msj--tarjeta { width: 92%; max-width: 92%; padding: 14px 16px; }
.msj__hora { font-size: .7rem; color: var(--suave); text-align: right; }
.tarjeta__t { font-size: 1.5rem; font-style: italic; margin-bottom: 8px; }
.tarjeta__pie { margin-top: 8px; font-size: .78rem; color: var(--suave); }
@media (prefers-reduced-motion: no-preference) {
  .msj--nuevo { animation: aparece .32s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes aparece { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.carta { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.carta li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--linea); }
.carta span { font-weight: 600; }
.carta i { flex: 1; font-size: .78rem; color: var(--suave); }
.carta b { font: 700 1.05rem/1 var(--tit); }

.barberos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.barberos li { display: grid; justify-items: center; gap: 4px; text-align: center; }
.barberos svg { width: 100%; max-width: 110px; height: auto; border-radius: 50%; }
.barberos strong { font: 700 italic 1.2rem/1 var(--tit); }
.barberos small { font-size: .74rem; color: var(--suave); line-height: 1.3; }

.escribiendo { display: inline-flex; gap: 4px; align-items: center; padding: 14px 16px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--suave); }
@media (prefers-reduced-motion: no-preference) {
  .escribiendo i { animation: punto 1s ease-in-out infinite; }
  .escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
}
@keyframes punto { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Galería de cortes dentro del mensaje */
.cortes { list-style: none; margin: 0 -16px; padding: 4px 16px 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cortes::-webkit-scrollbar { display: none; }
.cortes li { flex: 0 0 132px; scroll-snap-align: start; display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: var(--papel); text-align: center; }
.cortes svg { width: 100%; height: auto; border-radius: 10px; background: var(--papel-2); }
.cortes strong { font: 700 italic 1.05rem/1 var(--tit); }
.cortes button { min-height: 36px; border: 1.5px solid var(--tinta); border-radius: 999px; background: none; cursor: pointer; font-weight: 600; font-size: .82rem; }
.cortes button:hover { background: var(--tinta); color: var(--papel); }

/* Ticket de la fila */
.ranura { position: relative; padding-top: 10px; overflow: hidden; }
.ranura::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 10px; border-radius: 6px; background: var(--tinta); }
.ticket { position: relative; margin: 0 8%; padding: 16px 14px 18px; background: var(--blanco); text-align: center; border-bottom: 2px dashed var(--linea);
  -webkit-mask: radial-gradient(circle at 0 70%, transparent 9px, #000 9.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 70%, transparent 9px, #000 9.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 70%, transparent 9px, #000 9.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 70%, transparent 9px, #000 9.5px) right / 51% 100% no-repeat; box-shadow: 0 6px 16px rgba(20, 18, 16, .12); }
@media (prefers-reduced-motion: no-preference) { .ticket { animation: imprime 1.1s cubic-bezier(.2, .8, .2, 1) both; } }
@keyframes imprime { from { transform: translateY(-105%); } to { transform: none; } }
.ticket small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.ticket b { display: block; font: 700 italic clamp(3rem, 2rem + 4vw, 4.6rem)/1 var(--tit); color: var(--rojo); white-space: nowrap; }
.ticket p { font-size: .86rem; }

/* Comprobante y vista previa */
.recibo { display: grid; gap: 2px; margin: 0; }
.recibo div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dotted var(--linea); font-size: .9rem; }
.recibo dt { color: var(--suave); }
.recibo dd { margin: 0; font-weight: 600; text-align: right; }
.vistawa { width: 92%; max-width: 92%; padding: 0; overflow: hidden; background: #e9e1d6; }
.vistawa summary { cursor: pointer; padding: 10px 14px; background: #0f5132; color: #fff; font-weight: 600; font-size: .9rem; list-style: none; }
.vistawa summary::-webkit-details-marker { display: none; }
.vistawa p { margin: 10px 12px 12px 28px; padding: 10px 12px; background: #d6f0c9; border-radius: 10px 0 10px 10px; white-space: pre-line; font-size: .84rem; line-height: 1.45; }

.sellos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sellos li { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--linea); display: grid; place-items: center; font: 700 italic .9rem/1 var(--tit); color: var(--suave); }
.sellos li svg { width: 86%; height: 86%; transform: rotate(var(--giro, 0deg)); }
.sellos li.puesto { border: 0; }
.sellos li.gratis { border-color: var(--rojo); color: var(--rojo); font-size: .62rem; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) { .sellos li.nuevo { animation: sello .45s cubic-bezier(.3, 1.6, .5, 1) both; } }
@keyframes sello { from { transform: scale(1.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Redactor: respuestas rápidas y campo ---------- */
.redactor { position: sticky; bottom: 0; z-index: 20; padding: 10px 12px 12px; background: rgba(241, 235, 224, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--linea); }
.respuestas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.respuestas::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .respuestas { flex-wrap: wrap; overflow: visible; } }
.resp { flex: none; min-height: 42px; padding: 8px 16px; border: 1.5px solid var(--tinta); border-radius: 999px; background: var(--blanco); color: var(--tinta); cursor: pointer; font-weight: 600; font-size: .92rem; }
.resp:hover { background: var(--tinta); color: var(--papel); }
.resp[aria-pressed="true"] { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.resp--listo { background: var(--tinta); color: var(--papel); }
.resp:disabled { opacity: .35; cursor: not-allowed; }
.resp small { font-weight: 400; opacity: .75; margin-left: 4px; }
.entrada { display: flex; gap: 8px; margin-top: 8px; }
.entrada input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 16px; border: 1.5px solid var(--tinta); border-radius: 999px; background: var(--blanco); font-size: 1rem; }
.entrada input:focus { outline: none; border-color: var(--rojo); }
.entrada__enviar { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--rojo); color: #fff; cursor: pointer; display: grid; place-items: center; }
.entrada__enviar svg { width: 22px; height: 22px; }
.redactor .entrada:first-child { margin-top: 0; }

/* ---------- Lateral (PC) ---------- */
.lateral { display: none; }
@media (min-width: 1100px) {
  .lateral { display: grid; gap: 14px; align-content: start; position: sticky; top: 0; height: max-content; padding: 40px 0; max-width: 320px; }
}
.ficha { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: var(--blanco); border: 1px solid var(--linea); font-size: .92rem; }
.ficha h2 { font-size: 1.5rem; font-style: italic; }
.ficha__pie { font-size: .82rem; color: var(--suave); }
.ficha--fila { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.fila__num b { font: 700 italic 3.4rem/1 var(--tit); color: #ff7a6e; margin-right: 6px; }
.fila__demora { color: #c9bfb2; }
.ficha .btn { justify-self: start; }

/* ---------- CTA y pie ---------- */
.quiero { background: var(--rojo); color: #fff; padding: 40px 20px; }
.quiero__fila { max-width: 1100px; margin: 0 auto; display: grid; gap: 16px; align-items: center; }
.quiero h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); font-style: italic; }
.quiero p { margin-top: 8px; max-width: 56ch; }
.quiero .btn { justify-self: start; }
@media (min-width: 768px) { .quiero__fila { grid-template-columns: 1fr auto; } }
.pie { background: var(--tinta); color: #c9bfb2; padding: 36px 20px 16px; font-size: .9rem; }
.pie__fila { max-width: 1100px; margin: 0 auto; display: grid; gap: 10px; }
.pie__logo { width: 170px; }
.pie a { color: var(--papel); }
.pie__aviso { max-width: 1100px; margin: 24px auto 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; }

/* ---------- Página interna ---------- */
.interna { max-width: 760px; margin: 0 auto; padding: 32px 20px 60px; display: grid; gap: 14px; }
.interna h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.4rem); font-style: italic; }
.interna h2 { font-size: 1.5rem; margin-top: 10px; }
.interna ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.interna .aviso { padding: 14px 18px; border-left: 3px solid var(--rojo); background: var(--blanco); }
