@font-face {
  font-family: "Premint";
  src: url("../assets/fonts/premint-Regular.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

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

@font-face {
  font-family: "Chaparral";
  src: url("../assets/fonts/ChaparralPro-Regular.otf") format("truetype");
  font-weight: normal;
  font-size: normal;
}

@font-face {
  font-family: "Chaparral-Italic";
  src: url("../assets/fonts/ChaparralPro-Italic.otf") format("truetype");
  font-weight: normal;
  font-size: normal;
}

* {
  box-sizing: border-box; /* evita que padding/márgenes sumen ancho extra */
}

html,
body {
  overflow-x: hidden; /* fuerza que no haya scroll horizontal */
  max-width: 100vw; /* asegura que nada supere el ancho de la pantalla */
  position: relative;
  z-index: 1;
  background-image: url("../assets/img/information-bg.png");
}

/* =========================
   HERO SECTION
========================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../assets/img/main.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 25%;
}

.hero-content {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50vh; /* reemplaza margin-top % */
}

.hero-text {
  position: relative;
  text-align: center;
  color: #fff;
  font-family: Premint;
}

/* XV */
.hero-title {
  position: relative;
  z-index: 2;
  font-size: 10.5rem;
  line-height: 1;
}

/* MIS / AÑOS */
.hero-subtitle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: Aurelia;
  font-size: 5rem;
  white-space: nowrap;
}

/* modificadores explícitos (mejor práctica) */
.hero-subtitle--left {
  left: -6rem;
}

.hero-subtitle--right {
  right: -7rem;
}

/* =========================
   HERO – RESPONSIVE
========================= */

@media (max-width: 768px) {
  .hero {
    background-image: url("../assets/img/3.jpeg");
    background-position: bottom;
  }

  .hero-content {
    padding-top: 40vh;
  }

  .hero-title {
    font-size: 8rem;
  }

  .hero-subtitle {
    font-size: 4rem;
  }

  .hero-subtitle--left {
    left: -4rem;
  }

  .hero-subtitle--right {
    right: -5rem;
  }
}

/* =========================
   SONG LINE
========================= */

.song-line {
  width: 100%;
  background-color: #c5a4b8;
  padding: 16px 0;
}

.song-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* Texto */
.memo-song {
  margin: 0;
  font-family: Premint;
  font-size: 35px;
  color: #fff;
}

/* Botón play */
.play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background-color: #f8f8f8;
  color: #a08eaf;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.1);
}

/* =========================
   SONG LINE – RESPONSIVE
========================= */

@media (max-width: 768px) {
  .memo-song {
    font-size: 16px;
  }

  .play-btn {
    width: 55px;
    height: 55px;
  }
}


/* */

.invite-header {
  background-color: #f5f3f1;
  position: relative;
  padding: 6rem 1.5rem 8rem;
}

.invite-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Logo */
.invite-logo {
  max-width: 560px;
  width: 100%;
  height: auto;
}

/* Texto */
.invite-text {
  font-family: "Chaparral";
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8d8d8d;
  text-align: center;
  line-height: 1.6;
}

/* Flores */
.floral {
  position: absolute;
  top: 2rem;
  width: 360px;
  z-index: 1;
}

.floral-left {
  left: -60px;
  z-index: 0;
  width: 450px;
}

.floral-right {
  right: -50px;
  z-index: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .invite-header {
    padding: 4rem 1.5rem 6rem;
  }

  .invite-logo {
    max-width: 280px;
  }

  .invite-text {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    max-width: 70%;
  }

  .floral {
    width: 180px;
    top: 1rem;
  }

  .floral-left {
    left: -80px;
  }

  .floral-right {
    right: -80px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .invite-header {
    padding: 4rem 1.5rem 6rem;
  }

  .invite-name {
    font-size: 3.5rem;
  }

  .invite-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.2rem;
  }

  .invite-text {
    font-size: 0.8rem;
  }

  .floral {
    width: 180px;
    top: 1rem;
  }

  .floral-left {
    left: -80px;
  }

  .floral-right {
    right: -80px;
  }
}

/* SECTION */

.save-date-section {
  background-color: #f5f3f1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* CONTENEDOR */
.save-date-container {
  position: relative;
  width: 100%;
  max-width: 50%;
  text-align: center;
}

/* ARCO MORADO */
.arch-bg {
  width: 100%;
  display: block;
}

/* FOTO CHICA */
.girl-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
}

