/* nidito: todo el estilo de la web. La CSP no deja CSS en línea.
   Las clases están en docs/VOCABULARIO-CSS.md.
   Siempre claro y en pastel (Juani, 30/11: «más linda y tierna, es algo de bebés»).
   Fuentes (SIL OFL 1.1): Fredoka (títulos) y Nunito (texto).
   Ilustraciones propias en public/ilustraciones/. */

@font-face {
  font-family: 'Fredoka';
  src: url('fuentes/fredoka-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('fuentes/fredoka-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fuentes/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: only light;

  --fondo: #fffbf5;          /* crema muy claro */
  --superficie: #ffffff;
  --superficie-2: #fff6ec;   /* manteca muy suave */
  --borde: #f1e6dc;
  --borde-fuerte: #e2d3c6;
  --tinta: #3d3550;
  --tinta-suave: #6b6280;

  --celeste: #a9daf2;
  --celeste-claro: #e4f4fd;
  --celeste-tinta: #1f5674;

  --rosa: #f29bb2;           /* botón principal */
  --rosa-hover: #ee86a2;
  --rosa-claro: #fde6ed;
  --rosa-tinta: #8e2f50;
  --sobre-rosa: #3d1a2b;

  --manteca: #ffe08a;
  --manteca-claro: #fff2c4;
  --manteca-tinta: #6b4e00;

  --menta: #a8e3c8;
  --menta-claro: #def6ea;
  --menta-tinta: #22604a;

  --lila: #cfc2f2;
  --lila-claro: #f0ebfc;
  --lila-tinta: #553f99;

  --coral: #f7a399;
  --coral-claro: #fde3df;
  --coral-tinta: #9a2f22;
  --sobre-coral: #4a150e;

  --enlace: #9c3563;
  --foco: #6a4fc0;

  --sombra: 0 2px 4px rgb(110 80 150 / 0.05), 0 14px 32px -14px rgb(110 80 150 / 0.28);
  --sombra-alta: 0 4px 8px rgb(110 80 150 / 0.07), 0 22px 40px -16px rgb(110 80 150 / 0.36);
  --sombra-chica: 0 1px 3px rgb(110 80 150 / 0.1);
  --sombra-rosa: 0 8px 18px -8px rgb(232 110 146 / 0.75);
  --sombra-celeste: 0 8px 18px -10px rgb(90 170 215 / 0.6);

  --radio: 28px;
  --radio-medio: 18px;
  --radio-chico: 12px;

  --titulos: 'Fredoka', 'Baloo 2', 'Varela Round', system-ui, sans-serif;
  --texto: 'Nunito', 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --icono-google: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
  --flecha-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236b6280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--fondo) url('ilustraciones/fondo.svg') 0 0 / 240px 240px repeat;
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--titulos);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--tinta);
}
h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.25rem + 1vw, 1.9rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 800; }

a { color: var(--enlace); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; font-weight: 700; }
a:hover { text-decoration-thickness: 2.5px; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

hr { border: 0; border-top: 2px dashed var(--borde); margin: 2rem 0; }

small { font-size: 0.875rem; }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.3em; }

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 10px;
}

::selection { background: var(--rosa-claro); color: var(--tinta); }

/* ---------- Marco ---------- */

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--tinta);
  text-decoration: none;
}
.marca::before {
  content: '';
  width: 1.25em;
  height: 1.25em;
  background: url('icono.svg') center / contain no-repeat;
  transition: transform 0.3s ease;
}
.marca:hover { color: var(--rosa-tinta); text-decoration: none; }
.marca:hover::before { transform: rotate(-8deg) scale(1.08); }

.barra nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.barra nav a,
.barra nav .enlace {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--tinta);
  font-weight: 700;
  font-size: 0.975rem;
  text-decoration: none;
}
.barra nav a:hover,
.barra nav .enlace:hover { background: var(--lila-claro); }

main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 12px 16px 56px;
}

