/* Panel del restaurante con la marca Versos Sueltos. Móvil primero; tablet y ordenador después.
   Colores y letras: tema.css. */
/* Ajustes: tarjetas esenciales y dos niveles nativos, utilizables también sin JavaScript. */
.p-ajustes section, .p-ajustes form, .p-ajustes details { scroll-margin-top: 90px; min-width: 0; }
.p-ajustes-atajos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.p-ajustes-atajos a { display: flex; align-items: center; min-height: 52px; padding: 10px 12px; border: 1px solid var(--vs-borde); border-radius: var(--vs-radio); background: var(--vs-superficie); text-decoration: none; overflow-wrap: anywhere; }
.p-ajustes-nivel { margin: 16px 0; border: 1px solid var(--vs-borde); border-radius: var(--vs-radio); background: var(--vs-superficie-2); }
.p-ajustes-nivel > summary { padding: 16px; min-height: 60px; cursor: pointer; font-weight: 600; color: var(--vs-texto); }
.p-ajustes-nivel > summary span { display: block; margin: 4px 0 0 18px; font-weight: 400; font-size: .9rem; color: var(--vs-texto-suave); }
.p-ajustes-nivel > .p-tarjeta, .p-ajustes-nivel > .p-aviso { margin: 0 10px 12px; }
.p-ajustes input, .p-ajustes select, .p-ajustes textarea, .p-ajustes .p-fila > div { min-width: 0; max-width: 100%; }
.p-ajustes .p-casilla { min-height: 44px; }
.p-ajustes-enlaces { display: grid; gap: 8px; }
.p-ajustes-enlaces a { display: flex; align-items: center; min-height: 44px; }
.p-ajustes-idiomas > summary { min-height: 48px; padding: 12px 0; cursor: pointer; color: var(--vs-primario); }
.p-ajustes-guardar .p-boton { width: 100%; }
#correo .p-acciones .p-boton { width: 100%; justify-content: center; }
.p-ajustes input:disabled, .p-ajustes select:disabled, .p-ajustes .p-boton:disabled { opacity: .5; cursor: not-allowed; }
.p-ajustes-direcciones { display: grid; gap: 2px 12px; margin: 12px 0; }
.p-ajustes-direcciones dt { font-weight: 600; }
.p-ajustes-direcciones dd { margin: 0 0 8px; overflow-wrap: anywhere; color: var(--vs-texto-suave); }
.p-ajustes :focus-visible { outline: 2px solid var(--vs-primario); outline-offset: 3px; }
@media (min-width: 640px) { .p-ajustes-atajos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-variant-numeric: lining-nums; } /* números a la altura de las mayúsculas, también si tarda la letra y sale Georgia */
body.p {
  margin: 0; min-height: 100vh; background: var(--vs-fondo); color: var(--vs-texto);
  font: 400 var(--vs-tamano-base)/1.5 var(--vs-letra-texto);
}
body.p-dentro { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
a { color: var(--vs-primario); }
h1, h2 { font-family: var(--vs-letra-titulos); font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 2rem; line-height: 1.1; margin: 8px 0 12px; }
h2 { font-size: 1.45rem; line-height: 1.2; margin: 26px 0 10px; }
h2 .p-ico { color: var(--vs-primario); }
p { margin: 0 0 10px; }
.p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-saltar { position: absolute; left: -9999px; top: 8px; background: var(--vs-primario); color: var(--vs-primario-texto); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.p-saltar:focus { left: 8px; }
.p-ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }

/* ---------- Barra superior ---------- */
.p-barra {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(6px + env(safe-area-inset-top)) 12px 6px 16px;
  background: var(--vs-barra-fondo); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--vs-borde-suave);
}
.p-marca { display: flex; align-items: center; gap: 10px; color: var(--vs-texto); text-decoration: none; min-height: 48px; }
.p-marca img { height: 38px; width: auto; display: block; }
.p-marca span, .p-menu-marca span, .p-login-sub {
  font: 600 .7rem var(--vs-letra-texto); letter-spacing: .22em; text-transform: uppercase; color: var(--vs-primario);
}
.p-barra-der { display: flex; align-items: center; gap: 0; flex: none; }
.p-marca { min-width: 0; }
@media (max-width: 479px) {
  .p-marca span { display: none; }
  .p-icono-boton, .p-campana { width: 44px; height: 44px; }
  .p-barra { padding-left: 12px; padding-right: 6px; }
}
body.p { overflow-x: hidden; }
.p-icono-boton, .p-campana {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: transparent; color: var(--vs-texto-suave); cursor: pointer; text-decoration: none;
}
.p-icono-boton .p-ico, .p-campana .p-ico { width: 24px; height: 24px; }
.p-icono-boton:hover, .p-campana:hover { background: var(--vs-superficie); color: var(--vs-texto); }
.p-icono-boton[aria-pressed="true"] { color: var(--vs-primario); }
.p-campana.p-hay { color: var(--vs-aviso); }
.p-burbuja {
  position: absolute; top: 6px; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--vs-aviso); color: var(--vs-primario-texto); font: 700 .75rem/20px var(--vs-letra-texto); text-align: center;
}

/* ---------- Menú (abajo en el móvil, a la izquierda en el ordenador) ---------- */
.p-menu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--vs-superficie); border-top: 1px solid var(--vs-borde-suave); padding-bottom: env(safe-area-inset-bottom);
}
.p-menu a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 6px 2px;
  color: var(--vs-texto-suave); text-decoration: none; font-size: .74rem; font-weight: 600; text-align: center;
}
.p-menu a .p-ico { width: 26px; height: 26px; }
.p-menu a[aria-current="page"] { color: var(--vs-primario); }
.p-menu a[aria-current="page"] .p-ico { filter: none; }
.p-menu-marca, .p-menu-quien { display: none !important; }
.p-menu-hueco { display: block; }
.p-menu .p-menu-resto { display: none; }   /* en el móvil, abajo solo las principales y «Más» */
.p-menu a { position: relative; }

