/* ==========================================================================
   Invitación Sorpresa #34 — Marco Antonio Arancibia ("Marquito")
   Paleta Kimetsu no Yaiba: Negro Carbón, Rojo Carmesí, Azul Profundo y Oro
   Mobile-First + Responsive Desktop
   ========================================================================== */

:root {
  --bg-obsidian: #07080d;
  --bg-charcoal: #10131c;
  --bg-surface: rgba(16, 20, 31, 0.86);
  --bg-surface-strong: rgba(12, 15, 24, 0.94);

  --crimson: #c81d25;
  --crimson-bright: #e63946;
  --crimson-glow: rgba(230, 57, 70, 0.42);

  --deep-blue: #0e2447;
  --royal-blue: #1d4ed8;
  --water-cyan: #38bdf8;
  --wisteria: #9d7fe8;

  --gold: #e0a952;
  --gold-bright: #f7d07a;
  --flame-amber: #f97316;

  --text-main: #f5f2eb;
  --text-muted: #b7bfd1;
  --text-dim: #7f89a1;

  --border-gold: rgba(224, 169, 82, 0.28);
  --border-crimson: rgba(230, 57, 70, 0.42);
  --border-subtle: rgba(255, 255, 255, 0.09);

  --font-display: 'Cinzel', Georgia, serif;
  --font-jp: 'Noto Serif JP', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 22px 54px rgba(0, 0, 0, 0.58);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 29, 37, 0.14), transparent 45%),
    radial-gradient(circle at 88% 24%, rgba(29, 78, 216, 0.16), transparent 48%),
    radial-gradient(circle at 50% 82%, rgba(157, 127, 232, 0.12), transparent 52%),
    var(--bg-obsidian);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
}

body.is-sealed {
  overflow: hidden;
  height: 100dvh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Canvas Atmosférico de Partículas
   ========================================================================== */
#atmosphere-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   PANTALLA DE BIENVENIDA: SOBRE / CARTA KASUGAI
   ========================================================================== */
.envelope-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: var(--bg-obsidian);
  overflow-y: auto;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.85s;
}

.envelope-gate.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 13, 0.78) 0%, rgba(11, 16, 30, 0.72) 50%, rgba(7, 8, 13, 0.94) 100%),
    url('/assets/bg/washi-asanoha-texture.webp') center / cover no-repeat;
  z-index: 0;
}

.katana-slash-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
}

.envelope-gate.is-opening .katana-slash-fx {
  animation: katanaSlash 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes katanaSlash {
  0% {
    opacity: 0;
    background: linear-gradient(112deg, transparent 42%, rgba(255,255,255,0) 49%, rgba(56,189,248,0.9) 50%, rgba(247,208,122,0.95) 51%, transparent 56%);
    transform: translateX(-110%) skewX(-18deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background: linear-gradient(112deg, transparent 42%, rgba(255,255,255,0) 49%, rgba(230,57,70,0.9) 50%, rgba(247,208,122,0.95) 51%, transparent 56%);
    transform: translateX(110%) skewX(-18deg);
  }
}

.envelope-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.kasugai-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.kasugai-crow-svg {
  width: 78px;
  height: auto;
  color: #d6dae6;
  filter: drop-shadow(0 0 12px rgba(224, 169, 82, 0.32));
  animation: crowHover 3.8s ease-in-out infinite;
}

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

.kasugai-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.jp-inline {
  font-family: var(--font-jp);
  color: var(--crimson-bright);
  margin-left: 4px;
}

/* Sobre Japonés 3D */
.japanese-envelope {
  position: relative;
  width: min(330px, 88vw);
  height: 215px;
  perspective: 1200px;
  margin: 4px 0;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.78));
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-gate.is-opening .japanese-envelope {
  transform: scale(1.06) translateY(-10px);
}

.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(155deg, #161a28, #0c0e15);
  border: 1px solid rgba(224, 169, 82, 0.42);
}

.envelope-letter-preview {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1b1522 0%, #101424 100%);
  border: 1px solid rgba(247, 208, 122, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 2;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.envelope-gate.is-opening .envelope-letter-preview {
  transform: translateY(-68px);
}

.letter-inner-frame {
  border: 1px dashed rgba(224, 169, 82, 0.48);
  padding: 16px 12px;
  width: 100%;
  border-radius: 6px;
}

.letter-kanji {
  display: block;
  font-family: var(--font-jp);
  font-size: 1.25rem;
  color: var(--gold-bright);
  letter-spacing: 0.18em;
}

.letter-preview-text {
  margin: 6px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 700;
}

.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(16, 28, 56, 0.96) 0%, rgba(13, 15, 24, 0.98) 55%, rgba(65, 14, 22, 0.92) 100%);
  clip-path: polygon(0 28%, 50% 62%, 100% 28%, 100% 100%, 0 100%);
  border-bottom: 2px solid rgba(224, 169, 82, 0.45);
  overflow: hidden;
}

.envelope-asanoha-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: url('/assets/bg/washi-asanoha-texture.webp');
  background-size: cover;
}