.pie {
  text-align: center;
  padding: 28px 16px 36px;
  color: var(--tinta-suave);
  font-size: 0.925rem;
}
.pie::before {
  content: '';
  display: block;
  width: 22px;
  height: 20px;
  margin: 0 auto 8px;
  background: url('ilustraciones/corazon.svg') center / contain no-repeat;
}
.pie a { color: inherit; }

.contenedor {
  max-width: 46rem;
  margin-inline: auto;
}

.caja {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 22px 16px;
  margin-bottom: 20px;
}
.caja > :last-child { margin-bottom: 0; }
.caja > h1:first-child,
.caja > h2:first-child { margin-top: 0; }
.caja h2 { font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.7rem); }
.caja ul { padding-left: 1.3rem; }

.centrada {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}
.caja.centrada { margin-top: 24px; padding: 32px 22px; }
.centrada .acciones,
.centrada .fila { justify-content: center; }
p.ayuda.centrada { margin-top: 8px; }
.centrada details.info { margin-inline: auto; }

.en-linea { display: inline; margin: 0; }

/* ---------- Botones ---------- */

.boton,
button:not([class]),
input[type='submit']:not([class]) {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 10px 24px;
  border: 2px solid var(--rosa);
  border-radius: 999px;
  background: var(--rosa);
  color: var(--sobre-rosa);
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sombra-rosa);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s ease, box-shadow 0.2s;
}
.boton:hover,
button:not([class]):hover,
input[type='submit']:not([class]):hover {
  background: var(--rosa-hover);
  border-color: var(--rosa-hover);
  text-decoration: none;
  transform: translateY(-2px);
}
.boton:active,
button:not([class]):active { transform: translateY(1px); box-shadow: var(--sombra-chica); }

.boton.secundario {
  background: var(--superficie);
  color: var(--celeste-tinta);
  border-color: var(--celeste);
  box-shadow: var(--sombra-celeste);
}
.boton.secundario:hover { background: var(--celeste-claro); border-color: var(--celeste); }

.boton.peligro {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--sobre-coral);
  box-shadow: 0 8px 18px -10px rgb(230 110 95 / 0.7);
}
.boton.peligro:hover { background: #f48e82; border-color: #f48e82; }
.boton.secundario.peligro {
  background: var(--superficie);
  color: var(--coral-tinta);
  border-color: var(--coral);
  box-shadow: none;
}
.boton.secundario.peligro:hover { background: var(--coral-claro); }

.boton.chico {
  min-height: 44px;
  padding: 6px 18px;
  font-size: 0.95rem;
}

.boton[disabled],
.boton[aria-disabled='true'],
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.enlace {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--enlace);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.enlace:hover { text-decoration-thickness: 2.5px; }

.boton-google {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 22px 10px 18px;
  border: 1px solid #747775;
  border-radius: 999px;
  background: #ffffff;
  color: #1f1f1f;
  font-family: var(--texto);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sombra-chica);
  transition: box-shadow 0.2s, transform 0.2s ease;
}
.boton-google::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--icono-google) center / contain no-repeat;
}
.boton-google:hover { background: #f8f9fa; text-decoration: none; box-shadow: var(--sombra); transform: translateY(-2px); }

/* ---------- Formularios ---------- */

form { margin: 0; }

label {
  display: block;
  font-weight: 700;
  margin-bottom: 16px;
}

input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']):not([type='hidden']):not([type='file']),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 12px 16px;
  border: 2px solid var(--borde-fuerte);
  border-radius: var(--radio-medio);
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-weight: 500;
  font-size: 1rem; /* 16 px: iOS no hace zoom */
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 110px; resize: vertical; }
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background: var(--superficie) var(--flecha-select) right 16px center / 16px no-repeat;
}
input::placeholder, textarea::placeholder { color: var(--tinta-suave); opacity: 0.75; }

input:not([type='checkbox']):not([type='radio']):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--lila);
  box-shadow: 0 0 0 4px var(--lila-claro), 0 0 0 6px var(--foco);
}

