/* ========================================
   INVITACIÓN DIGITAL - SUPER MARIO 64
   ======================================== */

/* ========================================
   VARIABLES Y RESET
   ======================================== */
:root {
  --color-primary: #e65aa0;
  --color-secondary: #f7a8c9;
  --color-accent: #fff7fb;
  --color-bg-light: #fff1f7;
  --color-bg-alt: #ffe6f1;
  --color-text-primary: #3b2b3d;
  --color-text-secondary: #5c3f55;
  --color-text-muted: #9a6d86;
  --color-red-500: #e65aa0;
  --color-red-600: #d94c92;
  --color-red-100: #ffd2e5;
  --color-blue-500: #f19fc4;
  --color-blue-100: #ffe1ef;
  --color-amber-500: #f6b37c;
  --color-amber-100: #ffe9d6;
  --color-green-500: #c48bd9;
  --color-green-100: #efe1f7;

  --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: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg-light);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(247, 168, 201, 0.45), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255, 210, 229, 0.6), transparent 45%),
    linear-gradient(180deg, rgba(255, 241, 247, 0.95) 0%, rgba(255, 230, 241, 0.85) 100%);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  height: 100%;
  position: relative;
}

/* ========================================
   PRE-SPLASH OPTIMIZING SCREEN
   ======================================== */
.pre-splash {
  position: fixed;
  inset: 0;
  background: #050205;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.pre-splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.pre-splash-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffe3f0;
  text-shadow: 0 0 14px rgba(255, 210, 229, 0.3);
}

/* 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: 'Playfair Display', 'Times New Roman', 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 20% 20%, rgba(255, 210, 229, 0.5), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(246, 179, 124, 0.35), transparent 40%),
    linear-gradient(145deg, #2a1021 0%, #3a1730 50%, #4a1c3a 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(255, 210, 229, 0.2) 100%),
    linear-gradient(90deg, transparent 93%, rgba(246, 179, 124, 0.18) 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(255, 210, 229, 0.55), rgba(246, 179, 124, 0.2), transparent 55%, rgba(230, 90, 160, 0.45));
  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;
  justify-content: center;
  gap: 3rem;
  animation: fadeInScale 1s ease-out;
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 3rem 2rem;
  width: 100%;
}

.splash-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
  justify-content: center;
}

/* Título de la invitación */
.splash-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  line-height: 1.4;
  color: #ffe3f0;
  text-shadow: 0 0 20px rgba(255, 210, 229, 0.5), 0 0 40px rgba(230, 90, 160, 0.3);
  letter-spacing: 0.02em;
  font-weight: 700;
  text-align: center;
  max-width: 90vw;
  margin: 0;
  animation: fadeInDown 0.8s ease-out;
}

.splash-title span {
  color: #f7a8c9;
  font-style: italic;
  display: block;
  text-shadow: 0 0 24px rgba(247, 168, 201, 0.6);
}


/* Texto de invitación en splash */
.splash-invitation-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  line-height: 1.5;
  color: #ffe3f0;
  text-shadow: 0 0 16px rgba(255, 210, 229, 0.5), 0 0 32px rgba(230, 90, 160, 0.25);
  letter-spacing: 0.03em;
  font-weight: 600;
  text-align: center;
  max-width: 90vw;
  margin: 0 0 1.5rem 0;
  animation: fadeInDown 0.8s ease-out;
}

.splash-invitation-text span {
  color: #f7a8c9;
  font-style: italic;
  display: inline;
  text-shadow: 0 0 20px rgba(247, 168, 201, 0.6);
}

/* Contenedor imagen reproductor */
.splash-player-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(291px, 64vw);
  height: min(291px, 64vw);
  aspect-ratio: 1;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: float 3.5s ease-in-out infinite;
}

.splash-player-container:hover {
  transform: scale(1.06);
}

.splash-player-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: none;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.splash-screen.is-loading .splash-ready {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  display: none;
}

.splash-screen.is-loading .splash-loading {
  display: flex;
}

.splash-screen.is-buffering .splash-control-btn {
  animation: pulse 1.1s ease-in-out infinite;
}

