/* --- Paleta de Colores Mapeada --- */
:root {
  --global-background: #F0EDD9;
  --secondary-color: #FFFFFF;
  --card-background: #6C745F;
  --action-button-color: #F0EDD9;
  --text-darkest: #1B1E27;
  --green-darkest: #2D5A4C;
  --detail-grey: #6C745F;
}

@font-face {
  font-family: 'Hello Paris Sans';
  src: url('../fonts/HelloParisSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Declaración de la variante Medium */
@font-face {
  font-family: 'Hello Paris Sans';
  src: url('../fonts/HelloParisSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--global-background);
  color: var(--text-darkest);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Textura sutil de lino en el fondo */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

/* --- Login Wrapper Centrado --- */
.login-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* =========================================================
   2. TULIPANES REALISTAS EN MÁRGENES LATERALES
   ========================================================= */
.tulips-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.tulip-group {
  position: absolute;
  bottom: -20px;
  display: flex;
  align-items: flex-end;
}

.tulip-group.left {
  left: -20px;
}

.tulip-group.right {
  right: -20px;
  transform: scaleX(-1);
}

.tulip-item {
  transform-origin: bottom center;
  will-change: transform;
  animation: windSway 7s ease-in-out infinite alternate;
  filter: drop-shadow(4px 12px 18px rgba(27, 30, 39, 0.15));
}

.tulip-svg {
  display: block;
  height: auto;
}

.tulip-item.pos-1 {
  width: 180px;
  animation-duration: 6.2s;
}

.tulip-item.pos-2 {
  width: 220px;
  margin-left: -70px;
  margin-bottom: -10px;
  animation-duration: 7.8s;
  animation-delay: -2s;
}

.tulip-item.pos-3 {
  width: 160px;
  margin-left: -60px;
  animation-duration: 5.5s;
  animation-delay: -4s;
}

@keyframes windSway {
  0% { transform: rotate(0deg) skewX(0deg); }
  25% { transform: rotate(3.5deg) skewX(1.5deg); }
  60% { transform: rotate(-2deg) skewX(-1deg); }
  85% { transform: rotate(2deg) skewX(1deg); }
  100% { transform: rotate(0deg) skewX(0deg); }
}

/* =========================================================
   3. ESTILOS DE TARJETA E INTERFAZ
   ========================================================= */
@keyframes scaleIn {
  0% { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Monograma / Logotipo --- */
.monogram-container {
  animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  margin-bottom: 24px;
}

.monogram-circle {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background-color: #F0EDD9;
  border: 1.5px solid var(--green-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Evita que la imagen se salga de los bordes redondeados */
  padding: 12px;     /* Margen interno para dar espacio al logo */
  box-sizing: border-box;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mantiene la proporción del logo sin distorsionarlo */
  display: block;
}

.header {
  text-align: center;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.3s forwards;
}

.subtitle {
  font-family: 'Hello Paris Sans', sans-serif;
  font-size: 42px; /* Las fuentes estilo script o caligráficas necesitan mayor tamaño */
  font-weight: 400;
  letter-spacing: 1px; /* Reducido para que las letras ligadas encajen bien */
  color: var(--detail-grey);
  display: block;
  margin-bottom: 4px;  
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-darkest);
  margin-bottom: 8px;
}

.description {
  font-size: 14px;
  color: var(--detail-grey);
}

.card {
  width: 100%;
  background-color: var(--card-background);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 12px 32px rgba(27, 30, 39, 0.15);
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  color: var(--secondary-color);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  stroke: var(--secondary-color);
  pointer-events: none;
}

input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(222, 186, 181, 0.3);
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  color: #FFFFFF;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(222, 186, 181, 0.2);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  stroke: var(--secondary-color);
  transition: stroke 0.2s ease;
}

.toggle-password:hover svg {
  stroke: var(--secondary-color);
}

.btn-submit {
  width: 100%;
  background-color: var(--action-button-color);
  color: var(--card-background);
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
  /*box-shadow: 0 4px 12px rgba(181, 0, 22, 0.3);*/
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(1px);
}

.help-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--secondary-color);
  font-size: 13px;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.help-link:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .tulip-group.left { left: -60px; opacity: 0.6; }
  .tulip-group.right { right: -60px; opacity: 0.6; }
  .tulip-item.pos-1 { width: 130px; }
  .tulip-item.pos-2 { width: 160px; }
  .tulip-item.pos-3 { width: 110px; }
}

@media (max-width: 600px) {
  .tulip-group.left { left: -90px; opacity: 0.35; }
  .tulip-group.right { right: -90px; opacity: 0.35; }
}

/* --- LEYOUT GENERAL Y DECORATIVO --- */
.rsvp-container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 40px 24px 60px 24px;
  position: relative;
  z-index: 2;
}

/* Enlace Volver */
.go-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--detail-grey);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
  margin-bottom: 20px;
}

