/* ============ Base: paleta, tipografía, fondo, botones ============ */
:root {
  --vino-profundo: #24060e;
  --vino: #4a0f1c;
  --vino-medio: #6b1626;
  --rojo: #b3243a;
  --rojo-oscuro: #8f1d2e;
  --crema: #f7eee2;
  --crema-2: #efe1cf;
  --rosa: #d8a3a4;
  --rosa-claro: #f0d6d3;
  --dorado: #c9a45c;
  --dorado-claro: #ead39d;
  --tinta: #3a0d17;
  --tinta-suave: #6d3a44;

  --coral: #e0735c;
  --turquesa: #2f8f8c;
  --ocre: #d9a441;
  --buganvilla: #c0436e;
  --mar: #1d5a73;

  --fuente-titulo: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Hoefler Text", "Baskerville", Georgia, "Times New Roman", serif;
  --fuente-guion: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Lucida Handwriting", "Brush Script MT", cursive;
  --fuente-texto: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radio: 10px;
  --sombra: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --seguro-arriba: env(safe-area-inset-top, 0px);
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--fuente-texto);
  color: var(--crema);
  line-height: 1.6;
  background-color: var(--vino-profundo);
  background-image:
    radial-gradient(rgba(234, 211, 157, .10) 1px, transparent 1.2px),
    radial-gradient(1200px 700px at 50% -10%, rgba(179, 36, 58, .35), transparent 70%),
    radial-gradient(900px 600px at 100% 100%, rgba(216, 163, 164, .10), transparent 70%),
    linear-gradient(180deg, #3a0a16 0%, var(--vino-profundo) 60%);
  background-size: 22px 22px, auto, auto, auto;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  transition: background-color 1.2s ease;
}

/* Tema caribeño desde el 22 de diciembre: atardecer sobre el vino */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(246, 170, 110, .30), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(47, 143, 140, .22), transparent 70%),
    radial-gradient(700px 500px at 100% 90%, rgba(192, 67, 110, .22), transparent 70%);
}
body.tema-caribe::before { opacity: 1; }

body.sin-scroll { overflow: hidden; }

.ambiente {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bienvenida, .calendario { position: relative; z-index: 2; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 400; margin: 0; }

.sobretitulo {
  margin: 0 0 .6rem;
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--dorado);
  font-weight: 600;
}

.guion { font-family: var(--fuente-guion); font-weight: 400; }

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

/* ---------- Botones ---------- */
.boton {
  font: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 0; cursor: pointer;
  border-radius: 999px;
  padding: .95rem 1.8rem;
  min-height: 48px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.boton:active { transform: scale(.97); }
.boton:focus-visible, .puerta:focus-visible, .boton-reclamar:focus-visible, .hoja__cerrar:focus-visible {
  outline: 2px solid var(--dorado-claro); outline-offset: 3px;
}

.boton--principal {
  color: var(--vino-profundo);
  font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(135deg, #f3e2b6, var(--dorado) 55%, #b48a43);
  box-shadow: 0 10px 30px -8px rgba(201, 164, 92, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.boton--principal:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(201, 164, 92, .7); }

.boton--dorado {
  color: var(--vino-profundo); font-weight: 600;
  background: linear-gradient(135deg, #f3e2b6, var(--dorado));
}

.boton--linea {
  color: var(--vino);
  background: transparent;
  border: 1px solid rgba(74, 15, 28, .35);
  font-weight: 500;
}
.boton--linea:hover { background: rgba(74, 15, 28, .06); }

.boton--texto {
  background: none; color: var(--rosa); padding: .6rem 1rem; min-height: 44px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(216, 163, 164, .4);
}

.boton--cupones {
  color: var(--crema);
  background: rgba(247, 238, 226, .06);
  border: 1px solid rgba(234, 211, 157, .35);
  padding: .7rem 1.2rem;
  position: relative;
}
.boton--cupones:hover { background: rgba(247, 238, 226, .12); }

.insignia {
  display: inline-grid; place-items: center;
  min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem;
  border-radius: 999px;
  background: var(--rojo); color: #fff;
  font-size: .72rem; font-weight: 700;
}

/* ---------- Destellos ---------- */
.destellos { position: fixed; z-index: 60; width: 0; height: 0; pointer-events: none; }
.destellos span {
  position: absolute; left: -3px; top: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--dorado-claro);
  box-shadow: 0 0 10px rgba(234, 211, 157, .9);
  animation: destello 1.3s cubic-bezier(.2, .7, .3, 1) forwards;
}
.destellos span.destello-corazon {
  width: 9px; height: 9px; border-radius: 0;
  background: var(--rosa);
  box-shadow: none;
  clip-path: path("M4.5 8.5S0 5.6 0 2.6A2.4 2.4 0 0 1 4.5 1.4 2.4 2.4 0 0 1 9 2.6C9 5.6 4.5 8.5 4.5 8.5z");
}
.destellos--navidad span { width: 8px; height: 8px; }
@keyframes destello {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

.sin-js { position: relative; z-index: 5; text-align: center; padding: 3rem 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