.p-contenido { max-width: 64rem; margin: 0 auto; padding: 12px 16px 24px; }

/* ---------- Botón «+ Reserva» ----------
   Nunca tapa nada: en móvil y tablet va encajado en el centro de la barra de abajo;
   en ordenador, en la barra de arriba. */
.p-flotante {
  position: fixed; left: 50%; bottom: calc(4px + env(safe-area-inset-bottom)); z-index: 25; transform: translateX(-50%);   /* el centro exacto de las 5 posiciones iguales de abajo */
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border-radius: 50%;
  background: var(--vs-primario); color: var(--vs-primario-texto); text-decoration: none; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.p-flotante .p-ico { width: 30px; height: 30px; stroke-width: 2.4; }
.p-flotante span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Avisos ---------- */
.p-aviso {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--vs-radio); margin: 0 0 12px;
  background: var(--vs-acento-suave); color: var(--vs-texto); border: 1px solid var(--vs-acento-medio);
}
.p-aviso .p-ico { color: var(--vs-acento); margin-top: 2px; }
.p-aviso-error { background: var(--vs-alerta-suave); border-color: var(--vs-alerta); }
.p-aviso-error .p-ico { color: var(--vs-alerta); }
.p-aviso-aviso { background: var(--vs-superficie); border-color: var(--vs-borde); }
.p-aviso-aviso .p-ico { color: var(--vs-texto-suave); }
.p-nuevas {
  position: fixed; top: calc(70px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 30; max-width: 32rem; margin: 0 auto;
  display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--vs-radio);
  background: var(--vs-primario); color: var(--vs-primario-texto); font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}
.p-nuevas button { margin-left: auto; }
.p-nuevas-error { background: var(--vs-superficie); color: var(--vs-texto); border: 2px solid var(--vs-alerta); }
.p-ayuda { color: var(--vs-texto-suave); font-size: .92rem; }
.p-ayuda-en-linea { color: var(--vs-texto-suave); font: 400 .9rem var(--vs-letra-texto); }
.p-grande { font-size: 1.1rem; color: var(--vs-texto-suave); }
.p-vacio { text-align: center; padding: 28px 16px; color: var(--vs-texto-suave); }
.p-vacio img { width: 110px; height: auto; opacity: .85; margin-bottom: 8px; }
.p-vacio p:first-of-type { font: 600 1.35rem/1.3 var(--vs-letra-titulos); color: var(--vs-texto); }

/* ---------- Botones ---------- */
.p-boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--vs-borde); border-radius: 12px; background: var(--vs-superficie-2); color: var(--vs-texto);
  font: 600 .95rem var(--vs-letra-texto); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.p-boton:hover { border-color: var(--vs-primario); }
.p-boton-peq { min-height: 44px; padding: 0 12px; font-size: .9rem; }
.p-boton-primario { background: var(--vs-primario); border-color: var(--vs-primario); color: var(--vs-primario-texto); }
.p-boton-ok { background: var(--vs-acento-suave); border-color: var(--vs-acento); color: var(--vs-texto); }
.p-boton-ok .p-ico { color: var(--vs-acento); }
.p-boton-peligro { background: transparent; border-color: var(--vs-alerta); color: var(--vs-alerta); }
.p-boton-sutil { background: transparent; border-color: var(--vs-borde-suave); color: var(--vs-texto-suave); }
.p-ancho { width: 100%; margin-top: 18px; }
.p-redondo {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; border: 1px solid var(--vs-borde); color: var(--vs-texto); text-decoration: none; background: var(--vs-superficie);
}
.p-en-linea { display: inline; margin: 0; }
.p-acciones { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.p-volver { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--vs-texto-suave); text-decoration: none; }

/* ---------- Selector de día, pestañas y modos ---------- */
.p-selector { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; }
.p-selector-fecha { position: relative; flex: 1; min-width: 0; margin: 0; }
.p-selector-dia { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0; cursor: pointer; }
.p-selector-dia strong { font: 600 1.7rem/1.1 var(--vs-letra-titulos); color: var(--vs-texto); }
.p-selector-dia span { font-size: .85rem; color: var(--vs-texto-suave); }
.p-selector-fecha input[type="date"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0;
}
.p-selector-fecha:focus-within { outline: 3px solid var(--vs-foco); outline-offset: 4px; border-radius: 12px; }
.p-mes { flex: 1; margin: 0; }
/* Revisión tanda 3: año, reservas y comensales del mes en etiquetas (no un renglón apretado en dos líneas) */
.p-mes .p-mes-datos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.p-mes .p-mes-datos .p-etiqueta { font-size: .76rem; color: var(--vs-texto); font-variant-numeric: lining-nums; }

.p-pestanas, .p-modos { display: flex; gap: 6px; margin: 4px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.p-pestanas a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 4px 12px;
  border-radius: 12px; border: 1px solid var(--vs-borde-suave); background: var(--vs-superficie); color: var(--vs-texto-suave);
  text-decoration: none; font: 600 1.15rem var(--vs-letra-titulos);
}
.p-pestanas small { font: 500 .75rem var(--vs-letra-texto); }
.p-pestanas a[aria-current="true"] { background: var(--vs-primario); border-color: var(--vs-primario); color: var(--vs-primario-texto); }
.p-modos { background: var(--vs-superficie); border-radius: 14px; padding: 4px; border: 1px solid var(--vs-borde-suave); }
.p-modos a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 10px;
  color: var(--vs-texto-suave); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.p-modos a[aria-current="true"] { background: var(--vs-superficie-2); color: var(--vs-texto); box-shadow: 0 0 0 1px var(--vs-borde) inset; }

