/* ========================================
   INVITACIÓN DIGITAL - SUPER MARIO 64
   ======================================== */

/* ========================================
   VARIABLES Y RESET
   ======================================== */
:root {
  --color-primary: #0ea5e9;
  --color-secondary: #7dd3fc;
  --color-accent: #ffffff;
  --color-bg-light: #f0f9ff;
  --color-bg-alt: #e0f2fe;
  --color-text-primary: #1f2937;
  --color-text-secondary: #4b5563;
  --color-text-muted: #9ca3af;
  --color-red-500: #0ea5e9;
  --color-red-600: #0284c7;
  --color-red-100: #bae6fd;
  --color-blue-500: #38bdf8;
  --color-blue-100: #e0f2fe;
  --color-amber-500: #22d3ee;
  --color-amber-100: #cffafe;
  --color-green-500: #2dd4bf;
  --color-green-100: #ecfeff;

  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  --transition-base: all 0.2s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  height: 100%;
  position: relative;
}

/* ========================================
   BARRA DE PROGRESO FUTURISTA
   ======================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 16px;
  z-index: 10001;
  pointer-events: none;
  background: rgba(12, 10, 29, 0.6);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.scroll-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 121, 249, 0.15) 50%, transparent 100%);
  opacity: 0.7;
  animation: scan-shift 3.5s linear infinite;
}

.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed 0%, #e879f9 45%, #f472b6 70%, #facc15 100%);
  box-shadow: 0 0 16px rgba(232, 121, 249, 0.6), 0 0 30px rgba(124, 58, 237, 0.45);
  transition: width 0.12s ease-out;
}

.scroll-progress-glow {
  position: absolute;
  top: -6px;
  left: 0;
  width: 34px;
  height: 28px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.9) 0%, rgba(232, 121, 249, 0.5) 45%, transparent 70%);
  filter: blur(2px);
  transform: translateX(0);
  transition: transform 0.12s ease-out;
}

@keyframes scan-shift {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Video de fondo */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */
h1, h2, h3 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

@keyframes coinSpin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.float-animation-delayed {
  animation: float 3s ease-in-out infinite 1.5s;
}

.twinkle {
  animation: twinkle 2s ease-in-out infinite;
}

.coin-spin {
  animation: coinSpin 2s linear infinite;
  transform-style: preserve-3d;
}

.animate-bounce {
  animation: bounce 1s ease-in-out infinite;
}

/* ========================================
   UTILIDADES DE ESTILO
   ======================================== */
.gradient-hero {
  background: transparent;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-shadow {
  box-shadow: var(--shadow-lg);
}

.card-shadow-hover {
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.card-shadow-hover:hover {
  box-shadow: var(--shadow-xl);
}

.star-glow {
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.5));
}

.star-shadow {
  filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.4));
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */
#app-wrapper {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: visible;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

section {
  width: 100%;
  padding: 2rem 1.5rem;
}

.container {
  max-width: 28rem; /* 448px */
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   REVEAL EN SCROLL
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   SPLASH SCREEN
   ======================================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at top, rgba(232, 121, 249, 0.25), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.2), transparent 40%),
    linear-gradient(135deg, #0a0a1a 0%, #12112a 45%, #1a1033 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
}

.splash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 93%, rgba(232, 121, 249, 0.16) 100%),
    linear-gradient(90deg, transparent 93%, rgba(124, 58, 237, 0.16) 100%);
  background-size: 48px 48px;
  opacity: 0.35;
  transform: perspective(800px) rotateX(35deg) scale(1.4);
  transform-origin: center;
  animation: grid-float 10s linear infinite;
}

.splash-screen::after {
  content: '';
  position: absolute;
  inset: -40% -10% auto;
  height: 70%;
  background: conic-gradient(from 140deg, rgba(232, 121, 249, 0.4), rgba(124, 58, 237, 0.1), transparent 55%, rgba(244, 114, 182, 0.35));
  filter: blur(30px);
  opacity: 0.6;
  animation: splash-sweep 12s linear infinite;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeInScale 1s ease-out;
  position: relative;
  z-index: 1;
}

.splash-orbit {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
}

.splash-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(232, 121, 249, 0.35);
  box-shadow: 0 0 18px rgba(232, 121, 249, 0.35), inset 0 0 16px rgba(124, 58, 237, 0.25);
  animation: ring-pulse 3.5s ease-in-out infinite;
}

