/* ==========================================
   RESET Y REGLAS GENERALES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden; /* Evita cualquier desplazamiento horizontal involuntario en móviles */
}

body {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #333333;
  background-image: url(assets/textura-papel.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Marco decorativo perimetral */
body::before {
  content: "";
  position: fixed;
  inset: 18px;
  border: 6px solid #48028a;
  mix-blend-mode: darken; /* Mezcla el borde con la textura de fondo */
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================
   LOADER Y FONDO AZUL NOCHE
   ========================================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh; /* dvh asegura que en móviles se adapte a las barras del navegador */
  background-color: #f5f5f5; /* Minimal light background */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Caja contenedora para el SVG y el texto */
.loader-box {
  position: relative;
  width: 88%;
  max-width: 420px;
  height: 75vh;
  height: 75dvh;
  max-height: 550px;
  min-height: 380px; /* Evita que los elementos se encimen en pantallas cortas */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SVG que actúa como el borde dibujado */
.border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible; /* Asegura que el resplandor drop-shadow no quede recortado */
}

/* Estilo del rectángulo SVG con efecto glow */
.border-rect {
  fill: transparent;
  stroke: #7E22CE; /* Theme purple */
  stroke-width: 1.2;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawBorder 2.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.45));
}

@keyframes drawBorder {
  to {
    stroke-dashoffset: 0;
  }
}

/* Contenido dentro del marco */
.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  width: 100%;
  opacity: 0;
  animation: fadeInContent 1.2s ease 0.8s forwards;
}

@keyframes fadeInContent {
  to {
    opacity: 1;
  }
}

/* Monograma */
.monogram-container {
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.monogram-img {
  width: clamp(100px, 28vw, 140px);
  height: auto;
  max-width: 80%;
  filter: brightness(0) saturate(100%) invert(40%) sepia(91%) saturate(2266%) hue-rotate(250deg) brightness(95%) contrast(96%) drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
  z-index: 2;
}

/* Frase debajo del monograma */
.loader-phrase {
  font-size: clamp(0.78rem, 2.8vw, 0.95rem);
  font-weight: 300;
  color: #333333; /* Dark text for contrast */
  letter-spacing: clamp(1.5px, 0.8vw, 3px);
  margin-bottom: clamp(20px, 4vh, 35px);
  text-transform: uppercase;
  line-height: 1.4;
  padding: 0 10px;
  z-index: 2;
}

/* ==========================================
   BOTÓN CON PULSO Y EFECTO HOVER
   ========================================== */
@keyframes pulseBtn {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(168, 85, 247, 0);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
  }
}

.btn-reveal {
  background-color: rgba(126, 34, 206, 0.15);
  border: 1px solid #5f12a7;
  color: #ffffff;
  padding: 12px 26px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  animation: pulseBtn 2.4s ease-in-out infinite;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

.btn-reveal:hover {
  animation: none;
  background-color: #7E22CE;
  border-color: #7E22CE;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

/* ==========================================
   PANTALLA PRINCIPAL (HERO)
   ========================================== */
.hero-section {
  position: relative;
  min-height: 135vh;
  min-height: 135dvh;
  overflow-x: clip; /* Previene scroll horizontal sin romper posicionamiento */
}

.hero-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

/* Grilla / Fila Principal: Novio | Título | Novia */
.hero-layout-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  gap: clamp(15px, 3.5vw, 35px);
}

/* Bloque Central del Título */
.hero-text {
  text-align: center;
  z-index: 2;
  padding: 0 10px;
  flex: 1;
  min-width: 0; /* Permite al flex container encoger el texto sin desbordar */
}

.hero-tagline {
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  letter-spacing: clamp(2px, 1vw, 4px);
  text-transform: uppercase;
  color: #7E22CE;
  font-weight: 500;
  display: block;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  font-weight: 500;
  color: #2D1540;
  line-height: 1.15;
  margin: 12px 0;
}

.ampersand-hero {
  color: #7E22CE;
  font-style: italic;
  font-size: clamp(1.4rem, 4.8vw, 2.2rem);
  line-height: 1;
  display: inline-block;
}

.hero-date {
  font-size: clamp(0.75rem, 2.6vw, 0.95rem);
  letter-spacing: clamp(1.5px, 0.8vw, 3px);
  color: #6B7280;
  margin-top: 6px;
}

/* Contenedores de las fotos laterales */
.groom-wrapper,
.bride-wrapper {
  flex: 0 0 26%;
  max-width: 180px;
  min-width: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estado Inicial del Novio (entra por la izquierda) */
.groom-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateX(-60px) scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(-6px 6px 12px rgba(126, 34, 206, 0.15));
}

/* Estado Inicial de la Novia (entra por la derecha) */
.bride-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateX(65px) scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(6px 6px 12px rgba(126, 34, 206, 0.15));
}