.splash-buffering {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 210, 229, 0.85);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.splash-screen.is-buffering .splash-buffering {
  opacity: 1;
  transform: translateY(0);
}


.splash-progress {
  width: min(320px, 72vw);
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 226, 238, 0.2);
  border: 1px solid rgba(255, 210, 229, 0.45);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(230, 90, 160, 0.18);
}

.splash-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(230, 90, 160, 0.9), rgba(247, 168, 201, 0.95), rgba(246, 179, 124, 0.9));
  box-shadow: 0 0 12px rgba(230, 90, 160, 0.4);
  transition: width 0.35s ease;
  position: relative;
}

.splash-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 45%, transparent 90%);
  transform: translateX(-120%);
  animation: shimmer 2.4s ease-in-out infinite;
}

.splash-loading-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #ffe3f0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.splash-loading-progress {
  font-size: 0.9rem;
  color: rgba(255, 210, 229, 0.95);
  letter-spacing: 0.22em;
}



@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { transform: translateX(-120%); }
  60% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@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(247, 168, 201, 0.5));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(230, 90, 160, 0.8));
  }
}

/* ========================================
   INDICADOR DE SCROLL
   ======================================== */
.scroll-indicator {
  position: fixed;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(247, 168, 201, 0.35), rgba(60, 21, 46, 0.75));
  border: 2px solid rgba(255, 210, 229, 0.6);
  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(230, 90, 160, 0.35), 0 0 16px rgba(255, 210, 229, 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(247, 168, 201, 0.5), rgba(60, 21, 46, 0.75));
  box-shadow: 0 10px 24px rgba(230, 90, 160, 0.5), 0 0 22px rgba(246, 179, 124, 0.35);
}

.scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #ffe3f0;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 210, 229, 0.5);
  margin: 0;
  line-height: 1;
}

.scroll-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: #f6b37c;
  animation: bounce 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(246, 179, 124, 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(247, 168, 201, 0.0));
  }
  50% {
    opacity: 0.78;
    filter: drop-shadow(0 0 14px rgba(230, 90, 160, 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;
}

/* ========================================
   CLIPS INDIVIDUALES
   ======================================== */
.clip-section {
  padding: 2rem 0;
  background: transparent;
}

.clip-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.clip-video {
  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;
}

.clip-video:hover {
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .clip-video {
    max-width: 100%;
    border-radius: var(--radius-lg);
  }
}

/* ========================================
   ITINERARIO - DIAGRAMA ICONOGRÁFICO
   ======================================== */
.itinerary-section {
  background: transparent;
  padding: 4rem 1.5rem 3rem;
}

.itinerary-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.itinerary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 226, 238, 0.9);
  color: #b9487b;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.itinerary-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--color-text-primary);
  text-shadow: 0 10px 24px rgba(90, 24, 63, 0.18);
}

.itinerary-subtitle {
  color: #7a5168;
  margin-top: 0.5rem;
  font-weight: 500;
}

.itinerary-note {
  color: #b9487b;
  margin-top: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.itinerary-diagram {
  display: grid;
  gap: 1.5rem;
}

.itinerary-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255, 238, 246, 0.8);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.itinerary-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 38px;
  top: 70px;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(230, 90, 160, 0.65), rgba(255, 210, 229, 0));
}

.itinerary-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(230, 90, 160, 0.95), rgba(246, 179, 124, 0.9));
  color: #6b2f55;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(230, 90, 160, 0.35);
  flex: 0 0 auto;
}

.itinerary-icon svg {
  width: 28px;
  height: 28px;
}

.itinerary-info {
  flex: 1;
}

.itinerary-time {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a2e55;
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.itinerary-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5c3f55;
}

.itinerary-step-text {
  color: #7a5168;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .itinerary-diagram {
    gap: 1.75rem;
  }
}

/* ========================================
   UBICACIONES
   ======================================== */
.locations-section {
  background: transparent;
  padding: 4rem 1.5rem 3rem;
}

