/* Reset y estilos base - Mobile First */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

/* Mejoras para dispositivos touch */
*,
*:before,
*:after {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Elementos interactivos permiten selección */
input,
textarea,
[contenteditable] {
  -webkit-user-select: auto;
  -khtml-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

button,
input[type="submit"],
input[type="button"],
.submit-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

/* Optimización para iOS Safari */
input,
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  -webkit-border-radius: 0;
}

/* Prevenir zoom en inputs en iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select:focus,
  textarea:focus,
  input:focus {
    font-size: 16px;
  }
}

body {
  font-family: "Lora", Georgia, serif;
  line-height: 1.6;
  color: #3e3e3e;
  background: #f9f6f2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Prevenir zoom en iOS */
  -webkit-text-size-adjust: none;
  /* Scroll suave */
  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
  /* Optimización de rendering */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Prevenir overflow horizontal */
  overflow-x: hidden;
}

/* Bloquear scroll hasta que comience la experiencia */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Desactivar todas las animaciones hasta que comience la experiencia */
body.no-scroll .animate {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

body.no-scroll [class*="animate"] {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

/* ========== OPTIMIZACIONES TIPOGRÁFICAS MÓVILES ========== */
/* Mejorar legibilidad en pantallas pequeñas */
@media (max-width: 767px) {
  body {
    line-height: 1.5;
    font-size: 16px; /* Base font size para prevenir zoom */
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }

  p {
    line-height: 1.6;
    margin-bottom: 1.2em;
  }

  /* Mejorar contraste para pantallas móviles */
  .hero-content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 374px) {
  body {
    font-size: 14px;
    line-height: 1.4;
  }

  h1,
  h2 {
    line-height: 1.2;
  }
}

/* ========== BREAKPOINTS MÓVILES MEJORADOS ========== */
/* Mobile Extra Small: 0px - 374px */
@media (max-width: 374px) {
  .container {
    padding: 0 10px;
  }

  .couple-names {
    font-size: 1.8em !important;
    line-height: 1.2;
  }

  .hero-content {
    padding: 20px 10px;
    margin: 10px;
  }
}

/* Mobile Extra Small: hasta 374px */
@media (max-width: 374px) {
  .container {
    padding: 0 10px;
  }

  .couple-names {
    font-size: 1.8em !important;
  }

  /* Timeline extra compacto */
  .timeline-section {
    padding: 40px 15px !important;
  }

  .timeline-section h2 {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }

  .timeline {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 10px !important;
  }

  .timeline-item {
    margin-bottom: 20px !important;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    padding: 15px 16px !important;
    gap: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .timeline-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    order: 0 !important;
  }

  .timeline-text {
    order: 1 !important;
    flex: 1 !important;
  }

  .timeline-time {
    font-size: 1.2em !important;
  }

  .timeline-label {
    font-size: 0.95em !important;
  }

  /* RSVP section - título extra compacto para pantallas muy pequeñas */
  .rsvp-section h2 {
    font-size: 1.6em !important;
    line-height: 1.1 !important;
    padding: 0 5px !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
  }
}

/* Mobile Small: 375px - 479px */
@media (min-width: 375px) and (max-width: 479px) {
  .container {
    padding: 0 15px;
  }

  .couple-names {
    font-size: 2em !important;
  }

  /* Timeline optimizado para pantallas pequeñas */
  .timeline-section {
    padding: 45px 15px !important;
  }

  .timeline-section h2 {
    font-size: 1.9em !important;
    margin-bottom: 32px !important;
  }

  .timeline {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 12px !important;
  }

  .timeline-item {
    margin-bottom: 22px !important;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    padding: 16px 18px !important;
    gap: 13px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .timeline-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 19px !important;
    order: 0 !important;
  }

  .timeline-text {
    order: 1 !important;
    flex: 1 !important;
  }

  .timeline-time {
    font-size: 1.25em !important;
  }

  .timeline-label {
    font-size: 1em !important;
  }

  /* RSVP section - título compacto para móviles pequeños */
  .rsvp-section h2 {
    font-size: 1.7em !important;
    line-height: 1.15 !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
  }
}

/* Mobile Medium: 480px - 767px */
@media (min-width: 480px) and (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .couple-names {
    font-size: 2.2em !important;
  }

  /* Timeline ajustes para pantallas medianas */
  .timeline-section {
    padding: 55px 18px !important;
  }

  .timeline-section h2 {
    font-size: 2.1em !important;
  }

  .timeline {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px !important;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Modal de contraseña */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #f9f6f2;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.3);
  border: 2px solid #d8c7a3;
}

.modal-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5em;
  color: #b3a18c;
  margin-bottom: 10px;
}

.modal-header p {
  color: #3e3e3e;
  margin-bottom: 30px;
}

#passwordForm input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid #d8c7a3;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
  background: #f9f6f2;
  color: #3e3e3e;
  -webkit-appearance: none;
  appearance: none;
}

#passwordForm input:focus {
  outline: none;
  border-color: #b3a18c;
}

#passwordForm button {
  width: 100%;
  padding: 12px;
  background: #b3a18c;
  color: #f9f6f2;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