.go-back-link:hover {
  color: var(--text-darkest);
  transform: translateX(-3px);
}

/* Monograma Superior */
.rsvp-monogram-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.rsvp-monogram {
  width: 70px;
  height: 70px;
}

.monogram-svg {
  width: 100%;
  height: 100%;
}

/* Header del Formulario */
.rsvp-header {
  text-align: center;
  margin-bottom: 42px;
}

.rsvp-title {
  font-family: 'Hello Paris Sans', 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--text-darkest);
  line-height: 1.1;
  margin-bottom: 8px;
}

.rsvp-deadline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--detail-grey);
  text-transform: uppercase;
}

/* Estructura del Formulario */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rsvp-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Etiquetas y Preguntas */
.rsvp-label-text,
.rsvp-label-question {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-darkest);
  margin-bottom: 12px;
  display: block;
}

/* Input de Texto Simple */
.rsvp-input-text {
  width: 100%;
  background-color: transparent;
  border: 1px solid rgba(101, 112, 132, 0.35);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-darkest);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-input-text:focus {
  border-color: var(--green-darkest);
  box-shadow: 0 0 0 3px rgba(45, 90, 76, 0.1);
}

/* Opciones Estilo Tarjeta (Pills) */
.option-cards-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  position: relative;
  width: 100%;
}

/* Ocultar el input radio por defecto */
.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Etiqueta visible estilo botón suave */
.option-card label {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(222, 186, 181, 0.4);
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-darkest);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Hover de las opciones */
.option-card:hover label {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}

/* Estado Seleccionado (:checked) */
.option-card input[type="radio"]:checked + label {
  background-color: #FFFFFF;
  border-color: var(--green-darkest);
  color: var(--green-darkest);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(45, 90, 76, 0.12);
}

/* Centrado del botón de envío */
.rsvp-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Pantalla completa del loader */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #fdfbf7;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden; /* Evita que aparezca barra de desplazamiento horizontal durante la animación */
}

#loader-wrapper.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}


/* Animación Ondulada Izquierda */
@keyframes floatFromLeft {
  0% {
    transform: translate3d(-40vw, 0px, 0) rotate(-180deg);
    opacity: 0.2;
  }
  25% {
    transform: translate3d(-28vw, -30px, 0) rotate(-135deg);
    opacity: 1;
  }
  50% {
    transform: translate3d(-16vw, 30px, 0) rotate(-90deg);
    opacity: 1;
  }
  75% {
    transform: translate3d(-8vw, -10px, 0) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(-20px, 0px, 0) rotate(0deg);
    opacity: 1;
  }
}

/* Animación Ondulada Derecha */
@keyframes floatFromRight {
  0% {
    transform: translate3d(40vw, 0px, 0) rotate(180deg);
    opacity: 0.2;
  }
  25% {
    transform: translate3d(28vw, 30px, 0) rotate(135deg);
    opacity: 1;
  }
  50% {
    transform: translate3d(16vw, -30px, 0) rotate(90deg);
    opacity: 1;
  }
  75% {
    transform: translate3d(8vw, 10px, 0) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(20px, 0px, 0) rotate(0deg);
    opacity: 1;
  }
}

/* Contador */
#loader-percentage {
  font-family: 'Hello Paris Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #4a4a4a;
  letter-spacing: 2px;
}


/* --- Navegación Adaptada --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 6vw;
  position: relative;
  z-index: 2;
}

.logo {
  font-family: 'Hello Paris Sans', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--green-darkest);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-darkest);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--action-button-color);
}

.nav-direction {
  text-decoration: none;
  color: var(--action-button-color);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: transform 0.3s ease;
}

.nav-direction:hover {
  transform: translateX(4px);
}

/* --- Layout Principal --- */
.hero-container {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: 40px;
  padding: 10px 6vw 60px 6vw;
  align-items: center;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

/* --- Columna Izquierda --- */
.left-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 480px;
}

.main-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 5.5vw, 5.8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  color: var(--text-darkest);
}

.stamp-wrapper {
  width: 110px;
  height: 110px;
  margin-top: 40px;
  animation: rotateStamp 22s linear infinite;
}

.stamp-svg {
  width: 100%;
  height: 100%;
}

