:root {
  --crema: #fbf7f4;
  --rubor: #f3e4de;
  --rubor-2: #ead3cb;
  --tinta: #3b2a2f;
  --suave: #7d676c;
  --rosa: #a4566a;
  --rosa-osc: #86404f;
  --linea: #e6d6d0;
  --blanco: #fff;
  --ok: #2f7a55;
  --error: #b3261e;
  --radio: 14px;
  --sombra: 0 1px 2px rgb(59 42 47 / 6%), 0 8px 24px rgb(59 42 47 / 7%);
  --display: 'Fraunces', Georgia, serif;
  --texto: 'DM Sans', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; scroll-snap-type: y proximity; }
.hero, .seccion { scroll-snap-align: start; }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 16px/1.55 var(--texto); -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--rosa-osc); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }

/* Barra */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 48px);
  background: rgb(251 247 244 / 92%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.marca { font-family: var(--display); font-size: 1.25rem; text-decoration: none; color: var(--tinta); white-space: nowrap; }
.marca-luz { color: var(--rosa); font-style: italic; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--tinta); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--rosa); }
.barra-der { display: flex; gap: 6px; }
.icono-btn { position: relative; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.icono-btn:hover { background: var(--rubor); }
.icono-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.burbuja { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rosa); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .barra-der { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--crema); border-bottom: 1px solid var(--linea); display: none; }
  .nav.abierta { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--linea); }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--rosa);
  background: var(--rosa); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--rosa-osc); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sec { background: transparent; color: var(--rosa-osc); }
.btn-sec:hover { background: var(--rubor); }
.btn-ancho { width: 100%; }
.btn-chico { padding: 6px 12px; font-size: .85rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(32px, 6vw, 80px) clamp(16px, 6vw, 96px); max-width: 1200px; margin: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--rosa); font-weight: 700; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero h1 em { color: var(--rosa); font-weight: 400; }
.lema { font-size: 1.15rem; color: var(--suave); max-width: 36ch; }
.hero-acciones { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hero-dato { color: var(--suave); font-size: .92rem; }
.estrellas { color: #d99a2b; letter-spacing: 2px; }
.hero-foto { margin: 0; justify-self: center; position: relative; }
.hero-foto::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: 200px 200px var(--radio) var(--radio); background: var(--rubor-2); }
/* Carrusel: todas las fotos apiladas, se ve la .activa. Tamaño limitado por el ancho y por el alto de la pantalla. */
.hero-foto { width: min(340px, 80vw, calc(62vh * .75)); aspect-ratio: 3 / 4; }
.hero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 200px 200px var(--radio) var(--radio); object-fit: cover; object-position: center 35%;
  box-shadow: var(--sombra); opacity: 0; transition: opacity 1.2s ease; }
.hero-foto img.activa { opacity: 1; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-foto { order: -1; } .hero-foto { width: min(260px, 70vw); } }

/* Secciones */
.seccion { padding: clamp(48px, 7vw, 88px) clamp(16px, 6vw, 96px); }
.seccion > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.seccion-tinta { background: var(--rubor); }
.seccion-cab { margin-bottom: 32px; }
.seccion-cab p { color: var(--suave); max-width: 60ch; margin: 0; }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.cat h3 { font-size: 1.35rem; color: var(--rosa-osc); border-bottom: 1px solid var(--linea); padding-bottom: 8px; }
.serv { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px dashed var(--linea); }
.serv b { font-weight: 600; }
.serv .precio { font-weight: 700; color: var(--rosa-osc); text-align: right; }
.serv p { margin: 0; color: var(--suave); font-size: .9rem; }
.serv button { justify-self: end; background: none; border: 0; color: var(--rosa); font-weight: 600; cursor: pointer; padding: 0; font-size: .9rem; }
.serv button:hover { text-decoration: underline; }
.duracion { color: var(--suave); font-size: .82rem; }

/* Galería */
.carrusel { position: relative; }
.galeria { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; }
.galeria::-webkit-scrollbar { display: none; }
.galeria button { flex: 0 0 clamp(200px, 26%, 260px); scroll-snap-align: start; padding: 0; border: 0; border-radius: var(--radio); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; background: var(--rubor-2); }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galeria button:hover img { transform: scale(1.04); }
.flecha { position: absolute; top: 50%; z-index: 1; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%);
  box-shadow: var(--sombra); color: var(--rosa-osc); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.flecha[data-mover="-1"] { left: -10px; }