.locations-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.locations-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 226, 238, 0.9);
  color: #b9487b;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.locations-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--color-text-primary);
  text-shadow: 0 10px 24px rgba(90, 24, 63, 0.18);
  text-align: center;
}

.locations-subtitle {
  color: #7a5168;
  margin-top: 0.5rem;
  font-weight: 500;
}

.locations-grid {
  display: grid;
  gap: 1.5rem;
}

.location-card {
  background: rgba(255, 236, 245, 0.92);
  border: 2px solid rgba(230, 90, 160, 0.3);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(90, 24, 63, 0.18);
  text-align: center;
  color: #5c3f55;
}

.location-image-wrapper {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(230, 90, 160, 0.25);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.location-image-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 32px rgba(230, 90, 160, 0.35);
}

.location-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.location-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.location-name {
  font-weight: 600;
  color: #7a5168;
}

.location-address {
  color: #8c6076;
  margin: 0.35rem 0 1.2rem;
}

.location-button {
  width: 100%;
}

@media (min-width: 768px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   SECCIÓN GALERÍA
   ======================================== */
.gallery-section {
  background: transparent;
  padding: 4rem 1.5rem 2.5rem;
}

.gallery-section h2 {
  text-align: center;
}

/* ========================================
   MINIATURA DE GALERÍA
   ======================================== */
.gallery-thumbnail-wrapper {
  max-width: 400px;
  margin: 2rem auto;
}

.gallery-thumbnail {
  position: relative;
  background: rgba(255, 236, 245, 0.6);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-thumbnail:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.gallery-item {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(90, 24, 63, 0.85), transparent);
  padding: 1.5rem 1rem 1rem;
  pointer-events: none;
}

.gallery-count {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   LIGHTBOX GALERÍA
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(60, 21, 46, 0.92);
  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: #ffe3f0;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.35rem 1rem;
  background: rgba(90, 24, 63, 0.55);
  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, 227, 240, 0.2);
  color: #fff5fb;
  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(247, 168, 201, 0.95), rgba(246, 179, 124, 0.95));
  color: #5c3f55;
  font-size: 2.5rem;
  font-weight: 900;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 24px rgba(230, 90, 160, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: radial-gradient(circle, rgba(247, 168, 201, 1), rgba(246, 179, 124, 1));
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(1.02);
}

.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(230, 90, 160, 0.28) 0%, rgba(247, 168, 201, 0.3) 55%, rgba(60, 21, 46, 0.85) 100%);
  backdrop-filter: blur(10px);
  border-radius: 2.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 40px rgba(230, 90, 160, 0.28), 0 0 30px rgba(247, 168, 201, 0.2);
  border: 2px solid rgba(255, 210, 229, 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(255, 210, 229, 0.3) 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: 'Playfair Display', serif;
  font-weight: 900;
  background: linear-gradient(135deg, #ffe3f0 0%, #f7a8c9 50%, #f6b37c 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(255, 210, 229, 0.55);
}

.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: #fff5fb;
  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: 'Nunito', 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(230, 90, 160, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 90, 160, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #f7a8c9 0%, #e65aa0 100%);
  cursor: not-allowed;
  opacity: 0.9;
}

.btn-secondary {
  background: linear-gradient(135deg, #ffe3f0 0%, #ffd2e5 100%);
  color: #7a2e55;
  border: 3px solid #f19fc4;
  box-shadow: 0 4px 12px rgba(230, 90, 160, 0.25);
  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, #ffd2e5 0%, #f7a8c9 100%);
  border-color: #e65aa0;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(230, 90, 160, 0.35);
  color: #5c1f41;
}

.btn-secondary:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 3px 8px rgba(230, 90, 160, 0.25);
}

.btn-hint {
  font-size: 0.875rem;
  color: #8c6076;
  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(90, 24, 63, 0.95);
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-top: 2px solid rgba(247, 168, 201, 0.6);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 100;
}

.footer-link {
  color: #ffd2e5;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-shadow: 0 2px 6px rgba(247, 168, 201, 0.6);
}

/* ========================================
   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: 1;
  transform: translateY(0) scale(1);
  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);
  }
}

/* ========================================
   SECCIÓN HONOR
   ======================================== */
.honor-section {
  padding: 2rem 0;
  background: transparent;
}

.honor-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.honor-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;
}