.envelope-gold-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.65;
}
.envelope-gold-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.envelope-gold-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.envelope-gold-corner.tl, .envelope-gold-corner.tr { display: none; }

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64%;
  z-index: 4;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.32, 0, 0.2, 1);
}

.envelope-flap-lining {
  width: 100%;
  height: 100%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #1b2440 0%, #111524 68%, #2a1019 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top: 1px solid rgba(224, 169, 82, 0.55);
  box-shadow: inset 0 -10px 24px rgba(0, 0, 0, 0.55);
}

.envelope-gate.is-opening .envelope-flap {
  transform: rotateX(-178deg);
  z-index: 1;
}

.wax-seal {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #e63946 0%, #9b111e 65%, #5c070f 100%);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(230, 57, 70, 0.45),
    inset 0 2px 5px rgba(255, 195, 195, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.envelope-gate.is-opening .wax-seal {
  transform: translate(-50%, -50%) scale(1.38) rotate(24deg);
  opacity: 0;
}

.wax-seal-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 208, 122, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wax-kanji {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

.envelope-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.secret-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(200, 29, 37, 0.16);
  border: 1px solid rgba(230, 57, 70, 0.45);
  color: #ffb3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 10px var(--crimson-bright);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

.envelope-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 5vw, 1.75rem);
  line-height: 1.25;
  color: var(--text-main);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
}

.envelope-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 38ch;
}

.btn-katana-primary {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  width: 100%;
  max-width: 320px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-bright);
  background: linear-gradient(135deg, #b81620 0%, #830d15 55%, #16284d 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(200, 29, 37, 0.45), 0 0 0 1px rgba(224, 169, 82, 0.3);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-katana-primary:hover,
.btn-katana-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(230, 57, 70, 0.6), 0 0 20px rgba(224, 169, 82, 0.35);
  outline: none;
}

.btn-katana-primary:active {
  transform: scale(0.98);
}

.btn-katana-shine {
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-22deg);
  animation: buttonShine 3.4s infinite;
}

@keyframes buttonShine {
  0%, 55% { left: -80%; }
  100% { left: 150%; }
}

.audio-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   ÚNICO BOTÓN FLOTANTE DE AUDIO (PLAY / PAUSE)
   ========================================================================== */
.audio-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 900;
  height: 48px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(224, 169, 82, 0.65);
  background: rgba(12, 15, 24, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(200, 29, 37, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}

.audio-fab:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
}

.audio-fab:active {
  transform: scale(0.95);
}

.audio-fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(230, 57, 70, 0.45);
  opacity: 0;
  pointer-events: none;
}

.audio-fab.is-playing .audio-fab-ring {
  animation: audioRing 2.2s ease-out infinite;
}

@keyframes audioRing {
  0% { transform: scale(0.96); opacity: 0.7; }
  100% { transform: scale(1.16); opacity: 0; }
}

.audio-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 15px;
}

.audio-eq span {
  width: 3px;
  border-radius: 2px;
  background: var(--gold-bright);
  height: 5px;
  transition: height 0.2s ease;
}

