/* ==========================================================================
   Plataforma SaaS de Invitaciones Digitales - Enterprise & Multi-Role
   Design System, Multi-Theme Engine, Guest View & Super Admin Dashboard
   ========================================================================== */

:root {
  --primary-color: #10b981;
  --secondary-color: #f97316;
  --accent-color: #fbbf24;
  --bg-gradient: linear-gradient(135deg, #0d9488 0%, #0891b2 50%, #0284c7 100%);
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  --text-dark: #1e293b;
  --text-title: #065f46;
  --font-heading: 'Fredoka', cursive, sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

/* --- TEMA 2: ESPACIO / GALÁCTICO --- */
[data-theme="space"] {
  --primary-color: #06b6d4;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --bg-gradient: linear-gradient(135deg, #090d16 0%, #1e1b4b 50%, #31104b 100%);
  --card-bg: rgba(15, 23, 42, 0.88);
  --card-border: rgba(139, 92, 246, 0.4);
  --text-dark: #f8fafc;
  --text-title: #38bdf8;
}

/* --- TEMA 3: REINO MÁGICO / PRINCESAS --- */
[data-theme="magic"] {
  --primary-color: #ec4899;
  --secondary-color: #a855f7;
  --accent-color: #fbbf24;
  --bg-gradient: linear-gradient(135deg, #fdf2f8 0%, #f472b6 40%, #c084fc 100%);
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(244, 114, 182, 0.4);
  --text-dark: #4c1d95;
  --text-title: #be185d;
}

/* --- TEMA 4: MUNDO DINOSAURIOS --- */
[data-theme="dino"] {
  --primary-color: #22c55e;
  --secondary-color: #f59e0b;
  --accent-color: #facc15;
  --bg-gradient: linear-gradient(135deg, #052e16 0%, #14532d 50%, #3f6212 100%);
  --card-bg: rgba(15, 23, 42, 0.92);
  --card-border: rgba(34, 197, 94, 0.4);
  --text-dark: #f0fdf4;
  --text-title: #4ade80;
}

/* --- TEMA 5: CARRERA SUPERAUTOS --- */
[data-theme="racing"] {
  --primary-color: #ef4444;
  --secondary-color: #facc15;
  --accent-color: #facc15;
  --bg-gradient: linear-gradient(135deg, #09090b 0%, #18181b 50%, #450a0a 100%);
  --card-bg: rgba(24, 24, 27, 0.94);
  --card-border: rgba(239, 68, 68, 0.5);
  --text-dark: #f4f4f5;
  --text-title: #facc15;
}

/* --- TEMA 6: SUPERHÉROES --- */
[data-theme="superhero"] {
  --primary-color: #3b82f6;
  --secondary-color: #facc15;
  --accent-color: #ef4444;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #450a0a 100%);
  --card-bg: rgba(15, 23, 42, 0.92);
  --card-border: rgba(59, 130, 246, 0.5);
  --text-dark: #f8fafc;
  --text-title: #60a5fa;
}

/* --- TEMA 7: BODA ELEGANTE GOLD & WHITE --- */
[data-theme="wedding_gold"] {
  --primary-color: #d97706;
  --secondary-color: #b45309;
  --accent-color: #fef3c7;
  --bg-gradient: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(217, 119, 6, 0.3);
  --text-dark: #451a03;
  --text-title: #92400e;
}

/* --- TEMA 8: BODA ROMÁNTICA FLORAL SAKURA --- */
[data-theme="wedding_sakura"] {
  --primary-color: #f472b6;
  --secondary-color: #e11d48;
  --accent-color: #fef08a;
  --bg-gradient: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(244, 114, 182, 0.4);
  --text-dark: #881337;
  --text-title: #be123c;
}

/* --- TEMA 9: FIESTA GALA NOCHE / BLACK & GOLD (ADULTOS) --- */
[data-theme="gala"] {
  --primary-color: #fbbf24;
  --secondary-color: #f59e0b;
  --accent-color: #f43f5e;
  --bg-gradient: linear-gradient(135deg, #090d16 0%, #171e2e 50%, #2e1065 100%);
  --card-bg: rgba(15, 23, 42, 0.92);
  --card-border: rgba(251, 191, 36, 0.4);
  --text-dark: #f8fafc;
  --text-title: #fbbf24;
}

/* --- TEMA 10: GRADUACIÓN Y ÉXITO PROFESIONAL --- */
[data-theme="grad"] {
  --primary-color: #38bdf8;
  --secondary-color: #facc15;
  --accent-color: #a855f7;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
  --card-bg: rgba(15, 23, 42, 0.92);
  --card-border: rgba(56, 189, 248, 0.4);
  --text-dark: #f8fafc;
  --text-title: #38bdf8;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-dark);
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  transition: background 0.6s ease;
}

/* --- MODO INVITADO (Oculta controles de edición) --- */
body.is-guest-view .editor-only {
  display: none !important;
}

/* --- Partículas de Fondo --- */
.particle-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-particle {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.35;
  animation: floatParticle 12s infinite linear;
  user-select: none;
}

@keyframes floatParticle {
  0% { transform: translateY(-10vh) rotate(0deg) scale(0.8); opacity: 0; }
  15% { opacity: 0.45; }
  85% { opacity: 0.45; }
  100% { transform: translateY(110vh) rotate(360deg) scale(1.1); opacity: 0; }
}

/* --- Pantalla de Apertura (Gate Overlay) --- */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gate-overlay.hidden {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.envelope-wrapper {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: pulseEnvelope 3s infinite ease-in-out;
}

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

.envelope-icon {
  font-size: 5.5rem;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.25));
  animation: bounceIcon 2s infinite ease-in-out;
}

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

.gate-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.gate-subtitle {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 500;
}

.btn-open {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-open:hover {
  transform: scale(1.08) translateY(-2px);
}

/* --- Barra Superior de Control --- */
.top-controls {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.control-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  height: 44px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  color: #0f172a !important;
  gap: 6px;
}

.control-btn span {
  color: inherit !important;
}

.control-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
  background: #ffffff;
  color: #0f172a !important;
}

.btn-admin-nav {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  color: #facc15 !important;
  border: 1px solid #facc15 !important;
}

.btn-customize-nav {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
  color: #ffffff !important;
  border: none !important;
}

.btn-customize-nav:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
  filter: brightness(1.15);
  color: #ffffff !important;
}

.btn-login-nav {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
}

.btn-login-nav:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  filter: brightness(1.15);
  color: #ffffff !important;
}

/* --- Contenedor Principal --- */
.app-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 80px 16px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* --- HERO SECTION --- */
.hero-card {
  text-align: center;
  padding-top: 40px;
}

.hero-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  font-family: var(--font-heading);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--text-title) !important;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-name {
  color: var(--secondary-color) !important;
  display: block;
  font-size: 3.4rem;
  margin-top: 4px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

.hero-mascot-container {
  margin: 24px auto;
  position: relative;
  max-width: 280px;
}

.hero-photo-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff !important;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  z-index: 10;
}

.hero-photo-edit-btn:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.hero-mascot-img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.2));
  animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.age-badge {
  position: absolute;
  bottom: 0;
  right: 5px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  padding: 10px 20px;
  border-radius: 50px;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: rotate(-6deg);
}