.splash-ring.ring-2 {
  inset: 14px;
  border-color: rgba(124, 58, 237, 0.5);
  animation-delay: 0.6s;
  transform: rotate(8deg);
}

.splash-ring.ring-3 {
  inset: 28px;
  border-color: rgba(250, 204, 21, 0.45);
  animation-delay: 1.2s;
  transform: rotate(-8deg);
}

.splash-image {
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 0 18px rgba(232, 121, 249, 0.65)) drop-shadow(0 0 32px rgba(124, 58, 237, 0.5));
  animation: pulse 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.splash-text {
  font-size: clamp(1.25rem, 5vw, 2rem);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #f5d0fe;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 0.3s both;
  text-shadow: 0 0 14px rgba(232, 121, 249, 0.5);
}

.splash-subtext {
  margin-top: -0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.85);
  font-weight: 600;
  animation: glow-soft 2.6s ease-in-out infinite;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 0.55; }
}

@keyframes grid-float {
  0% { transform: perspective(800px) rotateX(35deg) translateY(0) scale(1.4); }
  100% { transform: perspective(800px) rotateX(35deg) translateY(60px) scale(1.4); }
}

@keyframes splash-sweep {
  0% { transform: translateX(-10%) rotate(0deg); }
  100% { transform: translateX(10%) rotate(360deg); }
}

@keyframes glow-soft {
  0%, 100% { opacity: 0.7; text-shadow: 0 0 10px rgba(250, 204, 21, 0.35); }
  50% { opacity: 1; text-shadow: 0 0 16px rgba(250, 204, 21, 0.6); }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(125, 211, 252, 0.5));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(125, 211, 252, 0.8));
  }
}

/* ========================================
   INDICADOR DE SCROLL
   ======================================== */
.scroll-indicator {
  position: fixed;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.25), rgba(12, 10, 29, 0.7));
  border: 2px solid rgba(232, 121, 249, 0.55);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.35), 0 0 16px rgba(232, 121, 249, 0.4);
  backdrop-filter: blur(6px);
}

.scroll-indicator-up {
  top: 44%;
}

.scroll-indicator-down {
  top: 56%;
}

.scroll-indicator:hover {
  transform: scale(1.1);
  background: radial-gradient(circle, rgba(232, 121, 249, 0.45), rgba(12, 10, 29, 0.75));
  box-shadow: 0 10px 24px rgba(232, 121, 249, 0.55), 0 0 22px rgba(250, 204, 21, 0.35);
}

.scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #f5d0fe;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(232, 121, 249, 0.5);
  margin: 0;
  line-height: 1;
}

.scroll-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: #facc15;
  animation: bounce 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.55));
}

.scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ========================================
   VIDEOS DE CONTENIDO
   ======================================== */
.video-section {
  width: 100%;
  padding: 0;
  background: transparent;
}

.video-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
}

.content-video {
  width: 100%;
  height: auto;
  display: block;
  outline: none;
  pointer-events: none;
  cursor: default;
}

.content-image {
  width: 100%;
  height: auto;
  display: block;
  animation: slow-flash 3.6s ease-in-out infinite;
}

@keyframes slow-flash {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 0 rgba(125, 211, 252, 0.0));
  }
  50% {
    opacity: 0.78;
    filter: drop-shadow(0 0 14px rgba(125, 211, 252, 0.35));
  }
}

.content-video::-webkit-media-controls {
  display: none !important;
}

.content-video::-webkit-media-controls-enclosure {
  display: none !important;
}

.content-video::-webkit-media-controls-panel {
  display: none !important;
}

/* ========================================
   SECCIÓN GALERÍA
   ======================================== */
.gallery-section {
  background: transparent;
  padding: 4rem 1.5rem 2.5rem;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(207, 250, 254, 0.85);
  backdrop-filter: blur(6px);
  color: #0369a1;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  auto-rows: 180px;
}

