/* ==========================================================================
   Sale Fiestona
   Paleta de la marca + dos agregados: "tinta" (violeta muy oscuro, para que
   los textos chicos se lean) y "crema" (fondo cálido para las fotos).
   ========================================================================== */

:root {
  /* Paleta de la marca */
  --amarillo: #FBD70A;
  --fucsia: #FD4690;
  --rosa: #ED8BB2;
  --lavanda: #BE9FE9;
  --violeta: #8657DE;
  --uva: #5941B3;
  --turquesa: #2CB4B7;
  --petroleo: #0F5B7B;
  --naranja: #FD8E1B;
  --mandarina: #ED6429;
  --lima: #B3CD46;
  --coral: #F44648;

  /* Agregados */
  --tinta: #2A1B5C;
  --crema: #FFF8E7;
  --rosa-claro: #FDE3EE;
  --error: #C0124A;
  --error-fondo: #FFF0F4;
  --texto-sobre-uva: #EDE6FF;

  /* Tipografía */
  --letra-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --letra-script: 'Sacramento', 'Brush Script MT', cursive;
  --letra-texto: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Formas */
  --radio: 22px;
  --borde: 3px solid var(--tinta);
  --sombra-dura: 6px 6px 0 var(--tinta);

  /* Movimiento */
  --rapido: 160ms;
  --medio: 280ms;
  --rebote: cubic-bezier(.34, 1.56, .64, 1);
  --suave: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

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

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--letra-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--tinta);
  outline-offset: 3px;
}

.oculto { position: absolute; width: 0; height: 0; overflow: hidden; }

.solo-lectores {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.saltar {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--tinta);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
}
.saltar:focus { top: 1rem; }

.contenedor {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .contenedor { width: min(100% - 4rem, 1240px); }
}

.icono {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* El logo: "FIESTONA" toma `color` y "sale" toma `fill`. */
.logo {
  width: 100%;
  height: auto;
  color: var(--fucsia);
  fill: var(--rosa);
}

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

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 54px;
  padding: .8rem 1.6rem;
  border: var(--borde);
  border-radius: 999px;
  background: var(--tinta);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--fucsia);
  transition: transform var(--rapido) var(--suave), box-shadow var(--rapido) var(--suave), background-color var(--rapido);
}

.boton:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--fucsia);
}

.boton:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--fucsia);
}

.boton .icono { transition: transform var(--medio) var(--rebote); }
.boton:hover .icono { transform: translateX(3px); }

.boton--borde {
  background: transparent;
  color: var(--tinta);
  box-shadow: none;
}
.boton--borde:hover {
  background: #fff;
  box-shadow: 5px 5px 0 var(--tinta);
}
.boton--borde:active { box-shadow: 1px 1px 0 var(--tinta); }

.boton--chico {
  min-height: 46px;
  padding: .5rem 1.15rem;
  font-size: .98rem;
  box-shadow: 4px 4px 0 var(--fucsia);
}