.hero-subtitle {
  color: var(--text-dark) !important;
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-title) !important;
}

.card-desc {
  color: var(--text-dark) !important;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-top: 4px;
}

/* --- DETALLES Y TARJETAS DE INFORMACIÓN (LEGIBILIDAD EN TODAS LAS TEMÁTICAS) --- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--card-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.detail-icon {
  font-size: 2rem;
  line-height: 1;
}

.detail-item h4 {
  color: var(--text-title) !important;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.detail-item p,
#display-date,
#display-time,
#display-location-name,
#display-location-address,
#display-dresscode,
.glass-card p,
.form-group label {
  color: var(--text-dark) !important;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

/* REGLAS ESPECÍFICAS PARA TEMÁTICAS OSCURAS (GRADUACIÓN, ESPACIAL, DINOS, AUTOS, SUPERHÉROES, GALA) */
[data-theme="grad"] .detail-item,
[data-theme="space"] .detail-item,
[data-theme="dino"] .detail-item,
[data-theme="racing"] .detail-item,
[data-theme="superhero"] .detail-item,
[data-theme="gala"] .detail-item {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
}

[data-theme="grad"] .detail-item p,
[data-theme="space"] .detail-item p,
[data-theme="dino"] .detail-item p,
[data-theme="racing"] .detail-item p,
[data-theme="superhero"] .detail-item p,
[data-theme="gala"] .detail-item p,
[data-theme="grad"] #display-date,
[data-theme="space"] #display-date,
[data-theme="dino"] #display-date,
[data-theme="racing"] #display-date,
[data-theme="superhero"] #display-date,
[data-theme="gala"] #display-date,
[data-theme="grad"] #display-time,
[data-theme="space"] #display-time,
[data-theme="dino"] #display-time,
[data-theme="racing"] #display-time,
[data-theme="superhero"] #display-time,
[data-theme="gala"] #display-time,
[data-theme="grad"] #display-location-address,
[data-theme="space"] #display-location-address,
[data-theme="dino"] #display-location-address,
[data-theme="racing"] #display-location-address,
[data-theme="superhero"] #display-location-address,
[data-theme="gala"] #display-location-address,
[data-theme="grad"] #display-dresscode,
[data-theme="space"] #display-dresscode,
[data-theme="dino"] #display-dresscode,
[data-theme="racing"] #display-dresscode,
[data-theme="superhero"] #display-dresscode,
[data-theme="gala"] #display-dresscode,
[data-theme="grad"] .card-desc,
[data-theme="space"] .card-desc,
[data-theme="dino"] .card-desc,
[data-theme="racing"] .card-desc,
[data-theme="superhero"] .card-desc,
[data-theme="gala"] .card-desc,
[data-theme="grad"] .glass-card p,
[data-theme="space"] .glass-card p,
[data-theme="dino"] .glass-card p,
[data-theme="racing"] .glass-card p,
[data-theme="superhero"] .glass-card p,
[data-theme="gala"] .glass-card p,
[data-theme="grad"] .form-group label,
[data-theme="space"] .form-group label,
[data-theme="dino"] .form-group label,
[data-theme="racing"] .form-group label,
[data-theme="superhero"] .form-group label,
[data-theme="gala"] .form-group label {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* --- SELECTOR DE TEMÁTICAS POR CATEGORÍAS --- */
.category-header {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-title) !important;
  margin: 20px 0 10px 0;
  text-align: left;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  font-weight: 700;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.theme-chip {
  background: #ffffff !important;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.theme-chip.active, .theme-chip:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  background: #ffffff !important;
}

.theme-chip-icon {
  font-size: 1.8rem;
}

.theme-chip-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a !important;
}