#passwordForm button:hover {
  background: #3e3e3e;
}

.error-message {
  color: #3e3e3e;
  margin-top: 10px;
  font-size: 14px;
  background: #d8c7a3;
  padding: 8px;
  border-radius: 5px;
}

/* Estilos del contenido principal - consolidado con Hero section */

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><text x="10" y="15" text-anchor="middle" font-size="12" fill="rgba(249,246,242,0.1)">♥</text></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 40px 20px;
  margin: 20px;
}

.wedding-logo {
  width: 120px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  opacity: 0.95;
}

.couple-names {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3em;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  color: #f9f6f2 !important;
}

.wedding-date {
  font-size: 1.5em;
  font-style: italic;
  margin-bottom: 10px;
  opacity: 0.95;
  color: #f9f6f2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.date-info {
  font-size: 1.2em;
  font-style: italic;
  opacity: 0.9;
  color: #f9f6f2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Secciones */
.invitation-section,
.timeline-section,
.rsvp-section {
  padding: 80px 0;
}

.invitation-section {
  background: linear-gradient(
    180deg,
    rgba(179, 161, 140, 0.3) 0%,
    rgba(249, 246, 242, 0.8) 30%,
    #f9f6f2 100%
  );
  text-align: center;
  padding: 80px 0 60px 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invitation-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3em;
  color: #b3a18c;
  margin-bottom: 30px;
}

.invitation-text {
  font-size: 1.2em;
  color: #3e3e3e;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Sección de fecha y contador */
.wedding-countdown {
  background: #f9f6f2;
  padding: 80px 0;
  text-align: center;
}

.wedding-date-section {
  margin-bottom: 40px;
}

.wedding-date-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5em;
  font-weight: 700;
  color: #b3a18c;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(179, 161, 140, 0.1);
}

.wedding-time {
  font-size: 1.1em;
  color: #3e3e3e;
  font-style: italic;
  opacity: 0.9;
}

.countdown-container {
  max-width: 600px;
  margin: 0 auto;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto;
}

.countdown-item {
  background: rgba(249, 246, 242, 0.9);
  border: 2px solid #b3a18c;
  border-radius: 8px;
  padding: 10px 6px;
  min-width: 70px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.countdown-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(179, 161, 140, 0.3);
}

.countdown-number {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4em;
  font-weight: 700;
  color: #b3a18c;
  line-height: 1;
  margin-bottom: 4px;
  text-align: center;
  width: 100%;
}

.countdown-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lora", Georgia, serif;
  font-size: 0.7em;
  color: #3e3e3e;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  height: 100%;
}

/* Timeline del evento */
.timeline-section {
  background: #f9f6f2;
}

.timeline-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5em;
  color: #b3a18c;
  text-align: center;
  margin-bottom: 50px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    #d8c7a3 20%,
    #b3a18c 80%,
    transparent
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
  min-height: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Elementos impares - contenido a la izquierda */
.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 10px;
  text-align: right;
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-icon {
  margin-right: 0;
  margin-left: 8px;
}

/* Elementos pares - contenido a la derecha */
.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 10px;
  text-align: left;
}

.timeline-icon {
  color: #b3a18c;
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.timeline-content {
  max-width: 300px;
  transition: all 0.3s ease;
  gap: 8px;
}

.timeline-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.timeline-content:hover {
  transform: translateY(-2px);
}

.timeline-time {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4em;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.timeline-label {
  font-family: "Lora", Georgia, serif;
  font-size: 1.1em;
  color: #3e3e3e;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

/* Sección RSVP */
.rsvp-section {
  background: #f9f6f2;
  padding: 80px 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5em;
  color: #b3a18c;
  text-align: center;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.rsvp-section h2.animate {
  opacity: 1;
  transform: translateY(0);
}

.rsvp-section > .container > p {
  text-align: center;
  color: #3e3e3e;
  margin-bottom: 40px;
  font-size: 1.1em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.4s;
}

.rsvp-section > .container > p.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Botón principal de RSVP */
.rsvp-btn {
  background: linear-gradient(135deg, #b3a18c, #8a7a65);
  color: #f9f6f2;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: "Playfair Display", serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(179, 161, 140, 0.3);
  opacity: 0;
  transform: translateY(30px);
}

.rsvp-btn.animate {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s;
  animation: heartbeat 2s ease-in-out infinite 1.2s;
}

.rsvp-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s;
}

.rsvp-btn:hover::before {
  left: 100%;
}

.rsvp-btn i {
  margin-right: 12px;
  font-size: 1.1em;
  animation: heartPulse 1.5s ease-in-out infinite;
}

.rsvp-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(179, 161, 140, 0.4);
}

.rsvp-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(179, 161, 140, 0.5);
}

/* Animaciones para el botón RSVP */
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
    color: #f9f6f2;
  }
  50% {
    transform: scale(1.2);
    color: #ff6b6b;
  }
}

/* Estilos para el modal de RSVP */
.swal-rsvp-modal {
  font-family: "Lora", Georgia, serif !important;
}

.rsvp-modal-content {
  text-align: left !important;
}

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

