@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}


@font-face {
  font-family: 'MsMadi';
  src: url('./fonts/MsMadi.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Tangerine-Bold';
  src: url('./fonts/Tangerine-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

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

a{
    text-decoration: underline;
    color: black;
}

.hero {
  position: relative;
  background-image: url("./public/PradosRiverosAltar.jpg");
  min-height: 80vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  z-index: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Para que el contenido esté por encima del oscurecedor */
.hero > * {
  position: relative;
  z-index: 2;
}
.welcome{
    font-family: 'Montserrat';
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem;
}

.hero-title{
    font-family: 'MsMadi';
    font-size: 5rem;
    margin: 3rem;
}

.date{
    font-family: 'Montserrat';
    font-size: 2rem;
    font-weight: 400;
    margin: 1rem;
}

/*Intro Section*/
.introduction{
    background: linear-gradient(#fff8de, #edc5a7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.introduction div{
    margin: 5rem;
    max-width: 40vw;
}

.introduction-title{
    font-family: 'MsMadi';
    font-size: 5rem;
    color: black;
    text-align: center;
}

.introduction .text{
    font-family: 'Montserrat';
    color: #56585E;
    font-size: 1.2rem;
    text-align: justify;
}
.introduction img{
  max-width: 30%;
  height: auto;
  margin: 3rem;
  border-radius: 20px;
}


/*Countdown Section*/
.countdown-section{
    margin: 0px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( #edc5a7, #fff8de);
}
.container {
    text-align: center;
}

.timer-icon {
    margin-bottom: 0;
    color: #7c3aed;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    font-size: 3rem;
    font-weight: 700;
    color: #db9f64;
    margin-bottom: 0.5rem;
}

.label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #db9f64;
}

@media (max-width: 480px) {
    .countdown {
        gap: 1rem;
        padding: 1rem;
    }
    
    .number {
        font-size: 2rem;
    }
    
    .label {
        font-size: 0.75rem;
    }
}

/*Location section*/
.location{
    background: linear-gradient(#fff8de, #edc5a7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;;
}

.location iframe{
    max-width: 40vw;
    height: 400px;
    border: none;
    border-radius: 30px;
    margin: 2rem;
    object-fit: cover;
    overflow: hidden;
}
.location div{
    margin: 3rem;
    max-width: 40vw;
}
.section-title{
    font-family: 'MsMadi';
    font-size: 5rem;
    color: black;
    text-align: center;
}
.location .text{
    font-family: 'Montserrat';
    color: #56585E;
    font-size: 1.2rem;
    text-align: justify;
    padding-top: 1.2rem;
}
.location .instagram{
    font-family: 'Montserrat';
    color: #56585E; 
    font-size: 4rem;
    text-align: center;
}
.location p{
    font-family: 'Montserrat';
    color: #56585E;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/*Section Timeline*/
.timeline{
    background: linear-gradient(#edc5a7, #fff8de);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timeline img{
    margin-bottom: 2rem;
    width: 60%;
}

/*Photo Section*/
.photo{
    background: linear-gradient(#fff8de, #edc5a7);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.photo div{
    margin: 5rem;
    max-width: 40vw;
}

.photo .section-title{
    font-family: 'MsMadi';
    font-size: 5rem;
    color: black;
    text-align: center;
}

.photo .text{
    font-family: 'Montserrat';
    color: #56585E;
    font-size: 1.2rem;
    text-align: justify;
}

.photo img{
  max-width: 30%;
  max-height: 60vh;
  height: auto;
  margin: 3rem;
  border-radius: 20px;
}

/*Last details section*/
.last-details{
    background: linear-gradient(#edc5a7, #fff8de);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.last-details div{
    margin: 4rem;
    max-width: 40vw;
}
.last-details .section-title{
    font-family: 'MsMadi';
    font-size: 5rem;
    color: black;
    text-align: center;
}
.last-details h4{
    font-family: 'Montserrat';
    color: #56585E;
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.last-details .text{
    font-family: 'Montserrat';
    color: #56585E;
    font-size: 1.2rem;
    text-align: justify;
}
.last-details .text a{
    color: #56585E;
    text-decoration: none;
}
.last-details img{
    max-width: 40%;
    height: auto;
    margin: 2rem;
    border-radius: 20px;
}

/* Media Queries */
/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
  .introduction,
  .location,
  .photo,
  .last-details {
    flex-direction: column;
    padding: 1rem;
  }

  .introduction div,
  .location div,
  .photo div,
  .last-details div {
    max-width: 90vw;
    margin: 1rem auto;
  }

  .introduction img,
  .photo img,
  .last-details img {
    max-width: 90vw;
    margin: 1rem auto;
  }

  .location iframe {
    max-width: 90vw;
    height: 300px;
    margin: 1rem auto;
  }

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

  .introduction-title,
  .photo .section-title,
  .last-details .section-title {
    font-size: 3rem;
  }

  .welcome,
  .date {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 3rem;
    margin: 1.5rem;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline img {
    width: 90vw;
  }
}

.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(#edc5a7, #fff8de);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
  overflow: auto;
  padding: 1rem;
}


.modal-content {
  width: 100%;
  height: auto;
  max-width: 700px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    height: auto;
    border-radius: 10px;
    max-width: 100%;
    max-height: 90vh;
  }
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #000;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 101;
}

.modal-content {
  touch-action: pinch-zoom;
}
.modal-content:active {
  transform: scale(0.95);
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}




