/* Fuentes */
@font-face {
  font-family: "January Shine";
  src: url("../fonts/january-shine.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alex Brush";
  src: url("../fonts/AlexBrush-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Black Olives";
  src: url("../fonts/Black-Olives.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LoveLight";
  src:
    url("../fonts/LoveLight-Regular.ttf") format("truetype"),
    url("/fonts/LoveLight-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Balqis";
  src: url("../fonts/Balqis.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&display=swap");

/* Reset básico */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Estilos base para las secciones */
.section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  overflow: hidden;
}

.content {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* Animación del fondo */
@keyframes subtleZoom {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(-2%, -2%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

/* Sección 1: Portada */
#portada {
  position: relative;
  min-height: 80vh;
}

#portada::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../imagenes/fnd1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: subtleZoom 15s infinite ease-in-out;
  z-index: 1;
}

/* Logo container */
.logo-container {
  width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper {
  opacity: 0;
  width: 300px;
  animation: descendLogo 2s ease forwards;
}

.logo-wrapper img {
  width: 100%;
  height: auto;
}

.couple-names {
  font-family: "January Shine", cursive;
  font-size: 7em;
  color: #9e7584;
  text-align: center;
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  font-weight: normal;
}

@keyframes descendLogo {
  0% {
    opacity: 0;
    transform: translateY(-100vh);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Reproductor de audio */
.audio-player {
  position: relative;
  width: 300px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: transparent;
  margin-top: 20px;
}

.play-button {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.play-button i {
  font-size: 24px;
  color: rgba(0, 0, 0, 0.7);
}

.progress-container {
  flex-grow: 1;
  height: 2px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  width: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* Sección 2: Historia */
#historia {
  background-color: #f8f8f8;
}

.two-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  width: 100%;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.info-column {
  text-align: center;
  padding: 20px;
}

.title {
  font-family: "January Shine", cursive;
  font-size: 6em;
  color: #9e7584;
  margin-bottom: 40px;
  font-weight: normal;
  line-height: 1.2;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1.5s ease-out;
}

.title.visible {
  opacity: 1;
  transform: translateX(0);
}
.date {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5em;
  color: #4d5d3f;
  margin-bottom: 50px;
  font-weight: 500;
  letter-spacing: 1px;
}

.countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  background: rgba(77, 93, 63, 0.1);
  padding: 30px 40px;
  border-radius: 15px;
  border: 1px solid rgba(77, 93, 63, 0.2);
  backdrop-filter: blur(5px);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  position: relative;
}

.countdown-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
  width: 1px;
  background: rgba(77, 93, 63, 0.3);
}

.countdown-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5em;
  color: #4d5d3f;
  font-weight: 500;
  line-height: 1;
}

.countdown-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3em;
  color: #4d5d3f;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 2px;
}

.image-column img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sección 3: Ceremonia */
#ceremonia {
  position: relative;
  min-height: 70vh;
}

#ceremonia::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../imagenes/fnd2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: subtleZoom 15s infinite ease-in-out;
  z-index: 1;
}

.bible-quote {
  max-width: 800px;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.quote-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5em;
  color: #4d5d3f;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

.nom-invitado {
  font-family: "LoveLight", cursive;
  font-size: 70px;
  color: #4d5d3f;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

.quote-reference {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8em;
  color: #4d5d3f;
  font-style: italic;
  opacity: 0.9;
}

/* Sección 4: Carrusel */
#recepcion {
  background-color: #f8f8f8;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0 auto;
  overflow: visible;
  display: flex;
  justify-content: center;
}

.carousel-track {
  position: absolute;
  display: flex;
  gap: 30px;
  height: 100%;
  align-items: center;
  will-change: transform;
  left: 0;
}

.carousel-slide {
  position: relative;
  min-width: 300px;
  height: 400px;
  transition: all 0.5s ease-in-out;
  opacity: 0.4;
  transform: scale(0.8);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1.1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: #4d5d3f;
  transition: all 0.3s ease;
  z-index: 2;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

/* Sección 5: Ubicación */
#ubicacion {
  position: relative;
  min-height: 100vh;
}

#ubicacion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../imagenes/fnd3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: subtleZoom 15s infinite ease-in-out;
  z-index: 1;
}

.location-container {
  background: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  max-width: 900px;
  width: 100%;
}

.section-title {
  font-family: "January Shine", cursive;
  font-size: 5em;
  color: #9e7584;
  text-align: center;
  margin-bottom: 40px;
  font-weight: normal;
}

.ceremony-reception-info {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.location-card {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.map-card {
  min-width: 400px;
}

.location-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2em;
  color: #4d5d3f;
  margin-bottom: 20px;
  font-weight: 500;
}

.location-details {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3em;
  color: #8b3e1d;
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.4;
}

.location-details.address {
  max-width: 280px;
  margin: 15px auto;
}

.location-details {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6em; /* Aumentado de 1.3em a 1.6em */
  color: #8b3e1d;
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.4;
}

.location-details.address {
  max-width: 320px; /* Aumentado para dar más espacio al texto más grande */
  margin: 15px auto;
}

.location-details i {
  color: #c5a572;
  font-size: 1.2em;
  flex-shrink: 0;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

/* Sección Hospedaje/Cronograma */

#hospedaje {
  position: relative;
  background-color: #f8f8f8;
  min-height: 100vh;
}

.timeline-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-family: "January Shine", cursive;
  font-size: 5em;
  color: #c5a572;
  text-align: center;
  margin-bottom: 60px;
  font-weight: normal;
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #c5a572;
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 200px;
  text-align: center;
  z-index: 2;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid #c5a572;
  transition: all 0.3s ease;
}

.timeline-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}

.timeline-icon i {
  font-size: 30px;
  color: #c5a572;
}

.timeline-time {
  font-family: "Cormorant Garamond", serif;
  font-size: 2em;
  color: #4d5d3f;
  margin: 10px 0;
  font-weight: 500;
}

.timeline-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4em;
  color: #8b3e1d;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 150px;
  margin: 0 auto;
  line-height: 1.3;
}

/* Sección Regalo */

#regalo {
  position: relative;
  background-color: #f5f2ee;
}