/* Estado Activo al hacer Scroll: se acomodan centrados junto al título */
.groom-img.visible {
  opacity: 1;
  transform: translateX(15px) scale(1);
}

.bride-img.visible {
  opacity: 1;
  transform: translateX(-15px) scale(1);
}

/* ==========================================
   INDICADOR DE SCROLL
   ========================================== */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 20;
  animation: floatIndicator 2.2s ease-in-out infinite;
}

.scroll-indicator.scroll-hidden {
  opacity: 0;
  visibility: hidden;
  animation: none;
  transform: translate(-50%, 15px); /* Se desliza suavemente hacia abajo al ocultarse */
}

/* Animación de flotación sutil para invitar a interactuar */
@keyframes floatIndicator {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}

.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6809c2;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid #6809c2;
  border-radius: 14px;
  position: relative;
  display: flex;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 3px 12px rgba(104, 9, 194, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.mouse-icon .wheel {
  width: 3.5px;
  height: 7px;
  background-color: #6809c2;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ==========================================
   DIVISOR ELEGANTE
   ========================================== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 85%;
  max-width: 480px;
  margin: 50px auto 30px auto;
  opacity: 0.7;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7E22CE, transparent);
}

.divider-icon {
  color: #7E22CE;
  font-size: 0.85rem;
}

/* ==========================================
   SECCIÓN NUESTRA HISTORIA
   ========================================== */