.gallery-item {
  background: rgba(224, 242, 254, 0.3);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* ========================================
   LIGHTBOX GALERÍA
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 25, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(92vw, 960px);
  max-height: 82vh;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.lightbox-image.is-transitioning {
  opacity: 0;
  transform: scale(0.98);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  color: #cffafe;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.35rem 1rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.95), rgba(34, 211, 238, 0.95));
  color: #1f2937;
  font-size: 2.5rem;
  font-weight: 900;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: radial-gradient(circle, rgba(125, 211, 252, 1), rgba(34, 211, 238, 1));
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 58px;
    height: 58px;
    font-size: 2rem;
  }

  .lightbox-close {
    width: 40px;
    height: 40px;
  }

  .lightbox-caption {
    bottom: 1rem;
    font-size: 0.85rem;
  }
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.small {
  grid-column: span 1;
  grid-row: span 1;
}

/* ========================================
   SECCIÓN CTA / CIERRE
   ======================================== */
.cta-section {
  background: transparent;
  padding: 3.5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.cta-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(232, 121, 249, 0.28) 55%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(10px);
  border-radius: 2.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.28), 0 0 30px rgba(232, 121, 249, 0.2);
  border: 2px solid rgba(232, 121, 249, 0.55);
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.2) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.cta-card > .btn {
  margin-top: 0.75rem;
}

.cta-card > .btn:first-of-type {
  margin-top: 2rem;
}

.cta-corner-star {
  position: absolute;
  opacity: 0.3;
  animation: twinkle 3s ease-in-out infinite;
}

.cta-corner-star.top-right {
  top: 1rem;
  right: 1rem;
  animation-delay: 0s;
}

.cta-corner-star.bottom-left {
  bottom: 1rem;
  left: 1rem;
  animation-delay: 1.5s;
}

.cta-title {
  font-size: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  background: linear-gradient(135deg, #f5d0fe 0%, #e879f9 50%, #facc15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse 2s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(232, 121, 249, 0.5);
}

.cta-gratitude-image {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.cta-gratitude-img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  object-fit: cover;
}

.cta-message {
  color: white;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.125rem;
  font-weight: 600;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-xl);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  text-align: center;
  margin-bottom: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-red-500) 0%, var(--color-red-600) 100%);
  color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #2dd4bf 0%, #0ea5a4 100%);
  cursor: not-allowed;
  opacity: 0.9;
}

.btn-secondary {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0c4a6e;
  border: 3px solid #38bdf8;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  font-weight: 700;
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
  border-color: #0284c7;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
  color: #075985;
}

.btn-secondary:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 3px 8px rgba(56, 189, 248, 0.3);
}

.btn-hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 600;
}

.cta-footer {
  text-align: center;
  margin-top: 3rem;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-icons svg {
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.2;
}

.footer-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ========================================
   FOOTER COMERCIAL
   ======================================== */
.site-footer {
  background: rgba(12, 10, 29, 0.35);
  padding: 0.75rem 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(232, 121, 249, 0.15);
  backdrop-filter: blur(6px);
}

.footer-link {
  color: rgba(226, 232, 240, 0.72);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
}

.footer-link:hover {
  color: rgba(250, 204, 21, 0.85);
  text-decoration: none;
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   CONTRASTE Y LEGIBILIDAD
   ======================================== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   RESPONSIVE DESIGN (Mobile First)
   ======================================== */
/* Mobile Gallery - 2 columnas */
.gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  auto-rows: 120px;
}

@media (min-width: 640px) {
  section {
    padding: 4rem 2rem;
  }

  h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    auto-rows: 140px;
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (min-width: 768px) {
  section {
    padding: 5rem 3rem;
  }

  .container {
    max-width: 42rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    auto-rows: 150px;
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 56rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    auto-rows: 180px;
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.portada-section {
  padding: 0;
  background: transparent;
}

.portada-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.portada-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.portada-section.reveal.is-visible .portada-image {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: portada-in 0.8s ease-out both;
}

@keyframes portada-in {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================
   SECCIÓN FECHA
   ======================================== */
.date-section {
  padding: 2rem 0;
  background: transparent;
}

.date-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.date-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.date-image:hover {
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .date-image {
    max-width: 100%;
    border-radius: var(--radius-lg);
  }
}

/* ========================================
   CONTADOR REGRESIVO
   ======================================== */
.countdown-section {
  padding: 2.5rem 0 3rem;
  background: transparent;
}

.countdown-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(232, 121, 249, 0.18)),
    rgba(10, 10, 24, 0.75);
  border: 2px solid rgba(232, 121, 249, 0.5);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: 0 18px 35px rgba(124, 58, 237, 0.25), 0 0 40px rgba(232, 121, 249, 0.18);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 90deg, rgba(124, 58, 237, 0.8), rgba(232, 121, 249, 0.6), rgba(244, 114, 182, 0.7), rgba(52, 211, 153, 0.5), rgba(250, 204, 21, 0.5), rgba(124, 58, 237, 0.8));
  opacity: 0.35;
  filter: blur(18px);
  z-index: 0;
  animation: holo-spin 12s linear infinite;
}

.countdown-card > * {
  position: relative;
  z-index: 1;
}

.countdown-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f5d0fe;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(232, 121, 249, 0.6);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.countdown-item {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(244, 114, 182, 0.18) 100%);
  border: 1px solid rgba(232, 121, 249, 0.35);
  border-radius: 1rem;
  padding: 1rem 0.75rem;
  box-shadow: inset 0 0 12px rgba(232, 121, 249, 0.2), 0 10px 22px rgba(124, 58, 237, 0.2);
  position: relative;
  overflow: hidden;
}

.countdown-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.15) 35%, transparent 70%);
  transform: translateX(-120%);
  animation: scan-line 3.8s ease-in-out infinite;
}