.modal-form-group label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #3e3e3e !important;
  font-weight: 600 !important;
  font-family: "Lora", Georgia, serif !important;
  font-size: 14px !important;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
  font-family: "Lora", Georgia, serif !important;
  background: #f9f6f2 !important;
  color: #3e3e3e !important;
  transition: border-color 0.3s !important;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
  border-color: #b3a18c !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(179, 161, 140, 0.1) !important;
}

.swal-rsvp-confirm-btn {
  font-family: "Playfair Display", serif !important;
  font-weight: 600 !important;
}

.swal-rsvp-cancel-btn {
  font-family: "Lora", Georgia, serif !important;
}

/* Estilos antiguos del formulario - mantener solo para elementos que puedan ser reutilizados */
#guestsCountGroup {
  display: none;
}

.rsvp-message.success {
  background: #d8c7a3;
  color: #3e3e3e;
  border: 1px solid #b3a18c;
}

.rsvp-message.error {
  background: #f9f6f2;
  color: #1a1a1a;
  border: 1px solid #b3a18c;
}

/* Footer */
footer {
  background: #3e3e3e;
  color: #f9f6f2;
  text-align: center;
  padding: 30px 0;
}

footer p {
  opacity: 0.9;
}

/* Responsive - Mobile First */

/* Estilos base (móvil) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Modal de contraseña - Mobile First */
.modal-content {
  background: #f9f6f2;
  padding: 25px 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.3);
  border: 2px solid #d8c7a3;
  margin: 0 10px;
}

.modal-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2em;
  color: #b3a18c;
  margin-bottom: 10px;
}