input[type='file'] {
  display: block;
  width: 100%;
  margin-top: 8px;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--tinta-suave);
}
input[type='file']::file-selector-button {
  min-height: 44px;
  margin-right: 12px;
  padding: 8px 18px;
  border: 2px solid var(--celeste);
  border-radius: 999px;
  background: var(--celeste-claro);
  color: var(--celeste-tinta);
  font-family: var(--titulos);
  font-weight: 600;
  cursor: pointer;
}

input[type='checkbox'],
input[type='radio'] {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #e8789a;
  cursor: pointer;
}

input:disabled, select:disabled, textarea:disabled { opacity: 0.6; cursor: not-allowed; }
input[readonly] { background: var(--superficie-2); }

fieldset {
  margin: 0 0 16px;
  padding: 14px 16px 6px;
  border: 2px solid var(--borde);
  border-radius: var(--radio-medio);
  min-width: 0;
}
legend { padding: 0 6px; font-weight: 800; }

.campos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 16px;
}
.campos > .ancho,
.campos > fieldset,
.campos > .acciones { grid-column: 1 / -1; }

.fila {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
}
.fila > label { flex: 1 1 12rem; }
.fila > label,
.fila > .boton,
.fila > button { margin-bottom: 16px; }

.casilla {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  margin-bottom: 4px;
  font-weight: 600;
  cursor: pointer;
}
.casilla > input { margin-top: 1px; }
fieldset .casilla { padding: 8px 0; }

.ayuda {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tinta-suave);
}
label .ayuda { margin-top: 6px; }
p.ayuda { margin-bottom: 12px; }

/* El campo trampa: fuera de la pantalla, no display:none (los bots lo notan). */
.trampa {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}

/* La «i»: el summary es un circulito y el texto, un globo. */
details.info {
  display: block;
  width: fit-content;
  margin: -8px 0 12px;
  font-family: var(--texto);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  text-wrap: wrap;
  text-transform: none;
}
details.info > summary {
  list-style: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--lila);
  background: var(--lila-claro);
  color: var(--lila-tinta);
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: transform 0.2s ease;
}
/* Zona táctil más grande que el circulito. */
details.info > summary::after {
  content: '';
  position: absolute;
  inset: -10px;
}
details.info > summary::-webkit-details-marker { display: none; }
details.info > summary::marker { content: ''; }
details.info > summary:hover { transform: scale(1.1); }
details.info[open] > summary {
  background: var(--lila);
  color: var(--tinta);
}
details.info > summary:focus-visible { border-radius: 50%; }
details.info[open] > :not(summary) {
  position: absolute;
  z-index: 30;
  left: 16px;
  right: 16px;
  margin: 10px auto 0;
  max-width: 24rem;
  padding: 14px 16px;
  border: 2px solid var(--lila);
  border-radius: var(--radio-medio);
  background: var(--lila-claro);
  color: var(--tinta);
  font-size: 0.95rem;
  box-shadow: var(--sombra-alta);
}
@media (min-width: 640px) {
  details.info[open] > :not(summary) {
    left: auto;
    right: auto;
    width: 22rem;
    margin-left: -10px;
  }
}

/* ---------- Avisos ---------- */

.aviso {
  display: block;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 2px solid var(--manteca);
  border-radius: var(--radio-medio);
  background: var(--manteca-claro);
  color: var(--tinta);
  font-weight: 600;
}
.aviso.error { border-color: var(--coral); background: var(--coral-claro); }
.aviso.ok { border-color: var(--menta); background: var(--menta-claro); }
.aviso > :last-child { margin-bottom: 0; }
.aviso .en-linea { display: inline-block; margin: 6px 0 0 6px; }

/* ---------- Portada ---------- */

