/* ==========================================================================
   PLANTILLA 4 NIÑOS: GODZILLA VS KONG — BRUNO IGNACIO (10 AÑOS)
   Estilo Oficial Kaiju Battle / Pool Party / Calidad Cinemática Ultra Premium
   ========================================================================== */

:root {
  --color-kong-fire: #ff5a1f;
  --color-kong-deep: #d43a0e;
  --color-kong-amber: #ffb020;
  --color-godzilla-cyan: #00d2ff;
  --color-godzilla-blue: #0084ff;
  --color-hazard-yellow: #ffd000;
  --color-danger-red: #ff1a1a;
  --color-night-dark: #060a12;
  --color-night-card: rgba(8, 14, 26, 0.68);
  --color-card-border: rgba(255, 208, 0, 0.35);
  --color-text-white: #ffffff;
  --color-text-dim: rgba(255, 255, 255, 0.88);

  /* Jerarquía Tipográfica de Oro */
  --font-display: 'Titan One', cursive, sans-serif;
  --font-action: 'Kanit', sans-serif;
  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-numbers: 'Russo One', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-white);
  min-height: 100vh;
  background-color: var(--color-night-dark);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 10px 48px 10px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Enfoque accesible por teclado */
:focus-visible {
  outline: 3px solid var(--color-hazard-yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   VIDEO DE FONDO EN BUCLE (CINEMÁTICA KONG VS GODZILLA)
   ========================================================================== */
.video-bg-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-video-loop {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(1.2) brightness(1.02);
}

.video-overlay-tint {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 15% 30%, rgba(255, 90, 31, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 30%, rgba(0, 210, 255, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.2) 0%, rgba(6, 10, 18, 0.6) 100%);
}

/* Chispas ambientales flotantes */
.ambient-sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.spark-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Destello de pantalla al interactuar */
.screen-flash {
  position: fixed;
  inset: 0;
  z-index: 995;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

.screen-flash.flash-atomic {
  background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.85) 0%, transparent 80%);
  opacity: 1;
}

.screen-flash.flash-fire {
  background: radial-gradient(circle at 50% 50%, rgba(255, 90, 31, 0.85) 0%, transparent 80%);
  opacity: 1;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE MÚSICA (UBICADO EN ESQUINA INFERIOR DERECHA)
   ========================================================================== */
.music-fab {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 1000;
  background: rgba(8, 14, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 208, 0, 0.6);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-action);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 208, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.music-fab:hover {
  transform: scale(1.05);
  border-color: var(--color-hazard-yellow);
  box-shadow: 0 0 18px rgba(255, 208, 0, 0.7);
}

.music-fab.playing {
  border-color: var(--color-godzilla-cyan);
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.55);
}

.music-icon {
  font-size: 0.95rem;
}

/* ==========================================================================
   1. SOBRE CEREMONIAL 3D (PANTALLA DE ENTRADA)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: radial-gradient(circle at 50% 45%, #121c2e 0%, #060a12 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
}

.envelope-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-scene {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.envelope-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
}

.envelope-header-title .header-text {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: clamp(1.1rem, 4.2vw, 1.35rem);
  letter-spacing: 1px;
  color: var(--color-hazard-yellow);
  text-shadow: 0 0 12px rgba(255, 208, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.header-bolt {
  font-size: 1.2rem;
  color: var(--color-godzilla-cyan);
  filter: drop-shadow(0 0 8px var(--color-godzilla-cyan));
  animation: boltPulse 1.4s infinite ease-in-out alternate;
}

.envelope-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Globos laterales decorativos con imágenes transparentes */
.floating-balloon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  width: 78px;
  max-width: 22vw;
}

.floating-balloon.balloon-left {
  left: -28px;
  animation: floatBalloonLeft 3.4s ease-in-out infinite alternate;
}

.floating-balloon.balloon-right {
  right: -28px;
  animation: floatBalloonRight 3.6s ease-in-out infinite alternate;
}

.balloon-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.8));
}

/* Caja del Sobre */
.envelope-card-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 402 / 442;
  border-radius: 18px;
  cursor: pointer;
  perspective: 1000px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), filter 0.35s;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 90, 31, 0.3);
}

