/* ==========================================================================
   ESTILOS PREMIUM: CUMPLEAÑOS DE AMELIA (BLUEY & BINGO)
   Modalidad B: Invitación Directa y Móvil Primero
   ========================================================================== */

/* 1. RESET Y VARIABLES DE DISEÑO */
:root {
  --color-bluey: #4a90e2;
  --color-bluey-dark: #1d4ed8;
  --color-bluey-light: #93c5fd;
  --color-bingo: #f97316;
  --color-bingo-dark: #c2410c;
  --color-bingo-light: #fed7aa;
  --color-pink-party: #f472b6;
  --color-pink-deep: #db2777;
  --color-yellow-sun: #fde047;
  --color-cream: #fffbeb;
  --color-white: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  
  --font-hero: 'Titan One', cursive, sans-serif;
  --font-accent: 'Kanit', sans-serif;
  --font-nums: 'Russo One', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  --shadow-card: 0 12px 28px rgba(74, 144, 226, 0.16), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 8px 18px rgba(244, 114, 182, 0.35);
  --radius-card: 26px;
  --radius-btn: 9999px;
  --max-width: 440px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background: linear-gradient(180deg, #e0f2fe 0%, #fce7f3 40%, #e0f2fe 75%, #fef3c7 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
}

body.envelope-locked {
  overflow: hidden;
  height: 100vh;
}

/* 2. BANDERINES SUPERIORES Y DECORATIVOS */
.top-bunting-garland {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 95;
  pointer-events: none;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.bunting-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  animation: garlandSway 6s ease-in-out infinite alternate;
  transform-origin: top center;
}

@keyframes garlandSway {
  0% { transform: translateY(-2px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(1deg); }
}

/* 3. CANVAS DE FONDO (CONFETI Y GLOBOS) */
#party-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
}

/* 4. BOTÓN FLOTANTE DE MÚSICA */
.music-fab {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--color-bluey);
  border-radius: var(--radius-btn);
  color: var(--color-bluey-dark);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(74, 144, 226, 0.25);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.music-fab:hover {
  transform: scale(1.05);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.35);
}

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

.music-fab-icon {
  font-size: 1.15rem;
  display: inline-block;
  transition: transform 0.4s ease;
}

.music-fab.playing .music-fab-icon {
  animation: musicBeat 1s infinite alternate ease-in-out;
}

@keyframes musicBeat {
  0% { transform: scale(1) rotate(-6deg); }
  100% { transform: scale(1.2) rotate(6deg); }
}

/* ==========================================================================
   5. SOBRE 3D CEREMONIAL DE ENTRADA (ESTÁNDAR AGENTS.MD)
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: radial-gradient(circle at center, #ffffff 0%, #e0f2fe 60%, #bae6fd 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
}

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

.envelope-stage {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: auto 0;
}

/* Badge superior del sobre */
.envelope-top-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.envelope-title {
  font-family: var(--font-hero);
  font-size: 1.28rem;
  color: #ec4899;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 0 3px 8px rgba(236, 72, 153, 0.3);
}

.sparkle-star {
  font-size: 1.3rem;
  animation: sparkleTwinkle 2s infinite ease-in-out;
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.25) rotate(20deg); opacity: 1; }
}

/* Contenedor 3D */
.envelope-3d-wrapper {
  position: relative;
  width: 320px;
  height: 210px;
  perspective: 1200px;
  margin: 40px auto 16px;
  overflow: visible; /* Regla de Oro: CERO overflow hidden */
}

/* Tarjeta / Carta interior */
.envelope-letter {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 290px;
  min-height: 250px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 3px solid var(--color-bluey-light);
  padding: 20px 16px;
  z-index: 5;
  transform: translateY(25px) translateZ(4px);
  opacity: 0;
  pointer-events: none;
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, 
              opacity 0.4s ease 0.4s, 
              box-shadow 0.6s ease 0.5s;
}

/* Al abrirse, la carta sube a z-index 25 por encima de todo */
.envelope-3d-wrapper.open .envelope-letter {
  transform: translateY(-135px) translateZ(35px);
  opacity: 1;
  pointer-events: auto;
  z-index: 25;
  box-shadow: 0 20px 45px rgba(74, 144, 226, 0.3);
}

.letter-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.letter-sparkles {
  font-size: 1.1rem;
}

.letter-pretitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-bluey);
  letter-spacing: 0.5px;
}

.letter-name {
  font-family: var(--font-hero);
  font-size: 2.1rem;
  color: var(--color-pink-deep);
  text-shadow: 1px 1px 0 #fff, 0 3px 0 #f472b6;
  margin: 2px 0;
}