/* Cielito con nubes y globos. */
.heroe {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 92px 18px 84px;
  margin: 4px 0 28px;
  border-radius: 36px;
  background:
    url('ilustraciones/nubes-borde.svg') left bottom / 200px 44px repeat-x,
    url('ilustraciones/estrellas.svg') 0 0 / 260px 220px repeat,
    linear-gradient(170deg, #cfeafb 0%, #e9f3fc 45%, #fde6ee 100%);
}
.heroe::before,
.heroe::after {
  content: '';
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: contain;
}
.heroe::before {
  top: 18px;
  left: -14px;
  width: 132px;
  height: 70px;
  background-image: url('ilustraciones/nube.svg');
  animation: flotar 7s ease-in-out infinite;
}
.heroe::after {
  top: 12px;
  right: 10px;
  width: 64px;
  height: 88px;
  background-image: url('ilustraciones/globos.svg');
  animation: flotar 5s ease-in-out infinite reverse;
}
.heroe h1 {
  font-size: clamp(2.3rem, 1.6rem + 3.6vw, 3.8rem);
  max-width: 15ch;
  margin-inline: auto;
}
.heroe p {
  max-width: 32rem;
  margin-inline: auto;
  font-size: 1.15rem;
  color: var(--tinta);
}
.heroe .boton,
.heroe .boton-google { margin-top: 10px; min-width: 14rem; min-height: 56px; font-size: 1.15rem; }

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.pasos {
  list-style: none;
  counter-reset: paso;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0 0 24px;
}
.pasos > li {
  counter-increment: paso;
  position: relative;
  margin: 0;
  padding: 20px 20px 20px 80px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.pasos > li::before {
  content: counter(paso);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--celeste-claro);
  border: 2px solid var(--celeste);
  color: var(--celeste-tinta);
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.3rem;
}
.pasos > li:nth-child(3n+2)::before { background: var(--rosa-claro); border-color: var(--rosa); color: var(--rosa-tinta); }
.pasos > li:nth-child(3n)::before { background: var(--menta-claro); border-color: var(--menta); color: var(--menta-tinta); }
.pasos h2, .pasos h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.pasos p { color: var(--tinta-suave); }

/* ---------- Lista pública ---------- */

/* Cabecera: un cielito con luna, estrellas y nubes. */
.portada-lista {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 96px 18px 80px;
  margin: 4px 0 26px;
  border-radius: 36px;
  background:
    url('ilustraciones/nubes-borde.svg') left bottom / 200px 44px repeat-x,
    url('ilustraciones/estrellas.svg') 0 0 / 260px 220px repeat,
    linear-gradient(175deg, #bfe3f8 0%, #dcf0fb 50%, #f6e9f7 100%);
}
.portada-lista::before,
.portada-lista::after {
  content: '';
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: contain;
}
.portada-lista::before {
  top: 24px;
  left: -18px;
  width: 140px;
  height: 75px;
  background-image: url('ilustraciones/nube.svg');
  animation: flotar 8s ease-in-out infinite;
}
.portada-lista::after {
  top: 18px;
  right: 18px;
  width: 58px;
  height: 58px;
  background-image: url('ilustraciones/luna.svg');
  animation: flotar 6s ease-in-out infinite reverse;
}
.portada-lista h1 {
  font-size: clamp(2.3rem, 1.6rem + 3.6vw, 3.8rem);
  max-width: 18ch;
  margin: 0 auto 0.35em;
}
.portada-lista p {
  max-width: 34rem;
  margin: 0 auto 0.4em;
  color: var(--tinta);
  font-weight: 600;
}
.portada-lista p + p + p,
.portada-lista p.mensaje {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radio-medio);
  background: rgb(255 255 255 / 0.85);
  font-weight: 500;
  box-shadow: var(--sombra-chica);
}

.seccion { margin: 0 0 36px; }
.seccion > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.seccion > h2::before {
  content: '';
  flex: none;
  width: 26px;
  height: 24px;
  background: url('ilustraciones/corazon.svg') center / contain no-repeat;
}
.seccion > h2::after {
  content: '';
  flex: 1;
  height: 0;
  border-top: 2px dashed var(--borde-fuerte);
  margin-left: 4px;
}

.rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Si alguien abre «reservar», las demás tarjetas de la fila no se estiran. */
.rejilla:has(details.reservar[open]) { align-items: start; }

.tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--superficie);
  border: 1px solid #f3ebf6;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.tarjeta:has(details.reservar[open]):hover { transform: none; }