.honor-image:hover {
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .honor-image {
    max-width: 100%;
    border-radius: var(--radius-lg);
  }
}

/* ========================================
   SECCIÓN CORTE
   ======================================== */
.corte-section {
  padding: 2rem 0;
  background: transparent;
}

.corte-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.corte-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;
}

.corte-image:hover {
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .corte-image {
    max-width: 100%;
    border-radius: var(--radius-lg);
  }
}

/* ========================================
   SECCIÓN PADRINOS
   ======================================== */
.padrinos-section {
  padding: 2rem 0;
  background: transparent;
}

.padrinos-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.padrinos-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;
}

.padrinos-image:hover {
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .padrinos-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(230, 90, 160, 0.22), rgba(247, 168, 201, 0.2)),
    rgba(60, 21, 46, 0.82);
  border: 2px solid rgba(255, 210, 229, 0.6);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: 0 18px 35px rgba(230, 90, 160, 0.22), 0 0 40px rgba(247, 168, 201, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 90deg, rgba(230, 90, 160, 0.75), rgba(247, 168, 201, 0.6), rgba(255, 210, 229, 0.65), rgba(246, 179, 124, 0.45), rgba(196, 139, 217, 0.5), rgba(230, 90, 160, 0.75));
  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: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffe3f0;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(255, 210, 229, 0.55);
}

.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(230, 90, 160, 0.22) 0%, rgba(246, 179, 124, 0.2) 100%);
  border: 1px solid rgba(255, 210, 229, 0.45);
  border-radius: 1rem;
  padding: 1rem 0.75rem;
  box-shadow: inset 0 0 12px rgba(255, 210, 229, 0.2), 0 10px 22px rgba(230, 90, 160, 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: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff5fb;
  text-shadow: 0 0 12px rgba(255, 210, 229, 0.7);
}

.countdown-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(246, 179, 124, 0.9);
}

.countdown-note {
  font-size: 0.9rem;
  color: #ffe3f0;
  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(230, 90, 160, 0.22), rgba(247, 168, 201, 0.22)),
    rgba(60, 21, 46, 0.82);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 16px 32px rgba(230, 90, 160, 0.25), 0 0 24px rgba(247, 168, 201, 0.2);
  border: 2px solid rgba(255, 210, 229, 0.5);
  position: relative;
  overflow: hidden;
}

.dress-code-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 210, 229, 0.3) 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, #e65aa0, #f6b37c);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(230, 90, 160, 0.4);
  position: relative;
  z-index: 1;
}

.dress-code-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffe3f0;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(255, 210, 229, 0.6);
}

.dress-code-text {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff5fb;
  margin: 0.5rem 0;
  text-shadow: 0 0 12px rgba(230, 90, 160, 0.6);
  position: relative;
  z-index: 1;
}

.dress-code-subtitle {
  font-size: 1rem;
  color: rgba(246, 179, 124, 0.9);
  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(230, 90, 160, 0.2) 0%, rgba(247, 168, 201, 0.2) 100%);
  border-radius: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(230, 90, 160, 0.2);
}

.rsvp-toggle-btn {
  flex: 1;
  min-width: 160px;
  background: rgba(255, 236, 245, 0.85);
  border: 2px solid rgba(230, 90, 160, 0.45);
  color: #7a2e55;
  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: 'Nunito', sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(230, 90, 160, 0.25);
  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(255, 210, 229, 0.5) 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(230, 90, 160, 0.35);
  border-color: #e65aa0;
}

.rsvp-toggle-btn:hover::before {
  transform: scale(1);
}

/* Botón Confirmo Asistencia - Verde */
#btn-confirm-attendance.active {
  background: linear-gradient(135deg, #e65aa0 0%, #f7a8c9 100%);
  border-color: #f7a8c9;
  color: #fff5fb;
  box-shadow: 0 8px 24px rgba(230, 90, 160, 0.45), 0 0 0 3px rgba(255, 210, 229, 0.35);
  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(230, 90, 160, 0.55), 0 0 0 3px rgba(255, 210, 229, 0.4);
}

