@import url('https://fonts.googleapis.com/css2?family=Gilda+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rouge+Script&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Gilda Display;
}

:root {
  --max-width: 1000px;
  --min-width: 300px;
  --optimus-width: 100vw;

  --primary-color: #414728;
  --secondary-color: hsl(from var(--primary-color)h s calc(l + 12));
  --tertiary-color: #ffffff;

  --title-color: var(--primary-color);
  --subtitle-color: var(--secondary-color);
  --paragraph-color: #f3f5ff;

  --primary-background-color: #eeeeee;
  --secondary-background-color: hsl(from var(--primary-background-color) h s calc(l + 5));
  --tertiary-background-color: hsl(from var(--primary-background-color) h s calc(l + 10));

  --border-color: hsl(from var(--primary-background-color) h s calc(l + 18));
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  min-height: 100%;
  width: 100%;
  background: rgb(255, 253, 245);
}

a,
button {
  font-size: 1.1rem;
  text-decoration: none;
}

.ubication__btn {
  width: 100%;
  outline: none;
  border: none;
  cursor: pointer;

  background: var(--primary-color);
  min-width: 180px;
  padding: 0.5rem 2rem;
  border-radius: 4px;
  color: var(--tertiary-color);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 1;
}

.ubication__btn.show {
  opacity: 1;
  transform: translateY(0);
}

.ubication__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 8px var(--primary-color);
}

.hero,
.section-container,
.footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero {
  background-image: url(assets_proplus/landscape1.webp);
  background-size: cover;
  background-position: center;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 6rem 0;
  align-items: center;
  mask-image: linear-gradient(black 90%, transparent);
  text-shadow: 0 0 8px var(--primary-color);
}

.hero h1 {
  letter-spacing: 3px;
  font-family: Rouge Script;
  font-size: 4.2rem;
  font-weight: normal;
  color: white;
}

.btn-music {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 50px;
  height: 50px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.btn-music .bar {
  width: 7px;
  height: 20px;
  background: var(--primary-color);
  /* cámbialo según tu diseño */
  border-radius: 2px;
  animation: equalizer 0.6s infinite;
  animation-play-state: paused;
  /* por defecto quieto */
}

.btn-music .bar:nth-child(1) {
  animation-delay: 0s;
}

.btn-music .bar:nth-child(2) {
  animation-delay: 0.2s;
}

.btn-music .bar:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes equalizer {

  0%,
  100% {
    height: 12px;
  }

  50% {
    height: 24px;
  }
}

.btn-music.active .bar {
  animation-play-state: running;
  /* cuando está activo, se mueven */
}


.section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 1rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
}

.section-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  padding: 3rem 2rem;
  max-width: var(--max-width);
}

.section-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #af8511;
  /* background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.25)); */
  padding: 1rem;
  border-radius: 4px;
}

.section__title {
  font-family: Rouge Script;
  color: #af8511;
  font-size: 3.8rem;
  font-weight: normal;
  text-align: center;
  line-height: 3.55rem;
}

.section-text p {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.ornament {
  width: 100%;
}

.button {
  width: 100%;
  outline: none;
  border: none;
  cursor: pointer;

  background: var(--primary-color);
  min-width: 180px;
  padding: 0.5rem 2rem;
  border-radius: 4px;
  color: var(--tertiary-color);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.button.show {
  opacity: 1;
  transform: translateY(0);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 8px var(--primary-color);
}

.section-content h2,
.section-content p {
  display: block;
}

.section-data-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  padding-bottom: 2rem;
  justify-content: space-around;
  background-image: url();
  background-size: cover;
  background-position: center;
}

.text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.data-container__text {
  font-family: Gilda Display;
  font-size: 1.2rem;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
  color: #af8511;
  padding-inline: 1.5rem;
}

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

.section-data__date .ornament {
  width: 90%;
}

.counter-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.faltan__text {
  color: #af8511;
  font-size: 1.5rem;
  text-align: center;
  font-weight: normal;
  margin-bottom: 0.8rem;
}

#counter {
  color: #af8511;
  font-size: 2.3rem;
  font-weight: bold;
  width: 100%;
  text-align: center;
  padding-inline: 0.3rem;
  border-radius: 4px;
}

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

.section-ubications .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #af8511;
  text-align: center;
  gap: 0.5rem;
}

.ubication__btn {
  background: var(--secondary-color);
  text-align: center;
  color: white;
}

.number {
  font-size: 6rem;
  align-self: end;
}

.section-gift {
  background-image: url();
  background-size: cover;
  background-position: top;
  position: relative;
}

.gitf-buttons-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-dresscode {
  background-image: url();
  background-position: top;
  background-size: cover;
}

.header-ilustration,
.dresscode-ilustration,
.activities-ilustration {
  width: 100px;
}