.tarjeta-foto,
.tarjeta > .sin-foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radio) - 1px) calc(var(--radio) - 1px) 0 0;
}
.tarjeta-foto {
  display: block;
  height: auto;
  /* Entera, sin recortar: las fotos de tienda suelen venir sobre blanco. */
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  background: #fff;
}

/* Sin foto: osito o nubecita sobre un fondo pastel con estrellitas. */
.sin-foto {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    url('ilustraciones/osito.svg') center / 34% auto no-repeat,
    url('ilustraciones/estrellas.svg') 0 0 / 260px 220px repeat,
    var(--celeste-claro);
}
.tarjeta:nth-child(3n+2) > .sin-foto {
  background:
    url('ilustraciones/nube-carita.svg') center / 46% auto no-repeat,
    url('ilustraciones/estrellas.svg') 0 0 / 260px 220px repeat,
    var(--rosa-claro);
}
.tarjeta:nth-child(3n) > .sin-foto {
  background:
    url('ilustraciones/osito.svg') center / 34% auto no-repeat,
    url('ilustraciones/estrellas.svg') 0 0 / 260px 220px repeat,
    var(--menta-claro);
}

.tarjeta-cuerpo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 20px;
}
.tarjeta-cuerpo > * { margin: 0; }
.tarjeta-cuerpo h2,
.tarjeta-cuerpo h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
}
.tarjeta-cuerpo > p > a:only-child,
.tarjeta-cuerpo > a:not(.boton) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -8px 0;
}
.tarjeta-cuerpo progress { width: 100%; }
.tarjeta-cuerpo > details.reservar,
.tarjeta-cuerpo > .acciones,
.tarjeta-cuerpo > form { align-self: stretch; margin-top: auto; padding-top: 8px; }

.precio {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
}
.ayuda .precio { font-size: 1em; font-family: inherit; font-weight: 800; color: inherit; }

.nota {
  display: block;
  font-size: 0.95rem;
  color: var(--tinta-suave);
  font-style: italic;
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 14px 5px 11px;
  border-radius: 999px;
  background: var(--superficie-2);
  color: var(--tinta-suave);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
}
.estado:empty { display: none; }
.estado::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.estado.disponible { background: var(--menta-claro); color: var(--menta-tinta); }
.estado.parcial { background: var(--manteca-claro); color: var(--manteca-tinta); }
.estado.reservado { background: var(--rosa-claro); color: var(--rosa-tinta); }
.estado.reservado::before { display: none; }
.estado .estado { padding: 0; background: none; }
.estado .estado::before { display: none; }

/* Regalo completo: apagado, pero se lee, con su sellito encima de la foto. */
.tarjeta.completa {
  background: #fdfafc;
  box-shadow: var(--sombra-chica);
}
.tarjeta.completa:hover { transform: none; box-shadow: var(--sombra-chica); }
.tarjeta.completa .tarjeta-foto,
.tarjeta.completa .sin-foto {
  filter: saturate(0.35);
  opacity: 0.6;
}
.tarjeta.completa h2,
.tarjeta.completa h3,
.tarjeta.completa .precio { color: var(--tinta-suave); }
.tarjeta.completa::after {
  content: '♥ ya tiene dueño';
  position: absolute;
  top: 16px;
  left: 14px;
  padding: 7px 16px;
  border: 2px dashed var(--rosa);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--rosa-tinta);
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transform: rotate(-6deg);
  box-shadow: var(--sombra-rosa);
  pointer-events: none;
}

/* Barras de avance (aportes o unidades). */
progress {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--lila-claro);
  overflow: hidden;
  color: var(--rosa);
}
progress::-webkit-progress-bar {
  background: var(--lila-claro);
  border-radius: 999px;
}
progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--rosa), var(--lila), var(--celeste));
  border-radius: 999px;
}
progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--rosa), var(--lila), var(--celeste));
  border-radius: 999px;
}