.envelope-card-box:hover {
  transform: scale(1.03) translateY(-4px);
  filter: brightness(1.08);
}

.envelope-artwork-wrap {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.envelope-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sello Central 3D */
.envelope-seal-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff833b 0%, #d44910 50%, #7c2200 100%);
  border: 3px solid #ffd000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 90, 31, 0.75);
  animation: sealPulse 2s infinite ease-in-out;
  z-index: 10;
}

.seal-glow-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 208, 0, 0.8);
  animation: rotateSealHalo 8s linear infinite;
}

.seal-text-content {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.15;
  text-align: center;
  color: #ffd000;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 208, 0, 0.8);
  letter-spacing: 0.5px;
}

/* Placa de Nombre en Sobre */
.envelope-name-plate {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 26, 0.92);
  border: 2px solid var(--color-hazard-yellow);
  border-radius: 8px;
  padding: 5px 16px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  z-index: 8;
}

.envelope-name-plate span {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 1px;
  color: var(--color-hazard-yellow);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Logo inferior Godzilla vs Kong en sobre */
.envelope-logo-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  z-index: 8;
  white-space: nowrap;
}

.logo-text-godzilla {
  color: var(--color-godzilla-cyan);
  text-shadow: 0 0 8px var(--color-godzilla-cyan);
}

.logo-bolt {
  color: var(--color-hazard-yellow);
  font-size: 0.9rem;
}

.logo-text-kong {
  color: var(--color-kong-fire);
  text-shadow: 0 0 8px var(--color-kong-fire);
}

/* Indicador de apertura separado abajo */
.envelope-hint-wrapper {
  margin-top: 20px;
  text-align: center;
}

.envelope-tap-hint {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  animation: hintBreathe 2s ease-in-out infinite alternate;
}

/* ==========================================================================
   2. TARJETA PRINCIPAL DEL FLYER (ZONA DE COMBATE)
   ========================================================================== */
.flyer-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.kaiju-battle-card {
  width: 100%;
  background: var(--color-night-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid var(--color-card-border);
  border-radius: 24px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(255, 90, 31, 0.2),
    0 0 30px rgba(0, 210, 255, 0.2);
  overflow: hidden;
  padding-bottom: 24px;
  transition: transform 0.3s ease;
}

/* Temblor sísmico cuando votan */
.kaiju-battle-card.shake-tremor {
  animation: cardShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ==========================================================================
   CINTA DE ADVERTENCIA / HAZARD TAPE CON MARQUEE CONTINUO (REGLA DE ORO)
   ========================================================================== */
.battle-hazard-strip {
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    #ffd000,
    #ffd000 16px,
    #111111 16px,
    #111111 32px
  );
  padding: 9px 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid #000;
}

.hazard-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerTape 16s linear infinite;
  will-change: transform;
}

.hazard-ticker-item {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 1.4px;
  color: var(--color-danger-red);
  -webkit-text-stroke: 1.2px #000000;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  padding-right: 28px;
}

/* ==========================================================================
   1. HERO SECTION & FOTO DEL FESTEJADO
   ========================================================================== */
.card-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 18px 16px;
}

.hero-eyebrow {
  font-family: var(--font-action);
  font-weight: 800;
  font-size: clamp(0.85rem, 3.2vw, 0.98rem);
  letter-spacing: 1.5px;
  color: var(--color-hazard-yellow);
  text-shadow: 0 0 10px rgba(255, 208, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.9);
  margin-bottom: 16px;
}

/* Medallón de Foto Central con Aura Dual */
.photo-arena-wrap {
  position: relative;
  width: 156px;
  height: 156px;
  margin-bottom: 16px;
}

.photo-dual-aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    var(--color-kong-fire) 0deg,
    var(--color-kong-amber) 90deg,
    var(--color-godzilla-cyan) 180deg,
    var(--color-godzilla-blue) 270deg,
    var(--color-kong-fire) 360deg
  );
  filter: blur(4px);
  opacity: 0.95;
  animation: rotateAuraGlow 10s linear infinite;
}