/* ---------- Cifras ---------- */
.p-cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 14px; }
.p-cifra {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--vs-radio);
  background: linear-gradient(160deg, var(--vs-superficie-2), var(--vs-superficie)); border: 1px solid var(--vs-borde-suave);
  color: var(--vs-texto); text-decoration: none; min-height: 108px;
}
.p-cifra-titulo { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--vs-primario); }
.p-cifra strong { font: 600 2.6rem/1 var(--vs-letra-titulos); margin-top: 2px; }
.p-cifra strong small { font-size: 1.2rem; color: var(--vs-texto-suave); }
.p-cifra span:last-child { font-size: .85rem; color: var(--vs-texto-suave); }
.p-cifra-activa { border-color: var(--vs-primario); box-shadow: 0 0 0 1px var(--vs-primario) inset; }
.p-cifra-aviso { border-color: var(--vs-acento); border-style: dashed; }
.p-cifra-aviso strong { color: var(--vs-acento); }
.p-cifra-mal strong { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--vs-texto-suave); }
.p-cifras > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.p-cifras-3 { grid-template-columns: repeat(3, 1fr); }
.p-cifras-3 > :last-child:nth-child(odd) { grid-column: auto; }

/* ---------- Tarjetas de reserva ---------- */
.p-lista { display: grid; gap: 12px; }
.p-reserva {
  display: grid; grid-template-columns: 1fr; gap: 10px 14px; padding: 14px; border-radius: var(--vs-radio);
  background: var(--vs-superficie); border: 1px solid var(--vs-borde-suave); border-left: 5px solid var(--vs-acento);
  box-shadow: var(--vs-sombra); margin: 0 0 12px;
}
.p-lista .p-reserva { margin: 0; }
.p-estado-pendiente.p-reserva { border-left-style: dashed; }
.p-estado-llego.p-reserva { background: var(--vs-acento-suave); }
.p-estado-no_vino.p-reserva, .p-estado-anulada.p-reserva { border-left-color: var(--vs-borde); opacity: .7; }
.p-estado-no_vino .p-reserva-nombre a, .p-estado-anulada .p-reserva-nombre a { text-decoration: line-through; }
.p-reserva-hora { display: flex; flex-direction: row; align-items: baseline; gap: 12px; color: var(--vs-texto); text-decoration: none; }
.p-reserva-hora strong { font: 600 1.75rem/1 var(--vs-letra-titulos); color: var(--vs-primario); }
.p-reserva-hora small { font-size: .8rem; color: var(--vs-texto-suave); }
.p-reserva-hora span { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 1.05rem; }
.p-reserva-cuerpo { min-width: 0; }
.p-reserva-nombre { font: 600 1.35rem/1.2 var(--vs-letra-titulos); margin: 0 0 6px; }
.p-reserva-nombre a { color: var(--vs-texto); text-decoration: none; }
.p-reserva-datos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.p-chip-mesa { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; color: var(--vs-texto); }
.p-nota {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; margin: 0 0 8px;
  background: var(--vs-superficie-2); font-size: .95rem;
}
.p-nota .p-ico { color: var(--vs-texto-suave); margin-top: 1px; }
.p-nota-alerta { background: var(--vs-alerta-suave); border: 1px solid var(--vs-alerta); font-weight: 600; }
.p-nota-alerta .p-ico { color: var(--vs-alerta); }
.p-nota-cliente { background: var(--vs-primario-suave); }
.p-nota-cliente .p-ico { color: var(--vs-primario); }
.p-contacto { display: flex; flex-wrap: wrap; gap: 6px; }
.p-contacto .p-boton { flex: 1 1 auto; }
.p-reserva-botones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.p-reserva-botones .p-boton { padding: 0 6px; font-size: .88rem; }
.p-reserva-botones .p-ico { display: none; }
.p-reserva-botones form, .p-reserva-botones .p-boton { width: 100%; }
.p-reserva-botones form .p-boton { width: 100%; }
.p-vip {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 6px; border-radius: 999px; vertical-align: middle;
  background: var(--vs-primario); color: var(--vs-primario-texto); font: 700 .7rem var(--vs-letra-texto); letter-spacing: .08em;
}
.p-vip .p-ico { width: 14px; height: 14px; fill: currentColor; }
.p-etiquetas { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 0; }
.p-etiqueta {
  display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--vs-superficie-2); border: 1px solid var(--vs-borde-suave);
  font-size: .76rem; font-weight: 600; color: var(--vs-texto-suave); vertical-align: middle;
}
.p-et-pendiente { background: transparent; color: var(--vs-acento); border: 1px dashed var(--vs-acento); }
.p-et-confirmada { background: var(--vs-acento-suave); color: var(--vs-texto); border-color: var(--vs-acento-medio); }
.p-et-llego { background: var(--vs-acento); color: var(--vs-acento-texto); border-color: var(--vs-acento); }
.p-et-no_vino, .p-et-anulada { background: var(--vs-superficie-2); color: var(--vs-texto-tenue); text-decoration: line-through; }
.p-et-tenue { color: var(--vs-texto-tenue); }