/* Reservar: el summary es el botón y el formulario se abre en la tarjeta. */
details.reservar { width: 100%; }
details.reservar > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 22px;
  border: 2px solid var(--rosa);
  border-radius: 999px;
  background: var(--rosa);
  color: var(--sobre-rosa);
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--sombra-rosa);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s ease;
}
details.reservar > summary::-webkit-details-marker { display: none; }
details.reservar > summary::marker { content: ''; }
details.reservar > summary::before {
  content: '';
  flex: none;
  width: 18px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21S1.5 14.2 1.5 7.4A5.4 5.4 0 0 1 12 5.1a5.4 5.4 0 0 1 10.5 2.3C22.5 14.2 12 21 12 21z' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat;
}
details.reservar > summary:hover { background: var(--rosa-hover); border-color: var(--rosa-hover); transform: translateY(-2px); }
details.reservar[open] > summary {
  background: var(--superficie);
  color: var(--rosa-tinta);
  border-color: var(--rosa-claro);
  box-shadow: none;
  transform: none;
}
details.reservar[open] > summary::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21S1.5 14.2 1.5 7.4A5.4 5.4 0 0 1 12 5.1a5.4 5.4 0 0 1 10.5 2.3C22.5 14.2 12 21 12 21z' fill='%23f29bb2'/%3E%3C/svg%3E");
}
details.reservar > :not(summary) {
  margin-top: 14px;
}
details.reservar form {
  padding: 18px 16px 6px;
  border-radius: var(--radio-medio);
  background: var(--superficie-2);
  border: 2px dashed var(--borde-fuerte);
}
details.reservar form > .boton,
details.reservar form > button { width: 100%; margin: 4px 0 14px; }
details.reservar fieldset { background: var(--superficie); }

/* Página «Listo». */
.resumen {
  max-width: 36rem;
  margin: 16px auto 24px;
  padding: 28px 20px;
  text-align: center;
}
.resumen::before {
  content: '';
  display: block;
  width: 84px;
  height: 112px;
  margin: 0 auto 10px;
  background: url('ilustraciones/globos.svg') center / contain no-repeat;
  animation: flotar 5s ease-in-out infinite;
}
.resumen dl,
.resumen ul,
.resumen .direccion { text-align: left; }
.resumen dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 18px 0;
}
.resumen dt { font-size: 0.85rem; color: var(--tinta-suave); font-weight: 700; margin-top: 8px; }
.resumen dd { margin: 0; font-weight: 700; }
.resumen .acciones { justify-content: center; }
.resumen form { margin-top: 20px; padding-top: 18px; border-top: 2px dashed var(--borde); }

.direccion {
  display: block;
  margin: 14px 0;
  padding: 14px 16px 14px 50px;
  border: 2px dashed var(--menta);
  border-radius: var(--radio-medio);
  background: var(--menta-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z' fill='%2322604a'/%3E%3C/svg%3E") 16px 15px / 22px no-repeat;
  color: var(--tinta);
  font-style: normal;
  font-weight: 600;
  white-space: pre-line;
}

/* ---------- Panel ---------- */

.panel-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 8px 0 22px;
}
.panel-cabecera h1,
.panel-cabecera h2 { margin: 0; }
.panel-cabecera p { margin: 0; color: var(--tinta-suave); width: 100%; }
.panel-cabecera .acciones { margin: 0; }

.listas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.listas > *,
.listas > .caja {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 20px 20px 20px 84px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.listas > *::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--celeste-claro) url('icono.svg') center / 34px no-repeat;
}
.listas > :nth-child(3n+2)::before { background-color: var(--rosa-claro); }
.listas > :nth-child(3n)::before { background-color: var(--menta-claro); }
.listas > *:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.listas > * > * { margin: 0; }
.listas h2, .listas h3 { font-size: 1.3rem; }
.listas h2 a, .listas h3 a { color: var(--tinta); text-decoration: none; }
.listas h2 a::after, .listas h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radio); }
.listas h2 a:hover, .listas h3 a:hover { color: var(--rosa-tinta); }
.listas form, .listas .acciones, .listas .boton { position: relative; z-index: 1; }
.listas p { color: var(--tinta-suave); font-size: 0.95rem; }
.listas .acciones { margin-top: auto; padding-top: 6px; }