.letter-divider {
  width: 50px;
  height: 3px;
  background: var(--color-yellow-sun);
  border-radius: 2px;
  margin: 4px 0 8px;
}

.letter-date {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-bluey-dark);
}

.letter-time {
  font-family: var(--font-nums);
  font-size: 1.2rem;
  color: var(--color-bingo);
}

.letter-venue {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.letter-tap-cta {
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-pink-deep);
  animation: bounceCta 1.5s infinite alternate ease-in-out;
}

@keyframes bounceCta {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* Cuerpo del sobre */
.envelope-body {
  position: absolute;
  inset: 0;
  background: #93c5fd;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(74, 144, 226, 0.28);
  overflow: visible;
}

/* Solapa Superior Rosa */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: rotateX(0deg) translateZ(12px);
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 12;
}

.flap-front {
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  border-left: 160px solid transparent;
  border-right: 160px solid transparent;
  border-top: 105px solid #f472b6;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  backface-visibility: hidden;
}

.flap-back {
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  border-left: 160px solid transparent;
  border-right: 160px solid transparent;
  border-bottom: 105px solid #f9a8d4;
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

/* Al abrirse, la solapa rota 180deg y pasa a la capa trasera z-index: 2 */
.envelope-3d-wrapper.open .envelope-flap {
  transform: rotateX(180deg) translateZ(-6px);
  z-index: 2;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.01s linear 0.4s;
}

/* Bolsillo Frontal */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 8;
  transform: translateZ(8px);
  pointer-events: none;
}

.pocket-bottom-fold {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 160px solid #7dd3fc;
  border-right: 160px solid #7dd3fc;
  border-top: 115px solid transparent;
  border-bottom: 95px solid #60a5fa;
  border-radius: 0 0 12px 12px;
}

.pocket-left-fold {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 105px solid transparent;
  border-bottom: 105px solid transparent;
  border-left: 160px solid #93c5fd;
  border-radius: 12px 0 0 12px;
}

.pocket-right-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 105px solid transparent;
  border-bottom: 105px solid transparent;
  border-right: 160px solid #93c5fd;
  border-radius: 0 12px 12px 0;
}

/* Huellitas decorativas */
.envelope-paw, .envelope-star {
  position: absolute;
  font-size: 1.1rem;
  opacity: 0.35;
  z-index: 9;
}
.paw-1 { top: 35px; left: 25px; transform: rotate(-20deg); }
.paw-2 { bottom: 25px; left: 35px; transform: rotate(15deg); }
.paw-3 { top: 35px; right: 25px; transform: rotate(25deg); }
.paw-4 { bottom: 25px; right: 35px; transform: rotate(-15deg); }
.star-1 { top: 80px; left: 55px; }
.star-2 { top: 80px; right: 55px; }

/* Sello circular interactivo */
.envelope-seal-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) translateZ(14px);
  width: 98px;
  height: 98px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  animation: sealPulse 2s infinite ease-in-out;
}

.seal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(74, 144, 226, 0.45));
  border-radius: 50%;
}

.seal-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px dashed #ffffff;
  animation: ringSpin 10s linear infinite;
  pointer-events: none;
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -40%) translateZ(14px) scale(1); }
  50% { transform: translate(-50%, -40%) translateZ(14px) scale(1.08); }
}

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

.envelope-3d-wrapper.open .envelope-seal-btn {
  transform: translate(-50%, -40%) translateZ(14px) scale(0.8);
  opacity: 0;
  pointer-events: none;
}