.countdown-value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fdf4ff;
  text-shadow: 0 0 12px rgba(232, 121, 249, 0.7);
}

.countdown-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 204, 21, 0.85);
}

.countdown-note {
  font-size: 0.9rem;
  color: #f5d0fe;
  font-weight: 600;
}

@keyframes holo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scan-line {
  0% { transform: translateX(-120%); }
  55% { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}

@media (min-width: 640px) {
  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .countdown-value {
    font-size: 2.25rem;
  }
}

/* ========================================
   CÓDIGO DE VESTIMENTA
   ======================================== */
.dress-code-section {
  padding: 3rem 0;
  background: transparent;
}

.dress-code-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(232, 121, 249, 0.2)),
    rgba(12, 10, 29, 0.82);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.25), 0 0 24px rgba(232, 121, 249, 0.2);
  border: 2px solid rgba(232, 121, 249, 0.45);
  position: relative;
  overflow: hidden;
}

.dress-code-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.2) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.dress-code-icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #e879f9);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(232, 121, 249, 0.4);
  position: relative;
  z-index: 1;
}

.dress-code-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f5d0fe;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(232, 121, 249, 0.6);
}

.dress-code-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fdf4ff;
  margin: 0.5rem 0;
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
  position: relative;
  z-index: 1;
}

.dress-code-subtitle {
  font-size: 1rem;
  color: rgba(250, 204, 21, 0.85);
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .dress-code-card {
    padding: 2rem 1.5rem;
  }

  .dress-code-icon {
    width: 64px;
    height: 64px;
  }

  .dress-code-icon svg {
    width: 40px;
    height: 40px;
  }

  .dress-code-title {
    font-size: 1.5rem;
  }

  .dress-code-text {
    font-size: 1.5rem;
  }
}

/* ========================================
   FORMULARIO RSVP - ESTILO INFANTIL
   ======================================== */
.rsvp-form-container {
  margin: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.rsvp-toggle-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18) 0%, rgba(232, 121, 249, 0.18) 100%);
  border-radius: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.25);
}

.rsvp-toggle-btn {
  flex: 1;
  min-width: 160px;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(232, 121, 249, 0.5);
  color: #f5d0fe;
  padding: 1.125rem 2rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rsvp-toggle-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.35) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.rsvp-toggle-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 22px rgba(232, 121, 249, 0.45);
  border-color: #e879f9;
}

.rsvp-toggle-btn:hover::before {
  transform: scale(1);
}

/* Botón Confirmo Asistencia - Verde */
#btn-confirm-attendance.active {
  background: linear-gradient(135deg, #7c3aed 0%, #e879f9 100%);
  border-color: #e879f9;
  color: #fdf4ff;
  box-shadow: 0 8px 24px rgba(232, 121, 249, 0.5), 0 0 0 3px rgba(232, 121, 249, 0.25);
  transform: translateY(-2px) scale(1.05);
  animation: wiggle 0.5s ease;
}

#btn-confirm-attendance.active:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(232, 121, 249, 0.6), 0 0 0 3px rgba(232, 121, 249, 0.3);
}

/* Botón No Podré Asistir - Rojo */
#btn-decline-attendance.active {
  background: linear-gradient(135deg, #f472b6 0%, #facc15 100%);
  border-color: #facc15;
  color: #1f2937;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.5), 0 0 0 3px rgba(250, 204, 21, 0.25);
  transform: translateY(-2px) scale(1.05);
  animation: wiggle 0.5s ease;
}

#btn-decline-attendance.active:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.6), 0 0 0 3px rgba(250, 204, 21, 0.3);
}