.tabla {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.tabla caption { text-align: left; font-weight: 800; padding-bottom: 8px; }
.tabla th,
.tabla td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
}
.tabla th {
  font-family: var(--titulos);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--lila-tinta);
  background: var(--lila-claro);
}
.tabla td .ayuda { margin-top: 2px; }

/* En el celular la tabla se apila: cada fila es una tarjetita.
   Cada <td data-etiqueta="Precio"> muestra su rótulo. */
@media (max-width: 699.98px) {
  .tabla, .tabla tbody, .tabla tr, .tabla td, .tabla th { display: block; width: 100%; }
  .tabla thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tabla tr {
    margin-bottom: 12px;
    padding: 8px 4px;
    background: var(--superficie-2);
    border: 2px solid var(--borde);
    border-radius: var(--radio-medio);
  }
  .tabla td { padding: 6px 12px; }
  .tabla tbody th { background: none; font-size: 1rem; color: var(--tinta); padding: 6px 12px; }
  .tabla td[data-etiqueta]::before {
    content: attr(data-etiqueta);
    display: block;
    font-family: var(--titulos);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--lila-tinta);
  }
}
@media (min-width: 700px) {
  .tabla {
    background: var(--superficie);
    border: 2px solid var(--lila-claro);
    border-radius: var(--radio-medio);
    overflow: hidden;
  }
  .tabla tbody tr + tr > * { border-top: 2px dashed var(--borde); }
  .tabla tbody tr:hover > * { background: var(--superficie-2); }
}

/* Lista de regalos del panel: secciones con <h3> y <ul> de .fila-regalo. */
.caja .seccion { margin: 0 0 22px; }
.caja .seccion:last-child { margin-bottom: 0; }
.seccion > h3 {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--celeste-claro);
  color: var(--celeste-tinta);
  font-size: 1.05rem;
}
.seccion:nth-of-type(3n+2) > h3 { background: var(--rosa-claro); color: var(--rosa-tinta); }
.seccion:nth-of-type(3n) > h3 { background: var(--menta-claro); color: var(--menta-tinta); }
.seccion > ul,
.archivados > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fila-regalo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
  padding: 12px;
  margin: 0 0 10px;
  background: var(--superficie-2);
  border: 2px solid var(--borde);
  border-radius: var(--radio-medio);
}
li.fila-regalo + li.fila-regalo { margin-top: 0; }
.fila-regalo > * { margin: 0; }
.fila-regalo > :not(.miniatura):not(.acciones):not(.estado):not(form) { flex: 1 1 10rem; min-width: 0; }
.fila-regalo > div > * { margin: 0; }
.fila-regalo > div > * + * { margin-top: 3px; }
.fila-regalo strong { font-size: 1.05rem; }
.fila-regalo .estado { margin-top: 6px; }
.fila-regalo .acciones { flex: 1 1 100%; margin: 0; gap: 8px; }
.acciones .boton.chico[aria-label] { min-width: 44px; padding: 0 12px; }
.fila-regalo > form { margin-left: auto; }
@media (min-width: 760px) {
  .fila-regalo { align-items: center; }
  .fila-regalo .acciones { flex: 0 0 auto; justify-content: flex-end; }
}

.miniatura {
  flex: none;
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radio-chico);
  background: var(--celeste-claro);
  border: 2px solid var(--superficie);
  box-shadow: var(--sombra-chica);
}
span.miniatura { display: block; }
.miniatura.sin-foto {
  background: var(--celeste-claro) url('ilustraciones/osito.svg') center / 62% auto no-repeat;
}
[data-foto] .miniatura { width: 120px; height: 120px; margin: 4px 0 10px; }

.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 16px 0;
}
.acciones > form { margin: 0; }