.audio-fab.is-playing .audio-eq span:nth-child(1) { animation: eqBar 0.75s ease-in-out infinite 0.0s; }
.audio-fab.is-playing .audio-eq span:nth-child(2) { animation: eqBar 0.75s ease-in-out infinite 0.18s; }
.audio-fab.is-playing .audio-eq span:nth-child(3) { animation: eqBar 0.75s ease-in-out infinite 0.34s; }
.audio-fab.is-playing .audio-eq span:nth-child(4) { animation: eqBar 0.75s ease-in-out infinite 0.12s; }

@keyframes eqBar {
  0%, 100% { height: 4px; background: var(--gold-bright); }
  50% { height: 15px; background: var(--crimson-bright); }
}

.audio-fab .icon-play {
  display: none;
  width: 16px;
  height: 16px;
  color: var(--gold-bright);
}

.audio-fab.is-paused .audio-eq {
  display: none;
}

.audio-fab.is-paused .icon-play {
  display: block;
}

/* ==========================================================================
   LAYOUT GENERAL Y COMPONENTES COMUNES
   ========================================================================== */
.invitation-content {
  position: relative;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.invitation-content.is-revealed {
  opacity: 1;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  position: relative;
  padding: 58px 0;
}

.section > .container {
  position: relative;
  z-index: 2;
}

.has-parallax-bg {
  overflow: clip;
}

.parallax-mask-frame {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.parallax-mask-frame.is-hero-mask {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
}

.ambient-kanji {
  position: absolute;
  font-family: var(--font-jp);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(224, 169, 82, 0.045);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: kanjiDrift 11s ease-in-out infinite;
}

.ambient-kanji.is-left {
  top: 10%;
  left: -10px;
}

.ambient-kanji.is-right {
  bottom: 8%;
  right: -8px;
  animation-delay: -5.5s;
}

@keyframes kanjiDrift {
  0%, 100% { transform: translateY(0px) rotate(-2deg); opacity: 0.7; }
  50% { transform: translateY(-14px) rotate(2deg); opacity: 1; }
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5.2vw, 2.55rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fffdf9 20%, #e0c287 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  margin: 10px auto 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Botones reutilizables */
.btn-crimson,
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-crimson {
  border: 1px solid rgba(247, 208, 122, 0.45);
  background: linear-gradient(135deg, #d11f29 0%, #8f1119 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(200, 29, 37, 0.35);
}

.btn-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(230, 57, 70, 0.5);
}

.btn-crimson:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-gold {
  border: 1px solid rgba(224, 169, 82, 0.55);
  background: rgba(14, 24, 46, 0.72);
  color: var(--gold-bright);
}

.btn-outline-gold:hover {
  transform: translateY(-2px);
  background: rgba(22, 37, 70, 0.9);
}

.btn-full {
  width: 100%;
}

.btn-copy-mini {
  border: 1px solid rgba(224, 169, 82, 0.42);
  background: rgba(224, 169, 82, 0.12);
  color: var(--gold-bright);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: background 0.2s ease;
}

.btn-copy-mini:hover {
  background: rgba(224, 169, 82, 0.24);
}

/* Scroll reveal suave y escalonado */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.time-card,
.timeline-item,
.swatch-item,
.stat-pill {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.reveal:not(.is-visible) .time-card,
.reveal:not(.is-visible) .timeline-item,
.reveal:not(.is-visible) .swatch-item,
.reveal:not(.is-visible) .stat-pill {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible .time-card:nth-child(1),
.reveal.is-visible .timeline-item:nth-child(1),
.reveal.is-visible .swatch-item:nth-child(1),
.reveal.is-visible .stat-pill:nth-child(1) { transition-delay: 0.08s; }

.reveal.is-visible .time-card:nth-child(2),
.reveal.is-visible .timeline-item:nth-child(2),
.reveal.is-visible .swatch-item:nth-child(2),
.reveal.is-visible .stat-pill:nth-child(2) { transition-delay: 0.18s; }

.reveal.is-visible .venue-place-card,
.reveal.is-visible .timeline-item:nth-child(3),
.reveal.is-visible .swatch-item:nth-child(3),
.reveal.is-visible .stat-pill:nth-child(3) { transition-delay: 0.28s; }

.reveal.is-visible .timeline-item:nth-child(4) { transition-delay: 0.38s; }

/* ==========================================================================
   1. HERO / PORTADA
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 96dvh;
  padding: max(22px, env(safe-area-inset-top)) 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: clip;
}

.hero-bg-layer {
  position: absolute;
  inset: -14% 0;
  height: 128%;
  z-index: 0;
  will-change: transform;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.64;
  filter: saturate(1.14) contrast(1.06);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(29, 78, 216, 0.24), transparent 54%),
    radial-gradient(circle at 50% 62%, rgba(200, 29, 37, 0.2), transparent 52%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.68) 0%, rgba(7, 8, 13, 0.28) 40%, rgba(7, 8, 13, 0.82) 86%, transparent 100%);
}

.hero-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* Aviso de Fiesta Sorpresa (Muy visible en portada) */
.surprise-alert {
  position: relative;
  width: 100%;
  max-width: 580px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(230, 57, 70, 0.8);
  background: linear-gradient(135deg, rgba(130, 14, 24, 0.88) 0%, rgba(18, 22, 36, 0.92) 100%);
  box-shadow: 0 12px 34px rgba(200, 29, 37, 0.36), inset 0 0 24px rgba(230, 57, 70, 0.18);
  overflow: hidden;
  animation: alertBreathe 3.2s ease-in-out infinite;
}

.surprise-alert::after {
  content: '';
  position: absolute;
  top: 0;
  left: -85%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-20deg);
  animation: buttonShine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes alertBreathe {
  0%, 100% { box-shadow: 0 12px 34px rgba(200, 29, 37, 0.35), inset 0 0 22px rgba(230, 57, 70, 0.16); }
  50% { box-shadow: 0 14px 42px rgba(230, 57, 70, 0.56), inset 0 0 30px rgba(249, 115, 22, 0.25); }
}

.surprise-alert-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 60%);
  pointer-events: none;
}

.surprise-badge-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.surprise-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.2vw, 1.32rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff6e5;
  text-shadow: 0 2px 12px rgba(230, 57, 70, 0.85);
}

.surprise-sub {
  position: relative;
  margin: 4px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffd8db;
}

/* Arte Hero */
.hero-artwork-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
}

.hero-crest-aura {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(200, 29, 37, 0.22) 48%, transparent 72%);
  filter: blur(18px);
  z-index: 0;
  animation: auraBreathe 4.6s ease-in-out infinite;
}