/* ---------- Plano ---------- */
.p-horas { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; margin: 0 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.p-horas a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--vs-borde-suave); background: var(--vs-superficie); color: var(--vs-texto-suave); text-decoration: none; font-weight: 600;
}
.p-horas a[aria-current="true"] { background: var(--vs-primario); color: var(--vs-primario-texto); border-color: var(--vs-primario); }
.p-plano {
  position: relative; width: 100%; aspect-ratio: 1 / 1.05; margin: 8px 0 14px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgb(var(--vs-acento-rgb) / .14) 1px, transparent 0) 0 0 / 22px 22px,
    var(--vs-superficie);
  border: 1px solid var(--vs-borde-suave);
}
.p-mesa {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px;
  width: 28%; aspect-ratio: 1; overflow: hidden; text-align: center; text-decoration: none; color: var(--vs-texto);
  border: 2px dashed var(--vs-borde); background: var(--vs-superficie-2); border-radius: 16px; line-height: 1.15;
  box-shadow: var(--vs-sombra);
}
.p-forma-redonda { border-radius: 50%; width: 28%; padding: 10px; }
.p-forma-larga { width: 42%; aspect-ratio: 2 / 1; }
.p-mesa-nombre { display: inline-flex; align-items: center; gap: 3px; font: 700 .72rem var(--vs-letra-texto); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.p-mesa-quien { font: 600 1.02rem/1.1 var(--vs-letra-titulos); max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-mesa-detalle { font-size: .68rem; line-height: 1.2; opacity: .92; }
.p-mesa-alerta { width: 14px; height: 14px; color: currentColor; }
.p-est-libre { border: 2px dashed var(--vs-borde); background: var(--vs-fondo); color: var(--vs-texto-suave); }
.p-est-reservada { border: 2px solid var(--vs-acento); background: var(--vs-superficie); color: var(--vs-texto); }
.p-est-pendiente { border: 2px dashed var(--vs-acento); background: var(--vs-acento-suave); color: var(--vs-texto); }
.p-est-sentada { border: 2px solid var(--vs-acento); background: var(--vs-acento); color: var(--vs-acento-texto); }
.p-est-terminada { border: 2px solid var(--vs-borde-suave); background: var(--vs-superficie-2); color: var(--vs-texto-tenue); }
.p-est-no_vino { border: 2px dotted var(--vs-borde); background: var(--vs-superficie-2); color: var(--vs-texto-tenue); }
.p-est-no_vino .p-mesa-quien, .p-tira.p-est-no_vino strong { text-decoration: line-through; }
.p-plano-editor .p-mesa { cursor: grab; border-style: solid; touch-action: none; user-select: none; }
.p-plano-editor .p-mesa.p-arrastrando { cursor: grabbing; z-index: 5; box-shadow: 0 0 0 3px var(--vs-primario), 0 16px 30px rgba(0, 0, 0, .5); }
.p-leyenda { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 8px 0 12px; font-size: .85rem; color: var(--vs-texto-suave); }
.p-leyenda li { display: inline-flex; align-items: center; gap: 6px; }
.p-punto { display: inline-block; width: 16px; height: 16px; border-radius: 5px; position: static; transform: none; min-width: 0; aspect-ratio: auto; padding: 0; box-shadow: none; }

/* ---------- Línea de tiempo ---------- */
.p-linea-caja { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--vs-radio); border: 1px solid var(--vs-borde-suave); background: var(--vs-superficie); margin: 0 0 12px; }
.p-linea { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: .85rem; }
.p-linea th, .p-linea td { border-bottom: 1px solid var(--vs-borde-suave); border-right: 1px solid var(--vs-borde-suave); padding: 0; height: 64px; }
.p-linea thead th { height: 40px; padding: 0 6px; font-weight: 600; color: var(--vs-texto-suave); text-align: left; font-size: .78rem; position: sticky; top: 0; background: var(--vs-superficie); }
.p-linea thead .p-en-punto { color: var(--vs-texto); }
.p-linea-mesa { position: sticky; left: 0; z-index: 2; background: var(--vs-superficie-2); min-width: 92px; padding: 0 10px !important; text-align: left; font-weight: 700; white-space: nowrap; }
.p-linea-mesa span { display: block; font-weight: 400; font-size: .75rem; color: var(--vs-texto-suave); }
.p-hueco { min-width: 58px; }
.p-hueco a { display: block; width: 100%; height: 100%; min-height: 63px; }
.p-hueco a:hover, .p-hueco.p-encima { background: var(--vs-acento-suave); }
.p-tira-celda { padding: 4px !important; }
.p-tira {
  display: flex; flex-direction: column; justify-content: center; gap: 1px; height: 56px; padding: 4px 10px; border-radius: 10px;
  text-decoration: none; overflow: hidden; white-space: nowrap; cursor: grab;
}
.p-tira strong { overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.p-tira span { display: inline-flex; align-items: center; gap: 3px; font-size: .78rem; opacity: .92; }
.p-tira .p-ico { width: 14px; height: 14px; }
.p-tira.p-arrastrando { opacity: .45; }

/* ---------- Calendario ---------- */
.p-calendario { margin: 0 0 12px; }
.p-cal-cab, .p-cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.p-cal-cab span { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vs-primario); padding: 6px 0; }
.p-cal-dia {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 66px; padding: 6px 5px 10px;
  border-radius: 10px; background: var(--vs-superficie); border: 1px solid var(--vs-borde-suave); color: var(--vs-texto); text-decoration: none; overflow: hidden;
}
.p-cal-num { font: 600 1.25rem/1 var(--vs-letra-titulos); }
.p-cal-info { font-size: .56rem; letter-spacing: -.01em; color: var(--vs-texto-suave); line-height: 1.1; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.p-cal-dia { padding-left: 3px; padding-right: 2px; }
.p-cal-mini { font-size: .62rem; color: var(--vs-aviso); }
.p-cal-pend { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--vs-aviso); color: var(--vs-primario-texto); font: 700 .66rem/18px var(--vs-letra-texto); text-align: center; }
.p-cal-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }
.p-nivel-1 .p-cal-barra, .p-punto.p-nivel-1 { background: rgb(var(--vs-acento-rgb) / .3); }
.p-nivel-2 .p-cal-barra, .p-punto.p-nivel-2 { background: rgb(var(--vs-acento-rgb) / .55); }
.p-nivel-3 .p-cal-barra, .p-punto.p-nivel-3 { background: rgb(var(--vs-acento-rgb) / .8); }
.p-nivel-4 .p-cal-barra, .p-punto.p-nivel-4 { background: var(--vs-acento); }
.p-punto.p-nivel-0 { background: var(--vs-superficie); border: 1px solid var(--vs-borde); }
.p-nivel-3, .p-nivel-4 { border-color: var(--vs-acento-medio); }
.p-nivel-4 { background: var(--vs-acento-suave); }
.p-cal-cerrado, .p-cal-bloqueado.p-cal-dia:not(.p-nivel-1):not(.p-nivel-2):not(.p-nivel-3):not(.p-nivel-4), .p-punto.p-cal-cerrado {
  background: repeating-linear-gradient(135deg, var(--vs-fondo) 0 6px, var(--vs-superficie-2) 6px 12px);
}
.p-cal-cerrado .p-cal-num { color: var(--vs-texto-tenue); }
.p-cal-hoy { box-shadow: 0 0 0 2px var(--vs-primario) inset; }
.p-cal-pasado { opacity: .6; }