.story-section {
  position: relative;
  width: 100%;
  padding: 30px 20px 100px 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.story-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* Contenido textual */
.story-content {
  flex: 1.2;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-tagline {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7E22CE;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.story-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: #2D1540;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 20px;
}

.story-paragraph {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 16px;
  font-weight: 300;
}

.story-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #6809c2;
  margin-top: 25px;
  padding-left: 18px;
  border-left: 2px solid #7E22CE;
  line-height: 1.4;
}

/* Columna imagen */
.story-media {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateX(50px) scale(0.94);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  filter: drop-shadow(0 12px 25px rgba(104, 9, 194, 0.18));
}

/* Estado activo disparado por Scroll */
.story-section.visible .story-content {
  opacity: 1;
  transform: translateX(0);
}

.story-section.visible .story-img {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ==========================================
   SECCIÓN: EVENTO Y CONTADOR
   ========================================== */
.event-section {
  position: relative;
  width: 100%;
  padding: 30px 20px 120px 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.event-container {
  width: 100%;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* 1. Bloque del Contador */
.countdown-wrapper {
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 40px 30px;
  background-color: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(126, 34, 206, 0.25);
  border-radius: 24px;
  box-shadow: 0 10px 35px rgba(104, 9, 194, 0.08);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-tagline {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7E22CE;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  color: #2D1540;
  font-weight: 500;
  margin-bottom: 25px;
}

/* Grilla del Contador */
.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(126, 34, 206, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(104, 9, 194, 0.06);
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 600;
  color: #2D1540;
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7E22CE;
  font-weight: 500;
  margin-top: 4px;
}

.countdown-colon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #7E22CE;
  font-weight: 600;
  line-height: 1;
  margin-top: -12px;
}

/* Botón Agendar Calendario */
.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6809c2;
  background-color: rgba(126, 34, 206, 0.08);
  border: 1px solid rgba(126, 34, 206, 0.3);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-calendar:hover {
  background-color: #7E22CE;
  color: #ffffff;
  border-color: #7E22CE;
  box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
  transform: translateY(-2px);
}

/* 2. Tarjetas del Evento */
.event-cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

.event-card {
  background-color: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(126, 34, 206, 0.2);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(104, 9, 194, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-cards-grid .event-card:nth-child(2) {
  transition-delay: 0.15s;
}

.event-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(126, 34, 206, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.event-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #2D1540;
  font-weight: 500;
  margin-bottom: 6px;
}

.event-card-time {
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7E22CE;
  font-weight: 600;
  margin-bottom: 14px;
}

.event-card-place {
  font-size: 1.05rem;
  color: #333333;
  font-weight: 500;
  margin-bottom: 6px;
}

.event-card-address {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 22px;
  font-weight: 300;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #6809c2;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-map:hover {
  background-color: #7E22CE;
  box-shadow: 0 4px 16px rgba(126, 34, 206, 0.4);
  transform: translateY(-2px);
}

/* Estado activo al scroll */
.event-section.visible .countdown-wrapper,
.event-section.visible .event-card {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   SECCIÓN: CONFIRMACIÓN (R.S.V.P.)
   ========================================== */
.rsvp-section {
  position: relative;
  width: 100%;
  padding: 40px 20px 80px 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.rsvp-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* Columna foto de espaldas */
.rsvp-media {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rsvp-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateX(-50px) scale(0.94);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  filter: drop-shadow(0 12px 25px rgba(104, 9, 194, 0.18));
}

/* Columna contenido */
.rsvp-content {
  flex: 1.2;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-phrase {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 14px;
  font-weight: 300;
}

.rsvp-phrase strong {
  font-weight: 600;
  color: #6809c2;
}

.rsvp-deadline {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #7E22CE;
  font-weight: 500;
  margin-bottom: 25px;
}

.btn-rsvp-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #6809c2;
  border: 1px solid #7E22CE;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(104, 9, 194, 0.3);
  transition: all 0.3s ease;
  animation: pulseBtn 2.6s ease-in-out infinite;
}

.btn-rsvp-open:hover {
  animation: none;
  background-color: #7E22CE;
  box-shadow: 0 8px 25px rgba(126, 34, 206, 0.5);
  transform: translateY(-2px);
}

/* Estado activo disparado por Scroll */
.rsvp-section.visible .rsvp-img {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.rsvp-section.visible .rsvp-content {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   MODAL DE CONFIRMACIÓN
   ========================================== */
.rsvp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(11, 19, 43, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.rsvp-modal-overlay.modal-active {
  opacity: 1;
  visibility: visible;
}

.rsvp-modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  background-color: #ffffff;
  background-image: url(assets/textura-papel.jpg);
  background-size: cover;
  border: 2px solid rgba(126, 34, 206, 0.3);
  border-radius: 24px;
  padding: 35px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-modal-overlay.modal-active .rsvp-modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #666666;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #7E22CE;
}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: #2D1540;
  margin: 5px 0;
}

.modal-desc {
  font-size: 0.85rem;
  color: #666666;
  font-weight: 300;
}

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

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

.form-group label {
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2D1540;
  font-weight: 600;
}

.form-group input,
.form-group select {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  padding: 12px 14px;
  border: 1px solid rgba(126, 34, 206, 0.3);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #7E22CE;
  box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.15);
}

.btn-rsvp-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #25D366;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.btn-rsvp-send:hover {
  background-color: #20BA5A;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* ==========================================
   FOOTER / CIERRE
   ========================================== */
.wedding-footer {
  position: relative;
  width: 100%;
  padding: 50px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-monogram-img {
  width: 70px;
  height: auto;
  opacity: 0.75;
  filter: drop-shadow(0 2px 8px rgba(126, 34, 206, 0.2));
  margin-bottom: 12px;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: #7E22CE;
  font-weight: 500;
  margin-bottom: 6px;
}

.footer-phrase {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666666;
  font-weight: 300;
}

/* ==========================================
   OPTIMIZACIONES Y ADAPTACIÓN PARA MÓVILES
   ========================================== */

/* Tablets y Celulares estándar */
@media (max-width: 600px) {
  body::before {
    inset: 8px;
    border-width: 2px;
  }

  .hero-section {
    min-height: 125vh;
    min-height: 125dvh;
    padding: 0;
  }

  .hero-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-layout-grid {
    min-height: auto;
    gap: 6px;
    align-items: center;
  }

  .groom-wrapper,
  .bride-wrapper {
    flex: 0 0 24%;
    max-width: 100px;
    min-width: 65px;
  }

  /* Desplazamiento para pantallas angostas */
  .groom-img {
    transform: translateX(-45px) scale(0.92);
  }

  .bride-img {
    transform: translateX(45px) scale(0.92);
  }

  /* En móviles, se acomodan centrados al hacer scroll */
  .groom-img.visible {
    transform: translateX(8px) scale(1);
  }

  .bride-img.visible {
    transform: translateX(-8px) scale(1);
  }

  .hero-text {
    padding: 0 4px;
  }

  .scroll-indicator {
    bottom: 18px;
  }

  .scroll-text {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

  /* Adaptación de la historia en móviles */
  .story-container {
    flex-direction: column-reverse;
    gap: 30px;
    text-align: center;
  }

  .story-content {
    transform: translateY(30px);
  }

  .story-img {
    max-width: 220px;
    transform: translateY(30px) scale(0.95);
  }

  .story-section.visible .story-content,
  .story-section.visible .story-img {
    transform: translateY(0) scale(1);
  }

  .story-quote {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(126, 34, 206, 0.3);
    padding-top: 15px;
    margin-top: 20px;
  }

  /* Adaptación de contador y tarjetas en móviles */
  .countdown-wrapper {
    padding: 28px 14px;
    border-radius: 20px;
  }

  .countdown-grid {
    gap: 6px;
    margin-bottom: 22px;
  }

  .countdown-item {
    min-width: 58px;
    padding: 8px 4px;
    border-radius: 12px;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .countdown-colon {
    font-size: 1.4rem;
    margin-top: -6px;
  }

  .event-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-card {
    padding: 28px 20px;
  }

  /* Adaptación de confirmación en móviles */
  .rsvp-container {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .rsvp-img {
    max-width: 220px;
    transform: translateY(30px) scale(0.95);
  }

  .rsvp-content {
    transform: translateY(30px);
  }

  .rsvp-section.visible .rsvp-img,
  .rsvp-section.visible .rsvp-content {
    transform: translateY(0) scale(1);
  }

  .rsvp-modal-card {
    padding: 28px 18px;
    border-radius: 20px;
  }
}

/* Teléfonos muy pequeños (< 370px, ej. iPhone SE / Galaxy Mini) */
@media (max-width: 370px) {
  .groom-wrapper,
  .bride-wrapper {
    flex: 0 0 23%;
    max-width: 80px;
    min-width: 60px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .loader-box {
    width: 92%;
    min-height: 350px;
  }

  .countdown-item {
    min-width: 50px;
    padding: 6px 2px;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .btn-rsvp-open {
    padding: 12px 24px;
    font-size: 0.78rem;
  }
}

/* Modo Paisaje en Celulares */
@media (max-height: 500px) and (orientation: landscape) {
  .loader-box {
    height: 92dvh;
    min-height: 0;
  }

  .monogram-img {
    width: 75px;
  }

  .monogram-container {
    margin-bottom: 8px;
  }

  .loader-phrase {
    margin-bottom: 14px;
    font-size: 0.72rem;
  }

  .hero-layout-grid {
    min-height: 300px;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .btn-reveal,
  .border-rect,
  .loader-content,
  .groom-img,
  .bride-img,
  .scroll-indicator,
  .story-content,
  .story-img,
  .countdown-wrapper,
  .event-card,
  .btn-rsvp-open,
  .btn-rsvp-send,
  .rsvp-img,
  .rsvp-content,
  .mouse-icon .wheel {
    animation: none !important;
    transition: none !important;
  }
}