.flecha[data-mover="1"] { right: -10px; }
.flecha:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .galeria button { flex-basis: 72%; } .flecha { width: 36px; height: 36px; margin-top: -18px; font-size: 1.3rem; } .flecha[data-mover="-1"] { left: 4px; } .flecha[data-mover="1"] { right: 4px; } }
.visor { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.visor::backdrop { background: rgb(30 20 23 / 85%); }
.visor img { max-height: 88vh; border-radius: var(--radio); }

/* Tienda */
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
/* Tienda abreviada: 4 productos en el celular y 8 en pantallas grandes; "Ver todos" muestra el resto. */
.productos:not(.todos) .producto:nth-child(n+5) { display: none; }
@media (min-width: 900px) { .productos:not(.todos) .producto:nth-child(n+5) { display: flex; } .productos:not(.todos) .producto:nth-child(n+9) { display: none; } }
.producto-cuerpo > p:not(.nota-prod) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ver-mas { text-align: center; margin-top: 24px; }
.producto { background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.producto-img { aspect-ratio: 1; background: linear-gradient(135deg, var(--rubor), var(--rubor-2)); display: grid; place-items: center; font-family: var(--display); font-size: 3rem; color: var(--rosa); }
.producto-img img { width: 100%; height: 100%; object-fit: cover; }
.producto-cuerpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.producto-cuerpo p { margin: 0; color: var(--suave); font-size: .9rem; flex: 1; }
.producto-pie { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.producto-pie b { color: var(--rosa-osc); }

/* Formularios */
.tarjeta { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: clamp(20px, 4vw, 36px); }
.form-cita { max-width: 760px; }
.paso { position: relative; padding: 0 0 24px 44px; margin-bottom: 8px; border-left: 1px solid var(--linea); margin-left: 14px; }
.paso:last-of-type { border-left-color: transparent; }
.paso-n { position: absolute; left: -15px; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--rosa); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--linea); border-radius: 10px; background: var(--crema); font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rosa); outline-offset: 0; border-color: transparent; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campos label { font-weight: 500; }
.campos input, .campos textarea { margin-top: 4px; }
.campos .ancho { grid-column: 1 / -1; }
@media (max-width: 560px) { .campos { grid-template-columns: 1fr; } }
.ayuda { color: var(--suave); font-size: .86rem; margin: 6px 0 0; }
.error { color: var(--error); font-weight: 500; min-height: 1.2em; margin: 8px 0; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; }
.horas { display: flex; flex-wrap: wrap; gap: 8px; }
.hora { padding: 9px 14px; border: 1px solid var(--linea); border-radius: 999px; background: var(--crema); cursor: pointer; font-weight: 500; font-variant-numeric: tabular-nums; }
.hora:hover { border-color: var(--rosa); }
.hora[aria-checked="true"] { background: var(--rosa); color: #fff; border-color: var(--rosa); }
.resumen { background: var(--rubor); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; max-width: 1100px; margin: auto; }
.contacto > * { max-width: none; margin: 0; }
.grande { font-size: 1.15rem; }
.horario { border-collapse: collapse; margin-top: 16px; }
.horario td { padding: 5px 20px 5px 0; }
.horario tr.hoy td { font-weight: 700; color: var(--rosa-osc); }
.mapa-tapa { width: 100%; aspect-ratio: 4 / 3; border: 2px dashed var(--rubor-2); border-radius: var(--radio); background: var(--rubor); cursor: pointer;
  display: grid; place-content: center; gap: 4px; color: var(--rosa-osc); font-weight: 700; font-size: 1.05rem; }
.mapa-tapa small { color: var(--suave); font-weight: 400; font-size: .85rem; }
.mapa-tapa:hover { background: var(--rubor-2); }
#mapa { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radio); box-shadow: var(--sombra); background: var(--rubor); }
@media (max-width: 760px) { .contacto { grid-template-columns: 1fr; } }

.pie { text-align: center; padding: 32px 16px 140px; border-top: 1px solid var(--linea); color: var(--suave); font-size: .9rem; }
.pie p { margin: 4px 0; }
.suave { color: var(--suave); font-weight: 400; }

.wa-flotante { position: fixed; right: 20px; bottom: 76px; z-index: 15; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / 20%); }
.wa-flotante svg { width: 30px; height: 30px; fill: #fff; }
.ig-flotante { position: fixed; right: 26px; bottom: 24px; z-index: 15; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); box-shadow: 0 6px 20px rgb(0 0 0 / 20%); }
.ig-flotante svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.contacto-links { display: flex; flex-direction: column; gap: 4px; }
.link-wa { font-weight: 600; font-size: 1.05rem; }
.link-ig { font-size: .9rem; }
.contacto-visual { display: grid; gap: 16px; }
.fachada { margin: 0; }
.fachada img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radio); box-shadow: var(--sombra); }
.fachada figcaption { color: var(--suave); font-size: .88rem; margin-top: 6px; }
/* Letrero (vertical) a la izquierda; salón por fuera y vitrina a la derecha. */
.fotos-local { display: grid; grid-template-columns: .8fr 1fr; gap: 12px; }
.fotos-local .fachada:first-child { grid-row: span 2; display: flex; flex-direction: column; }
.fotos-local .fachada img, .foto-pendiente { aspect-ratio: 4 / 3; height: auto; }
/* El letrero llena el alto de las dos fotos de al lado. */
.fotos-local .fachada:first-child img, .fotos-local .fachada:first-child .foto-pendiente { flex: 1; aspect-ratio: auto; height: 0; min-height: 0; }
.foto-pendiente { display: none; place-items: center; text-align: center; border-radius: var(--radio); border: 2px dashed var(--rubor-2);
  background: var(--rubor); color: var(--suave); font-size: .9rem; padding: 12px; }