/* Hero section - Mobile First */
.hero {
  background-image: url("photos/manos.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  color: #f9f6f2;
  text-align: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Optimización de imágenes */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ========== OPTIMIZACIONES DE IMÁGENES MÓVILES ========== */
img {
  max-width: 100%;
  height: auto;
  /* Optimización de rendering */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-image,
.final-hero-section img {
  /* Optimización para imágenes grandes */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  -ms-interpolation-mode: bicubic;
}
@media (max-width: 767px) {
  .hero {
    /* Usar background-attachment: scroll en móvil para mejor performance */
    background-attachment: scroll !important;
    /* Reducir calidad de imagen en móviles con conexión lenta */
    background-size: cover;
  }
}

/* Optimización para conexiones lentas */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .hero {
    background-image: none !important;
    background-color: #b3a18c !important;
  }
}

/* Overlay para el gradiente */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(216, 199, 163, 0.2) 0%,
    rgba(179, 161, 140, 0.4) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.couple-names {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.7em;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(26, 26, 26, 0.3);
}

.wedding-date {
  font-size: 1.5em;
  font-style: italic;
  margin-bottom: 8px;
  opacity: 0.9;
}

.date-info {
  font-size: 1em;
  font-style: italic;
  opacity: 0.8;
}

/* Secciones - Mobile First */
.invitation-section,
.timeline-section,
.rsvp-section {
  padding: 50px 0;
}

.invitation-section h2,
.timeline-section h2,
.rsvp-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.2em;
  color: #b3a18c;
  text-align: center;
  margin-bottom: 25px;
}

.invitation-text {
  font-size: 1.1em;
  color: #3e3e3e;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  padding: 0 20px;
}

/* Estilos mobile first - solo aplicados en pantallas pequeñas */
@media (max-width: 767px) {
  /* Hero responsive */
  .hero {
    min-height: 100vh;
    padding: 0 15px;
    /* Optimización para performance */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .hero-content {
    padding: 15px;
    max-width: 100%;
  }

  .wedding-logo {
    width: 70px;
    height: auto;
    margin-bottom: 15px;
  }

  .couple-names {
    font-size: 2.2em;
    margin-bottom: 15px;
    line-height: 1.2;
    /* Prevenir desbordamiento */
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .wedding-date {
    font-size: 1.3em;
    margin-bottom: 8px;
  }

  .date-info {
    font-size: 0.95em;
    line-height: 1.4;
  }

  /* Invitation section responsive */
  .invitation-section {
    padding: 60px 20px 40px 20px;
  }

  .invitation-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
  }

  .invitation-text {
    font-size: 1.1em;
    padding: 0 10px;
  }

  /* Timeline móvil rediseñado - simple y funcional */
  .timeline-section {
    padding: 50px 20px;
    background: #f9f6f2;
  }

  .timeline-section h2 {
    font-size: 2.1em;
    margin-bottom: 35px;
    text-align: center;
    color: #b3a18c;
  }

  .timeline-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .timeline {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 15px;
    position: relative;
    background: transparent;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    margin-bottom: 25px;
    position: relative;
    display: block;
    width: 100%;
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: center;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    margin: 0;
    max-width: 100%;
    width: 100%;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e8ddd4;
    box-shadow: 0 4px 15px rgba(179, 161, 140, 0.12);
    transition: all 0.3s ease;
    gap: 15px;
  }

  .timeline-item:nth-child(odd) .timeline-content:hover,
  .timeline-item:nth-child(even) .timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(179, 161, 140, 0.2);
  }

  .timeline-item:nth-child(odd) .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
    position: static;
    font-size: 20px;
    color: #ffffff;
    background: #b3a18c;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(179, 161, 140, 0.25);
    flex-shrink: 0;
    order: 0;
  }

  .timeline-item:nth-child(odd) .timeline-text,
  .timeline-item:nth-child(even) .timeline-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    order: 1;
  }

  .timeline-time {
    font-size: 1.35em;
    margin-bottom: 0;
    font-weight: 600;
    color: #1a1a1a;
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.2;
  }

  .timeline-label {
    font-size: 1.05em;
    line-height: 1.3;
    color: #666666;
    font-family: "Lora", Georgia, serif;
    font-style: italic;
    margin: 0;
  }

  /* Asegurar que todos los timeline-content de los ITEMS tengan layout consistente */
  .timeline-item .timeline-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
  }

  .timeline-item .timeline-content .timeline-icon {
    order: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .timeline-item .timeline-content .timeline-text {
    order: 1 !important;
    flex: 1 !important;
    text-align: left !important;
  }

  /* RSVP section - título más pequeño para móviles */
  .rsvp-section h2 {
    font-size: 1.8em !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Formulario RSVP - Mobile First */
.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
  background: #f9f6f2;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(26, 26, 26, 0.1);
  border: 2px solid #d8c7a3;
  margin-left: 10px;
  margin-right: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #d8c7a3;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: inherit;
  background: #f9f6f2;
  color: #3e3e3e;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: #b3a18c;
  color: #f9f6f2;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Tablets (768px y más) */
@media (min-width: 768px) {
  .container {
    padding: 0 30px;
  }

  .modal-content {
    padding: 35px 30px;
    max-width: 400px;
    border-radius: 15px;
  }

  .modal-header h2 {
    font-size: 2.3em;
  }

  .hero {
    padding: 80px 0;
    min-height: 100vh;
  }

  .couple-names {
    font-size: 2.8em;
    margin-bottom: 20px;
  }

  .wedding-date {
    font-size: 1.4em;
  }

  .date-info {
    font-size: 1.1em;
  }

  .invitation-section,
  .timeline-section,
  .rsvp-section {
    padding: 70px 0;
  }

  .invitation-section h2,
  .timeline-section h2,
  .rsvp-section h2 {
    font-size: 2.8em;
    margin-bottom: 35px;
  }

  .invitation-text {
    font-size: 1.2em;
    max-width: 600px;
    padding: 0;
  }

  /* Timeline - Tablet */
  .timeline {
    max-width: 700px;
    padding: 35px 0;
  }

  .timeline::before {
    left: 50%;
    top: 35px;
    bottom: 15px;
    transform: translateX(-50%);
    width: 1px;
    background: linear-gradient(
      to bottom,
      transparent,
      #d8c7a3 20%,
      #b3a18c 80%,
      transparent
    );
  }

  .timeline-item {
    margin-bottom: 60px;
    min-height: 60px;
  }

  .timeline-item:nth-child(odd) {
    justify-content: flex-start;
  }

  .timeline-item:nth-child(even) {
    justify-content: flex-end;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 10px;
    margin-left: 0 !important;
    text-align: right !important;
    flex-direction: row-reverse;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 10px;
    margin-right: 0 !important;
    text-align: left !important;
    flex-direction: row;
  }

  .timeline-icon {
    font-size: 15px;
  }

  .timeline-content {
    max-width: 280px;
  }

  .timeline-time {
    font-size: 1.3em;
  }

  .timeline-label {
    font-size: 1.05em;
  }

  .detail-card p {
    font-size: 1.05em;
  }

  /* Contador responsive - Tablet */
  .wedding-countdown {
    padding: 90px 0;
  }

  .wedding-date-title {
    font-size: 3em;
    margin-bottom: 20px;
  }

  /* Contador responsive - Tablet */
  .countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
  }

  .countdown-item {
    padding: 25px 20px;
    min-width: 110px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .countdown-number {
    font-size: 2.5em;
    text-align: center;
    width: 100%;
  }

  .countdown-label {
    font-size: 1em;
    text-align: center;
    white-space: nowrap;
    width: 100%;
  }
  .rsvp-form {
    max-width: 600px;
    padding: 35px 30px;
    margin-left: auto;
    margin-right: auto;
  }

  .submit-btn {
    padding: 15px;
    font-size: 17px;
  }
}

/* Desktop (1024px y más) */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .modal-content {
    padding: 40px;
    border-radius: 15px;
  }

  .modal-header h2 {
    font-size: 2.5em;
  }

  .hero {
    padding: 100px 0;
    min-height: 100vh;
  }

  .couple-names {
    font-size: 3.2em;
  }

  .wedding-date {
    font-size: 1.5em;
  }

  .date-info {
    font-size: 1.2em;
  }

  .invitation-section,
  .timeline-section,
  .rsvp-section {
    padding: 80px 0;
  }

  .invitation-section h2,
  .timeline-section h2,
  .rsvp-section h2 {
    font-size: 3em;
    margin-bottom: 40px;
  }

  .invitation-text {
    line-height: 1.8;
  }

  /* Timeline - Desktop */
  .timeline {
    max-width: 800px;
    padding: 40px 0;
  }

  .timeline::before {
    top: 40px;
    bottom: 20px;
  }

  .timeline-item {
    margin-bottom: 50px;
    min-height: 60px;
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-item:nth-child(odd) {
    justify-content: flex-start;
  }

  .timeline-item:nth-child(even) {
    justify-content: flex-end;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 10px;
    margin-left: 0 !important;
    text-align: right !important;
    flex-direction: row-reverse;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 10px;
    margin-right: 0 !important;
    text-align: left !important;
    flex-direction: row;
  }

  .timeline-icon {
    font-size: 16px;
  }

  .timeline-content {
    max-width: 300px;
  }

  .timeline-time {
    font-size: 1.4em;
    margin-bottom: 8px;
  }

  .timeline-label {
    font-size: 1.1em;
  }

  /* Contador responsive - Desktop */
  .wedding-countdown {
    padding: 100px 0;
  }

  .wedding-date-title {
    font-size: 3.5em;
  }

  /* Contador responsive - Desktop */
  .countdown {
    gap: 30px;
    max-width: 600px;
  }

  .countdown-item {
    padding: 30px 25px;
    min-width: 130px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .countdown-number {
    font-size: 3em;
    text-align: center;
    width: 100%;
  }

  .countdown-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    width: 100%;
    height: 100%;
  }

  .rsvp-form {
    padding: 40px;
  }

  .submit-btn {
    font-size: 18px;
  }
}

/* Desktop grande (1200px y más) */
@media (min-width: 1200px) {
  .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Animaciones para el dress code */
@keyframes cocktailSway {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(2deg) scale(1.02);
  }
  75% {
    transform: rotate(-2deg) scale(0.98);
  }
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(179, 161, 140, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(179, 161, 140, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(179, 161, 140, 0);
  }
}

.dress-code-icon.animate i {
  animation: cocktailSway 3s ease-in-out infinite;
  animation-delay: 0.8s;
}

.dress-example-btn.animate {
  animation: buttonPulse 2s infinite 1.2s;
}
.dress-code-section {
  padding: 80px 0;
  background: #f9f6f2;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dress-code-icon {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dress-code-icon.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dress-code-icon i {
  font-size: 3em;
  color: #b3a18c;
  transition: all 0.3s ease;
}

.dress-code-icon:hover i {
  transform: scale(1.1) rotate(10deg);
  color: #8a7a65;
}

.dress-code-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5em;
  color: #1a1a1a;
  margin-bottom: 30px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.dress-code-section h2.animate {
  opacity: 1;
  transform: translateY(0);
}

.dress-code-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2em;
  color: #3e3e3e;
  margin-bottom: 15px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.dress-code-content h3.animate {
  opacity: 1;
  transform: translateY(0);
}

.dress-code-content p {
  font-size: 1.1em;
  color: #3e3e3e;
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.6s;
}

.dress-code-content p.animate {
  opacity: 1;
  transform: translateY(0);
}

.dress-example-btn {
  background: #b3a18c;
  color: #f9f6f2;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Playfair Display", serif;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.dress-example-btn.animate {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.dress-example-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s;
}

.dress-example-btn:hover::before {
  left: 100%;
}

.dress-example-btn i {
  margin-right: 8px;
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.dress-example-btn:hover i {
  transform: translateX(2px);
}

.dress-example-btn:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 26, 26, 0.15);
}

.dress-example-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 26, 26, 0.2);
}