#regalo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../imagenes/fnd2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: subtleZoom 15s infinite ease-in-out;
  z-index: 1;
}

.combined-container {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  align-items: center; /* Cambiado a center para alineación vertical */
  justify-content: center;
  padding: 20px;
}

/* Contenedores de cada sección - mismo tamaño */
.gift-container,
.dress-code-container {
  flex: 1;
  width: 100%;
  max-width: 500px;
  height: 500px; /* Altura fija igual para ambos */
}

/* Estilos para la sección de regalo */

.gift-card {
  position: relative;
  width: 100%;
  height: 100%; /* Ocupa todo el alto del contenedor */
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.gift-front,
.gift-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gift-front i {
  font-size: 4em;
  color: #c5a572;
  margin-bottom: 1rem;
}

.gift-message {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6em;
  color: #4d5d3f;
  line-height: 1.4;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.gift-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
}

.gift-method {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.method-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4em;
  color: #c5a572;
  font-weight: 500;
}

.method-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3em;
  color: #8b3e1d;
  word-break: break-word;
}

/* Estilos para la sección de vestimenta */

/* Vestimenta */
.dress-code-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dress-image-container {
  width: 100%;
  margin: 20px 0 30px;
  text-align: center;
}

.dress-code-image {
  width: auto;
  height: 130px; /* Ajusta según necesites */
  object-fit: contain;
}

.dress-title {
  font-family: "January Shine", cursive;
  font-size: 3.5em;
  color: #c5a572;
  margin-bottom: 40px;
}

.dress-cards {
  display: flex;
  justify-content: space-around;
  width: 100%;
  gap: 30px;
}

.dress-code-card {
  text-align: center;
}