/* Personajes laterales (Bluey y Bingo) */
.side-character {
  position: absolute;
  bottom: -25px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.character-bluey {
  left: -48px;
  animation: blueyFloat 3.5s ease-in-out infinite alternate;
}

.character-bingo {
  right: -48px;
  animation: bingoFloat 3.2s ease-in-out infinite alternate;
}

.char-balloons {
  width: 60px;
  height: auto;
  margin-bottom: -15px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.char-figure {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
}

@keyframes blueyFloat {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes bingoFloat {
  0% { transform: translateY(0) rotate(2deg); }
  100% { transform: translateY(-7px) rotate(-3deg); }
}

/* Wrapper separado del Tooltip / Indicador de Apertura */
.envelope-hint-wrapper {
  margin-top: 36px;
  z-index: 30;
  display: flex;
  justify-content: center;
}

.hint-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #ffffff;
  border: 2px solid var(--color-pink-party);
  border-radius: var(--radius-btn);
  color: var(--color-pink-deep);
  font-family: var(--font-accent);
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(244, 114, 182, 0.3);
  animation: hintHop 1.8s infinite ease-in-out;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hint-pill-btn:hover {
  background: #fdf2f8;
  transform: scale(1.05);
}

.hint-hand-icon {
  font-size: 1.25rem;
}

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

/* Nombre al pie del sobre */
.envelope-footer-name {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-name-script {
  font-family: var(--font-hero);
  font-size: 2.2rem;
  color: var(--color-pink-deep);
  text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 0 4px 10px rgba(219, 39, 119, 0.35);
  letter-spacing: 1px;
}

.footer-popper {
  width: 44px;
  height: auto;
}
.popper-left {
  transform: rotate(-15deg);
}
.popper-right {
  transform: scaleX(-1) rotate(-15deg);
}

/* ==========================================================================
   6. CONTENIDO PRINCIPAL: TARJETAS Y SECCIONES
   ========================================================================== */
.main-invitation {
  width: 100%;
  max-width: var(--max-width);
  padding: 40px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 20;
}

.section-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-card);
  border: 2px solid rgba(255, 255, 255, 0.9);
  padding: 28px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-heading {
  margin-bottom: 20px;
}

.heading-sub {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-bluey-dark);
  background: #dbeafe;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.heading-title {
  font-family: var(--font-hero);
  font-size: 1.65rem;
  color: var(--color-bluey-dark);
  letter-spacing: 0.5px;
}

/* HERO SECTION */
.hero-section {
  padding-top: 36px;
  padding-bottom: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%);
}

.hero-cloud-bg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.cloud-watercolor-img {
  width: 100%;
  height: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-party-badge {
  font-family: var(--font-accent);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-pink-deep);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Regla de Oro: Festejada en Titan One con 3D relief */
.hero-title-name {
  font-family: var(--font-hero);
  font-size: clamp(3.2rem, 12vw, 4.4rem);
  line-height: 1.05;
  color: #ec4899;
  text-shadow: 
    2px 2px 0 #ffffff,
    -2px -2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px 2px 0 #ffffff,
    0 5px 0 #db2777,
    0 9px 20px rgba(219, 39, 119, 0.4);
  margin: 6px 0 14px;
  letter-spacing: 1px;
  animation: heroBounce 3s ease-in-out infinite alternate;
}

@keyframes heroBounce {
  0% { transform: scale(0.98); }
  100% { transform: scale(1.02); }
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  max-width: 320px;
  margin-bottom: 16px;
}

.hero-duo-container {
  width: 100%;
  max-width: 250px;
  margin-top: 8px;
}

.hero-duo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

/* CUENTA REGRESIVA */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 16px;
}

.countdown-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
  border-radius: 18px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.12);
  transition: transform 0.2s ease;
}

.countdown-box:hover {
  transform: translateY(-2px);
}

.countdown-num {
  font-family: var(--font-nums);
  font-size: 1.65rem;
  color: var(--color-bluey-dark);
  line-height: 1.1;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.countdown-status {
  font-family: var(--font-accent);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-bingo-dark);
  background: #ffedd5;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-block;
}

/* TARJETA DE FECHA Y HORA */
.date-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.date-calendar-badge {
  background: #ffffff;
  border: 3px solid var(--color-pink-party);
  border-radius: 20px;
  width: 180px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(244, 114, 182, 0.25);
}

.cal-badge-month {
  background: var(--color-pink-deep);
  color: #ffffff;
  font-family: var(--font-accent);
  font-size: 0.92rem;
  font-weight: 900;
  padding: 6px 0;
  letter-spacing: 1px;
}

.cal-badge-day {
  font-family: var(--font-nums);
  font-size: 3.2rem;
  line-height: 1.1;
  color: var(--color-bluey-dark);
  padding: 4px 0;
}

.cal-badge-year {
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--color-text-muted);
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

.date-time-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.time-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 16px;
}

.time-icon {
  font-size: 1.6rem;
}

.time-info {
  display: flex;
  flex-direction: column;
}

.time-label {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.time-val {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--color-text-main);
}

.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* BOTONES BUBBLE */
.btn-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}

.btn-bubble:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-bubble:active {
  transform: translateY(1px) scale(0.99);
}

.btn-bubble:focus-visible {
  outline: 3px solid var(--color-bluey);
  outline-offset: 2px;
}

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

