/* Piezas comunes. Cada propuesta sólo redefine las variables y lo que dibuja. */
:root {
  --terracota: #CF9182;
  --salvia: #7C8881;
  --taupe: #B6AA97;
  --crema: #EDE9E4;
  --tinta: #1C1C1C;
  --fondo: var(--crema);
  --texto: var(--tinta);
  --suave: #5b5750;
  --linea: rgba(28, 28, 28, .18);
  --acento: var(--tinta);
  --sobre-acento: var(--crema);
  --radio: 0px;
  --titulos: Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
[hidden] { display: none !important; }
.c-terracota { background: var(--terracota); }
.c-salvia { background: var(--salvia); }
.c-taupe { background: var(--taupe); }

.demo-tira {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; align-items: center;
  padding: 7px 16px; background: #1C1C1C; color: #EDE9E4;
  font: 13px/1.35 system-ui, sans-serif;
}
.demo-tira nav { display: flex; gap: 4px; }
.demo-tira a { padding: 3px 9px; text-decoration: none; border: 1px solid rgba(237, 233, 228, .35); border-radius: 3px; }
.demo-tira a[aria-current] { background: #EDE9E4; color: #1C1C1C; }

.boton {
  display: inline-block; padding: 14px 22px; border: 1px solid var(--acento); border-radius: var(--radio);
  background: var(--acento); color: var(--sobre-acento); font-weight: 600; text-decoration: none; text-align: center;
  transition: transform .15s ease, opacity .15s ease;
}
.boton:hover { transform: translateY(-1px); opacity: .9; }
.boton:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.boton-linea {
  display: inline-block; padding: 9px 14px; border: 1px solid currentColor; border-radius: var(--radio);
  background: transparent; text-decoration: none; font-weight: 600; font-size: .92em;
}
.boton-linea:disabled { opacity: .45; cursor: not-allowed; }

.ondas { display: block; width: 100%; height: 100px; overflow: visible; }
.ondas path { fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Horario */
.horario {
  display: grid; grid-template-columns: 34px repeat(5, minmax(0, 1fr));
  grid-template-rows: 34px repeat(11, 40px); gap: 0 6px; position: relative;
}
.h-dia { grid-row: 1; align-self: center; font-weight: 700; }
.h-hora { grid-column: 1; font-size: 12px; color: var(--suave); border-top: 1px solid var(--linea); padding-top: 2px; }
.h-celda {
  z-index: 1; margin: 2px 0; padding: 7px 9px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  border: 0; border-radius: var(--radio); color: #111; text-align: left; font-size: 13px; line-height: 1.2; overflow: hidden;
  transition: transform .15s ease, filter .15s ease;
}
.h-celda:hover { transform: scale(1.02); filter: brightness(1.05); }
.h-celda strong { font-size: 14px; }
.h-celda em { font-style: normal; font-size: 12px; margin-top: auto; }
.h-celda.lleno { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--linea) 6px 7px); color: var(--suave); box-shadow: inset 0 0 0 1px var(--linea); }
.h-celda.recien { animation: latido .8s ease 2; }
@keyframes latido { 50% { filter: brightness(1.18); } }
.leyenda { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.leyenda li { display: flex; align-items: center; gap: 8px; }
.leyenda i { width: 13px; height: 13px; border-radius: 50%; }

@media (max-width: 720px) {
  .horario { display: flex; flex-direction: column; gap: 6px; }
  .h-hora { display: none; }
  .h-dia { margin-top: 12px; align-self: flex-start; }
  .h-celda { flex-direction: row; align-items: baseline; gap: 10px; padding: 12px; margin: 0; }
  .h-celda em { margin: 0 0 0 auto; }
}

/* Inscripción */
dialog.reserva {
  width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto;
  border: 0; border-radius: var(--radio-caja, 6px); background: #FBF9F6; color: #1C1C1C;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35); font-family: inherit;
}
dialog.reserva::backdrop { background: rgba(20, 18, 15, .55); backdrop-filter: blur(3px); }
.r-cab { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 16px 20px 0; }
.r-cab p { font-size: 14px; font-weight: 600; }
.r-pasos { grid-row: 2; display: flex; gap: 5px; }
.r-pasos li { width: 34px; height: 3px; background: rgba(28, 28, 28, .15); }
.r-pasos li.hecho { background: #1C1C1C; }
.r-cerrar { grid-row: 1 / 3; grid-column: 2; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; }
dialog.reserva form, .r-fin { display: grid; gap: 12px; padding: 16px 20px 20px; }
dialog.reserva h2 { font-family: var(--titulos); font-size: 26px; line-height: 1.15; font-weight: 400; }
dialog.reserva legend { font-size: 13px; font-weight: 600; color: #5b5750; margin-bottom: 6px; }
.r-op {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; margin-bottom: 6px;
  border: 1px solid rgba(28, 28, 28, .2); cursor: pointer; font-size: 15px;
}
.r-op:has(input:checked) { border-color: #1C1C1C; box-shadow: inset 0 0 0 1px #1C1C1C; }
.r-op.cerrado { opacity: .5; cursor: not-allowed; }
.r-op input { accent-color: #1C1C1C; margin: 0; }
.r-op small { display: block; color: #5b5750; font-size: 13px; }
.r-op b { font-weight: 600; font-size: 14px; white-space: nowrap; }
.r-nota { font-size: 14px; color: #5b5750; line-height: 1.4; }
.r-campo { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.r-campo input { padding: 11px 12px; border: 1px solid rgba(28, 28, 28, .25); background: #fff; font-weight: 400; font-size: 16px; }
dialog.reserva .boton { --acento: #1C1C1C; --sobre-acento: #EDE9E4; width: 100%; }
.r-atras { border: 0; background: none; text-decoration: underline; font-size: 14px; padding: 4px; }
.r-fin p { line-height: 1.45; }
.r-cupo-nuevo { font-weight: 600; }
.r-correo { padding: 14px; background: #fff; border: 1px solid rgba(28, 28, 28, .14); font-size: 14px; display: grid; gap: 5px; }
.r-correo-de { font-size: 12px; color: #5b5750; }

/* Tarjeta de regalo */
.regalo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.r-campos { display: grid; gap: 16px; }
.r-campos legend { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.r-opciones { display: flex; flex-wrap: wrap; gap: 6px; }
.r-opciones label { cursor: pointer; }
.r-opciones input { position: absolute; opacity: 0; }
.r-opciones span { display: block; padding: 8px 13px; border: 1px solid currentColor; border-radius: var(--radio); font-size: 14px; }
.r-opciones input:checked + span { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.r-opciones input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }
.r-texto { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.r-texto input { padding: 11px 12px; border: 1px solid currentColor; border-radius: var(--radio); background: transparent; font-weight: 400; font-size: 16px; }
.r-resultado { font-size: 15px; line-height: 1.45; }
.r-tarjeta {
  position: relative; aspect-ratio: 3 / 2; padding: clamp(18px, 3.4vw, 34px); overflow: hidden; display: flex; flex-direction: column;
  background: #F6F2EC; color: #1C1C1C; border-radius: var(--radio-caja, 4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); transform: rotate(-1.2deg);
}
.r-tarjeta img { width: clamp(70px, 11vw, 112px); }
.r-motivo { font-family: var(--titulos); font-size: clamp(26px, 3.6vw, 42px); line-height: 1.05; margin-top: auto; overflow-wrap: anywhere; position: relative; z-index: 1; }
.r-para, .r-mensaje { font-size: 15px; line-height: 1.35; position: relative; z-index: 1; overflow-wrap: anywhere; }
.r-para { margin-top: 6px; font-weight: 600; }
.r-pie { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; font-weight: 600; position: relative; z-index: 1; }
.r-ondas { position: absolute; left: auto; right: -2%; width: 62%; top: 9%; height: 30%; color: var(--terracota); opacity: .8; }
@media (max-width: 860px) { .regalo { grid-template-columns: 1fr; } .r-tarjeta { order: -1; } }

/* Tienda */
.tienda { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tienda li { display: grid; gap: 8px; align-content: start; justify-items: start; }
.t-muestra {
  width: min(100%, 172px); aspect-ratio: 1; border-radius: 50%; background: var(--muestra);
  box-shadow: inset -10px -14px 26px rgba(0, 0, 0, .13), inset 10px 12px 22px rgba(255, 255, 255, .34);
}
.tienda h3 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.t-datos { display: flex; gap: 12px; font-size: 14px; }
@media (max-width: 720px) { .tienda { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Avísame */
.avisame { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.avisame label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.avisame input { padding: 13px 12px; border: 1px solid currentColor; border-radius: var(--radio); background: transparent; font-size: 16px; font-weight: 400; min-width: 0; }
.avisame input::placeholder { color: inherit; opacity: .55; }
.a-ok { grid-column: 1 / -1; font-size: 15px; }
@media (max-width: 480px) { .avisame { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