/* Modal para ejemplo de vestimenta */
.dress-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  padding: 20px;
  text-align: center;
}

.dress-example-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Responsive para código de vestimenta */
@media (max-width: 767px) {
  .dress-code-section {
    padding: 50px 0;
  }

  .dress-code-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .dress-code-content h3 {
    font-size: 1.6em;
  }

  .dress-code-content p {
    font-size: 1em;
    padding: 0 20px;
  }

  .dress-example-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* Responsive para RSVP */
@media (max-width: 767px) {
  .rsvp-section {
    padding: 50px 0;
  }

  .rsvp-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .rsvp-section > .container > p {
    font-size: 1em;
    padding: 0 20px;
    margin-bottom: 30px;
  }

  .rsvp-btn {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

/* Responsive para Regalos */
@media (max-width: 767px) {
  .gifts-section {
    padding: 50px 0;
  }

  .gifts-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .gifts-message {
    font-size: 1em;
    padding: 0 20px;
    margin-bottom: 30px;
  }

  .bank-details {
    margin: 20px 0;
  }

  .account-info {
    max-width: 350px;
  }

  .account-info > div {
    font-size: 1em;
    gap: 10px;
    padding: 4px 0;
  }

  .account-info i {
    font-size: 0.95em;
    min-width: 16px;
  }

  .copy-btn {
    padding: 8px 18px;
    font-size: 0.9em;
    margin-top: 20px;
  }
}

/* Animaciones para la ubicación */
@keyframes mapPinDrop {
  0% {
    transform: translateY(-50px) scale(0.3);
    opacity: 0;
  }
  50% {
    transform: translateY(10px) scale(1.1);
    opacity: 0.8;
  }
  70% {
    transform: translateY(-5px) scale(0.95);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes seedlingGrow {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(-90deg);
    opacity: 0.7;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes mapReveal {
  0% {
    transform: scale(0.8) rotateX(45deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotateX(0deg);
    opacity: 1;
  }
}

@keyframes locationPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(179, 161, 140, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(179, 161, 140, 0);
  }
}

/* ========== REGALOS ========== */
.gifts-section {
  padding: 80px 0;
  background: #fff;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gifts-icon {
  margin-bottom: 20px;
  opacity: 0;
  transition: all 0.6s ease;
}

.gifts-icon.animate {
  opacity: 1;
}

.gifts-icon i {
  font-size: 3em;
  color: #b3a18c;
  transition: all 0.3s ease;
}

.gifts-icon:hover i {
  transform: scale(1.1);
  color: #8a7a65;
}

.gifts-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5em;
  color: #3e3e3e;
  margin-bottom: 30px;
  font-weight: 400;
  opacity: 0;
  transition: all 0.6s ease 0.2s;
}

.gifts-section h2.animate {
  opacity: 1;
}

.gifts-content {
  max-width: 600px;
  margin: 0 auto;
}

.gifts-message {
  font-size: 1.1em;
  color: #3e3e3e;
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
  transition: all 0.6s ease 0.4s;
}

.gifts-message.animate {
  opacity: 1;
}

.bank-details {
  opacity: 0;
  transition: all 0.6s ease 0.6s;
  margin: 30px 0;
}

.bank-details.animate {
  opacity: 1;
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.account-info > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-family: "Lora", Georgia, serif;
  font-size: 1.1em;
  color: #3e3e3e;
  line-height: 1.7;
  opacity: 0;
  transition: all 0.6s ease;
  padding: 5px 0;
}

.account-info > div.animate {
  opacity: 1;
}

.account-info > div:nth-child(1).animate {
  transition-delay: 0.8s;
}
.account-info > div:nth-child(2).animate {
  transition-delay: 1s;
}
.account-info > div:nth-child(3).animate {
  transition-delay: 1.2s;
}
.account-info > div:nth-child(4).animate {
  transition-delay: 1.4s;
}
.account-info > div:nth-child(5).animate {
  transition-delay: 1.6s;
}
.account-info > div:nth-child(6).animate {
  transition-delay: 1.8s;
}

.account-info i {
  color: #b3a18c;
  font-size: 1em;
  min-width: 18px;
  opacity: 0.8;
}

.account-info span {
  font-weight: 500;
}

.copy-btn {
  background: #b3a18c;
  color: #f9f6f2;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Lora", Georgia, serif;
  margin-top: 25px;
  opacity: 0;
}

.copy-btn.animate {
  opacity: 1;
  transition: all 0.6s ease 2s;
}

.copy-btn i {
  margin-right: 8px;
  font-size: 0.9em;
}

.copy-btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 26, 26, 0.15);
}

.copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(26, 26, 26, 0.2);
}

/* ========== HERO FINAL ========== */
.final-hero-section {
  position: relative;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-image-container {
  width: 100%;
  opacity: 0;
  transition: all 1s ease 0.3s;
}

.hero-image-container.animate {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== UBICACIÓN ========== */
.location-section {
  padding: 80px 0;
  background: #fff;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-icon {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(-50px) scale(0.3);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.location-icon.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: mapPinDrop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.location-icon i {
  font-size: 3em;
  color: #b3a18c;
  transition: all 0.3s ease;
}

.location-icon:hover i {
  transform: scale(1.1);
  color: #8a7a65;
}

.location-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5em;
  color: #3e3e3e;
  margin-bottom: 30px;
  font-weight: 400;
  opacity: 0;
  transition: all 0.6s ease 0.2s;
}

.location-section h2.animate {
  opacity: 1;
}

.location-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8em;
  color: #b3a18c;
  margin-bottom: 15px;
  font-weight: 400;
  opacity: 0;
  transition: all 0.6s ease 0.6s;
}

.location-content h3.animate {
  opacity: 1;
}

.venue-icon {
  margin-bottom: 20px;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.venue-icon.animate {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: seedlingGrow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.venue-icon i {
  font-size: 2em;
  color: #4a7c59;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.venue-icon:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #3d6b4a;
  opacity: 1;
}

.location-content .address {
  font-size: 1.1em;
  color: #3e3e3e;
  margin-bottom: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.8s;
}

.location-content .address.animate {
  opacity: 1;
  transform: translateY(0);
}

.coordinates {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 30px;
  font-family: "Courier New", monospace;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 1s;
}

.coordinates.animate {
  opacity: 1;
  transform: translateY(0);
}

.map-container {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transition: all 0.8s ease 1.2s;
}

.map-container.animate {
  opacity: 1;
}

.map-container iframe {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.map-container:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.location-btn {
  background: #b3a18c;
  color: #f9f6f2;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Playfair Display", serif;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  opacity: 0;
}

.location-btn.animate {
  opacity: 1;
  transition: all 0.6s ease 1.4s;
  animation: locationPulse 3s infinite 2s;
}

.location-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s;
}

.location-btn:hover::before {
  left: 100%;
}

.location-btn i {
  margin-right: 8px;
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.location-btn:hover i {
  transform: translateX(2px);
}

.location-btn:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 26, 26, 0.15);
}

.location-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 26, 26, 0.2);
}

/* Responsive para ubicación */
@media (max-width: 767px) {
  .location-section {
    padding: 50px 0;
  }

  .location-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .location-content h3 {
    font-size: 1.4em;
  }

  .location-content .address {
    font-size: 1em;
    padding: 0 20px;
  }

  .map-container {
    margin: 20px 10px;
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (min-width: 768px) {
  .dress-code-section {
    padding: 70px 0;
  }
}

@media (min-width: 1024px) {
  .dress-code-section {
    padding: 80px 0;
  }
}

/* Estilos personalizados para Sweet Alert */
.swal-wedding-theme {
  font-family: "Lora", Georgia, serif !important;
  border: 2px solid #b3a18c !important;
  border-radius: 12px !important;
}

.swal-wedding-title {
  font-family: "Playfair Display", Georgia, serif !important;
  color: #1a1a1a !important;
  font-size: 1.8em !important;
  font-weight: 600 !important;
}

.swal-wedding-input {
  border: 2px solid #d8c7a3 !important;
  border-radius: 6px !important;
  padding: 12px !important;
  font-family: "Lora", Georgia, serif !important;
  background: #f9f6f2 !important;
  color: #3e3e3e !important;
}

.swal-wedding-input:focus {
  border-color: #b3a18c !important;
  outline: none !important;
}

.swal-dress-image {
  border-radius: 8px !important;
  border: 2px solid #d8c7a3 !important;
}

/* Responsive para Sweet Alert */
@media (max-width: 767px) {
  .swal2-popup {
    width: 95% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    font-size: 14px !important;
  }

  .swal2-title {
    font-size: 1.4em !important;
    line-height: 1.3 !important;
  }

  .swal2-html-container {
    font-size: 0.9em !important;
    line-height: 1.4 !important;
  }

  .swal-dress-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Optimización para inputs en móvil */
  .swal2-input,
  .swal2-select,
  .swal2-textarea {
    font-size: 16px !important; /* Prevenir zoom en iOS */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }
}

/* Extra small devices */
@media (max-width: 374px) {
  .swal2-popup {
    width: 98% !important;
    margin: 0 1% !important;
  }

  .swal2-title {
    font-size: 1.2em !important;
  }
}

/* ========== SISTEMA DE MÚSICA Y BIENVENIDA ========== */

/* Overlay de bienvenida con blur */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(249, 246, 242, 0.85);
  backdrop-filter: blur(15px);
  z-index: 9998;
  transition: all 1.5s ease;
  opacity: 1;
}

.welcome-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.welcome-overlay.fade-out {
  opacity: 0;
  backdrop-filter: blur(0px);
  pointer-events: none;
}

/* Clase para aplicar blur al contenido principal */
.content-blurred {
  filter: blur(8px);
  transition: filter 1.5s ease;
}

.content-unblurred {
  filter: blur(0px);
  transition: filter 1.5s ease;
}

/* Asegurar que el contenido principal esté preparado */
#mainContent {
  transition: filter 1.5s ease;
}

.music-button {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(179, 161, 140, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid #b3a18c;
  border-radius: 20px;
  padding: 25px 35px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: buttonPulse 2s infinite;
}

.music-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(179, 161, 140, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  animation: none; /* Detener la animación en hover */
}

.music-icon {
  margin-bottom: 10px;
}

.music-icon i {
  font-size: 2.5em;
  color: #f9f6f2;
  animation: musicPulse 2s infinite;
}

.music-text {
  font-family: "Playfair Display", serif;
  font-size: 1.2em;
  color: #f9f6f2;
  font-weight: 400;
  display: block;
  margin-bottom: 5px;
}

.music-instruction {
  font-family: "Lora", serif;
  font-size: 0.9em;
  color: #f9f6f2;
  font-weight: 400;
  display: block;
  opacity: 0.8;
  font-style: italic;
  animation: fadeInOut 2s infinite;
}

@keyframes musicPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes buttonPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(179, 161, 140, 0.7);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
      0 0 0 10px rgba(179, 161, 140, 0.3);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
      0 0 0 20px rgba(179, 161, 140, 0);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
  }
}