.photo-circle-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  background-color: #0c1424;
  z-index: 2;
}

.child-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-spark-tag {
  position: absolute;
  bottom: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.photo-spark-tag.tag-left {
  left: -2px;
  background: var(--color-kong-deep);
  border: 2px solid var(--color-kong-amber);
}

.photo-spark-tag.tag-right {
  right: -2px;
  background: #005f9e;
  border: 2px solid var(--color-godzilla-cyan);
}

/* Badge ¡MI CUMPLE! */
.birthday-banner-badge {
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.9) 0%, rgba(255, 176, 32, 0.9) 100%);
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 4px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.5);
}

.banner-text {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.banner-sparkle {
  color: #ffd000;
  font-size: 0.85rem;
}

/* Nombre Principal con TITAN ONE (Regla de Oro) */
.kaiju-hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 9.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-hazard-yellow);
  text-shadow: 
    0 3px 0 #b32a00,
    0 6px 0 #801d00,
    0 8px 18px rgba(255, 90, 31, 0.75),
    0 0 25px rgba(255, 208, 0, 0.5);
  margin-bottom: 12px;
}

/* Badge de Edad */
.age-combat-badge {
  background: linear-gradient(135deg, var(--color-kong-fire) 0%, var(--color-kong-deep) 100%);
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 6px 22px;
  box-shadow: 0 6px 18px rgba(212, 58, 14, 0.6);
  margin-bottom: 10px;
}