.sin-foto img { display: none; }
.sin-foto .foto-pendiente { display: grid; }

/* Diálogos */
.dialogo { border: 0; border-radius: var(--radio); padding: 24px; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: var(--sombra); background: var(--blanco); }
.dialogo::backdrop { background: rgb(30 20 23 / 45%); }
.dialogo-cab { display: flex; align-items: center; justify-content: space-between; }
.dialogo-cab h2 { font-size: 1.6rem; margin: 0; }
.dialogo-ok { text-align: center; }
.ok-icono { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--rubor); color: var(--rosa); display: grid; place-items: center; font-size: 28px; }
.linea-carrito { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.cantidad { display: flex; align-items: center; gap: 4px; }
.cantidad button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--linea); background: var(--crema); cursor: pointer; }
.entrega { border: 0; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.entrega label { font-weight: 500; display: flex; gap: 8px; align-items: center; }
.entrega input { width: auto; }
.total { font-size: 1.15rem; text-align: right; margin: 12px 0 0; }

/* Panel admin (lado derecho) */
.velo { position: fixed; inset: 0; background: rgb(30 20 23 / 40%); z-index: 30; }
.admin { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(420px, 100%); background: var(--crema); box-shadow: -8px 0 32px rgb(0 0 0 / 15%);
  display: flex; flex-direction: column; animation: entrar .22s cubic-bezier(.2, .8, .2, 1); }
.admin.ancho { width: min(980px, 100%); }
@keyframes entrar { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .admin { animation: none; } .hero-foto img { transition: none; } html { scroll-behavior: auto; } }
.admin-cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--linea); gap: 12px; }
.admin-cab h2 { font-size: 1.4rem; margin: 0; }
.admin-login { padding: 24px 20px; display: grid; gap: 14px; }
.admin-login label input { margin-top: 4px; }
#admin-app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--linea); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 8px 12px; border-radius: 999px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--tinta); color: #fff; }
.tabs .n { background: var(--rosa); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.admin-cuerpo { flex: 1; overflow: auto; padding: 16px 20px 40px; }
.fila-acc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.fila-acc select, .fila-acc input { width: auto; padding: 7px 10px; }
.item { background: var(--blanco); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgb(59 42 47 / 8%); }
.item-cab { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.item p { margin: 4px 0; font-size: .9rem; color: var(--suave); }
.item .acciones { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.estado { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--rubor); }
.estado.pendiente { background: #fdf0d5; color: #8a5a00; }
.estado.confirmada, .estado.confirmado, .estado.entregado { background: #dcefe4; color: var(--ok); }
.estado.rechazada, .estado.rechazado, .estado.vencida, .estado.cancelada { background: #f6dcdc; color: var(--error); }
.tabla-edit { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla-edit th { text-align: left; font-weight: 600; color: var(--suave); padding: 6px 4px; }
.tabla-edit td { padding: 4px; vertical-align: top; }
.tabla-edit input, .tabla-edit select, .tabla-edit textarea { padding: 7px 8px; font-size: 14px; background: var(--blanco); }
.tabla-edit .num { width: 84px; }
.tabla-edit [name="area"] { min-width: 138px; }
.tabla-edit tr.cambio td:first-child { box-shadow: inset 3px 0 var(--rosa); }
.tabla-edit [name="nombre"] { min-width: 160px; }
.tabla-edit [name="descripcion"] { min-width: 200px; resize: vertical; }
.mini { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--rubor); }
.galeria-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.galeria-admin div { position: relative; }
.galeria-admin img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; width: 100%; }
.galeria-admin button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 90%); cursor: pointer; }
.grid-config { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-config label { font-weight: 500; }
.grid-config .ancho { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid-config { grid-template-columns: 1fr; } }
.dia-horario { display: grid; grid-template-columns: 90px auto 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.dia-horario input[type="checkbox"] { width: auto; }
.aviso { padding: 10px 14px; border-radius: 10px; background: #dcefe4; color: var(--ok); margin-bottom: 12px; }
.admin h3 { font-size: 1.1rem; margin-top: 20px; }
.scroll-x { overflow-x: auto; }

/* Precios "desde" */
.nota-precios { background: var(--blanco); border-left: 3px solid var(--rosa); border-radius: 0 10px 10px 0; padding: 10px 14px; margin-bottom: 28px; color: var(--suave); font-size: .92rem; }
.serv .precio small { font-weight: 500; font-size: .75rem; color: var(--suave); }

/* Productos que usamos */
.uso { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.uso-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: start; background: var(--blanco); border-radius: var(--radio); padding: 12px; box-shadow: var(--sombra); }
.uso-img { padding: 0; border: 0; width: 88px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--rubor); cursor: zoom-in; }
.uso-img img { width: 100%; height: 100%; object-fit: cover; }
.uso-item b { display: block; line-height: 1.25; }
.uso-item p { margin: 4px 0 8px; color: var(--suave); font-size: .86rem; line-height: 1.4; }
.prod-marca { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; color: var(--rosa); }
.etiqueta { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--rubor-2); color: var(--rosa-osc); }
.etiqueta.venta { background: #dcefe4; color: var(--ok); }
.nota-prod { font-size: .8rem !important; color: var(--rosa-osc) !important; flex: 0 !important; }

/* Citas: opciones marcables */
.opciones { display: grid; gap: 14px; }
.opciones fieldset { border: 0; padding: 0; margin: 0; }
.opciones legend { font-family: var(--display); font-weight: 600; color: var(--rosa-osc); margin-bottom: 4px; }
.opcion { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-weight: 500; padding: 8px 10px; border: 1px solid var(--linea); border-radius: 10px; margin: 0 0 6px; cursor: pointer; background: var(--crema); }
.opcion:has(input:checked) { border-color: var(--rosa); background: var(--rubor); }
.opcion input { width: 18px; height: 18px; accent-color: var(--rosa); margin: 0; }
.opcion .suave { font-size: .85rem; white-space: nowrap; }
.opciones-prod { margin-top: 10px; max-height: 360px; overflow: auto; padding-right: 4px; display: block; }
.aviso-unas { margin-top: 12px; background: #e7f6ec; border-radius: 10px; padding: 12px 14px; }
.aviso-unas p { margin: 0 0 8px; font-size: .92rem; }
.btn-wa { background: #25d366; border-color: #25d366; }
.btn-wa:hover { background: #1ebe5b; }
.req { color: var(--error); font-weight: 700; }

/* Galería de uñas */
.galeria-titulo { font-size: 1.35rem; color: var(--rosa-osc); margin: 32px 0 14px; }
.producto .etiqueta { align-self: flex-start; }

/* Logo (misma fuente que el de la tarjeta) */
.logo { position: relative; display: inline-block; margin: 8px auto 20px; font: 400 4.2rem/1 'Cinzel Decorative', var(--display); color: #8a6f6f; letter-spacing: .02em; }
.logo-sub { position: absolute; left: -18%; right: -18%; top: 50%; transform: translateY(-50%); padding: .35em 0 .35em .5em; background: var(--crema);
  font: 500 .78rem/1 var(--texto); letter-spacing: .5em; color: #c98583; text-align: center; white-space: nowrap; }

/* Botón flotante para agendar */
.cita-flotante { position: fixed; left: 20px; bottom: 24px; z-index: 15; padding: 12px 20px; border-radius: 999px; background: var(--rosa); color: #fff;
  font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgb(134 64 79 / 35%); animation: subir .3s ease-out; }
.cita-flotante:hover { background: var(--rosa-osc); }
@keyframes subir { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 420px) { .cita-flotante { left: 12px; padding: 11px 16px; font-size: .92rem; } }

/* Sorpresa de la melena */
.melena { position: fixed; left: 20px; bottom: 84px; z-index: 16; width: 170px; padding: 10px 10px 8px; background: var(--blanco); border-radius: 16px;
  box-shadow: var(--sombra); text-align: center; animation: subir .4s ease-out; transition: opacity .5s, transform .5s; }
.melena.fuera { opacity: 0; transform: translateY(10px); }
.melena svg { width: 100%; height: auto; display: block; }
.melena p { margin: 4px 0 0; font-size: .78rem; line-height: 1.3; color: var(--suave); }
.melena a { font-weight: 700; }
.melena-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--suave); cursor: pointer; font-size: .8rem; }
.melena svg [class] { transform-box: fill-box; transform-origin: center; }
.melena .secador { animation: secar .45s ease-in-out infinite alternate; }
.melena .secador-sale { animation: secador-sale .8s ease-in 4.2s forwards; }
.melena .aire { stroke-dasharray: 5 5; animation: aire .35s linear infinite; }
.melena .pelo-frizz { animation: frizz 3.2s ease-in .6s forwards; }
.melena .pelo-liso { opacity: 0; animation: aparecer 2.4s ease-out 1.6s forwards; }
.melena .pelo-brillo { opacity: 0; animation: brillo 1.3s ease-in-out 4.6s forwards; }
.melena .chispas path { opacity: 0; animation: chispa 1s ease-in-out 5.2s 2; }
.melena .chispas path:nth-child(2) { animation-delay: 5.5s; }
.melena .chispas path:nth-child(3) { animation-delay: 5.8s; }
@keyframes secar { from { transform: translateY(-8px) rotate(-4deg); } to { transform: translateY(40px) rotate(4deg); } }
@keyframes secador-sale { to { transform: translateX(40px); opacity: 0; } }
@keyframes aire { to { stroke-dashoffset: -10; } }
@keyframes frizz { 0% { opacity: 1; transform: scale(1); } 40% { transform: scale(1.03) rotate(1deg); } 100% { opacity: 0; transform: scale(.9); } }
@keyframes aparecer { to { opacity: 1; } }
@keyframes brillo { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(70px); } }
@keyframes chispa { 50% { opacity: 1; transform: scale(1.3) rotate(20deg); } }

/* Panel: productos en tarjetas */
.barra-guardar { position: sticky; top: -16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0; margin-bottom: 8px; background: var(--crema); border-bottom: 1px solid var(--linea); }
.barra-guardar #agregar { margin-left: auto; }
#prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }
@media (max-width: 520px) { #prods { grid-template-columns: 1fr; } }
.prod-edit { display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: var(--blanco); border-radius: 12px; padding: 12px; border-left: 3px solid transparent; box-shadow: 0 1px 2px rgb(59 42 47 / 8%); }
.prod-edit.cambio { border-left-color: var(--rosa); }
.prod-foto { margin: 0; cursor: pointer; width: 84px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--rubor); display: grid; place-items: center; font-size: 1.4rem; }
.prod-foto img { width: 100%; height: 100%; object-fit: cover; }
.prod-campos { display: grid; gap: 8px; min-width: 0; }
.prod-campos label { font-weight: 500; font-size: .85rem; margin: 0; }
.prod-campos input, .prod-campos textarea { margin-top: 3px; padding: 7px 9px; font-size: 14px; background: var(--blanco); }
.prod-campos .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .prod-campos .dos { grid-template-columns: 1fr; } }
.prod-campos .checks { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.prod-campos .checks label { display: flex; gap: 6px; align-items: center; }
.prod-campos .checks input { width: auto; margin: 0; accent-color: var(--rosa); }
.prod-campos .checks button { margin-left: auto; }

/* Tolerancia de llegada (texto en server.js → NOTA_TOLERANCIA) */
.nota-tolerancia { background: var(--rubor); border-left: 4px solid var(--rosa); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 8px 0; color: var(--tinta); font-weight: 600; font-size: .92rem; line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
.nota-tolerancia:empty { display: none; }
.sugerencia.nueva { border-left: 4px solid var(--rosa); }
.sugerencia .msg { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--tinta); }

/* Citas: secado y cupos del día */
.secado { margin-top: 14px; }
.secado legend { padding: 0; }
.quedan { margin: 0 0 10px; font-weight: 600; color: var(--ok); font-size: .92rem; }
.quedan.pocas { color: #8a5a00; }

/* Toques: sin retraso de 300 ms y sin seleccionar el texto de los botones al mantener presionado */
button, a, [role="button"] { touch-action: manipulation; }
button, .btn { -webkit-user-select: none; user-select: none; }
.dialogo { overscroll-behavior: contain; }

/* Tienda en el celular: 2 productos por fila, tarjeta corta (el detalle completo se ve en pantallas grandes). */
@media (max-width: 599px) {
  .productos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .producto-cuerpo { padding: 10px 10px 12px; gap: 4px; }
  .producto-cuerpo > p:not(.nota-prod), .producto .etiqueta, .nota-prod { display: none !important; }
  .producto-cuerpo b { font-size: .92rem; line-height: 1.25; }
  .producto-pie { flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
  .producto-pie .btn { width: 100%; }
}