/* ---------- Cabecera ---------- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--amarillo);
  border-bottom: 3px solid transparent;
  transition: border-color var(--medio);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.cabecera__marca {
  display: block;
  width: 150px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--medio), transform var(--medio) var(--suave);
}

.cabecera__nav {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
  font-weight: 800;
}

.cabecera__nav a {
  text-decoration: none;
  padding: .5rem 0;
  background: linear-gradient(var(--fucsia), var(--fucsia)) no-repeat left bottom / 0 3px;
  transition: background-size var(--medio) var(--suave);
}
.cabecera__nav a:hover { background-size: 100% 3px; }

.cabecera .boton { margin-left: auto; }

@media (min-width: 760px) {
  .cabecera__nav { display: flex; }
  .cabecera .boton { margin-left: 0; }
}

/* Cuando ya pasaste la portada aparece el logo chico */
.cabecera--scroll { border-bottom-color: var(--tinta); }
.cabecera--scroll .cabecera__marca,
html:not(.js) .cabecera__marca {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

.portada {
  position: relative;
  background: var(--amarillo);
  padding-top: clamp(.5rem, 2vw, 1.5rem);
  overflow: hidden;
}

.portada__marca {
  margin-inline: -.5%;
}

.portada__cuerpo {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.portada__texto {
  max-width: 40rem;
}

.portada__frase {
  font-weight: 900;
  font-size: clamp(2.15rem, 5.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.script {
  font-family: var(--letra-script);
  font-weight: 400;
  font-size: 1.45em;
  line-height: .5;
  letter-spacing: 0;
  color: var(--uva);
  white-space: nowrap;
  padding-right: .1em;
}

.portada__bajada {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
}

.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.portada__ona {
  position: relative;
  width: min(78%, 330px);
  margin-inline: auto;
  align-self: end;
  padding-bottom: calc(1.4vw + 4px);
}

.ona {
  width: 100%;
  height: auto;
  color: var(--fucsia);
  margin-bottom: -2px;
}

@media (min-width: 900px) {
  /* En pantallas bajas el logo se achica para que la portada entre entera. */
  .portada__marca .logo { max-width: max(62%, calc((100svh - 36rem) * 4.22)); }
  .portada__cuerpo {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: end;
    gap: 3rem;
    margin-top: clamp(1rem, 2vw, 2rem);
  }
  .portada__frase { font-size: clamp(2.4rem, 4.1vw, 3.6rem); }
  .portada__texto { padding-bottom: clamp(3.5rem, 5.5vw, 5rem); }
  .portada__ona {
    width: min(100%, 340px);
    margin-top: -3vw;
  }
}

/* Dibujitos alrededor de Ona */
.deco {
  position: absolute;
  width: 54px;
  height: 54px;
}
.deco--estrella-1 { color: var(--turquesa); top: 10%; left: -22%; width: 62px; height: 62px; transform: rotate(-12deg); }
.deco--estrella-2 { color: var(--naranja); top: 46%; right: -14%; transform: rotate(14deg); }
.deco--brillo-1 { color: var(--uva); top: 1%; right: 4%; width: 40px; height: 40px; }
.deco--brillo-2 { color: var(--coral); top: 58%; left: -16%; width: 36px; height: 36px; }
.deco--rulo { color: var(--uva); width: 120px; height: 40px; top: 30%; left: -38%; transform: rotate(-8deg); }
.deco--flor-1 { fill: var(--lavanda); color: var(--uva); width: 76px; height: 76px; bottom: 12%; right: -18%; }
.deco--flor-2 { fill: #fff; color: var(--fucsia); width: 52px; height: 52px; bottom: 26%; right: -26%; }

@media (max-width: 899px) {
  .deco--rulo { left: -30%; top: 22%; width: 80px; }
  .deco--estrella-1 { left: -14%; }
}

@media (prefers-reduced-motion: no-preference) {
  .deco--brillo-1, .deco--brillo-2 { animation: titila 2.8s ease-in-out infinite; }
  .deco--brillo-2 { animation-delay: -1.2s; }
  .deco--estrella-2 { animation: gira 9s linear infinite; }
}

@keyframes titila {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(.65) rotate(25deg); opacity: .7; }
}

@keyframes gira { to { transform: rotate(374deg); } }

/* ---------- Cinta de frases ---------- */

/* La cinta va inclinada y más ancha que la pantalla: el envoltorio recorta
   los costados sin generar scroll horizontal. */
.cinta-envoltura {
  position: relative;
  z-index: 2;
  overflow-x: clip;
  margin-block: calc(-1.85vw - 8px);
}

.cinta {
  width: 106vw;
  margin-left: -3vw;
  background: var(--tinta);
  color: var(--amarillo);
  transform: rotate(2deg);
  overflow: hidden;
  border-block: 4px solid var(--fucsia);
}

.cinta__pista {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  padding: .85rem 0;
}

.cinta span {
  font-family: var(--letra-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: .01em;
}

.cinta svg {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--fucsia);
}

@media (prefers-reduced-motion: no-preference) {
  .cinta__pista { animation: corre 38s linear infinite; }
}

@keyframes corre { to { transform: translateX(calc(-50% - .7rem)); } }

/* ---------- Títulos de sección: palabra en cursiva + palabra gigante (como el logo) ---------- */

.titulo {
  --fondo-titulo: var(--crema);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.titulo__script {
  position: relative;
  z-index: 1;
  font-family: var(--letra-script);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.5vw, 5.2rem);
  color: var(--uva);
  margin: 0 0 -.42em .12em;
  transform: rotate(-6deg);
  -webkit-text-stroke: .16em var(--fondo-titulo);
  paint-order: stroke fill;
}

.titulo__grande {
  font-family: var(--letra-display);
  font-weight: 400;
  font-size: clamp(3.9rem, 12vw, 9.5rem);
  line-height: .86;
  text-transform: uppercase;
  color: var(--fucsia);
  letter-spacing: -.005em;
}

.titulo--claro { --fondo-titulo: var(--uva); }
.titulo--claro .titulo__script { color: #fff; }
.titulo--claro .titulo__grande { color: var(--amarillo); }

.titulo--sobre-fucsia { --fondo-titulo: var(--fucsia); }
.titulo--sobre-fucsia .titulo__script { color: var(--tinta); }
.titulo--sobre-fucsia .titulo__grande {
  color: #fff;
  text-shadow: 5px 5px 0 var(--tinta);
}

/* ---------- Trabajos ---------- */

.trabajos {
  background: var(--crema);
  padding-block: clamp(5.5rem, 11vw, 9rem) clamp(4.5rem, 9vw, 7.5rem);
}

.trabajos__intro {
  display: grid;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.trabajos__texto {
  max-width: 30rem;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  font-weight: 600;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .trabajos__intro { grid-template-columns: auto 1fr; gap: 3rem; }
  .trabajos__texto { justify-self: end; padding-bottom: .9rem; }
}

.polaroids {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.6vw, 2.25rem) clamp(.9rem, 2.2vw, 2rem);
}

@media (min-width: 700px) { .polaroids { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .polaroids { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.polaroid {
  --giro: -2deg;
  position: relative;
  background: #fff;
  padding: .6rem .6rem 0;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(42, 27, 92, .08), 0 14px 30px -12px rgba(42, 27, 92, .35);
  transform: rotate(var(--giro));
  transition: transform var(--medio) var(--rebote), box-shadow var(--medio);
}

.polaroid:nth-child(2) { --giro: 1.6deg; }
.polaroid:nth-child(3) { --giro: -1deg; }
.polaroid:nth-child(4) { --giro: 2.4deg; }
.polaroid:nth-child(5) { --giro: 2deg; }
.polaroid:nth-child(6) { --giro: -2.2deg; }
.polaroid:nth-child(7) { --giro: 1deg; }
.polaroid:nth-child(8) { --giro: -1.6deg; }

/* Cintita adhesiva arriba */
.polaroid::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 34%;
  height: 24px;
  background: color-mix(in srgb, var(--cinta, var(--lavanda)) 78%, transparent);
  transform: translateX(-50%) rotate(-4deg);
  border-radius: 2px;
}
.polaroid:nth-child(3n+2)::before { --cinta: var(--turquesa); transform: translateX(-50%) rotate(3deg); }
.polaroid:nth-child(3n)::before { --cinta: var(--rosa); }

.polaroid img {
  width: 100%;
  aspect-ratio: 31 / 38;
  object-fit: cover;
  border-radius: 2px;
  background: var(--rosa-claro);
}

.polaroid p {
  padding: .7rem .25rem .95rem;
  font-weight: 800;
  font-size: clamp(.86rem, 1.3vw, .98rem);
  line-height: 1.3;
  text-align: center;
}

@media (hover: hover) {
  .polaroid:hover {
    transform: rotate(0) translateY(-6px) scale(1.025);
    box-shadow: 0 1px 0 rgba(42, 27, 92, .08), 0 24px 40px -14px rgba(42, 27, 92, .45);
  }
}

.enlace-instagram {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .6rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: .85rem 1.5rem;
  min-height: 54px;
  background: #fff;
  border: var(--borde);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--fucsia);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--rapido) var(--suave), box-shadow var(--rapido) var(--suave);
}
.enlace-instagram:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--fucsia); }
.enlace-instagram .icono { color: var(--fucsia); }

/* ---------- Cómo funciona ---------- */

.pasos {
  background: var(--uva);
  color: #fff;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.pasos :focus-visible { outline-color: var(--amarillo); }

.pasos__lista {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 2rem;
}

@media (min-width: 640px) { .pasos__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .pasos__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.paso {
  border-top: 3px dashed color-mix(in srgb, var(--amarillo) 70%, transparent);
  padding-top: 1.4rem;
}

.paso__numero {
  display: block;
  font-family: var(--letra-display);
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  line-height: .85;
  color: var(--amarillo);
  margin-bottom: .9rem;
}

.paso h3 {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .45rem;
}

.paso p {
  color: var(--texto-sobre-uva);
  font-weight: 600;
  max-width: 22rem;
}

/* ---------- Reserva ---------- */

.reserva {
  position: relative;
  background: var(--fucsia);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  overflow: clip; /* recorta las flores sin romper el boceto fijo (sticky) */
}

.reserva__bajada {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--tinta);
}

.reserva__grilla {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 980px) {
  .reserva__grilla {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 3.5vw, 3rem);
  }
  .boceto { position: sticky; top: 96px; }
}

.boceto {
  background: var(--amarillo);
  border: 4px solid var(--tinta);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--tinta);
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
}

.boceto__titulo {
  font-family: var(--letra-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.boceto__svg {
  width: 100%;
  height: auto;
  max-width: 420px;
  margin: .75rem auto .25rem;
  overflow: visible;
}

.boceto__detalle {
  font-weight: 900;
  font-size: 1.1rem;
  text-align: center;
}

.boceto__nota {
  margin-top: .35rem;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  color: var(--uva);
}

@media (max-width: 979px) {
  .boceto { display: grid; grid-template-columns: minmax(0, 1fr); }
  .boceto__svg { max-width: 300px; }
}

/* Partes del boceto (SVG generado por app.js) */
.b-marco { fill: var(--fucsia); stroke: var(--tinta); stroke-width: 3; }
.b-aro { fill: #fff; stroke: var(--tinta); stroke-width: 3; }
.b-ventana { fill: color-mix(in srgb, #fff 55%, var(--amarillo)); stroke: var(--tinta); stroke-width: 3; }
.b-texto {
  font-family: var(--letra-display);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.b-texto--marco { fill: var(--amarillo); }
.b-texto--aro { fill: var(--uva); }
.b-texto--vacio { opacity: .45; }
.b-ona { color: var(--fucsia); }
.b-flor-1 { fill: var(--lavanda); color: var(--uva); }
.b-flor-2 { fill: var(--rosa); color: var(--fucsia); }
.b-flor-3 { fill: #fff; color: var(--naranja); }
.b-flor-4 { fill: var(--violeta); color: var(--amarillo); }
.b-estrella { color: var(--turquesa); }
.b-brillo { color: var(--uva); }

/* Tarjeta del formulario */
.tarjeta-form {
  background: #fff;
  border: 4px solid var(--tinta);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--tinta);
  padding: clamp(1.25rem, 3.4vw, 2.75rem);
}

.grupo {
  border: 0;
  margin: 0 0 2.25rem;
  padding: 0;
  min-width: 0;
}

.grupo__titulo {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 0;
  margin-bottom: 1.4rem;
  font-family: var(--letra-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.grupo__titulo span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--fucsia);
  border: 3px solid var(--tinta);
  font-size: 1.1rem;
}

.campo {
  margin: 0 0 1.35rem;
  min-width: 0;
}

.campo > label,
.opciones > legend {
  display: block;
  margin-bottom: .45rem;
  padding: 0;
  font-weight: 800;
  font-size: 1.03rem;
}

.opcional { font-weight: 600; color: var(--uva); }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
textarea {
  width: 100%;
  min-height: 54px;
  padding: .8rem 1rem;
  border: var(--borde);
  border-radius: 14px;
  background: #fff;
  font-size: 1.06rem;
  transition: box-shadow var(--rapido), border-color var(--rapido), background-color var(--rapido);
}

input[type="date"] { cursor: pointer; }

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder { color: #8C80AE; }

input:hover,
textarea:hover { background: var(--crema); }

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--uva);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fucsia) 45%, transparent);
  background: #fff;
}

.campo__ayuda {
  margin-top: .4rem;
  font-size: .93rem;
  font-weight: 600;
  color: var(--uva);
}

.campo__estado {
  margin-top: .35rem;
  font-size: .95rem;
  font-weight: 800;
}
.campo__estado:empty { display: none; }
.campo__estado[data-tipo="ok"]::before {
  content: '';
  display: inline-block;
  width: .65rem;
  height: .65rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--turquesa);
  border: 2px solid var(--tinta);
  vertical-align: .05em;
}
.campo__estado[data-tipo="no"] { color: var(--error); }

.campo__error {
  margin-top: .4rem;
  font-size: .95rem;
  font-weight: 800;
  color: var(--error);
}
.campo__error:empty { display: none; }

.campo--error input,
.campo--error textarea {
  border-color: var(--error);
  background: var(--error-fondo);
}
.campo--error .opcion__cuerpo { border-color: var(--error); }

.campo-doble {
  display: grid;
  gap: 0 1rem;
}

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

/* Opciones con dibujo (forma y tamaño) */
.opciones {
  border: 0;
  padding: 0;
}

.opciones__grilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.opcion {
  position: relative;
  display: block;
  cursor: pointer;
}

.opcion input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.opcion__cuerpo {
  position: relative;
  display: grid;
  gap: .15rem;
  height: 100%;
  padding: 1rem 1rem 1.05rem;
  border: var(--borde);
  border-radius: 18px;
  background: #fff;
  transition: background-color var(--rapido), transform var(--medio) var(--rebote), box-shadow var(--medio) var(--suave);
}

.opcion__dibujo {
  width: 56px;
  height: 42px;
  margin-bottom: .45rem;
  color: var(--fucsia);
}

.opcion__nombre {
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.2;
}

.opcion__texto {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--uva);
}

.opcion:hover .opcion__cuerpo { background: var(--rosa-claro); }

.opcion input:checked + .opcion__cuerpo {
  background: var(--amarillo);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--tinta);
}
.opcion input:checked + .opcion__cuerpo .opcion__texto { color: var(--tinta); }

/* Tilde de "elegido" */
.opcion input:checked + .opcion__cuerpo::after {
  content: '';
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--tinta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBD70A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.opcion input:focus-visible + .opcion__cuerpo {
  outline: 3px solid var(--tinta);
  outline-offset: 4px;
}

/* Campo trampa */
.trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Resumen de errores */
.resumen-errores {
  margin-bottom: 2rem;
  padding: 1.1rem 1.25rem;
  border: 3px solid var(--error);
  border-radius: 18px;
  background: var(--error-fondo);
  color: var(--error);
}

.resumen-errores:focus-visible { outline-offset: 4px; }

.resumen-errores h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.12rem;
  font-weight: 900;
}

.resumen-errores ul {
  margin: .6rem 0 0;
  padding-left: 1.35rem;
  font-weight: 700;
}

.resumen-errores li + li { margin-top: .25rem; }

/* Enviar */
.boton--enviar {
  width: 100%;
  min-height: 62px;
  font-size: 1.2rem;
  background: var(--tinta);
  color: var(--amarillo);
}

.boton--enviar[aria-busy="true"] {
  cursor: progress;
  opacity: .85;
}
.boton--enviar[aria-busy="true"] .icono { animation: gira 1s linear infinite; }

.form__pie {
  margin-top: 1rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--uva);
}

.form__error-general {
  margin-top: .75rem;
  text-align: center;
  font-weight: 800;
  color: var(--error);
}
.form__error-general:empty { display: none; }

/* Reserva enviada */
.exito {
  text-align: center;
  padding: clamp(.5rem, 2vw, 1.5rem) 0;
}

.exito:focus { outline: none; }

.exito__ona {
  width: 128px;
  height: auto;
  margin: 0 auto 1rem;
  color: var(--fucsia);
}

.exito__titulo {
  font-family: var(--letra-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--fucsia);
  text-shadow: 3px 3px 0 var(--tinta);
}

.exito__texto {
  max-width: 30rem;
  margin: 1.1rem auto 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.exito__codigo {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--rosa-claro);
  font-weight: 700;
}

.exito__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .exito:not([hidden]) .exito__ona { animation: salta .7s var(--rebote) both; }
}