/* Botón No Podré Asistir - Rojo */
#btn-decline-attendance.active {
  background: linear-gradient(135deg, #f6b37c 0%, #e65aa0 100%);
  border-color: #f6b37c;
  color: #5c1f41;
  box-shadow: 0 8px 24px rgba(246, 179, 124, 0.4), 0 0 0 3px rgba(255, 210, 229, 0.3);
  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(230, 90, 160, 0.45), 0 0 0 3px rgba(255, 210, 229, 0.35);
}

@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(230, 90, 160, 0.22) 0%, rgba(247, 168, 201, 0.22) 100%),
    rgba(60, 21, 46, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 14px 40px rgba(230, 90, 160, 0.25), inset 0 0 0 2px rgba(255, 210, 229, 0.35);
  border: 2px solid rgba(255, 210, 229, 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: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: #ffe3f0;
  margin-bottom: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffe3f0 0%, #e65aa0 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: #f6b37c;
  font-weight: 900;
  font-size: 1.25rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 1.125rem 1.5rem;
  border: 2px solid rgba(230, 90, 160, 0.55);
  border-radius: 1.25rem;
  font-size: 1.05rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  background: rgba(255, 236, 245, 0.9);
  color: #5c3f55;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 6px 14px rgba(230, 90, 160, 0.2), inset 0 2px 4px rgba(255, 210, 229, 0.2);
  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='%23e65aa0' 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(255, 236, 245, 0.9);
  padding-right: 3.5rem;
  cursor: pointer;
}

.form-input:hover,
.form-select:hover {
  border-color: #e65aa0;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(230, 90, 160, 0.25), inset 0 2px 4px rgba(255, 210, 229, 0.2);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #e65aa0;
  box-shadow: 0 0 0 3px rgba(255, 210, 229, 0.45), 0 10px 24px rgba(230, 90, 160, 0.25);
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 236, 245, 1);
}

.form-input::placeholder {
  color: rgba(167, 123, 146, 0.7);
  font-style: italic;
  font-weight: 500;
}

.form-input:valid:not(:placeholder-shown),
.form-select:valid {
  border-color: #f7a8c9;
  background: linear-gradient(to right, rgba(255, 236, 245, 0.9) 0%, rgba(255, 210, 229, 0.6) 100%);
  box-shadow: 0 4px 12px rgba(230, 90, 160, 0.25), inset 0 2px 4px rgba(255, 210, 229, 0.2);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #e65aa0;
  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, #e65aa0 0%, #f7a8c9 55%, #f6b37c 100%);
  box-shadow: 0 10px 26px rgba(230, 90, 160, 0.4), inset 0 -4px 8px rgba(60, 21, 46, 0.2);
  border: 2px solid rgba(255, 210, 229, 0.6);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  color: #fff5fb;
}

.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(230, 90, 160, 0.55), inset 0 -4px 8px rgba(60, 21, 46, 0.2);
  border-color: #f6b37c;
}

.btn-submit-rsvp:hover::before {
  left: 100%;
}

.btn-submit-rsvp:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 6px 14px rgba(230, 90, 160, 0.35), inset 0 -2px 4px rgba(60, 21, 46, 0.2);
}

.decline-message {
  display: none;
  background: linear-gradient(135deg, rgba(230, 90, 160, 0.2) 0%, rgba(246, 179, 124, 0.2) 100%),
    rgba(60, 21, 46, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 14px 40px rgba(230, 90, 160, 0.25), inset 0 0 0 2px rgba(255, 210, 229, 0.35);
  border: 2px solid rgba(255, 210, 229, 0.45);
  animation: fadeInUp 0.5s ease-out;
}

.decline-message.is-visible {
  display: block;
}

.decline-text {
  font-size: 1.125rem;
  color: #ffe3f0;
  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;
  }
}