.fork {
  rotate: 75deg;
}

.section-dresscode .section-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.section-dresscode .section-text p {
  font-size: 1.6rem;
  margin-top: 0;
}

.dresscode-gender-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.reserved-colors {
  display: flex;
  gap: 0.5rem;
}

.reseved__color {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(24, 24, 24, 0.25);
}

.reseved__color1 {
  background: white;
  border: 2px solid hsl(from var(--primary-color) h s calc(l + 10));
}

.reseved__color2 {
  background: var(--primary-color);
  border: 2px solid hsl(from var(--primary-color) h s calc(l + 10));
}

.reseved__color3 {
  background-color: #dbd2ab;
  border: 2px solid hsl(from var(--primary-color) h s calc(l + 10));
}

.section-gallery {
  background-image: url();
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 0;
}

.bg-img {
  position: absolute;
  opacity: 0;
  transform: translateY(30px);
  /* salen un poco movidos */
  animation: fadeMove 2s ease forwards;
  /* animación de entrada */
}

/* Animación de entrada */
@keyframes fadeMove {
  to {
    opacity: 0.3;
    /* o el valor que quieras */
    transform: translateY(0);
  }
}

.bg-img1 {
  opacity: 0.5;
  width: 75%;
  left: -90px;
  bottom: -10px;
  animation-delay: 0.5s;
  /* aparece con retraso */
  animation-name: fadeMove, float;
  /* entrada + flotado */
  animation-duration: 2s, 6s;
  animation-timing-function: ease, ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1, infinite;
}

.bg-img2 {
  width: 62%;
  top: -10px;
  right: -100px;
  opacity: 0.2;
  animation-delay: 1s;
  /* un poco más de retraso */
  animation-name: fadeMove, float;
  animation-duration: 2s, 8s;
  animation-timing-function: ease, ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1, infinite;
}

/* Flotado infinito */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

.bg-img3 {
  opacity: 0.5;
  width: 90%;
  bottom: -80px;
  rotate: 25deg;
  left: -90px;
  animation-delay: 0.5s;
  /* aparece con retraso */
  animation-name: fadeMove, float;
  /* entrada + flotado */
  animation-duration: 2s, 6s;
  animation-timing-function: ease, ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1, infinite;
}

.bg-img4 {
  opacity: 0.5;
  width: 100%;
  bottom: -50px;
  rotate: -80deg;
  right: -80px;
  animation-delay: 0.5s;
  /* aparece con retraso */
  animation-name: fadeMove, float;
  /* entrada + flotado */
  animation-duration: 2s, 6s;
  animation-timing-function: ease, ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1, infinite;
}

.bg-img5 {
  opacity: 0.5;
  width: 90%;
  bottom: -90px;
  rotate: 25deg;
  left: -90px;
  animation-delay: 0.5s;
  /* aparece con retraso */
  animation-name: fadeMove, float;
  /* entrada + flotado */
  animation-duration: 2s, 6s;
  animation-timing-function: ease, ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1, infinite;
}

.bg-img6 {
  opacity: 0.5;
  width: 100%;
  rotate: -55deg;
  bottom: -100px;
  right: -180px;
  animation-delay: 0.5s;
  /* aparece con retraso */
  animation-name: fadeMove, float;
  /* entrada + flotado */
  animation-duration: 2s, 6s;
  animation-timing-function: ease, ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1, infinite;
}

.bg-img7 {
  opacity: 0.5;
  width: 100%;
  rotate: -80deg;
  top: -50px;
  right: -180px;
  animation-delay: 0.5s;
  /* aparece con retraso */
  animation-name: fadeMove, float;
  /* entrada + flotado */
  animation-duration: 2s, 6s;
  animation-timing-function: ease, ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1, infinite;
}

.bg-img8 {
  opacity: 0.5;
  width: 90%;
  top: 10%;
  rotate: 50deg;
  left: -180px;
  animation-delay: 0.5s;
  /* aparece con retraso */
  animation-name: fadeMove, float;
  /* entrada + flotado */
  animation-duration: 2s, 6s;
  animation-timing-function: ease, ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1, infinite;
}

.section-gallery .section-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

/* .section-gallery-text {
  width: 100%;
} */