/* ---------- Clientes ---------- */
.p-buscador { display: flex; gap: 8px; margin: 0 0 14px; }
.p-buscador input { flex: 1; }
.p-clientes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.p-clientes a {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--vs-radio); background: var(--vs-superficie);
  border: 1px solid var(--vs-borde-suave); color: var(--vs-texto); text-decoration: none;
}
.p-cliente-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.p-cliente-txt strong { font: 600 1.2rem var(--vs-letra-titulos); }
.p-cliente-txt > span { font-size: .88rem; color: var(--vs-texto-suave); overflow-wrap: anywhere; }
.p-inicial {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--vs-acento-suave); color: var(--vs-acento); font: 600 1.4rem var(--vs-letra-titulos); border: 1px solid var(--vs-acento-medio);
}
.p-inicial-grande { width: 72px; height: 72px; font-size: 2.2rem; }
.p-ficha { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.p-ficha h1 { margin: 0 0 6px; }

/* ---------- Tarjetas y formularios ---------- */
.p-tarjeta { background: var(--vs-superficie); border: 1px solid var(--vs-borde-suave); border-radius: var(--vs-radio); padding: 16px; margin: 0 0 14px; box-shadow: var(--vs-sombra); }
.p-tarjeta h2:first-child, .p-tarjeta h2:first-of-type { margin-top: 0; }
.p-formulario label:not(.p-casilla), .p-etq { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: var(--vs-texto-suave); }
.p input:not([type="checkbox"]):not([type="radio"]), .p select, .p textarea {
  width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid var(--vs-borde); border-radius: 12px;
  background: var(--vs-superficie-2); color: var(--vs-texto); font: inherit; font-size: 16px;
}
.p input::placeholder, .p textarea::placeholder { color: var(--vs-texto-tenue); }
.p textarea { resize: vertical; }
.p-fila { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.p-fila-baja { align-items: end; margin: 8px 0; }
.p label.p-casilla { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; color: var(--vs-texto); cursor: pointer; }
.p-casilla input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--vs-primario); }
.p-casilla-grande { font-size: 1.02rem; padding: 12px; border-radius: 12px; background: var(--vs-superficie-2); }
.p-casilla .p-ico { color: var(--vs-primario); }
.p-grupo { border: 1px solid var(--vs-borde-suave); border-radius: 12px; padding: 4px 12px 12px; margin: 12px 0; }
.p-grupo legend { padding: 0 6px; font-weight: 600; }
.p-grupo legend .p-casilla { margin: 0; font-weight: 600; }
.p-dias-semana { display: grid; grid-template-columns: repeat(2, 1fr); }
.p-dias-semana .p-casilla { margin: 8px 0; }
.p-codigo { background: var(--vs-superficie-2); color: var(--vs-texto); padding: 12px; border-radius: 10px; border: 1px solid var(--vs-borde-suave); overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: .8rem; }
.p-plegable { margin: 10px 0 16px; background: var(--vs-superficie); border-radius: var(--vs-radio); border: 1px solid var(--vs-borde-suave); padding: 0 14px; }
.p-plegable[open] { padding-bottom: 12px; }
.p-plegable summary { cursor: pointer; font-weight: 600; color: var(--vs-primario); min-height: 52px; display: flex; align-items: center; }
.p-peligro { border-color: var(--vs-alerta); }
.p-lista-corta { list-style: none; margin: 0 0 10px; padding: 0; }
.p-lista-corta li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--vs-borde-suave); }
.p-lista-corta li a { flex: 1; display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--vs-texto); text-decoration: none; padding: 10px 0; }
.p-historial { padding-left: 18px; font-size: .9rem; color: var(--vs-texto-suave); }
.p-atajos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.p-atajo {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--vs-radio); text-align: center;
  background: var(--vs-superficie); border: 1px solid var(--vs-borde-suave); color: var(--vs-texto); text-decoration: none; font-weight: 600; font-size: .85rem;
}
.p-atajo .p-ico { width: 28px; height: 28px; color: var(--vs-primario); }
.p-mesas { display: grid; gap: 8px; }
.p-mesa-fila { display: grid; grid-template-columns: 1fr 80px; gap: 6px 10px; align-items: end; padding: 10px; border: 1px solid var(--vs-borde-suave); border-radius: 12px; margin: 0; }
.p-mesa-fila label { margin: 0 !important; font-size: .8rem; }
.p-mesa-fila label:nth-of-type(3) { grid-column: 1 / -1; }
.p-mesa-fila .p-casilla { margin: 4px 0 0 !important; }
.p-mesa-nueva { border-style: dashed; }
.p-correo summary { cursor: pointer; }