@keyframes wiggle {
  0%, 100% { transform: translateY(-2px) scale(1.05) rotate(0deg); }
  25% { transform: translateY(-2px) scale(1.05) rotate(-3deg); }
  75% { transform: translateY(-2px) scale(1.05) rotate(3deg); }
}

.rsvp-form {
  display: none;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(232, 121, 249, 0.2) 100%),
    rgba(12, 10, 29, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.28), inset 0 0 0 2px rgba(232, 121, 249, 0.35);
  border: 2px solid rgba(232, 121, 249, 0.55);
  position: relative;
  overflow: hidden;
}

.rsvp-form.is-visible {
  display: block;
}

.rsvp-form::before {
  content: '⭐';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  opacity: 0.15;
  animation: spin 10s linear infinite;
}

.rsvp-form::after {
  content: '🎮';
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 2.5rem;
  opacity: 0.15;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.form-group:last-of-type {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: #f5d0fe;
  margin-bottom: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f5d0fe 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-left: 0.5rem;
}

.form-label::before {
  content: '🌟';
  position: absolute;
  left: -1.5rem;
  font-size: 1rem;
  animation: twinkle-mini 2s ease-in-out infinite;
}

@keyframes twinkle-mini {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.form-label::after {
  content: ' *';
  color: #facc15;
  font-weight: 900;
  font-size: 1.25rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 1.125rem 1.5rem;
  border: 2px solid rgba(232, 121, 249, 0.6);
  border-radius: 1.25rem;
  font-size: 1.05rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
  color: #fdf4ff;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.25), inset 0 2px 4px rgba(232, 121, 249, 0.1);
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e879f9' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
  background-color: rgba(15, 23, 42, 0.6);
  padding-right: 3.5rem;
  cursor: pointer;
}

.form-input:hover,
.form-select:hover {
  border-color: #e879f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(232, 121, 249, 0.35), inset 0 2px 4px rgba(232, 121, 249, 0.15);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25), 0 10px 24px rgba(232, 121, 249, 0.35);
  transform: translateY(-3px) scale(1.02);
  background: rgba(15, 23, 42, 0.75);
}

.form-input::placeholder {
  color: rgba(226, 232, 240, 0.6);
  font-style: italic;
  font-weight: 500;
}

.form-input:valid:not(:placeholder-shown),
.form-select:valid {
  border-color: #34d399;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.6) 0%, rgba(124, 58, 237, 0.2) 100%);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3), inset 0 2px 4px rgba(52, 211, 153, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #f472b6;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.btn-submit-rsvp {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #7c3aed 0%, #e879f9 55%, #facc15 100%);
  box-shadow: 0 10px 26px rgba(232, 121, 249, 0.45), inset 0 -4px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(232, 121, 249, 0.6);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  color: #fdf4ff;
}

.btn-submit-rsvp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn-submit-rsvp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 34px rgba(232, 121, 249, 0.6), inset 0 -4px 8px rgba(0, 0, 0, 0.2);
  border-color: #facc15;
}

.btn-submit-rsvp:hover::before {
  left: 100%;
}

.btn-submit-rsvp:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.decline-message {
  display: none;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(250, 204, 21, 0.18) 100%),
    rgba(12, 10, 29, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.28), inset 0 0 0 2px rgba(232, 121, 249, 0.35);
  border: 2px solid rgba(232, 121, 249, 0.45);
  animation: fadeInUp 0.5s ease-out;
}

.decline-message.is-visible {
  display: block;
}

.decline-text {
  font-size: 1.125rem;
  color: #f5d0fe;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 600;
}

/* Animaciones de transición para formulario */
.rsvp-form,
.decline-message {
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
  0% { 
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% { 
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Estados manejados por clase */

@media (max-width: 640px) {
  .rsvp-toggle-buttons {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .rsvp-toggle-btn {
    min-width: 100%;
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
  }

  .rsvp-form,
  .decline-message {
    padding: 1.75rem 1.5rem;
  }

  .form-label {
    font-size: 1rem;
  }

  .form-label::before {
    left: -1.25rem;
  }

  .form-input,
  .form-select {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-width: 3px;
  }

  .btn-submit-rsvp {
    padding: 1.125rem 1.5rem;
    font-size: 1rem;
  }
}



/* ========================================
   DARK MODE (Opcional)
   ======================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-primary: #f3f4f6;
    --color-text-secondary: #d1d5db;
    --color-bg-light: #111827;
    --color-bg-alt: #1f2937;
  }

  .gallery-section {
    background: transparent;
  }

  .cta-card {
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    border-color: #374151;
  }
}