@keyframes auraBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.78; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.hero-logo-crest {
  position: relative;
  z-index: 2;
  width: 118px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.85));
  margin-bottom: -14px;
}

.hero-tanjiro-frame {
  position: relative;
  z-index: 1;
  width: min(360px, 88vw);
}

.hero-tanjiro-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 24px rgba(56, 189, 248, 0.28));
  animation: heroFloat 5.2s ease-in-out infinite;
}

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

.hero-title-block {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.jp-accent {
  font-family: var(--font-jp);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(200, 29, 37, 0.25);
  border: 1px solid rgba(230, 57, 70, 0.5);
  color: #ffe3b3;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 3.35rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

.hero-nickname-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 2px 0;
}

.hero-nickname {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 2.05rem);
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.hero-age-seal {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(200, 29, 37, 0.92), rgba(16, 40, 84, 0.94));
  border: 1.5px solid var(--gold-bright);
  box-shadow: 0 6px 24px rgba(200, 29, 37, 0.42);
}

.hero-age-seal strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.hero-age-seal small {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.hero-lead {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 52ch;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e4e8f3;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(14, 18, 30, 0.75);
  border: 1px solid var(--border-subtle);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.katana-divider {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(760px, 86%);
  margin: 28px auto 0;
  opacity: 0.52;
}

.katana-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 169, 82, 0.55), rgba(230, 57, 70, 0.55), transparent);
}

.katana-tsuba {
  color: var(--gold-bright);
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(224, 169, 82, 0.8);
}

/* ==========================================================================
   2. CUENTA REGRESIVA
   ========================================================================== */
.countdown-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.countdown-card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 26px 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
  backdrop-filter: blur(12px);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 16px);
}