/* Control de música flotante */
.music-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
}

.music-control:not(.hidden) {
  opacity: 1;
  transform: scale(1);
}

.music-toggle {
  background: rgba(179, 161, 140, 0.9);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle:hover {
  background: rgba(179, 161, 140, 1);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.music-toggle i {
  color: #f9f6f2;
  font-size: 1.2em;
}

/* Responsive para sistema de música */
@media (max-width: 767px) {
  .music-button {
    padding: 20px 25px;
    border-radius: 15px;
  }

  .music-icon i {
    font-size: 2em;
  }

  .music-text {
    font-size: 1em;
  }

  .music-control {
    bottom: 20px;
    right: 20px;
  }

  .music-toggle {
    width: 50px;
    height: 50px;
  }

  .music-toggle i {
    font-size: 1em;
  }
}

/* ========== ANIMACIONES DE SCROLL ========== */
/* Optimización de performance para animaciones */
.fade-in-element,
.slide-left-element,
.slide-right-element,
.slide-up-element {
  will-change: transform, opacity;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

/* Optimización adicional para móviles */
@media (max-width: 767px) {
  .fade-in-element,
  .slide-left-element,
  .slide-right-element,
  .slide-up-element {
    /* Reducir duración de animaciones en móvil */
    -webkit-animation-duration: 0.6s !important;
    animation-duration: 0.6s !important;
  }

  /* Simplificar animaciones complejas en móvil */
  .slide-up-element.animate {
    -webkit-animation-name: fadeInUp !important;
    animation-name: fadeInUp !important;
  }
}

/* Desactivar animaciones en móviles con poca potencia */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .fade-in-element,
  .slide-left-element,
  .slide-right-element,
  .slide-up-element {
    -webkit-animation: none !important;
    animation: none !important;
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(60px);
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(60px);
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-60px);
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes slideInLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-60px);
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(60px);
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes slideInRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(60px);
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

/* Estados iniciales - elementos ocultos */
.fade-in-element {
  opacity: 0;
  -webkit-transform: translateY(60px);
  transform: translateY(60px);
  transition: none;
}

.slide-left-element {
  opacity: 0;
  -webkit-transform: translateX(-60px);
  transform: translateX(-60px);
  transition: none;
}

.slide-right-element {
  opacity: 0;
  -webkit-transform: translateX(60px);
  transform: translateX(60px);
  transition: none;
}

/* Estados animados - cuando entran en vista */
.fade-in-element.animate {
  -webkit-animation: fadeInUp 0.8s ease-out both;
  animation: fadeInUp 0.8s ease-out both;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.slide-left-element.animate {
  -webkit-animation: slideInLeft 0.8s ease-out both;
  animation: slideInLeft 0.8s ease-out both;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.slide-right-element.animate {
  -webkit-animation: slideInRight 0.8s ease-out both;
  animation: slideInRight 0.8s ease-out both;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

/* ========== ANIMACIONES ESPECÍFICAS DE COMPONENTES ========== */

/* Animación específica para el contenido de invitación */
.invitation-content {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.invitation-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.invitation-content h2 {
  animation-delay: 0.2s;
}

.invitation-content .invitation-text {
  animation-delay: 0.4s;
}

/* Animaciones para countdown */
@keyframes slideUpBounce {
  0% {
    opacity: 0;
    -webkit-transform: translateY(60px) scale(0.9);
    transform: translateY(60px) scale(0.9);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateY(-10px) scale(1.05);
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
}

@-webkit-keyframes slideUpBounce {
  0% {
    opacity: 0;
    -webkit-transform: translateY(60px) scale(0.9);
    transform: translateY(60px) scale(0.9);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateY(-10px) scale(1.05);
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(179, 161, 140, 0.3);
    -webkit-box-shadow: 0 0 20px rgba(179, 161, 140, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(179, 161, 140, 0.6);
    -webkit-box-shadow: 0 0 30px rgba(179, 161, 140, 0.6);
  }
}

@-webkit-keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(179, 161, 140, 0.3);
    -webkit-box-shadow: 0 0 20px rgba(179, 161, 140, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(179, 161, 140, 0.6);
    -webkit-box-shadow: 0 0 30px rgba(179, 161, 140, 0.6);
  }
}

.countdown-content {
  opacity: 0;
  -webkit-transform: translateY(40px);
  transform: translateY(40px);
  -webkit-transition: all 0.8s ease-out;
  -moz-transition: all 0.8s ease-out;
  -ms-transition: all 0.8s ease-out;
  -o-transition: all 0.8s ease-out;
  transition: all 0.8s ease-out;
}

.countdown-content.animate {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.slide-up-element {
  opacity: 0;
  -webkit-transform: translateY(60px) scale(0.9);
  transform: translateY(60px) scale(0.9);
  transition: none;
}

.slide-up-element.animate {
  -webkit-animation: slideUpBounce 0.8s ease-out both;
  animation: slideUpBounce 0.8s ease-out both;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

/* Delay escalonado para countdown items */
.countdown-item:nth-child(1).animate {
  animation-delay: 0.2s;
}

.countdown-item:nth-child(2).animate {
  animation-delay: 0.4s;
}

.countdown-item:nth-child(3).animate {
  animation-delay: 0.6s;
}

.countdown-item:nth-child(4).animate {
  animation-delay: 0.8s;
}

.countdown-item.animate {
  animation: slideUpBounce 0.8s ease-out forwards,
    pulseGlow 2s ease-in-out infinite 1s;
}

/* Animaciones para timeline */
/* Animaciones para timeline - versión simplificada */

.timeline-content {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.timeline-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-animate-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.timeline-animate-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Delay escalonado para timeline items */
.timeline-animate-item:nth-child(1) {
  transition-delay: 0.1s;
}

.timeline-animate-item:nth-child(2) {
  transition-delay: 0.2s;
}

.timeline-animate-item:nth-child(3) {
  transition-delay: 0.3s;
}

.timeline-animate-item:nth-child(4) {
  transition-delay: 0.4s;
}
