* {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: #222;
}

html, body {
    margin: 0;
    height: 100vh;
    text-align: center;
    overflow-x: hidden; 
    overflow-y: auto; 
    
}

.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/mapamundi-2.png') repeat-x center center;
    background-size: cover;
    animation: scrollBackground 40s linear infinite;
    z-index: -1; 
    opacity: 0.5; 
}

@keyframes scrollBackground {
    from {
        background-position: 0 center;
    }
    to {
        background-position: 2000px center; 
    }
}

.header {
    background-image: url(./img/desierto.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100vh;
    margin: 0;

    display: flex;
    align-items: flex-end; 
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem; 
    box-sizing: border-box;
}

.heading {
    color: #ffffff;
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: normal;
    text-shadow: 0 0 10px #000;
    margin: 0;
}

.heading-subtext {
    display: block;
    font-size: clamp(1rem, 3vw, 2rem);
    color: #f0f0f0;
}



.fixed-button {
    background: rgba(20,20,20,.5);
    border-radius: 1em;
    bottom: 1em;
    color: white;
    font-weight: bold;
    padding: 1em;
    position: fixed;
    right: 1em;
    text-decoration: none;
    z-index: 9999;
}

.fixed-button::after {
    content: "\25BE";
    display: block;
    font-size: 28px;
    line-height: 0;
    margin-bottom: 6px;
    margin-top: 10px;
    text-align: center;
}

.fixed-button:active,
.fixed-button:hover {
    background: rgba(20,20,20,.9);
}

.section {
    margin: 3rem auto; /* 3rem arriba y abajo, auto a los lados para centrar */
    max-width: 600px;
    padding: 1em 2.4em;
    z-index: 1;
}

.sub-heading {
  font-family: 'Caveat', cursive; 
  font-size: 2.5em;
  color: #8B5E3C; 
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in-out both;
}

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

.details {
  margin: 0 auto 2.5em;
    z-index: 1;
}

.details-heading {
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1;
}

.fas {
    font-size: 3em;
    opacity: .8;
    z-index: 1;
}

.resort-image {
    width: 100%;
    z-index: 1;
}

@media only screen and (max-width: 600px) {
    .heading {
        font-size: 4em;
    }
}

.reserve-link {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s;
}

.reserve-link:hover {
    background-color: #555;
}

.compass-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px; 
  flex-wrap: wrap;
}

.compass-icon {
  flex-shrink: 0;
  width: 60px;
}

.compass-icon img {
  width: 100%;
  height: auto;
  display: block;
}


@media (max-width: 600px) {
  .compass-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .compass-icon {
    width: 50px;
    margin-bottom: 10px;
  }

  .compass-wrapper p {
    text-align: justify;
  }
}
/* Brújula centrada sobre el título */
.compass-center {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .compass-center img {
    width: 130px; /* Tamaño mediano */
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out both;
  }
  
  /* Animación de aparición desde arriba */
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-25px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


/* Modal oculto por defecto */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: auto;
  justify-content: center;
  align-items: center;
}

/* Clase que se aplica cuando se abre el modal */
.modal.show {
  display: flex;
}
  
  .modal-content {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    font-family: 'Quicksand', sans-serif;
    position: relative;
    box-sizing: border-box;
  
    /* Centrado interno opcional */
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

/* Botón cerrar modal */
.close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #8B5E3C;
  cursor: pointer;
}

.close:hover {
  color: #6a4726;
}

/* Formulario estilos */
#rsvpForm {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  text-align: left;
  margin-top: 10px;
}

#rsvpForm label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #8B5E3C;
}

#rsvpForm input, 
#rsvpForm select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1.5px solid #8B5E3C;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1em;
  color: #222;
  background-color: #fff;
}

#rsvpForm input::placeholder {
  color: #aaa;
}

#rsvpForm button.reserve-link {
  width: 100%;
  margin-top: 25px;
  background-color: #8B5E3C;
  border: none;
  color: white;
  padding: 12px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

#rsvpForm button.reserve-link:hover {
  background-color: #6a4726;
}



.account-box {
  display: inline-flex;
  align-items: center;
  background-color: #f5f5f5;
  padding: 8px 14px;
  border-radius: 10px;
  gap: 8px;
  font-size: 1em;
  color: #444;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-top: 15px;
}

#accountNumber {
  font-family: monospace;
  font-size: 0.95em;
  user-select: all;
}

.copy-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #8B5E3C;
  font-size: 0.65em; /* Más pequeño */
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.copy-btn:hover {
  color: #6a4726;
}

.copy-msg {
  display: none;
  margin-left: 8px;
  color: green;
  font-size: 0.8em;
}


/*CARRUSEL */
.carousel {
  position: relative;
  max-width: 600px;
  margin: 2em auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carousel-slide {
  flex: 0 0 33.3333%; /* 3 en línea */
  box-sizing: border-box;
  padding: 0 5px;
}

.carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Ajuste para móvil: solo 1 o 2 por fila */
@media (max-width: 900px) {
  .carousel-slide {
    flex: 0 0 50%; /* 2 por línea */
  }
}
@media (max-width: 600px) {
  .carousel-slide {
    flex: 0 0 100%; /* 1 por línea */
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(139, 94, 60, 0.7); /* color acorde */
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s;
  user-select: none;
}

.carousel-btn:hover {
  background-color: rgba(139, 94, 60, 0.9);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

@media (max-width: 600px) {
  .carousel-btn {
    font-size: 1.5rem;
  }
}


.logo-wrapper {
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease-in-out both;
}

.wedding-logo {
  width: 200px;       /* tamaño controlado */
  height: auto;
  border-radius: 50%; /* hace la imagen redonda */
  border: 3px solid #8B5E3C;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 5px;
}



.countdown-section {
  margin-top: 3em;
  margin-bottom: 3em;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 2.5em;
  font-family: 'Caveat', cursive;
  color: #8B5E3C;
  text-shadow: 0 0 5px rgba(139,94,60,0.7);
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-number {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1;
}

.time-label {
  font-size: 1.2rem;
  margin-top: 0.3em;
}

@media (max-width: 600px) {
  #countdown {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
    padding: 0 1em;
  }

  .time-box {
    flex: 1 1 25%;
    min-width: 0; 
  }

  .time-number {
    font-size: 2.5rem;
  }

  .time-label {
    font-size: 0.9rem;
  }
}

/*footer*/
.footer {
  font-size: 0.75em;
  color: #8B5E3C;
  text-align: center;
  margin-top: 2em;
  padding: 0.5em 0;
  background-color: rgba(255, 255, 255, 0.7); /* fondo blanco muy suave */
  border-top: 1px solid #e0d5ca;
}

.footer a {
  color: #8B5E3C;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.rsvp-refined-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #8B5E3C;
  color: #fff;
  padding: 8px 16px;
  font-size: 1.05em;
  font-family: 'Caveat', cursive;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rsvp-refined-btn i {
  font-size: 1em;
  color: #fff;
  margin-right: 4px;
}

.rsvp-refined-btn:hover {
  background-color: #6a4726;
  transform: scale(1.02);
}