.vacio {
  padding: 30px 20px 28px;
  margin: 0 0 20px;
  text-align: center;
  color: var(--tinta-suave);
  font-weight: 600;
  border: 2px dashed var(--lila);
  border-radius: var(--radio);
  background: var(--lila-claro);
  box-shadow: none;
}
.vacio::before {
  content: '';
  display: block;
  width: 110px;
  height: 74px;
  margin: 0 auto 12px;
  background: url('ilustraciones/nube-carita.svg') center / contain no-repeat;
}
.vacio > * { margin-inline: auto; max-width: 30rem; }
.vacio h2, .vacio h3 { color: var(--tinta); }
.vacio .boton { margin-top: 8px; }

.chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 6px 8px 0;
  padding: 4px 14px;
  border: 2px solid var(--lila);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--lila-tinta);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s;
}
/* Zona táctil de 44 px sin agrandar la pastilla. */
.chip::after { content: ''; position: absolute; inset: -4px -2px; }
.chip:hover,
.chip[aria-pressed='true'] { background: var(--lila-claro); transform: translateY(-1px); }

.archivados {
  margin: 24px 0;
  border: 2px dashed var(--borde-fuerte);
  border-radius: var(--radio);
  background: var(--superficie-2);
  box-shadow: none;
}
.archivados.caja { padding: 0; }
.archivados > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 20px;
  font-family: var(--titulos);
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: var(--radio);
}
.archivados > summary::-webkit-details-marker { display: none; }
.archivados > summary::marker { content: ''; }
.archivados > summary::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}
.archivados[open] > summary::before { transform: rotate(45deg); }
.archivados > :not(summary) { margin: 0 16px 16px; }
.archivados .fila-regalo,
.archivados .listas > * { background: var(--superficie); }
.archivados .listas > *,
.archivados .listas > .caja { padding-left: 20px; }
.archivados .listas > *::before { display: none; }

.compartir {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 18px;
  margin: 0 0 22px;
  background: linear-gradient(160deg, var(--celeste-claro), var(--rosa-claro));
  border: 0;
  border-radius: var(--radio);
}
.compartir > * { margin: 0; }
.compartir > h2, .compartir > h3, .compartir > p { flex: 1 1 100%; font-weight: 700; }
.compartir > label { flex: 1 1 100%; margin: 0; }
.compartir input[type='text'],
.compartir input[type='url'],
.compartir > input {
  flex: 1 1 100%;
  min-width: 0;
  margin-top: 0;
  font-size: 0.95rem;
  background: var(--superficie);
  border-color: var(--superficie);
}
.compartir .boton { flex: 1 1 auto; }
@media (min-width: 640px) {
  .compartir > input { flex: 1 1 16rem; }
  .compartir .boton { flex: 0 0 auto; min-height: 52px; }
}

.editores ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  border: 2px solid var(--borde);
  border-radius: var(--radio-medio);
  background: var(--superficie-2);
}
.editores ul > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  min-height: 56px;
  margin: 0;
  padding: 8px 10px 8px 16px;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.editores ul > li + li { border-top: 2px dashed var(--borde); }
.editores ul > li .ayuda { display: inline; margin: 0; }
.editores ul > li > form { margin-left: auto; }

/* ---------- Pantallas anchas ---------- */

@media (min-width: 560px) {
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .barra { padding: 14px 24px; }
  main { padding: 16px 24px 72px; }
  .caja { padding: 28px 30px; }
  .campos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heroe { padding: 110px 40px 104px; }
  .heroe::before { left: 6%; top: 34px; width: 190px; height: 100px; }
  .heroe::after { right: 7%; top: 40px; width: 96px; height: 132px; }
  .portada-lista { padding: 92px 40px 88px; }
  .portada-lista::before { left: 5%; top: 40px; width: 200px; height: 106px; }
  .portada-lista::after { right: 7%; top: 34px; width: 84px; height: 84px; }
  .resumen { padding: 36px 36px; }
}

@media (min-width: 880px) {
  .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pasos > li { padding: 76px 22px 22px; }
  .listas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tarjeta:hover, .boton:hover, .listas > *:hover { transform: none; }
}

@media print {
  .barra nav, .pie, details.reservar, .acciones { display: none; }
  body { background: #fff; color: #000; }
  .tarjeta, .caja { box-shadow: none; }
}