/* ---------- Reserva rápida ---------- */
.p-dialogo {
  width: min(100vw, 34rem); max-width: 100vw; max-height: 100dvh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 22px 22px 0 0; background: var(--vs-superficie); color: var(--vs-texto); box-shadow: 0 -10px 40px rgba(0, 0, 0, .6);
}
.p-dialogo::backdrop { background: rgba(10, 6, 6, .6); }
.p-dialogo-cab { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 18px; background: var(--vs-superficie); border-bottom: 1px solid var(--vs-borde-suave); }
.p-dialogo-cab h2 { margin: 0; }
.p-rapida { padding: 6px 18px calc(18px + env(safe-area-inset-bottom)); }
.p-paso { border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
.p-paso legend { font: 600 1.4rem var(--vs-letra-titulos); padding: 12px 0 8px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p-chips-num { display: grid; grid-template-columns: repeat(4, 1fr); }
.p-chip { position: relative; display: block; }
.p-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.p-chip span {
  display: flex; align-items: center; justify-content: center; min-width: 64px; min-height: 52px; padding: 0 12px;
  border: 1px solid var(--vs-borde); border-radius: 12px; background: var(--vs-superficie-2); font-weight: 700; font-size: 1.05rem;
}
.p-chip input:checked + span { background: var(--vs-primario); border-color: var(--vs-primario); color: var(--vs-primario-texto); }
.p-chip input:focus-visible + span { outline: 3px solid var(--vs-foco); outline-offset: 2px; }
.p-chip.p-llena span { opacity: .45; text-decoration: line-through; }
.p-horas-rapida .p-etq { margin-top: 12px; }
.p-autocompletar { position: relative; }
.p-sugerencias {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 4px 0 0; padding: 4px;
  background: var(--vs-superficie-2); border: 1px solid var(--vs-borde); border-radius: 12px; box-shadow: 0 12px 24px rgba(0, 0, 0, .5);
}
.p-sugerencias li { display: flex; justify-content: space-between; gap: 8px; min-height: 48px; align-items: center; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.p-sugerencias li[aria-selected="true"], .p-sugerencias li:hover { background: var(--vs-primario-suave); }
.p-sugerencias small { color: var(--vs-texto-suave); }
.p-mas { margin: 14px 0 0; }
.p-mas summary { cursor: pointer; color: var(--vs-primario); font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.p-rapida-botones { display: flex; gap: 8px; margin-top: 18px; }
.p-rapida-botones .p-boton { flex: 1; min-height: 54px; font-size: 1.02rem; }
.p-rapida.p-con-pasos .p-paso:not(.p-paso-activo) { display: none; }

/* ---------- Entrar ---------- */
.p-login { max-width: 24rem; margin: 8vh auto 0; text-align: center; }
.p-login-logo { width: 240px; height: auto; }
.p-login-sub { margin: 4px 0 20px; }
.p-login form { text-align: left; }
.p-login-nina { width: 90px; height: auto; margin-top: 30px; opacity: .7; }

/* ---------- Foco visible ---------- */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--vs-foco); outline-offset: 2px;
}
.p-solo-raton { display: none; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .p-fila { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .p-dias-semana { grid-template-columns: repeat(4, 1fr); }
  .p-cifras { grid-template-columns: repeat(5, 1fr); }
  .p-cifras > :last-child:nth-child(odd) { grid-column: auto; }
  .p-reserva { grid-template-columns: 96px 1fr auto; align-items: start; }
  .p-reserva-hora { flex-direction: column; align-items: flex-start; gap: 4px; }
  .p-reserva-botones { grid-column: auto; grid-template-columns: 1fr; width: 150px; }
  .p-reserva-botones .p-ico { display: inline; }
  .p-contacto .p-boton { flex: 0 0 auto; }
  .p-plano { aspect-ratio: 16 / 10; }
  .p-mesa { width: 17%; }
  .p-forma-redonda { width: 17%; }
  .p-forma-larga { width: 28%; }
  .p-mesa-quien { font-size: 1.15rem; }
  .p-cal-dia { min-height: 92px; padding: 8px 8px 12px; }
  .p-cal-info { font-size: .8rem; white-space: normal; }
  .p-atajos { grid-template-columns: repeat(6, 1fr); }
  .p-mesa-fila { grid-template-columns: 2fr 90px 1.4fr auto auto; }
  .p-mesa-fila label:nth-of-type(3) { grid-column: auto; }
  .p-dialogo { margin: auto; border-radius: 22px; max-height: 92dvh; }
  .p-linea th, .p-linea td { height: 70px; }
}
@media (hover: hover) and (pointer: fine) { .p-solo-raton { display: block; } }

/* ---------- Ordenador: menú lateral ---------- */
@media (min-width: 1000px) {
  body.p-dentro { padding: 0 0 40px 248px; }
  .p-menu {
    top: 0; right: auto; width: 248px; display: flex; flex-direction: column; gap: 4px; padding: 22px 14px;
    border-top: 0; border-right: 1px solid var(--vs-borde-suave);
  }
  .p-menu-marca { display: flex !important; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 10px 22px; text-decoration: none; }
  .p-menu-marca img { width: 170px; height: auto; }
  .p-menu a:not(.p-menu-marca) { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; font-size: 1rem; }
  .p-menu a[aria-current="page"] { background: var(--vs-primario-suave); }
  .p-menu-quien { display: flex !important; align-items: center; gap: 8px; margin: auto 0 0; padding: 10px 14px; color: var(--vs-texto-suave); font-size: .9rem; }
  .p-barra { padding-left: 24px; }
  .p-barra .p-marca .p-logo { display: none !important; }
  .p-marca span { font-size: .8rem; }
  .p-contenido { padding: 18px 32px 40px; }
  body.p-dentro { background: linear-gradient(to right, var(--vs-superficie) 248px, var(--vs-fondo) 248px); }
  .p-menu { height: 100vh; height: 100dvh; }
  .p-menu-hueco { display: none; }
  .p-menu .p-menu-resto { display: flex; }
  .p-menu .p-menu-mas { display: none !important; }
  .p-menu a .p-burbuja { position: static; margin-left: auto; }
  .p-menu { overflow-y: auto; }
  .p-flotante {
    top: calc(7px + env(safe-area-inset-top)); bottom: auto; left: auto; right: 212px; transform: none;
    width: auto; height: 48px; gap: 6px; padding: 0 18px 0 12px; border-radius: 24px; z-index: 30;
  }
  .p-flotante .p-ico { width: 24px; height: 24px; }
  .p-flotante span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .p-nuevas { top: 80px; }
}
@media (prefers-reduced-motion: no-preference) {
  .p-nuevas:not([hidden]) { animation: p-baja .25s ease-out; }
  @keyframes p-baja { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.p-etiqueta .p-ico { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
/* Tanda 3: recuento del mes por origen (Calendario), en etiquetas que bajan de línea solas a 375 px */
.p-origenes { margin: 4px 0 14px; }
.p-origenes .p-ayuda { margin: 0 0 6px; }
.p-origenes-lista { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.p-origenes-lista .p-etiqueta { font-variant-numeric: lining-nums; color: var(--vs-texto); }
.p-origenes-lista strong { font-weight: 700; }

/* Mientras se guarda o se carga (las acciones son al momento) */
.p-guardando { opacity: .7; pointer-events: none; transition: opacity .15s; }
main[aria-busy="true"] { opacity: .6; transition: opacity .12s; }

/* Informe: barras sin estilo en línea (anchos de 5 en 5) */
.p-informe { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.p-informe li { display: grid; grid-template-columns: 9rem 1fr auto; gap: 10px; align-items: center; }
.p-informe-barra { height: 14px; border-radius: 7px; background: var(--vs-superficie-2); overflow: hidden; }
.p-informe-relleno { display: block; height: 100%; background: var(--vs-acento); }
.p-ancho-0 { width: 0%; }
.p-ancho-5 { width: 5%; }
.p-ancho-10 { width: 10%; }
.p-ancho-15 { width: 15%; }
.p-ancho-20 { width: 20%; }
.p-ancho-25 { width: 25%; }
.p-ancho-30 { width: 30%; }
.p-ancho-35 { width: 35%; }
.p-ancho-40 { width: 40%; }
.p-ancho-45 { width: 45%; }
.p-ancho-50 { width: 50%; }
.p-ancho-55 { width: 55%; }
.p-ancho-60 { width: 60%; }
.p-ancho-65 { width: 65%; }
.p-ancho-70 { width: 70%; }
.p-ancho-75 { width: 75%; }
.p-ancho-80 { width: 80%; }
.p-ancho-85 { width: 85%; }
.p-ancho-90 { width: 90%; }
.p-ancho-95 { width: 95%; }
.p-ancho-100 { width: 100%; }

/* Menú desplegable de la cabecera (modo, sonido, cuenta, salir) */
.p-desplegable { position: relative; }
.p-desplegable summary { list-style: none; }
.p-desplegable summary::-webkit-details-marker { display: none; }
.p-desplegable-caja {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; padding: 6px;
  background: var(--vs-superficie); border: 1px solid var(--vs-borde-suave); border-radius: var(--vs-radio); box-shadow: var(--vs-sombra);
}
.p-desplegable-caja form { margin: 0; }
.p-desplegable-op {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--vs-texto); font: 600 .95rem var(--vs-letra-texto); text-decoration: none; text-align: left; cursor: pointer;
}
.p-desplegable-op:hover { background: var(--vs-acento-suave); }
.p-desplegable-op[aria-pressed="true"] .p-ico { color: var(--vs-acento); }
.p-desplegable-op[aria-pressed="true"]::after { content: '✓'; margin-left: auto; color: var(--vs-acento); }

/* ---------- Vista Cocina: se lee de lejos (tablet o móvil en la cocina), letra grande y modo oscuro ---------- */
.p-cocina { font-size: 1.3rem; line-height: 1.45; }
/* G6: un texto largo sin espacios (una dirección pegada, un texto repetido) se parte y no ensancha la página en el móvil. */
.p-cocina, .p-cocina-bloque li, .p-tarjeta, .p-reserva, .p-reserva-cuerpo, .p-sala-tarjeta, .p-lista-reservas li { overflow-wrap: anywhere; min-width: 0; }
.p-cocina h1 { font-size: 2rem; }
.p-cocina h2 { font-size: 1.5rem; margin: 0 0 8px; }
.p-cocina-total { color: var(--vs-acento); font-size: 2.6rem; }
.p-cocina-bloque { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--vs-borde); border-radius: 12px; background: var(--vs-superficie); }
.p-cocina-bloque ul { list-style: none; margin: 0; padding: 0; }
.p-cocina-bloque li { padding: 8px 0; border-top: 1px solid var(--vs-borde-suave); }
.p-cocina-bloque li:first-child { border-top: 0; }
.p-cocina-alergias { border: 3px solid var(--vs-alerta); }
.p-cocina-alergias h2, .p-cocina-alergias strong { color: var(--vs-alerta); }
.p-cocina-horas li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.p-cocina-horas strong { font-size: 1.6rem; min-width: 4.2ch; }
.p-cocina-horas span { font-size: 1.6rem; font-weight: 700; }
.p-cocina-menus strong { font-size: 1.6rem; color: var(--vs-acento); margin-right: 6px; }
.p-sala-tarjeta { margin: -6px 0 14px; }

/* ---------- Registro del panel (contado como una historia; móvil primero; iconos de línea en SVG) ---------- */
.p-rotulo { margin: 0; font: 600 .72rem/1.2 var(--vs-letra-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--vs-acento); }
.p-reg-filtros { margin: 0 0 1.2rem; }
.p-reg-buscar { display: flex; gap: 8px; }
.p-reg-buscar input { flex: 1; min-width: 0; min-height: 44px; }
.p-reg-mas { margin-top: 8px; border: 1px solid var(--vs-borde); border-radius: var(--vs-radio); background: var(--vs-superficie); padding: 0 12px; }
.p-reg-mas summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--vs-texto-suave); }
.p-reg-mas[open] { padding-bottom: 12px; }
.p-reg-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-bottom: 8px; }
.p-reg-campos input, .p-reg-campos select { width: 100%; min-height: 44px; }
.p-reg-dia h2 { position: sticky; top: 0; z-index: 1; margin: 18px 0 4px; padding: 8px 0; background: var(--vs-fondo); color: var(--vs-acento); font-size: 1.05rem; border-bottom: 1px solid var(--vs-borde); }
.p-reg { list-style: none; margin: 0; padding: 0; }
.p-reg-fila { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--vs-borde-suave); }
.p-reg-icono { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--vs-acento); color: var(--vs-acento); }
.p-reg-icono svg { display: block; }
.p-reg-llegadas .p-reg-icono, .p-reg-tarjeta .p-reg-icono, .p-reg-bonos .p-reg-icono { background: var(--vs-acento); color: var(--vs-acento-texto); }
.p-reg-ajustes .p-reg-icono, .p-reg-entradas .p-reg-icono { border-color: var(--vs-borde); color: var(--vs-texto-suave); }
.p-reg-texto { flex: 1; min-width: 0; }
.p-reg-frase { margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.p-reg-entradas .p-reg-frase, .p-reg-ajustes .p-reg-frase { color: var(--vs-texto-suave); }
.p-reg-reserva { margin: 2px 0 0; font-size: .88rem; }
.p-reg-reserva a { color: var(--vs-acento); }
.p-reg-meta { margin: 2px 0 0; font-size: .82rem; color: var(--vs-texto-tenue); }
.p-reg-detalle summary { display: inline-block; min-height: 32px; padding: 4px 0; font-size: .8rem; color: var(--vs-texto-tenue); cursor: pointer; }
.p-reg-detalle pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .78rem; background: var(--vs-superficie); padding: 8px 10px; border-radius: 10px; margin: 4px 0; }
.p-reg-ficha .p-reg-fila { padding: 8px 0; }
@media (min-width: 720px) { .p-reg-campos { grid-template-columns: repeat(5, 1fr); } }


/* ---------- «Más» (móvil): todas las áreas del panel central en botones grandes ---------- */
.p-mas-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; margin: 12px 0 24px; padding: 0; list-style: none; }
.p-mas-rejilla li { display: flex; }
.p-mas-rejilla a { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 104px; padding: 14px; border: 1px solid var(--vs-borde); border-radius: var(--vs-radio); background: var(--vs-superficie); color: var(--vs-texto); text-decoration: none; font-weight: 600; }
.p-mas-rejilla small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.p-mas-rejilla a .p-ico { width: 28px; height: 28px; color: var(--vs-acento); }
.p-mas-rejilla small { font-weight: 400; color: var(--vs-texto-suave); font-size: .82rem; }
@media (min-width: 640px) { .p-mas-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-que-dicen { margin-top: 24px; }
.p-que-dicen h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.p-que-dicen h2 .p-ico { color: var(--vs-acento); }
.p-socios { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.p-socios li { margin: 0; }
.p-socios form { margin: 0; }
/* Tanda 1: la fila entera abre la ficha del socio (un solo toque, sin botón suelto). */
.p-socio-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 14px; border: 1px solid var(--vs-borde); border-radius: var(--vs-radio); background: var(--vs-superficie); color: var(--vs-texto); font: inherit; text-align: left; cursor: pointer; }
.p-socio-fila:hover, .p-socio-fila:focus-visible { border-color: var(--vs-primario); }
.p-socio-fila > svg { color: var(--vs-texto-suave); }
.p-tarjeta-principal { display: grid; gap: 10px; margin: 0 0 18px; }
.p-tarjeta-principal form, .p-tarjeta-principal .p-boton { width: 100%; }
.p-boton-grande { min-height: 56px; font-size: 1.05rem; justify-content: center; }
.p-socios-titulo { font-size: 1rem; margin: 18px 0 0; }
.p-tarjeta-mas { margin-top: 22px; }
.p-tarjeta-mas .p-cifras { margin-top: 4px; }
.p-socio-nombre { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-socio-datos { display: block; font-size: .85rem; color: var(--vs-texto-suave); }
.p-socio-premio { color: var(--vs-acento); font-weight: 600; }
.p-tarjeta-acciones { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 12px 0 8px; }
.p-tarjeta-acciones form, .p-tarjeta-acciones .p-boton { width: 100%; }
.p-tarjeta-acciones .p-boton { justify-content: flex-start; min-height: 48px; }
@media (min-width: 640px) { .p-tarjeta-acciones { grid-template-columns: repeat(2, 1fr); } }