.gallery {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-imgs {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-imgs::-webkit-scrollbar {
  display: none;
}

.gallery-imgs img {
  flex: 0 0 100%;
  /* cada imagen ocupa exactamente 1 “pantalla” */
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.arrow {
  display: flex;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  user-select: none;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.arrow i {
  font-size: 1.2rem;
  color: white;
}

.gallery-controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 5%;
  translate: -50%;
}


.gallery-controls__inputs {
  display: flex;
  gap: 0.5rem;
}

.gallery-controls__inputs input {
  display: none;
}

.gallery-controls__inputs label {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: gray;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
}

.gallery-controls__inputs input:checked+label {
  background: var(--primary-color);
}

.arrow {
  display: none;
}

.section-activities {
  background-image: url();
  background-position: center;
  background-size: cover;

}

.section-confirm {
  background-image: url();
  background-position: bottom;
  background-size: cover;
}

.section-confirm .section-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.confirm-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  background: black;
}

.confirm-form input,
.confirm-form textarea,
.confirm-form select,
.confirm-form .form-button {
  width: 100%;
}

.confirm-form input,
.confirm-form select,
.confirm-form textarea {
  height: 2rem;
  padding: 0.5rem;
  border-radius: 4px;
  outline: none;
  border: none;
}

.confirm-form textarea {
  height: 5rem;
  resize: none;
  overflow: auto;
}

.section-content {
  transition: all 0.3s ease;
  transform: translateY(200px);
  opacity: 0;
}

.section-content.show {
  transform: translateY(0);
  opacity: 1;
}

.footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(192, 185, 155, 0.5);

  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;

  padding: 1.5rem;
  background: white;
  color: black;

  scroll-snap-align: start;
  scroll-snap-stop: always;

  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.footer>* {
  font-family: Poppins;
  font-size: 0.9rem;
}

.footer.show {
  transform: translateY(0);
  opacity: 1;
}

.footer img {
  width: 100px;
}

.footer__button {
  background: var(--secondary-color);
  padding: 0.5rem 1rem;
  width: 120px;
  display: block;
  text-align: center;
  color: var(--tertiary-color);
  border-radius: 4px;
}

/* Modal */

.modal-overlay {
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;

  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  background: hsl(from rgb(255, 253, 245)h s calc(l + 5));
  width: 90vw;
  max-width: 400px;
  border-radius: 4px;
  padding: 1rem;
  color: #af8511;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  position: relative;

  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(100px);
}

.subtitle-modal {
  color: #af8511;
}

.modal.show {
  opacity: 1;
  transform: translateY(0);

}

.modal button {
  width: auto;
}

.modal-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.method-container {
  text-align: center;
}

.method-container img {
  width: 100%;
  max-width: 150px;
}

.copy__btn {
  border: none;
  outline: none;
  background: var(--primary-background-color);
  padding: 0.3rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.copy__btn:hover {
  transform: translateY(-3px);
}

.account-number-container {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.modal-dresscode {
  height: 70vh;
  max-height: 600px;
}

.dresscode-context {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pinterest__btn {
  border: none;
  padding: 0.5rem;
  width: 35px;
  height: 35px;
  background: rgb(231, 11, 44);
  color: white;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pinterest__btn:hover {
  transform: translateY(-3px);
  background: rgb(233, 29, 59);
}

.ri-pinterest-fill {
  font-size: 1.5rem;
}

.dresscode-imgs-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.dresscode-imgs-container img {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100%;
  aspect-ratio: 3/4;
  background: black;
  border-radius: 4px;
}

.activities-container {
  width: 100%;
  height: 380px;
  padding: 1rem;
  overflow-y: scroll;
  display: grid;
  grid-template-columns: 1px 1fr;
  grid-template-areas:
    "line activitie1"
    "line activitie2"
    "line activitie3"
    "line activitie4";
  gap: 1rem;
  position: relative;
}

.time-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--primary-color) 10%, var(--primary-color) 90%, transparent);
  grid-area: line;
}

.circle {
  width: 10px;
  height: 10px;
  background: linear-gradient(to top right, var(--primary-color), hsl(from var(--primary-color)h s calc(l + 30)));
  border-radius: 50%;
  position: absolute;
  left: 12px;
}

.activitie {
  padding: 1rem;
  background: hsl(from rgb(255, 253, 245)h s calc(l - 2));
  display: flex;
  color: #af8511;
  border-radius: 6px;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  transition: all 0.3s ease;
  opacity: 1;
}

/* .activitie.show{
  opacity: 1;
} */

.activitie1 {
  grid-area: activitie1;
}

.activitie2 {
  grid-area: activitie2;
}

.activitie3 {
  grid-area: activitie3;
}

.activitie4 {
  grid-area: activitie4;
}

.button-close-modal-x {
  display: none;
}

.end-msg {
  color: #af8511;
  font-family: Rouge Script;
  font-weight: normal;
  font-size: 3rem;
}

.main-overlay{
  display: none;
}

@media (width >=768px) {

  .hero,
  .section-container,
  .footer {
    display: none;
  }

  .main-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: white;
    color: var(--primary-color);
  }

  .main-overlay i {
    font-size: 2rem;
  }

  .main-overlay img {
    width: 100px;
  }
}


.oculto {
  display: none;
}