@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Playfair+Display&family=Roboto+Mono:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&family=Parisienne&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&display=swap');

@font-face {
  font-family: limoncello;
  src: url('/font/LimoncelloRecipe.ttf');
}

:root {
  --font-cursive: 'limoncello';
  /* --main-color:#699696; */
  --main-color: #4c4c4c;
  /* --main-color:#F2AE7A; */
  --main-font: 'latienne-pro';
  --main-font-size: 18px;
  --other-font: 'the-seasons';
}
body,
html {
  margin: 0;
  font-family: var(--main-font);
  scroll-behavior: smooth;
}
header {
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  /*min-height: calc((100vw * 16)/9);*/
  background-image: url('img/back.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  perspective: 2px;
  z-index: 10000;
  background-position: 0% 50%;
}
.overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 10;
  color: white;
}
.overlay-header p span {
  font-family: var(--font-cursive);
  font-size: 90px;
  display: block;
}
.overlay-header p {
  font-family: var(--font-cursive);
  font-size: 60px;
  position: absolute;
  text-align: center;
  bottom: 50px;
  left: 50px;
  font-weight: 100;
  margin-bottom: 0;
  text-transform: uppercase;
}
header a {
  position: absolute;
  z-index: 10;
  left: calc(50% - 32px);
  bottom: 32px;
  animation: bounce 3s infinite;
}
header a:hover {
  bottom: 20px;
  transition: bottom 0.5s ease;
}
header a img {
  width: 64px;
}
.days-left {
  width: 100vw;
  max-width: 100%;
  height: 200px;
  background-color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-direction: column;
  font-family: var(--other-font);
  position: relative;
  z-index: 11;
  font-size: 2.5rem;
  font-weight: normal;
}
.days-left p {
  margin: 10px;
  font-weight: 100;
}

section,
footer {
  width: 100vw;
  max-width: 100%;
  height: auto;
  padding: 50px 0px;
}

section .section-inner {
  width: 100%;
  margin: auto;
  position: relative;
}
.wedding-details {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
}
.wedding-details img {
  width: 300px;
  height: 300px;
}
.wedding-details-text {
  width: 100%;
  text-align: center;
  font-family: var(--main-font);
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 40px 0px;
}
.wedding-details-text > div {
  position: relative;
}
.wedding-details-text p {
  font-size: var(--main-font-size);
  font-weight: 300;
  line-height: 2;
}
.wedding-details-text h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-top: 0px;
  font-family: var(--other-font);
  color: var(--main-color);
}

section.regalo button,
section.asistencia button {
  background-color: white;
  padding: 12px 22px;
  border-radius: 24px;
  color: var(--main-color);
  text-decoration: none;
  display: inline-block;
  font-size: calc(var(--main-font-size) * 1.2);
  border: 1px solid white;
  font-weight: bold;
}

section.regalo button {
  background-color: var(--main-color);
  color: white;
  border: 1px solid var(--main-color);
  cursor: pointer;
}
.asistencia a {
  color: inherit;
  text-decoration: none;
}

.wedding-details-text a,
.wedding-details-no-text a,
.wedding-details-no-text button,
.wedding-details-text button {
  background-color: var(--main-color);
  padding: 20px 66px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  display: inline-block;
  font-size: calc(var(--main-font-size) * 1.25);
  border: 1px solid white;
  font-weight: bold;
  border: 1px solid var(--main-color);
  font-family: the-seasons;
}

section.asistencia button:hover {
  background-color: var(--main-color);
  color: white;
}

section.regalo button:hover {
  background-color: white;
  color: var(--main-color);
}

.wedding-details-text a:hover,
.wedding-details-no-text button:hover,
.wedding-details-text button:hover {
  cursor: pointer;
  background-color: white;
  color: var(--main-color);
}
.wedding-details-text a {
  /* text-transform: uppercase; */
}

section.asistencia {
  background-color: var(--main-color);
}