.time-unit {
  flex: 1;
  max-width: 118px;
  padding: 14px 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 31, 58, 0.85) 0%, rgba(10, 12, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.time-unit.is-seconds {
  border-color: rgba(230, 57, 70, 0.55);
  background: linear-gradient(180deg, rgba(94, 16, 24, 0.65) 0%, rgba(12, 14, 22, 0.96) 100%);
  animation: secondsPulse 1s ease-in-out infinite;
}

@keyframes secondsPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(230, 57, 70, 0.16); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 22px rgba(230, 57, 70, 0.36); }
}

.time-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6.5vw, 2.85rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.time-label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.time-sep {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.7;
  padding-bottom: 18px;
}

.countdown-caption {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.countdown-char-wrap {
  display: none;
}

.char-float {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.8));
  animation: heroFloat 5.6s ease-in-out infinite;
}

.char-giyuu {
  animation-delay: -1.4s;
}

.char-tengen {
  animation-delay: -2.8s;
}

.char-tanjiro-leap {
  animation-delay: -0.9s;
}

/* ==========================================================================
   3. SOBRE EL CUMPLEAÑERO
   ========================================================================== */
.about-section {
  position: relative;
}

.dojo-bg-overlay {
  position: absolute;
  inset: -22% 0;
  height: 144%;
  background: url('/assets/bg/ember-dojo-bg.webp') center / cover no-repeat;
  opacity: 0.44;
  pointer-events: none;
  will-change: transform;
}

.pillar-dossier {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.pillar-char-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flame-halo {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.36), rgba(200, 29, 37, 0.2), transparent 70%);
  filter: blur(18px);
  animation: auraPulseCenter 3.8s ease-in-out infinite;
}

@keyframes auraPulseCenter {
  0%, 100% { transform: scale(0.94); opacity: 0.78; }
  50% { transform: scale(1.08); opacity: 1; }
}

.pillar-char-img {
  position: relative;
  z-index: 1;
  width: min(230px, 64vw);
  height: auto;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.85));
  animation: heroFloat 5.8s ease-in-out infinite;
}

.pillar-rank-tag {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8e1118, #c45d14);
  border: 1px solid var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
}

.dossier-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dossier-kanji {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--crimson), #590a10);
  border: 1.5px solid var(--gold);
  font-family: var(--font-jp);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dossier-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  color: #fff;
}

.dossier-alias {
  margin: 2px 0 0;
  color: var(--gold);
  font-size: 0.92rem;
}

.dossier-quote {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--crimson-bright);
  background: rgba(200, 29, 37, 0.1);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #f8e8d8;
  font-size: 0.95rem;
}

.dossier-bio {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.pillar-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stat-pill {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(14, 36, 71, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
}

.stat-val {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.squad-banner {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.squad-banner-img {
  width: min(640px, 95%);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.75));
}

/* ==========================================================================
   4. LUGAR Y HORA
   ========================================================================== */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.venue-cards-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.time-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 20px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.time-card.is-guests {
  border-color: rgba(56, 189, 248, 0.48);
  background: linear-gradient(145deg, rgba(13, 35, 70, 0.85), rgba(12, 16, 26, 0.95));
}

.time-card.is-marco {
  border-color: rgba(230, 57, 70, 0.55);
  background: linear-gradient(145deg, rgba(92, 15, 24, 0.72), rgba(12, 16, 26, 0.95));
}

.time-card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.48);
  color: #bae6fd;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.time-card-badge.is-crimson {
  background: rgba(230, 57, 70, 0.22);
  border-color: rgba(230, 57, 70, 0.58);
  color: #fecdd3;
}

.time-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.time-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.time-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.time-card-hour {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.8vw, 1.8rem);
  font-weight: 900;
  color: #fff;
}

.time-card-hour span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.time-card-desc {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: #dce3f2;
}

.venue-place-card {
  border-radius: var(--radius-md);
  padding: 20px 18px;
  background: linear-gradient(145deg, rgba(20, 24, 36, 0.94), rgba(10, 12, 18, 0.98));
  border: 1px solid var(--border-gold);
}

.venue-place-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.place-pin {
  font-size: 1.7rem;
}

.place-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.place-name {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
}

