/* Versión tropical: atardecer en la costa, palmas, montañas, oro y brillo.
   Idea: un cartel de playa de los 50 con el personaje como estrella; los pasos son fichas de dominó
   y la compra es "de noche en el malecón" con bombillitos. Se carga después de estilo.css. */
:root {
  --coral: #ff6b4a;
  --mango: #ffb627;
  --turquesa: #12b5b0;
  --rosa: #ff4f8b;
  --selva: #1f7f55;
  --noche: #0b3d3a;
  --arena: #fff3dc;
  --oro-1: #fff1a8;
  --oro-2: #f5c542;
  --oro-3: #b8860b;
  --tinta: #1c2b2a;
  --gris: #4f6563;
  --linea: #e6d6b8;
  --acento: var(--coral);
  --acento-osc: #e0502f;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --script: "Pacifico", "Brush Script MT", cursive;
  --radio: 26px;
}
html:has(body.fiesta), body.fiesta { overflow-x: clip; }
body.fiesta { font-family: "Nunito", "Segoe UI", system-ui, sans-serif; background: var(--arena); color: var(--tinta); }
.fiesta h1, .fiesta h2, .fiesta h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0; text-wrap: balance; }

/* --- Barra */
.fiesta .barra { background: rgba(255, 243, 220, .82); border-bottom: 0; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.fiesta .marca-txt { font-family: var(--display); font-weight: 400; font-size: 1.15rem; gap: .35rem; }
.marca-oro {
  background: linear-gradient(180deg, var(--oro-1), var(--oro-2) 45%, var(--oro-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .6px #8a6208; filter: drop-shadow(0 1px 0 #6b4a05);
}
.marca-resto { color: var(--noche); }
.fiesta .barra nav a { font-weight: 800; color: var(--noche); }
.fiesta .idioma { border: 2px solid var(--noche); background: transparent; font-weight: 800; }
@media (max-width: 520px) { .marca-resto { display: none; } }

/* --- Escena de portada */
.escena {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #ff9a5a 0%, #ffbd6b 30%, #ffd58f 52%, #8fe3d6 78%, #27c3c0 100%);
  padding: 3rem 1.2rem 0;
}
.sol {
  position: absolute; z-index: -3; width: min(560px, 90vw); aspect-ratio: 1; border-radius: 50%;
  left: 50%; top: 6%; transform: translateX(-10%);
  background:
    repeating-linear-gradient(180deg, transparent 0 58%, rgba(255,170,90,.9) 58% 61%, transparent 61% 66%, rgba(255,170,90,.9) 66% 70%, transparent 70% 76%, rgba(255,170,90,.9) 76% 82%, transparent 82%),
    radial-gradient(circle at 50% 45%, #fff6c8, #ffd36b 55%, #ff9b4a 100%);
  box-shadow: 0 0 120px 40px rgba(255, 214, 120, .55);
}
.montes { position: absolute; z-index: -2; left: 0; bottom: 70px; width: 100%; height: 42%; }
.mar { position: absolute; z-index: -1; left: 0; bottom: 0; width: 100%; height: 110px; }
.palma { position: absolute; color: #16764b; transform-origin: 52% 100%; animation: mecer 6s ease-in-out infinite alternate; }
.p1 { width: 210px; height: 315px; left: -40px; bottom: 60px; z-index: -1; }
.p2 { width: 150px; height: 225px; left: 120px; bottom: 80px; z-index: -2; color: #1a8a59; animation-delay: -2s; }
.p3 { width: 240px; height: 360px; right: -60px; bottom: 50px; z-index: -1; transform: scaleX(-1); animation-name: mecer-espejo; }
@keyframes mecer { from { rotate: -2deg; } to { rotate: 3deg; } }
@keyframes mecer-espejo { from { rotate: 2deg; } to { rotate: -3deg; } }

.escena-dentro {
  max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 1rem;
}
.texto-portada { padding-bottom: 8.5rem; align-self: center; }
.cinta {
  display: inline-block; margin: 0 0 1rem; padding: .45rem 1.1rem; rotate: -3deg;
  background: var(--rosa); color: #fff; font-weight: 900; font-size: 1rem; border-radius: 6px;
  box-shadow: 4px 4px 0 var(--noche);
}
.escena h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: .98; margin: 0; color: #fff;
  text-shadow: 0 2px 0 var(--noche), 3px 5px 0 var(--noche), 6px 9px 0 rgba(11,61,58,.35);
  -webkit-text-stroke: 2px var(--noche); paint-order: stroke fill;
}
.script {
  display: block; font-family: var(--script); font-size: .78em; color: var(--mango); margin: .2em 0 .15em; rotate: -4deg; line-height: 1.25;
  -webkit-text-stroke: 0; text-shadow: 3px 3px 0 var(--noche);
}
.escena .sub { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; color: var(--noche); max-width: 32ch; margin: 1.4rem 0 0; }
.escena .ctas { justify-content: flex-start; }
.escena .enlace-flecha { color: var(--noche); font-weight: 800; }

.personaje { position: relative; justify-self: center; width: min(390px, 82vw); }
.personaje img { position: relative; width: 100%; filter: drop-shadow(0 24px 30px rgba(11,61,58,.35)); }
.aureola {
  position: absolute; inset: 8% -6% 20% -6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,241,168,.95), rgba(245,197,66,.45) 55%, transparent 100%);
  animation: latir 3.2s ease-in-out infinite;
}
@keyframes latir { 50% { scale: 1.06; opacity: .8; } }
.b { position: absolute; color: #fff7c2; filter: drop-shadow(0 0 6px #ffe27a); animation: chispa 2.4s ease-in-out infinite; }
.b1 { width: 34px; height: 34px; left: 38%; top: 26%; }
.b2 { width: 22px; height: 22px; left: 62%; top: 33%; animation-delay: -.8s; }
.b3 { width: 28px; height: 28px; left: 8%; top: 12%; animation-delay: -1.4s; }
.b4 { width: 18px; height: 18px; left: 52%; top: 22%; animation-delay: -2s; }
@keyframes chispa { 0%, 100% { scale: .3; opacity: 0; rotate: 0deg; } 50% { scale: 1; opacity: 1; rotate: 45deg; } }

.medalla {
  position: absolute; right: -4%; top: 40%; width: 128px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; rotate: 12deg;
  background: radial-gradient(circle at 35% 30%, var(--oro-1), var(--oro-2) 45%, var(--oro-3));
  border: 4px dashed rgba(107,74,5,.55); outline: 4px solid var(--oro-2); outline-offset: 2px;
  box-shadow: 0 10px 24px rgba(107,74,5,.45); color: #4a3303;
  animation: girar 9s ease-in-out infinite alternate;
}
.medalla b { font-family: var(--display); font-weight: 400; font-size: 2.5rem; line-height: 1; }
.medalla span { font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
@keyframes girar { to { rotate: -6deg; } }

@media (max-width: 860px) {
  .escena-dentro { grid-template-columns: 1fr; text-align: center; }
  .texto-portada { padding-bottom: 0; }
  .escena .sub { margin-inline: auto; }
  .escena .ctas { justify-content: center; }
  .personaje { width: min(330px, 74vw); margin-top: 1rem; }
  .medalla { width: 104px; right: -8%; }
  .medalla b { font-size: 2rem; }
  .p2 { display: none; }
}

/* --- Botón dorado con brillo que pasa */
.boton-oro {
  position: relative; overflow: hidden; color: #3d2a02; font-weight: 900;
  background: linear-gradient(180deg, var(--oro-1), var(--oro-2) 50%, #d9a520);
  box-shadow: 0 4px 0 var(--oro-3), 0 10px 22px rgba(184,134,11,.4);
}
.boton-oro:hover { background: linear-gradient(180deg, #fff6c4, #f7cf5a 50%, #e0ad2a); }
.boton-oro::after {
  content: ""; position: absolute; inset: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  animation: brillar 3s ease-in-out infinite;
}
@keyframes brillar { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* --- Franja que corre */
.franja {
  background: repeating-linear-gradient(90deg, var(--mango) 0 60px, #ffc94d 60px 120px);
  border-block: 4px solid var(--noche); overflow: hidden; rotate: -1.2deg; margin: -14px -10px 0; position: relative; z-index: 2;
}
.corre { display: flex; gap: 1.2rem; width: max-content; padding: .7rem 0; animation: correr 26s linear infinite; }
.corre span { font-family: var(--display); font-size: 1.35rem; color: var(--noche); white-space: nowrap; }
.corre i { font-style: normal; color: var(--rosa); font-size: 1.2rem; }
@keyframes correr { to { transform: translateX(-50%); } }

/* --- Ventajas como calcomanías */
.fiesta .datos { margin-top: 3.2rem; gap: 1.4rem; }
.fiesta .dato { border-radius: 30px; color: #fff; border: 3px solid var(--noche); box-shadow: 6px 6px 0 var(--noche); padding: 1.8rem 1.4rem; }
.fiesta .dato:nth-child(1) { rotate: -1.5deg; }
.fiesta .dato:nth-child(3) { rotate: 1.5deg; }
.c-coral { background: var(--coral); }
.c-turquesa { background: var(--turquesa); }
.c-mango { background: var(--mango); color: var(--noche) !important; }
.fiesta .dato b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.fiesta .dato span { color: inherit; opacity: .92; font-weight: 700; }
.fiesta .dato .ico { color: var(--noche); width: 52px; height: 52px; }
.ico-coco { width: 58px; height: 58px; display: block; margin: 0 auto .6rem; }
.fiesta .dato .ico-grande { opacity: 1; font-weight: 400; display: block; font-family: var(--display); font-size: 3.2rem; line-height: 1; margin-bottom: .4rem; text-shadow: 3px 3px 0 var(--noche); }
@media (max-width: 720px) { .fiesta .dato { rotate: 0deg !important; } }

/* --- Secciones */
.fiesta .seccion { position: relative; overflow: hidden; }
.fiesta .seccion h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--noche); }
.fiesta .seccion .bajada { color: var(--gris); font-weight: 700; }
.seccion.arena { background: linear-gradient(180deg, #ffe9bf, #ffdca0); }
.p4 { width: 260px; height: 390px; right: -50px; bottom: -30px; opacity: .18; color: var(--selva); }

/* Pasos: postales con ficha de dominó */
.paso.postal {
  background: var(--g) !important; color: #fff; border: 3px solid var(--noche); box-shadow: 6px 6px 0 var(--noche) !important;
  border-radius: 20px; padding-top: 1.6rem;
}
.paso.postal h3 { font-size: 1.7rem; margin-top: .2rem; }
.paso.postal p { color: #fff; font-weight: 700; opacity: .95; }
.paso.postal::before {
  content: ""; width: 44px; height: 78px; border-radius: 8px; margin-bottom: .9rem;
  background-color: #fffdf6; border: 2px solid var(--noche); box-shadow: 3px 3px 0 rgba(11,61,58,.5);
  background-repeat: no-repeat;
  --pip: radial-gradient(circle, var(--noche) 4px, transparent 4.5px);
}
.paso.postal:nth-child(1)::before { background-image: var(--pip), linear-gradient(var(--noche), var(--noche)); background-size: 14px 14px, 30px 2px; background-position: 13px 13px, 5px 37px; }
.paso.postal:nth-child(2)::before {
  background-image: var(--pip), var(--pip), linear-gradient(var(--noche), var(--noche)), var(--pip), var(--pip);
  background-size: 14px 14px, 14px 14px, 30px 2px, 14px 14px, 14px 14px;
  background-position: 4px 4px, 22px 18px, 5px 37px, 4px 44px, 22px 58px;
}
.paso.postal:nth-child(3)::before {
  background-image: var(--pip), var(--pip), var(--pip), linear-gradient(var(--noche), var(--noche)), var(--pip), var(--pip), var(--pip);
  background-size: 14px 14px, 14px 14px, 14px 14px, 30px 2px, 14px 14px, 14px 14px, 14px 14px;
  background-position: 3px 3px, 13px 13px, 23px 21px, 5px 37px, 3px 43px, 13px 51px, 23px 59px;
}
.paso.postal:nth-child(2) { rotate: 1deg; translate: 0 10px; }

.fiesta .llevar .ico { color: var(--coral); }
.fiesta .llevar b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--noche); }
.fiesta .llevar span { font-weight: 700; }

/* --- Compra: de noche en el malecón, con bombillitos */
#comprar.seccion {
  background:
    radial-gradient(circle, #ffe680 0 3px, rgba(255,230,128,.35) 4px, transparent 9px) 0 18px / 46px 40px repeat-x,
    radial-gradient(ellipse at 50% 120%, #135e57, var(--noche) 65%);
}
#comprar h2 { color: #fff; text-shadow: 3px 3px 0 #04211f; }
#comprar .bajada { color: #a8e6dd; }
.fiesta .resumen, .fiesta .formulario { border-radius: var(--radio); border: 3px solid #04211f; box-shadow: 8px 8px 0 #04211f; }
.fiesta .resumen { background: linear-gradient(180deg, #fff7e3, #ffe7b5); }
.resumen-foto { width: 140px; margin: -.4rem auto .6rem; filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); }
.fiesta .resumen .nombre-prod { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.fiesta .cantidad output { font-family: var(--display); font-weight: 400; color: var(--coral); }
.fiesta .cantidad button { border: 3px solid var(--noche); font-weight: 900; }
.fiesta .total b { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--noche); }
.fiesta .formulario h3 { font-size: 1.6rem; color: var(--noche); }
.fiesta input { border: 2px solid var(--linea); border-radius: 14px; background: #fffdf8; }
.fiesta input:focus { border-color: var(--turquesa); box-shadow: 0 0 0 4px rgba(18,181,176,.2); }

/* --- Preguntas */
.fiesta .preguntas details { background: #fff; border: 3px solid var(--noche); border-radius: 18px; padding: 1rem 1.2rem; margin-bottom: .8rem; box-shadow: 4px 4px 0 var(--noche); }
.fiesta .preguntas summary { font-weight: 900; }
.fiesta .preguntas summary::after { color: var(--coral); font-weight: 900; }

/* --- Pie */
.pie-fiesta { position: relative; background: var(--noche); color: #a8e6dd; border-top: 0; padding-top: 3.2rem; }
.mar-pie { position: absolute; top: -40px; left: 0; width: 100%; height: 42px; }
.pie-marca { font-family: var(--display); font-size: 1.5rem; color: var(--oro-2); margin: 0 0 .3rem; }
.pie-fiesta a { color: #fff; }

.fiesta a:focus-visible, .fiesta button:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .palma, .aureola, .b, .medalla, .corre, .boton-oro::after { animation: none !important; }
  .b { opacity: 1; }
}