/* --- GALERÍA DE FOTOS --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-photo {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-photo-box {
  border: 2px dashed var(--primary-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- REPRODUCTOR AUDIO --- */
.audio-controls-wrapper {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-play-pause {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-upload-btn {
  background: #f1f5f9;
  border: 1.5px dashed #cbd5e1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
}

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

.time-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--secondary-color);
  line-height: 1;
}

.time-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 6px;
}

/* --- BOTONES DE ACCIÓN --- */
.action-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-decoration: none;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn-action-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.btn-action-secondary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* --- MINI JUEGO TEMÁTICO --- */
.game-area {
  position: relative;
  width: 100%;
  height: 260px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  border: 3px dashed var(--primary-color);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  margin-top: 15px;
}

.game-score-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  z-index: 5;
}

.falling-item {
  position: absolute;
  font-size: 2.6rem;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.2));
}

.game-start-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  z-index: 10;
}

/* --- RSVP FORM --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin-bottom: 12px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #ffffff;
}

.btn-rsvp-submit {
  width: 100%;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  padding: 16px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

/* --- MODAL SUPER ADMIN DASHBOARD --- */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-metric-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.admin-metric-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #1e293b;
}

.admin-metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.admin-table th, .admin-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #334155;
}

.badge-social {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-google { background: #fee2e2; color: #dc2626; }
.badge-facebook { background: #dbeafe; color: #2563eb; }
.badge-email { background: #fef3c7; color: #d97706; }

/* MODALES GLOBALES */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

.btn-close-modal {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  animation: toastFade 3s ease forwards;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translateY(20px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

@media (max-width: 600px) {
  .action-buttons-row { grid-template-columns: 1fr; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.1rem; }
  .hero-name { font-size: 2.7rem; }
}