.dress-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2em;
  color: #4d5d3f;
  margin-bottom: 10px;
}

.dress-description {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6em;
  color: #8b3e1d;
}

/* Sección Confirmación */
#confirmacion {
  position: relative;
  background-color: #f5f2ee;
}

.confirmation-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 600px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4em;
  color: #4d5d3f;
}

.form-input {
  padding: 12px 16px;
  border: 1px solid rgba(77, 93, 63, 0.2);
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 1.1em;
  color: #333;
  background: rgba(77, 93, 63, 0.05); /* Fondo verde olivo muy suave */
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #666;
  font-family: Arial, sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #4d5d3f;
  background: rgba(77, 93, 63, 0.08); /* Un poco más oscuro al focus */
  box-shadow: 0 0 0 2px rgba(77, 93, 63, 0.1);
}

.form-input[readonly] {
  background: rgba(77, 93, 63, 0.05);
  cursor: default;
  opacity: 0.9;
}

.form-input[readonly]:focus {
  border-color: rgba(77, 93, 63, 0.2);
  box-shadow: none;
}

.form-input:focus::placeholder {
  color: transparent;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234D5D3F' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.submit-button {
  background-color: #4d5d3f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  font-size: 1em;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
  align-self: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
  background-color: #7c8971;
  transform: translateY(-1px);
  color: #ffffff;
}

.submit-button i {
  font-size: 1.2em;
}

/* Prevenir arrastrar imágenes*/
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

/* Prevenir selección de texto */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Resto de secciones */

#contacto {
  background-color: #f8f8f8;
}

/* Media Queries */
@media screen and (max-width: 1200px) {
  .couple-names {
    font-size: 6em;
  }

  .carousel-slide {
    min-width: 250px;
    height: 350px;
  }

  .carousel-slide.active {
    min-width: 350px;
    height: 450px;
  }

  .carousel-slide.semi-active {
    min-width: 300px;
    height: 400px;
  }
}