.age-text {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1.2px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subcaption {
  font-family: var(--font-action);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   2. WIDGET INTERACTIVO: ¿DE QUÉ LADO ESTÁS? (TEAM KONG VS TEAM GODZILLA)
   ========================================================================== */
.interactive-team-arena {
  margin: 12px 14px 20px 14px;
  background: rgba(10, 18, 32, 0.85);
  border: 1.5px solid rgba(255, 208, 0, 0.35);
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.team-arena-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.team-title-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.4vw, 1.45rem);
  color: var(--color-hazard-yellow);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 #7c2200, 0 0 10px rgba(255, 208, 0, 0.5);
}

.swords-icon {
  font-size: 1.2rem;
}

.team-subtitle-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.team-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.team-btn {
  flex: 1;
  position: relative;
  background: rgba(14, 24, 42, 0.9);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.team-btn:active {
  transform: scale(0.96);
}

.team-btn.btn-kong {
  border-color: rgba(255, 90, 31, 0.5);
}

.team-btn.btn-kong.selected,
.team-btn.btn-kong:hover {
  border-color: var(--color-kong-fire);
  box-shadow: 0 0 18px rgba(255, 90, 31, 0.6);
  background: rgba(40, 20, 15, 0.9);
}

.team-btn.btn-godzilla {
  border-color: rgba(0, 210, 255, 0.5);
}

.team-btn.btn-godzilla.selected,
.team-btn.btn-godzilla:hover {
  border-color: var(--color-godzilla-cyan);
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.6);
  background: rgba(10, 30, 50, 0.9);
}

.team-avatar-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.team-name {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.btn-kong .team-name {
  color: var(--color-kong-amber);
}

.btn-godzilla .team-name {
  color: var(--color-godzilla-cyan);
}

.team-power {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.team-counter {
  font-family: var(--font-numbers);
  font-size: 0.95rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-kong .team-counter {
  border-color: var(--color-kong-amber);
  color: var(--color-kong-amber);
}

.btn-godzilla .team-counter {
  border-color: var(--color-godzilla-cyan);
  color: var(--color-godzilla-cyan);
}

.team-vs-divider {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-hazard-yellow);
  text-shadow: 0 0 10px rgba(255, 208, 0, 0.7);
  padding: 0 4px;
}

.team-vote-feedback {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   3. CUENTA REGRESIVA (RUSSO ONE)
   ========================================================================== */
.countdown-section {
  margin: 0 14px 18px 14px;
  background: rgba(10, 16, 28, 0.85);
  border: 1.5px solid rgba(255, 208, 0, 0.3);
  border-radius: 18px;
  padding: 16px 10px;
  text-align: center;
}

.countdown-label {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  color: var(--color-hazard-yellow);
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(255, 208, 0, 0.4);
}

.countdown-tiles-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.count-tile {
  background: rgba(14, 22, 38, 0.95);
  border: 1.5px solid rgba(0, 210, 255, 0.4);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.count-tile.highlight-seconds {
  border-color: var(--color-kong-fire);
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.5);
}

.count-number {
  font-family: var(--font-numbers);
  font-size: 1.45rem;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.count-unit {
  font-family: var(--font-action);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.count-tile-sep {
  font-family: var(--font-numbers);
  font-size: 1.3rem;
  color: var(--color-hazard-yellow);
  margin-top: -8px;
}

/* ==========================================================================
   4. FECHA Y HORA DEL EVENTO
   ========================================================================== */
.event-schedule-section {
  margin: 0 14px 18px 14px;
}

.schedule-pill-card {
  background: linear-gradient(135deg, rgba(20, 15, 28, 0.95) 0%, rgba(10, 25, 45, 0.95) 100%);
  border: 2px solid var(--color-card-border);
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.schedule-icon {
  font-size: 1.4rem;
}

.schedule-datetime {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.schedule-day {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.schedule-time {
  font-family: var(--font-numbers);
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--color-hazard-yellow);
  text-shadow: 0 0 8px rgba(255, 208, 0, 0.5);
}

/* ==========================================================================
   5. LUGAR DEL EVENTO & POOL PARTY (KANIT 900 VIP)
   ========================================================================== */
.venue-location-section {
  margin: 0 14px 18px 14px;
}

.venue-card-box {
  background: rgba(10, 16, 28, 0.9);
  border: 1.5px solid rgba(0, 210, 255, 0.35);
  border-radius: 20px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.venue-intro-line {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.venue-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pin-symbol {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(255, 208, 0, 0.6));
}

.venue-address-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.venue-title-main {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  letter-spacing: 1.2px;
  color: var(--color-hazard-yellow);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.venue-title-area {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  letter-spacing: 1.2px;
  color: var(--color-godzilla-cyan);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

.venue-city {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 3px;
}

/* Recordatorio Traje de Baño */
.swim-reminder-badge {
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.25) 0%, rgba(0, 210, 255, 0.35) 100%);
  border: 1.5px dashed var(--color-godzilla-cyan);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
}

.swim-icon {
  font-size: 1.2rem;
}

.swim-text {
  font-family: var(--font-action);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Botón Google Maps */
.btn-maps-action {
  background: linear-gradient(135deg, #0084ff 0%, #0056b3 100%);
  border: 2px solid #ffffff;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 1px;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-maps-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 132, 255, 0.7);
}

.arrow-indicator {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-maps-action:hover .arrow-indicator {
  transform: translateX(4px);
}

/* ==========================================================================
   6. CHIPS DE ACTIVIDADES DE LA FIESTA
   ========================================================================== */
.party-features-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 14px 22px 14px;
}

.feature-chip {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(255, 208, 0, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-action);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   7. FORMULARIO RSVP DUAL (REGLA MODALIDAD B + api/rsvp)
   ========================================================================== */
.rsvp-interactive-section {
  margin: 0 14px 22px 14px;
}

.rsvp-card-box {
  background: rgba(10, 16, 28, 0.95);
  border: 2px solid var(--color-card-border);
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 208, 0, 0.15);
}

.rsvp-header {
  text-align: center;
  margin-bottom: 18px;
}

.rsvp-icon {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 4px;
}

.rsvp-title {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: clamp(1.2rem, 4.8vw, 1.45rem);
  letter-spacing: 1.2px;
  color: var(--color-hazard-yellow);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.rsvp-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3px;
}

.rsvp-form-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
}

.form-row-dual {
  display: flex;
  gap: 10px;
}

.flex-1 {
  flex: 1;
}

.form-label {
  font-family: var(--font-action);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-star {
  color: var(--color-danger-red);
  font-weight: 900;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(18, 28, 48, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-hazard-yellow);
  box-shadow: 0 0 10px rgba(255, 208, 0, 0.4);
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background-color: #0d1525;
  color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

.form-error-msg {
  font-size: 0.75rem;
  color: #ff6b6b;
  display: none;
  font-weight: 600;
}

.form-group.has-error .form-input {
  border-color: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
}

.form-group.has-error .form-error-msg {
  display: block;
}

.rsvp-feedback-banner {
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.35;
}

.rsvp-feedback-banner.success {
  background: rgba(20, 80, 40, 0.9);
  border: 1.5px solid #25d366;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.rsvp-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* Botón 1: Confirmación directa */
.btn-rsvp-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--color-kong-fire) 0%, var(--color-kong-deep) 100%);
  border: 2px solid #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 58, 14, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-rsvp-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.8);
}

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

.btn-rsvp-primary .btn-text {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.actions-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2px 0;
}

.actions-or-divider::before,
.actions-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.actions-or-divider span {
  padding: 0 10px;
  font-family: var(--font-action);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.6);
}

/* Botón 2: Confirmación por WhatsApp */
.btn-whatsapp-confirm {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: 2px solid #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.btn-whatsapp-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.75);
}

.btn-whatsapp-confirm:active {
  transform: scale(0.98);
}

.btn-wa-pulse-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  animation: waPulse 2.2s infinite ease-out;
}

.wa-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.btn-wa-text {
  font-family: var(--font-action);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

/* ==========================================================================
   8. PIE DE TARJETA
   ========================================================================== */
.card-bottom-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 16px 8px 16px;
  gap: 10px;
}

.footer-logo-wrap {
  width: 190px;
  max-width: 55vw;
}

.footer-logo-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

.footer-titans-tag {
  font-family: var(--font-action);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   REVELADO POR SCROLL (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes boltPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 6px var(--color-godzilla-cyan)); }
  100% { transform: scale(1.25); filter: drop-shadow(0 0 14px var(--color-hazard-yellow)); }
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 8px 24px rgba(0,0,0,0.8), 0 0 25px rgba(255,90,31,0.75); }
  50% { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 10px 30px rgba(0,0,0,0.85), 0 0 35px rgba(255,208,0,0.9); }
}

@keyframes rotateSealHalo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatBalloonLeft {
  0% { transform: translateY(-50%) rotate(-3deg); }
  100% { transform: translateY(calc(-50% - 14px)) rotate(3deg); }
}

@keyframes floatBalloonRight {
  0% { transform: translateY(-50%) rotate(3deg); }
  100% { transform: translateY(calc(-50% - 16px)) rotate(-3deg); }
}

@keyframes hintBreathe {
  0% { opacity: 0.7; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(3px); }
}

@keyframes rotateAuraGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes waPulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { opacity: 0.15; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes cardShake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-4px, 2px) rotate(-0.5deg); }
  30% { transform: translate(4px, -2px) rotate(0.5deg); }
  45% { transform: translate(-3px, -2px) rotate(-0.4deg); }
  60% { transform: translate(3px, 2px) rotate(0.4deg); }
  75% { transform: translate(-2px, 1px) rotate(-0.2deg); }
  90% { transform: translate(2px, -1px) rotate(0.2deg); }
}

@keyframes tickerTape {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   ACCESIBILIDAD: PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .kaiju-battle-card.shake-tremor {
    animation: none !important;
  }

  .envelope-overlay {
    transition: none !important;
  }

  .hazard-ticker-track {
    animation: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS (360px - 430px)
   ========================================================================== */
@media (max-width: 380px) {
  body {
    padding: 8px 6px 36px 6px;
  }

  .floating-balloon {
    width: 65px;
  }

  .floating-balloon.balloon-left {
    left: -14px;
  }

  .floating-balloon.balloon-right {
    right: -14px;
  }

  .envelope-seal-badge {
    width: 95px;
    height: 95px;
  }

  .seal-text-content {
    font-size: 0.82rem;
  }

  .count-tile {
    min-width: 50px;
    padding: 6px 6px;
  }

  .count-number {
    font-size: 1.25rem;
  }

  .form-row-dual {
    flex-direction: column;
    gap: 12px;
  }
}