@keyframes rotateStamp {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Columna Derecha (Tarjetas Ovaladas) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.timeline-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.oval-wrapper {
  width: 100%;
  aspect-ratio: 1 / 2.0;
  border-radius: 25%;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(27, 30, 39, 0.12); /* Sombra integrada */
  border: 1px solid rgba(222, 186, 181, 0.5); /* Borde suave en tono secondary-color */
}

.oval-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) contrast(1.02); /* Tono cálido acorde al fondo rosa lino */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover .oval-img {
  transform: scale(1.06);
}

/* --- Número Decorativo Superpuesto --- */
.card-number {
  position: absolute;
  bottom: -8px;
  right: -8px;
  font-family: 'Hello Paris Sans', sans-serif;
  font-size: clamp(2.5rem, 3.2vw, 3.8rem);
  font-weight: 500;
  color: var(--green-darkest);
  line-height: 1;
  z-index: 2;
  background-color: var(--global-background);
  padding: 0 6px;
  border-radius: 50%;
}

/* --- Línea Separadora y Tipografías de Tarjeta --- */
.vertical-line {
  width: 1.5px;
  height: 45px;
  background-color: var(--secondary-color);
  margin: 20px 0 15px 0;
}

.card-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--action-button-color);
  margin-bottom: 6px;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-darkest);
  text-transform: uppercase;
}

.couple-dates {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-darkest);
  text-transform: uppercase;
}

/* --- Adaptabilidad Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .left-hero {
    min-height: auto;
    align-items: center;
    text-align: center;
  }

  .cards-grid {
    gap: 20px;
  }
}

@media (max-width: 650px) {
  .nav-links {
    display: none;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .image-container {
    max-width: 240px;
  }
}

/* --- Monograma Hero (Tamaño aumentado y giro) --- */
.hero-monogram {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-monogram-circle {
  /* Aumento de tamaño responsive */
  width: clamp(200px, 16vw, 260px) !important;
  height: clamp(200px, 16vw, 260px) !important;
  
  /* Ajuste de padding y bordes para la escala grande */
  padding: 24px !important;
  border-width: 2px !important;
  border-color: var(--green-darkest);
  background-color: rgba(222, 186, 181, 0.25);
  box-shadow: 0 16px 35px rgba(27, 30, 39, 0.08);
  
  /* Animación de entrada + Giro suave continuo */
  animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             spinMonogram 25s linear infinite 0.8s;
}

/* Animación de Giro continuo 360° */
@keyframes spinMonogram {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Efecto hover: pausa el giro suavemente al pasar el cursor */
.hero-monogram-circle:hover {
  animation-play-state: paused;
}

/* Posicionamiento y escalado del adorno de tulipa */
.hex-tulip {
  position: absolute;
  width: 75px;
  height: 180px;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 6px 12px rgba(27, 30, 39, 0.12));
}

.hex-tulip.top-left {
  top: -40px;
  left: -35px;
  transform: rotate(-22deg);
}

.hex-tulip.bottom-right {
  bottom: -45px;
  right: -35px;
  transform: rotate(158deg) scaleX(-1); /* Girado y en espejo para simetría orgánica */
}

/* --- ESTILO DEL BOTÓN MINIMALISTA DE BODA --- */
.btn-rsvp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  margin-top: 24px;
  
  /* Tipografía elegante */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #572f12; /* Tono bronce/madera profundo */
  text-decoration: none !important;
  
  /* Fondo champán / dorado muy sutil */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 235, 217, 0.9) 100%);
  border: 1px solid #c78e55; /* Borde dorado/cobre */
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  
  /* Sombra suave */
  box-shadow: 
    0 8px 20px rgba(132, 79, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Icono dentro del botón */
.btn-rsvp .btn-icon {
  width: 18px;
  height: 18px;
  color: #844f27;
  transition: transform 0.4s ease, color 0.4s ease;
}

/* Efecto de destello de luz (Shimmer) al pasar el ratón */
.btn-rsvp::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 35%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 65%
  );
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

/* --- ESTADOS INTERACTIVOS (HOVER Y CLICK) --- */
.btn-rsvp:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #844f27;
  color: #3b1b07;
  background: linear-gradient(135deg, #ffffff 0%, #f7f0e1 100%);
  box-shadow: 
    0 12px 28px rgba(132, 79, 39, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-rsvp:hover::before {
  transform: rotate(25deg) translateX(100%);
}

.btn-rsvp:hover .btn-icon {
  color: #3b1b07;
  transform: scale(1.12) rotate(-5deg);
}

.btn-rsvp:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 6px 14px rgba(132, 79, 39, 0.15);
}