@media screen and (max-width: 992px) {
  .two-columns {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .column {
    width: 100%;
  }

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

  .logo-container {
    width: 350px;
  }

  .logo-wrapper {
    width: 250px;
  }

  .title {
    font-size: 4.5em;
  }

  .date {
    font-size: 2em;
  }

  .countdown {
    padding: 25px 30px;
    gap: 15px;
  }

  .countdown-item {
    min-width: 80px;
  }

  .countdown-number {
    font-size: 2.8em;
  }

  .countdown-label {
    font-size: 1.2em;
  }

  .image-column img {
    max-width: 400px;
  }

  .carousel-container {
    height: 500px;
  }

  .carousel-slide {
    min-width: 200px;
    height: 300px;
  }

  .carousel-slide.active {
    min-width: 280px;
    height: 380px;
  }

  .carousel-slide.semi-active {
    min-width: 240px;
    height: 340px;
  }

  .combined-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .gift-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px; /* Espacio entre tarjetas */
  }

  .gift-card {
    height: auto; /* Permitir que la altura se ajuste al contenido */
    min-height: 400px; /* Altura mínima */
  }

  .gift-front,
  .gift-back {
    height: 100%;
    min-height: 400px;
  }

  .dress-code-image {
    height: auto;
    max-height: 130px;
    width: auto;
    margin: 20px 0;
  }
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .timeline-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #c5a572;
    transform: translateX(-50%);
  }

  .timeline-icon {
    background: #fff;
    position: relative;
    z-index: 2;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 30px 15px;
  }

  .logo-container {
    width: 250px;
  }

  .logo-wrapper {
    width: 180px;
  }

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

  .logo-container {
    width: 300px;
  }

  .logo-wrapper {
    width: 220px;
  }

  .audio-player {
    width: 250px;
  }

  .countdown-item {
    min-width: 70px;
  }

  .quote-text {
    font-size: 2em;
  }

  .quote-reference {
    font-size: 1.4em;
  }

  .carousel-container {
    height: 400px;
    overflow: visible;
    padding: 0;
  }

  .carousel-track {
    gap: 25px;
    left: 0;
    padding: 0;
  }

  .carousel-slide {
    min-width: 250px;
    height: 350px;
  }

  .carousel-slide.active {
    transform: scale(1.05);
  }

  .carousel-button.prev {
    left: 5px;
  }

  .carousel-button.next {
    right: 5px;
  }

  .location-container {
    padding: 30px 20px;
  }

  .section-title {
    font-size: 4em;
  }

  .ceremony-reception-info {
    gap: 20px;
  }

  .location-card,
  .map-card {
    min-width: 100%;
  }

  .location-title {
    font-size: 1.8em;
  }

  .location-details {
    font-size: 1.4em; /* Ajustado para pantallas medianas */
  }

  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
    background-image: linear-gradient(
      to bottom,
      #c5a572 25%,
      rgba(0, 0, 0, 0) 0%
    );
    background-position: right;
    background-size: 2px 20px;
    background-repeat: repeat-y;
    z-index: 1; /* Asegura que la línea esté detrás */
  }

  .timeline-item {
    width: 100%;
    max-width: 300px;
    position: relative;
    z-index: 2; /* Pone los items por encima de la línea */
    background-color: #f8f8f8; /* Fondo sólido para el contenedor del item */
    padding: 10px;
    border-radius: 8px;
  }

  .timeline-icon {
    background-color: #f8f8f8;
    position: relative;
    z-index: 3; /* Icono por encima de todo */
  }

  .timeline-time,
  .timeline-text {
    position: relative;
    z-index: 3; /* Texto por encima de la línea */
    background-color: #f8f8f8; /* Fondo para el texto */
    padding: 5px 10px;
    margin: 0 auto;
    width: fit-content;
  }

  .section-title {
    font-size: 4em;
    margin-bottom: 40px;
  }
  .combined-container {
    gap: 40px;
  }

  .gift-container {
    width: 95%;
  }

  .gift-card {
    height: 550px;
  }

  .dress-cards {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .dress-code-card {
    width: 100%;
    max-width: 280px;
    padding: 20px;
  }

  .dress-code-image {
    height: 150px; /* Ajusta para móviles */
  }

  .dress-title {
    font-size: 1.8em;
  }

  .dress-description {
    font-size: 1.4em;
  }

  .confirmation-container {
    padding: 30px;
    width: 90%;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 20px 10px;
  }

  .logo-container {
    width: 250px;
  }

  .logo-wrapper {
    width: 180px;
  }

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

  .audio-player {
    width: 200px;
  }

  .play-button {
    width: 32px;
    height: 32px;
  }

  .play-button i {
    font-size: 18px;
  }

  .title {
    font-size: 3.5em;
  }

  .date {
    font-size: 1.8em;
  }

  .countdown {
    padding: 20px 15px;
    gap: 10px;
  }

  .countdown-item {
    min-width: 60px;
  }

  .countdown-item:not(:last-child)::after {
    right: -5px;
    height: 40px;
  }

  .countdown-number {
    font-size: 2.5em;
  }

  .countdown-label {
    font-size: 1.1em;
    letter-spacing: 1px;
  }

  .image-column img {
    max-width: 300px;
  }

  .carousel-container {
    height: 300px;
    overflow: visible;
    padding: 0;
  }

  .carousel-track {
    gap: 15px;
    left: 0;
    padding: 0;
  }

  .carousel-slide {
    min-width: 200px;
    height: 280px;
  }

  .carousel-slide.active {
    transform: scale(1.05);
  }

  .carousel-button.prev {
    left: 5px;
  }

  .carousel-button.next {
    right: 5px;
  }

  .location-container {
    padding: 20px 15px;
  }

  .section-title {
    font-size: 3em;
  }

  .location-title {
    font-size: 1.6em;
  }

  .location-details {
    font-size: 1.3em; /* Ajustado para pantallas pequeñas */
  }

  .map-container {
    height: 250px;
  }
  .timeline-container {
    padding: 30px 15px;
  }

  .timeline-icon {
    width: 60px;
    height: 60px;
  }

  .timeline-icon i {
    font-size: 24px;
  }

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

  .timeline-text {
    font-size: 1.2em;
  }

  .section-title {
    font-size: 3em;
  }

  .combined-container {
    padding: 10px;
  }

  .gift-container,
  .dress-code-container {
    width: 100%;
  }

  .gift-container {
    width: 100%;
  }

  .gift-card {
    height: 500px;
  }

  .gift-front,
  .gift-back {
    padding: 1.5rem;
  }

  .gift-message {
    font-size: 1.2em;
  }

  .method-title {
    font-size: 1.2em;
  }

  .method-value {
    font-size: 1.1em;
  }

  .dress-code-container {
    padding: 30px 20px;
  }

  .dress-code-image {
    height: 120px; /* Ajusta para pantallas más pequeñas */
  }

  .dress-cards {
    flex-direction: column;
    gap: 20px;
  }

  .dress-title {
    font-size: 1.6em;
  }

  .dress-description {
    font-size: 1.3em;
  }

  .confirmation-container {
    padding: 20px;
    width: 95%;
  }

  .form-group label {
    font-size: 1.2em;
  }

  .form-input {
    font-size: 1em;
    padding: 10px 14px;
  }

  .submit-button {
    padding: 8px 25px;
    font-size: 0.9em;
  }
}