@keyframes salta {
  from { transform: translateY(24px) scale(.8); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Flores decorativas del fondo fucsia */
.reserva::before,
.reserva::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-30 -30 60 60'%3E%3Cg fill='%23ED8BB2'%3E%3Cellipse cy='-14' rx='10' ry='15'/%3E%3Cellipse cy='-14' rx='10' ry='15' transform='rotate(72)'/%3E%3Cellipse cy='-14' rx='10' ry='15' transform='rotate(144)'/%3E%3Cellipse cy='-14' rx='10' ry='15' transform='rotate(216)'/%3E%3Cellipse cy='-14' rx='10' ry='15' transform='rotate(288)'/%3E%3C/g%3E%3Ccircle r='7' fill='%23FBD70A'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.reserva > .contenedor { position: relative; z-index: 1; }
.reserva::before { top: -60px; right: -50px; transform: rotate(18deg); }
.reserva::after { bottom: -70px; left: -70px; width: 260px; height: 260px; transform: rotate(-10deg); }

/* ---------- Pie ---------- */

.pie {
  background: var(--tinta);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

.pie :focus-visible { outline-color: var(--amarillo); }

.pie__grilla {
  display: grid;
  gap: 1.75rem;
}

.pie__logo {
  max-width: 560px;
  color: var(--fucsia);
  fill: var(--amarillo);
}

.pie__texto {
  max-width: 28rem;
  font-weight: 600;
  color: var(--texto-sobre-uva);
}

.pie__enlaces {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
}

.pie__enlaces a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-weight: 800;
  color: var(--amarillo);
  text-decoration: none;
}
.pie__enlaces a:hover { text-decoration: underline; text-underline-offset: 4px; }

.pie__chico {
  padding-top: 1.5rem;
  border-top: 2px solid color-mix(in srgb, #fff 18%, transparent);
  font-size: .92rem;
  color: var(--lavanda);
}

@media (min-width: 900px) {
  .pie__grilla { grid-template-columns: 1.3fr 1fr; align-items: end; column-gap: 4rem; }
  .pie__logo { grid-column: 1 / -1; }
  .pie__enlaces { justify-content: flex-end; }
  .pie__chico { grid-column: 1 / -1; }
}

/* ---------- Botón flotante de WhatsApp ---------- */

.flotante {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 54px;
  padding: .7rem 1.2rem;
  border: var(--borde);
  border-radius: 999px;
  background: var(--amarillo);
  box-shadow: var(--sombra-dura);
  font-weight: 900;
  text-decoration: none;
  transition: transform var(--rapido) var(--suave), box-shadow var(--rapido) var(--suave);
}
.flotante:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--tinta); }

/* ---------- Aparición al hacer scroll (solo con JS y sin "reducir movimiento") ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .aparece {
    opacity: 0;
    translate: 0 28px;
    transition: opacity .6s var(--suave), translate .7s var(--suave);
    transition-delay: var(--demora, 0ms);
  }
  html.js .aparece.visible {
    opacity: 1;
    translate: 0 0;
  }
}

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

/* ---------- Página no encontrada ---------- */

.pagina-404 { background: var(--amarillo); }
.pagina-404 .titulo { --fondo-titulo: var(--amarillo); }

.no-encontrada {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding-block: 3rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.no-encontrada .titulo { align-items: center; }
.no-encontrada__ona { width: 150px; color: var(--fucsia); }