.place-address {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.venue-char-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.water-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.36), rgba(56, 189, 248, 0.16), transparent 72%);
  filter: blur(20px);
  animation: auraBreathe 4.8s ease-in-out infinite;
}

.char-giyuu {
  position: relative;
  width: min(220px, 60vw);
}

/* ==========================================================================
   5. MAPA INTERACTIVO
   ========================================================================== */
.map-frame-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-surface-strong);
  box-shadow: var(--shadow-card);
}

.map-iframe-wrap {
  position: relative;
  width: 100%;
  height: 330px;
  background: #0b0e17;
}

.map-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-footer-bar {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
}

.coords-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 0.85rem;
}

.coords-label {
  color: var(--gold);
  font-weight: 700;
}

.coords-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
  word-break: break-all;
}

.btn-maps {
  width: 100%;
}

/* ==========================================================================
   6. ITINERARIO DE LA NOCHE
   ========================================================================== */
.itinerary-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.itinerary-char-col {
  display: none;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--water-cyan), var(--crimson-bright), var(--gold));
  opacity: 0.55;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #132242, #0d101b);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(224, 169, 82, 0.28);
}

.timeline-item.is-highlight .timeline-node {
  background: linear-gradient(135deg, var(--crimson), #6d0b12);
  border-color: #fff2c6;
  color: #fff;
  box-shadow: 0 0 24px rgba(230, 57, 70, 0.55);
  animation: nodeBeat 2.4s ease-in-out infinite;
}

@keyframes nodeBeat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(230, 57, 70, 0.48); }
  50% { transform: scale(1.06); box-shadow: 0 0 30px rgba(230, 57, 70, 0.78); }
}

.timeline-card {
  flex: 1;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.timeline-item.is-highlight .timeline-card {
  border-color: rgba(230, 57, 70, 0.52);
  background: linear-gradient(135deg, rgba(110, 16, 26, 0.42), rgba(16, 20, 31, 0.92));
}

.timeline-time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.timeline-card h3 {
  margin: 4px 0 6px;
  font-size: 1.04rem;
  color: #fff;
}

.timeline-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   7. CÓDIGO DE VESTIMENTA (CON PARALLAX SUTIL DE TEXTURA WASHI)
   ========================================================================== */
.dresscode-section {
  position: relative;
}

.dress-parallax-bg {
  position: absolute;
  inset: -22% 0;
  height: 144%;
  background: url('/assets/bg/washi-asanoha-texture.webp') center / cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
  will-change: transform;
}

.dresscode-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 20%, rgba(200, 29, 37, 0.16), transparent 52%),
    radial-gradient(circle at 15% 80%, rgba(29, 78, 216, 0.18), transparent 52%),
    rgba(12, 15, 24, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.dress-style-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(224, 169, 82, 0.15);
  border: 1px solid rgba(224, 169, 82, 0.52);
  font-size: 1rem;
  color: var(--text-main);
}

.dress-style-pill strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
}

.dress-desc {
  margin: 14px 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.swatch-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.swatch-blue { background: linear-gradient(135deg, #1d4ed8, #0b1d42); }
.swatch-red { background: linear-gradient(135deg, #e63946, #7a0d16); }
.swatch-black { background: linear-gradient(135deg, #272b38, #07080d); }

.swatch-item strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.swatch-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.dresscode-art {
  display: flex;
  justify-content: center;
}

.dresscode-img {
  width: min(260px, 72vw);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.85));
  animation: heroFloat 6.2s ease-in-out infinite;
}

.swatch-item:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 169, 82, 0.5);
}

/* ==========================================================================
   8. NOTA IMPORTANTE (NIÑOS Y CUIDADO DEL LOCAL)
   ========================================================================== */
.notice-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(48, 18, 28, 0.68), rgba(14, 17, 28, 0.96));
  border: 1.5px solid rgba(224, 169, 82, 0.55);
  box-shadow: var(--shadow-card);
}

.notice-art {
  display: flex;
  justify-content: center;
}

.notice-char-img {
  width: min(170px, 46vw);
  filter: drop-shadow(0 14px 26px rgba(157, 127, 232, 0.35));
  animation: heroFloat 5.4s ease-in-out infinite -1.5s;
}

.notice-header {
  margin-bottom: 12px;
}

.notice-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.55);
  color: #fed7aa;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.notice-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 4.5vw, 1.65rem);
  color: #fff;
}