/* Prevención de animaciones */
@media (prefers-reduced-motion: reduce) {
  #portada::before,
  .logo-wrapper,
  .title {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

@media (hover: none) {
  .gift-card {
    cursor: default;
  }
}

/* Padres - sección confirmación */
.padres-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.padres-col {
  text-align: center;
  flex: 1;
  min-width: 0; /* importante: permite que flex comprima el contenido */
}

.padres-nombres {
  font-family: "Balqis", cursive;
  font-size: clamp(1.4em, 2.5vw, 2.2em);
  color: #4d5d3f;
  line-height: 1.5;
  margin: 0;
  white-space: nowrap; /* sin salto de línea en PC */
}

.padres-divider {
  font-size: 2em;
  color: #9e7584;
  padding-top: 40px;
  opacity: 0.6;
}

@media (max-width: 480px) {
  .padres-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .padres-divider {
    padding-top: 0;
    transform: rotate(90deg);
  }
  .padres-nombres {
    font-size: 1.8em;
  }
}

.padres-invitacion {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2em, 2vw, 1.8em);
  color: #4d5d3f;
  font-style: italic;
  text-align: center;
  margin-top: 35px;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.padres-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

.padres-label {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.85em, 1.2vw, 1.1em);
  color: #c5a572;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-style: italic;
  white-space: nowrap; /* evita el salto de línea en el label */
}

#confirmacion .section-title:empty {
  display: none;
}

#confirmacion .nom-invitado:empty {
  display: none;
}
#confirmacion.section--padres {
  min-height: auto;
  padding: 60px 20px;
}

.asistencia-form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.form-group {
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2em;
  color: #4d5d3f;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #c5a572;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: #a89070;
  opacity: 0.8;
}

.form-input:focus {
  border-color: #4d5d3f;
  background: rgba(255, 255, 255, 0.95);
}

.form-textarea {
  resize: none;
  line-height: 1.5;
}

.form-btn {
  width: 100%;
  padding: 16px;
  background: #4d5d3f;
  color: #f5f0e8;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3em;
  letter-spacing: 1px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-btn:hover {
  background: #3a4a2f;
}

.form-btn:active {
  transform: scale(0.98);
}

.form-btn i {
  font-size: 1.2em;
}

@media (max-width: 480px) {
  .asistencia-form {
    max-width: 100%;
  }
  .form-input {
    font-size: 1.1em;
  }
}

#asistencia::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../imagenes/fnd4.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: subtleZoom 15s infinite ease-in-out;
  z-index: 1;
}