.btn-google-cal {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-ical {
  background: #ffffff;
  color: var(--color-bluey-dark);
  border: 2px solid #bfdbfe;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* TARJETA DE UBICACIÓN */
.venue-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.venue-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.venue-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.venue-card:hover .venue-photo {
  transform: scale(1.04);
}

.venue-badge-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-bingo-dark);
}

.venue-content {
  text-align: left;
}

/* Regla de Oro: Sede en Kanit 800/900 */
.venue-name {
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--color-bluey-dark);
  margin-bottom: 4px;
}

.venue-address {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.venue-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.venue-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-maps {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-waze {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

/* ITINERARIO */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  text-align: left;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 21px;
  width: 3px;
  background: #e2e8f0;
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.timeline-badge {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 3px solid var(--color-yellow-sun);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.badge-icon {
  font-size: 1.25rem;
}

.timeline-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px 16px;
  flex: 1;
}

.timeline-time {
  font-family: var(--font-nums);
  font-size: 0.95rem;
  color: var(--color-bingo);
  margin-bottom: 2px;
}

.timeline-title {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* MINIJUEGO DE BURBUJAS */
.game-section {
  background: linear-gradient(180deg, #eff6ff 0%, #f0fdf4 100%);
}

.game-instruction {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.game-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 16px;
  border: 2px solid #bfdbfe;
  font-family: var(--font-accent);
}

.score-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 700;
}

.score-number {
  font-family: var(--font-nums);
  font-size: 1.4rem;
  color: var(--color-bluey-dark);
}

.score-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 999px;
}

.bubble-game-arena {
  position: relative;
  width: 100%;
  height: 240px;
  background: radial-gradient(circle at center, #ffffff 0%, #dbeafe 100%);
  border-radius: 20px;
  border: 2px dashed #93c5fd;
  overflow: hidden;
  touch-action: none;
}

.arena-clouds {
  position: absolute;
  top: 8px;
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  opacity: 0.4;
  pointer-events: none;
}

/* Elementos de Burbujas flotantes en la arena */
.arena-bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  box-shadow: inset -4px -4px 10px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.1s ease;
  animation: floatUp linear infinite;
}

.arena-bubble:active {
  transform: scale(0.9);
}

@keyframes floatUp {
  0% { transform: translateY(260px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-80px) rotate(15deg); opacity: 0; }
}

.bubble-pop-anim {
  animation: bubbleBurst 0.3s forwards ease-out !important;
}

@keyframes bubbleBurst {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* TIPS SECTION */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tip-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tip-icon {
  font-size: 1.8rem;
}

.tip-title {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-bluey-dark);
}

.tip-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   7. FORMULARIO RSVP — MODALIDAD B ESTRICTA
   ========================================================================== */
.rsvp-section {
  background: #ffffff;
  border: 2px solid #fed7aa;
}

.rsvp-intro {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

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

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

.form-label {
  font-family: var(--font-accent);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-bluey);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
}

.form-input.invalid,
.form-select.invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-error {
  font-size: 0.78rem;
  color: #ef4444;
  font-weight: 600;
  display: none;
}

.form-input.invalid + .form-error {
  display: block;
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-card {
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  text-align: center;
  transition: all 0.2s ease;
}

.radio-emoji {
  font-size: 1.4rem;
}

.radio-text {
  font-family: var(--font-accent);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.radio-card input:checked + .radio-content {
  border-color: var(--color-pink-deep);
  background: #fdf2f8;
  color: var(--color-pink-deep);
}

.radio-card input:focus-visible + .radio-content {
  outline: 3px solid var(--color-pink-deep);
}

.form-row-counts {
  display: flex;
  gap: 12px;
}

.flex-1 {
  flex: 1;
}

.rsvp-btn-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn-submit-form {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-submit-wa {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

/* FEEDBACK RSVP */
.rsvp-feedback {
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  margin-top: 14px;
  animation: fadeIn 0.4s ease-out;
}

.rsvp-feedback.hidden {
  display: none;
}

.success-box {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  color: #166534;
}

.error-box {
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #991b1b;
}

.feedback-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.feedback-title {
  font-family: var(--font-hero);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.feedback-desc {
  font-size: 0.88rem;
}

/* 8. FOOTER */
.footer-section {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  padding-bottom: 36px;
}

.footer-characters {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 14px;
}

.footer-duo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}

.footer-big-msg {
  font-family: var(--font-hero);
  font-size: 1.45rem;
  color: var(--color-bluey-dark);
  margin-bottom: 4px;
}

.footer-sub-msg {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-pink-deep);
  margin-bottom: 16px;
}

.footer-signature {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* 9. ACCESIBILIDAD Y REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