/* CONTENIDO */
.save-date-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 90%;
  color: #ffffff;
}

/* TEXTO */
.save-date-content p {
  font-size: 4.0rem;
  letter-spacing: 0.2rem;
  font-family: "Premint";
}

/* CALENDARIO */
.calendar-box {
  position: relative;
}

/* TEXTO MES */
.calendar-month {
  position: absolute;
  top: 27%;               /* ajusta fino */
  left: 45%;
  transform: translate(-50%, -50%);
  font-family: "Premint";
  font-size: 35px;
  color: #7a6a88;
  z-index: 2;
  pointer-events: none;   /* no estorba clicks */
}

.calendar-img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .save-date-container {
    max-width: 460px;
  }

  .save-date-content p {
    font-size: 1.6rem;
  }

  .arch-bg {
    width: 105%;
    display: block;
  }

  .girl-photo {
    width: 105%;
  }

  .calendar-img {
    width: 110%;
    display: block;
  }
    .calendar-month {
    left: 50%;
    top: 26.5%;
    font-size: 16px;
  }
}



.savedate-line {
  align-items: center;
  height: 20%;
  position: relative;
  z-index: 1;
  background-color: #9d92af;
}

.savedate-line p {
  padding-top: 3.5%;
  padding-bottom: 3.5%;
  color: white;
  text-align: center;
  font-size: 35px;
  font-family: Premint;
}

.savedate-line p .date-number {
  font-size: 65px;
}

@media (max-width: 768px) {
  .savedate-line p {
    font-size: 25px;
  }
  .savedate-line p .date-number {
    font-size: 30px;
  }
}

/* =========================
   INFORMATION SECTION
========================= */