.notice-body p {
  margin: 0 0 10px;
  color: #e6e9f2;
  font-size: 0.95rem;
}

.notice-closing {
  margin-bottom: 0 !important;
  color: var(--gold-bright) !important;
  font-weight: 600;
}

/* ==========================================================================
   9. FORMULARIOS (RSVP WHATSAPP & MURO DE DESEOS)
   ========================================================================== */
.deadline-banner {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(200, 29, 37, 0.22);
  border: 1px solid rgba(230, 57, 70, 0.58);
  color: #ffd7dc;
  font-size: 0.88rem;
}

.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.rsvp-art-col {
  display: none;
}

.katana-form-card {
  padding: 24px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f3efe6;
}

.label-hint {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.char-counter {
  font-size: 0.78rem;
  color: var(--text-dim);
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 9, 15, 0.88);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(224, 169, 82, 0.2);
}

textarea {
  resize: vertical;
  min-height: 92px;
}

.field-error {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #fda4af;
  min-height: 1em;
}

.rsvp-fallback {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(14, 36, 71, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.88rem;
}

.rsvp-fallback p {
  margin: 0 0 10px;
  color: #dbeafe;
}

.rsvp-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   10. MURO DE DESEOS
   ========================================================================== */
.wishes-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.wishes-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.wish-nezuko-avatar {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(200, 29, 37, 0.2);
}

.wishes-form-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

.wishes-form-header p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.status-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.status-banner.is-success {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.48);
  color: #a7f3d0;
}

.status-banner.is-error {
  background: rgba(230, 57, 70, 0.18);
  border: 1px solid rgba(230, 57, 70, 0.55);
  color: #fecdd3;
}

.wishes-wall-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.wishes-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 20, 31, 0.9);
  border: 1px solid var(--border-gold);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.wishes-count-badge strong {
  color: var(--gold-bright);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(19, 25, 42, 0.9), rgba(11, 13, 21, 0.96));
  border: 1px solid rgba(224, 169, 82, 0.24);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  animation: wishFadeIn 0.35s ease;
}

@keyframes wishFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wish-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.wish-author {
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 0.96rem;
}

.wish-date {
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.wish-body {
  margin: 0;
  color: #eaedf5;
  font-size: 0.94rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.wishes-empty {
  padding: 28px 18px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(224, 169, 82, 0.32);
  background: rgba(14, 18, 30, 0.6);
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 46px 0 calc(78px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 10, 0.88) 45%, #05060a 100%);
  text-align: center;
}

.footer-crest {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--gold-bright);
}

.footer-secret {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   MEDIA QUERIES: TABLET Y ESCRITORIO
   ========================================================================== */
@media (min-width: 768px) {
  .section {
    padding: 84px 0;
  }

  .countdown-layout {
    grid-template-columns: 1.55fr 0.75fr;
  }

  .countdown-char-wrap {
    display: flex;
    justify-content: center;
  }

  .char-zenitsu {
    width: 220px;
  }

  .pillar-dossier {
    grid-template-columns: 270px 1fr;
    padding: 34px;
    gap: 32px;
  }

  .venue-grid {
    grid-template-columns: 1.35fr 0.75fr;
    gap: 32px;
  }

  .map-iframe-wrap {
    height: 400px;
  }

  .map-footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .btn-maps {
    width: auto;
  }

  .itinerary-layout {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 32px;
  }

  .itinerary-char-col {
    display: flex;
    justify-content: center;
  }

  .char-tengen {
    width: 260px;
  }

  .dresscode-card {
    grid-template-columns: 1.25fr 0.75fr;
    padding: 34px;
  }

  .notice-scroll {
    grid-template-columns: 190px 1fr;
    padding: 30px 32px;
  }

  .rsvp-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .rsvp-art-col {
    display: flex;
    justify-content: center;
  }

  .char-tanjiro-leap {
    width: 270px;
  }

  .wishes-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
  }
}

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