section.regalo {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  font-size: var(--main-font-size);
  font-weight: 300;
}
section.regalo img {
  width: 75px;
}
section.regalo p {
  width: 50%;
  text-align: center;
  color: var(--main-color);
  font-size: var(--main-font-size);
}

.modal-regalos {
  position: fixed;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  top: 0;
  left: 0;
  z-index: 1000000;
  background-color: rgba(76, 76, 76, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.inner-modal-regalos {
  width: 400px;
  height: auto;
  border-radius: 10px;
  background-color: white;
  padding: 30px 0px;
}
.modal-regalos-item {
  margin: 35px 0px;
  border-top: 1px solid #f2f2f2;
}
.modal-regalos-item:nth-child(1) {
  border-top: none;
}
.modal-regalos-item img {
  width: 28%;
}

.asistencia {
  text-align: center;
}
.asistencia h2 {
  text-transform: uppercase;
  color: white;
}

footer {
  background-color: var(--main-color);
  text-align: center;
  color: white;
  font-size: 18px;
}

.photos {
  width: 80%;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.photos img {
  width: 32%;
  margin: 2.5px 2.5px;
  border-radius: 10px;
}
.photos img:hover {
  transform: scale(1.01);
  transition: transform ease 0.5s;
}

.section-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.photos h1 {
  color: var(--main-color);
}

#text-days {
  display: flex;
  gap: 20px;
  font-family: var(--other-font);
}
#text-days div {
  font-size: 1.2rem;
  text-align: center;
  padding-bottom: 10px;
  font-family: var(--other-font);
  font-weight: 100;
}
#text-days span {
  background-color: white;
  padding: 2px 16px;
  border-radius: 6px;
  color: var(--main-color);
  font-size: 3rem;
  margin: 5px 5px;
  font-weight: 400;
}
#text-days label {
  position: relative;
  top: 5px;
  font-family: seasonlight;
}

.separador {
  background-image: url('../img/separador.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.subrayadoDetalles {
  position: absolute;
  top: 0;
  right: calc(50% - 300px);
  width: 600px !important;
}
.fotos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5vw;
}
.fotos img {
  width: auto;
  height: 400px;
  border-radius: 20px;
}
@media (max-width: 768px) {
  body,
  html {
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
  }
  .days-left {
    font-size: 2rem;
  }
  header {
    height: 100vh;
    /*min-height: calc((100vw * 16)/9);*/
    background-image: url('img/backMobile.png') !important;
    background-size: 100% 100% !important;
    background-attachment: initial !important;
    background-position: 50% 0%;
  }
  .overlay-header p {
    font-size: 48px;
    text-align: left;
    top: 20px;
    left: 30px;
    font-weight: 100;
    margin-bottom: 0;
    text-transform: uppercase;
  }
  .wedding-details-text {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  section .section-inner {
    width: 100%;
    margin: auto;
    position: relative;
  }
  .wedding-details-text > div {
    width: 100%;
    position: relative;
  }

  .wedding-details-text h2 {
    margin-top: 15px;
  }
  .photos {
    width: 80%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .photos img {
    width: 100%;
    margin: 2.5px 2.5px;
    border-radius: 10px;
  }
  .photos img:hover {
    transform: scale(1.01);
    transition: transform ease 0.5s;
  }
  section.regalo p {
    width: 60%;
  }

  #text-days div {
    font-size: 1.2rem;
    text-align: center;
    padding-bottom: 10px;
    font-family: var(--other-font);
    font-weight: 100;
  }
  #text-days span {
    background-color: white;
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--main-color);
    font-size: 1.4rem;
    margin: 5px 5px;
    font-weight: 400;
  }
  #text-days label {
    position: relative;
    top: 5px;
    font-family: seasonlight;
  }
  .subrayadoDetalles {
    right: -7%;
    width: 100vw !important;
  }
  .relleno {
    display: none;
  }
  .fotos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .fotos img {
    width: 80vw;
    height: auto;
    border-radius: 20px;
  }
  
  /* Asegurar que las imágenes no se roten en móvil */
  img {
    transform: none !important;
    -webkit-transform: none !important;
  }
}