.information {
  padding: 60px 0;
  background-image: url("../assets/img/information-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Contenido */
.information-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Títulos */
.information-titles {
  margin: 0 0 40px;
  color: #9d92af;
  font-family: Premint;
  font-size: 45px;
  text-align: center;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  font-family: Premint;
  margin-bottom: 100px;
}

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

.number {
  margin: 0;
  color: #626b66;
  font-size: 48px;
}

.label {
  margin-top: 8px;
  color: #626b66;
  font-size: 18px;
  letter-spacing: 2px;
}

/* Personas */
.person {
  margin-bottom: 25px;
  text-align: center;
}

.person-name {
  margin: 0;
  font-family: Premint;
  font-size: 40px;
  color: #2f2f2f;
}

.person-lastname {
  margin-top: 4px;
  display: block;
  font-family: Chaparral;
  font-size: 25px;
  letter-spacing: 3px;
  color: #626b66;
}

/* Divider */
.flower-divider {
  display: block;
  margin: 70px auto;
  max-width: 50%;
  height: auto;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .information {
    padding: 50px 0;
  }

  .information-titles {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .countdown {
    gap: 25px;
    margin-bottom: 70px;
  }

  .number {
    font-size: 38px;
  }

  .label {
    font-size: 16px;
  }

  .person-name {
    font-size: 22px;
  }

  .person-lastname {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .flower-divider {
    max-width: 80%;
  }
}

/* ======================================================
   COVER SECTION
====================================================== */

.cover-section {
  background-image: url("../assets/img/cover.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 110vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.cover-title-img {
  width: 30%;
  height: auto;
  margin-bottom: 10px;
}

.cover-subtitle {
  font-family: Premint;
  font-size: 35px;
  color: #fff;
}

/* ======================================================
   LOCATIONS SECTION
====================================================== */

.locations {
  margin-top: -5%;
  background-color: #dbd4e5;
  background-size: cover;
  background-repeat: repeat;
  padding: 70px 0;
  position: relative;
}

/* ======================================================
   LOCATION CARD – BASE
====================================================== */

.location-card {
  position: relative;
  background-color: #f7f5f0; /* color de la card */
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* efecto visual */
.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ======================================================
   ICON & TEXT
====================================================== */

.location-icon {
  width: 60%;
  height: auto;
  margin-bottom: 15px;
}

.location-card h3 {
  font-family: Premint;
  color: #77687d;
  font-size: 40px;
  margin-bottom: 10px;
  line-height: 1.8;
}

.location-card p {
  color: #77687d;
  font-size: 19px;
  margin: 0;
  line-height: 1.8;
}

.location-hour,
.location-city {
  font-family: Chaparral-Italic;
  line-height: 1.4;
}

.location-lugar {
  font-family: Chaparral;
  font-weight: lighter;
  line-height: 1.8;
}

/* ======================================================
   BUTTON
====================================================== */

.location-card .btn {
  font-family: Chaparral;
  background-color: #9d92af;
  border-color: #9d92af;
  color: #fff;
  font-size: 22px;
  border-radius: 8px;
  letter-spacing: 1px;
  margin-top: 20px;
}

.location-card .btn:hover {
  background-color: #9d92af;
  transform: scale(1.03);
}

/* ======================================================
   DESKTOP TWEAK (OPTIONAL DESIGN OFFSET)
====================================================== */

/* Si quieres que suban visualmente hacia el cover */
@media (min-width: 769px) {
  .location-card {
    margin-top: -50%;
  }
}

/* ======================================================
   RESPONSIVE – MOBILE FIRST FIX
====================================================== */

@media (max-width: 768px) {

  /* ---- Cover ---- */
  .cover-section {
    height: 100vh;
    background-position: 40% center;
  }

  .cover-subtitle {
    font-size: 18px;
  }

  /* ---- Locations ---- */
  .locations {
    margin-top: 0;
    padding: 20px 20px;
  }

  /* ---- Cards ---- */

  .location-card1 {
    margin-top: -70%;
  }

  .location-card2 {
    margin-top: 30%;
  }

  /* ---- Content scaling ---- */
  .location-icon {
    width: 60%;
  }

  .location-card h3 {
    font-size: 28px;
  }

  .location-card p {
    font-size: 16px;
    line-height: 1.7;
  }

  .location-card .btn {
    font-size: 18px;
    padding: 8px 18px;
  }
}

/* Estilos de galeria */

.gallery-carousel {
  background-image: url("../assets/img/information-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 5%;
}

.owl-carousel .item {
  padding: 10px;
  text-align: center;
  height: 83vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.owl-carousel .item img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
}

.gallery-title {
  padding-top: 5%;
  padding-bottom: 2%;
  font-family: Premint;
  font-size: 45px;
  color: #9d92af;
}

@media (max-width: 768px) {
  .gallery-title {
    margin-top: 7%;
    font-size: 30px;
  }

  .gallery-carousel {
    margin-bottom: 7%;
  }
}

/* Estilos para las flechas de navegación */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 30px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 1001;
  opacity: 0.8;
}

.nav-btn:hover {
  opacity: 1;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
  .prev-btn {
    left: 5px;
  }

  .next-btn {
    right: 5px;
  }
}

.nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ITINERARY SECTION */
.itinerary {
  background-color: #dbd4e4;
}

.itinerary-content {
  margin-top: 6%;
  margin-bottom: 6%;
  text-align: center;
}

.itinerary-content p {
  color: #715a72;
  text-align: center;
  font-family: Premint;
  font-size: 20px;
}

.itinerary-content .itinerary-titles {
  color: #715a72;
  text-align: center;
  font-family: Premint;
  font-size: 45px;
}

/* TIMELINE STYLES */
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-icon {
  width: 195px;
  height: auto;
}

.timeline-line {
  width: 100px;
}

.timeline-text {
  text-align: left;
}

.timeline-text h4 {
  font-family: Premint;
  color: #715a72;
  font-size: 45px;
  margin-bottom: 3px;
}

.timeline-text p {
  font-family: Chaparral-Italic;
  text-justify: auto;
  font-size: 18px;
  color: #715a72;
  text-align: end;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline {
    margin-bottom: 10%;
  }
  .timeline-item {
    flex-direction: column;
    gap: 5px;
    width: 50;
  }
  .timeline-icon {
    width: 45%;
    height: auto;
  }
  .timeline-line {
    width: auto;
    height: 50px;
  }
  .timeline-text h4 {
    font-size: 30px;
    text-align: center;
  }
  .timeline-text p {
    font-size: 16px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .itinerary-content {
    margin-top: 10%;
  }
  .itinerary-content p {
    font-size: 17px;
  }
  .itinerary-content .itinerary-titles {
    font-size: 30px;
  }
}

/* =========================
   CÓDIGO DE VESTIMENTA
========================= */

.dresscode-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
}

.dresscode-wrapper {
  max-width: 520px;
  text-align: center;
}

/* Íconos */
.dresscode-icons {
  width: 48%;
  margin-bottom: 18px;
}

/* Título principal */
.dresscode-wrapper h3 {
  font-family: Premint;
  font-size: 45px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: #8b7f95;
}

/* Subtítulo */
.dresscode-type {
  display: block;
  font-family: Chaparral;
  font-size: 25px;
  letter-spacing: 3px;
  color: #b4a8c0;
}

/* Texto */
.dresscode-wrapper p {
  font-family: Chaparral-Italic;
  font-size: 20px;
  line-height: 1.7;
  color: #9a8fa6;
  max-width: 300px;
  margin: 0 auto;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .dresscode-section {
    padding: 90px 16px;
  }

  .dresscode-icons {
  width: 60%;
  }

  .dresscode-wrapper h3 {
    font-size: 26px;
    max-width: 90vh;
  }
  .dresscode-type {
    font-size: 17px;
  }

  .dresscode-wrapper p {
    font-size: 16px;
  }
}


/* =========================
   SECCIÓN REGALO
========================= */

.gift-section {
  margin-left: 5%;
  margin-right: 5%;
  display: flex;
  justify-content: center;
  background: transparent;
  margin-bottom: 5%;
}

/* =========================
   CONTENEDOR PRINCIPAL
========================= */

.gift-wrapper {
  position: relative;
  width: 100%;
  max-width: 65vh; /* controla el tamaño desktop */
}

/* =========================
   IMAGEN PRINCIPAL
========================= */

.gift-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   PINCEL + CONTENIDO
========================= */

.gift-card {
  position: absolute;
  left: 50%;
  bottom: -8%; /* clave: vive SOBRE la imagen */
  transform: translateX(-50%);
  width: 150%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* pincel */
.gift-brush {
  max-width: 90%;
  max-height: 60%;
}

/* =========================
   CONTENIDO SOBRE PINCEL
========================= */

.gift-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 48px;
}

/* sobre */
.gift-icon {
  width: 125px;
  margin-bottom: 6px;
}

/* =========================
   TEXTO
========================= */

.gift-content h3 {
  font-family: Premint;
  font-size: 24px;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  color: #7a6a88;
}

.gift-content p {
  font-family: Chaparral-Italic;
  font-size: 20px;
  line-height: 1.3;
  max-width: 350px;
  color: #7a6a88;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .gift-wrapper {
    max-width: 100%;
  }

  .gift-brush {
    width: 100%;
  }

  .gift-icon {
    width: 90px;
  }

  .gift-content {
    padding: 24px 20px;
  }

  .gift-content h3 {
    font-size: 18px;
  }

  .gift-content p {
    font-size: 16px;
    max-width: 280px;
    
  }
}



/* Sección Confirmar Asistencia */
.confirm-section {
  background-color: #c5a4b8;
  padding: 5% 5% 0%; /* Menor padding superior, mayor inferior */
  text-align: center;
}

.confirm-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Título */
.confirm-title {
  font-family: Premint;
  font-size: 35px;
  color: #fff;
  letter-spacing: 1px;
}

/* Imagen botón */
.confirm-button {
  width: 60%;
  height: auto;
  transition: transform 0.2s ease;
}

.confirm-button:hover {
  transform: scale(1.03);
}

/* Logo */
.confirm-logo {
  margin-bottom: 5%;
  width: 90%;
  height: auto;
}

.confirm-subtitle {
  margin-top: 20px;
  margin-bottom: -8px;
  font-family: Premint;
  font-size: 18px;
  letter-spacing: 1px;
  color: #fff;
}

.confirm-note {
  margin-bottom: 40px;
  margin-top: -16px;
  max-width: 500px;
  font-family: Chaparral-Italic;
  line-height: 1.5;
  font-size: 20px;
  color: #fff;
  text-align: center;
}


/* Responsive: móvil */
@media (max-width: 768px) {
  .confirm-title {
    margin-top: 8%;
    font-size: 26px;
  }

  .confirm-button {
    width: 65%;
  }

  .confirm-logo {
    width: 100%;
    margin-bottom: 10%;
  }
    .confirm-subtitle {
    font-size: 16px;
  }

  .confirm-note {
    font-size: 14px;
    margin-top: -14.5px;
  }
}

/* Estilos del Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F5F3F1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-circle {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-image {
  width: 100%;
  height: auto;
  z-index: 2;
}

.loader-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 6.5px solid transparent;
  border-top-color: #dad2e3; /* Color principal */
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  z-index: 1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
