:root {
  --text: #3c4e34;
  --accent: #37350C;     /*#3c4e34;*/
  --Oliva: #37350C;     /*#3c4e34;*/ /* verde oliva */
  --Cream: #FFFDEF;
  --Black: #000000;
  --White: #FFFFFF;
}



* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--Cream);
  color: var(--text);
  scroll-behavior: smooth;
}

/* Slider */
.slider {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.slide.active {
  opacity: 1;
}

/* Navegación */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0px solid var(--Cream);
  background: transparent;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--Cream);
  padding: 6px 10px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav.prev {
  left: 20px;
}
.nav.next {
  right: 20px;
}

/* Overlay */
.overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--Cream);
  max-width: 720px;
  padding: 12px;
  border-radius: 8px;
  width: 334px;
  gap: 0rem;
}
.overlay-logo {
  max-width: 120px;
}
.drop-shadow {
  filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.5));
}

/* 🎶 Contenedor del control de música */
.music-control {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--Cream);
  z-index: 20;
}

/* Botón principal */
.music-btn {
  background: transparent;
  border: none;
  color: var(--Cream);
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animación hover */
.music-btn:hover {
  transform: scale(1.05);
}

/* Estado de foco accesible pero elegante */
.music-btn:focus {
  outline: none; /* elimina borde por defecto */
}
.music-btn:focus-visible {
  outline: 2px solid var(--Cream);
  outline-offset: 4px; /* halo externo, no pegado al ícono */
  border-radius: 50%;
}

/* SVGs dentro del botón */
.music-btn svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;   /* asegura que no aparezca borde */
  outline: none;  /* elimina cualquier halo interno */
}


/*
.overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
}
.overlay p {
  margin: 0;
  font-size: 1rem;
}
*/

/* Secciones */
section {
  padding: 48px 20px;

  margin: 0 auto;
  text-align: left;
}
h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  margin: 0 0 12px 0;
}
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
p { line-height: 1; margin: 0 0 10px 0; }

.btn {
  background-color: var(--Cream);
  color: var(--Cream);
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 12px;
  cursor: pointer;
}

.iconos img {
  width: 56px;
  margin: 6px 10px 0 0;
}
.qr {
  width: 150px;
  margin-top: 16px;
}

#contador {
  background-color: var(--Cream);
  display: grid;
  grid-template-columns: repeat(4, minmax(60px, 1fr));
  gap: 0.25rem;
  margin-top: 14px;
}

/* Bloques flexibles y cuadrados */
.contador-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--Cream);
  border-radius: 1rem;
  padding: 10px 8px;
  text-align: center;
  border: 0.5px solid var(--Oliva);
  color: var(--accent);

  aspect-ratio: 1 / 1; /* 👈 cuadrado automático */
  height: auto;        /* 👈 elimina el alto fijo */
}

.contador-numero {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;

  /* 👇 asegura ancho fijo para 2 dígitos */
  display: inline-block;
  width: 2ch;
  text-align: center;
}

.contador-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-top: 6px;
  color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
  #contador {
    grid-template-columns: repeat(4, 1fr); /* sigue en una fila */
  }
  .contador-item {
    max-width: 90px;   /* 👈 aumenta el ancho de cada bloque */
    aspect-ratio: 1/1; /* mantiene cuadrado */
  }
  .contador-numero {
    font-size: 2.8rem; /* 👈 sube el tamaño del número */
  }
  .contador-label {
    font-size: 0.9rem; /* 👈 ajusta la etiqueta */
  }
}

/* Calendario */
.calendario-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 280px;
  margin: 16px 0 0 0; /* elimina auto, queda alineado al texto */
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
.calendario-grid div {
  padding: 6px;
  border-radius: 6px;
  position: relative;
}
.calendario-grid .encabezado {
  font-weight: 600;
  color: var(--accent);
}
.calendario-grid .tachado {
  color: #8a8a8a;
  text-decoration: line-through;
}

/* Día especial con corazón verde oliva (del tamaño de la celda) */
.calendario-grid .especial {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.calendario-grid .especial .heart-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.calendario-grid .especial .numero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; /* o negro si el corazón es claro */
  font-weight: bold;
  font-size: 0.9rem;
}

/* Fotos preview */
.preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Parallax */
.parallax {
  position: relative;
  height: 320px;
  overflow: hidden;
  margin: 40px 0;
}
.parallax-bg {
  position: absolute;
  inset: 0;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.parallax-content {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Responsive */
@media (max-width: 768px) {
  .overlay { bottom: 20%; }
  .overlay h1 { font-size: 2rem; }
  .overlay p { font-size: 0.95rem; }
  section { padding: 36px 16px; }
}
@media (max-width: 480px) {
  .overlay h1 { font-size: 1.6rem; }
  .overlay p { font-size: 0.9rem; }
  h2 { font-size: 1.4rem; }
  p { font-size: 0.9rem; }
  .btn { padding: 8px 14px; font-size: 0.9rem; }
}

/* ---------------------------------------------Aquí comienzan algunos estilos que yo añadí----------------------------------------------------*/

.greenBG{
  padding-top: 96px;
  padding-right: 64px;
  padding-bottom: 96px;
  padding-left: 64px;
  angle: 0 deg;
  opacity: 1;
  background-color: var(--Oliva);
}

.creamBG{
  padding-top: 96px;
  padding-right: 64px;
  padding-bottom: 96px;
  padding-left: 64px;
  angle: 0 deg;
  opacity: 1;
  background-color: var(--Cream);
}

.input{
  padding-bottom: ;
}

/* Codigo antiguo de fecha con fotos

.col-3-image{
  display: flex;
  justify-content: center;
  align-items: end;
  align-content: center;
  border-radius: 16px;
  max-width: 1;
  aspect-ratio: 3/4;
}
*/

.collage-fecha {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.col-3-image {
  flex: 1;
  position: relative;

  /* 👇 mantiene proporción fija */
  aspect-ratio: 3 / 4; /* vertical elegante */
  overflow: hidden;
  border-radius: 0.5rem;
}

.col-3-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* llena el espacio sin deformar */
  object-position: center; /* centra la parte importante */
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 600px) {
  .collage-fecha {
    flex-direction: row; /* sigue en fila */
  }
  .col-3-image {
    aspect-ratio: 1 / 2; /* 👈 cuadrado en móvil */
    max-width: 120px;    /* 👈 se reduce el tamaño */
  }
}

.numero-fecha {
  position: absolute;
  bottom: 1%;              /* siempre al borde inferior */
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 12vw, 12rem);
  color: var(--Cream);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin: 0;               /* elimina márgenes que desplazan */
  line-height: 1;          /* evita que el texto “salte” */
  text-align: center;
}

.vertical-padding-32{
  padding: 0,32,0,32;
}

section{
  padding-top: 13vh;
}

.img-recortada {
  width: 100%;
  max-width: 2000px;   /* opcional: limita el ancho en desktop */
  margin: px auto;   /* margen superior e inferior */
  overflow: hidden;
  position: relative;
  border-radius: 0.5rem;
}

.img-recortada img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Mobile: forzar proporción 3/4 */
@media (max-width: 768px) {
  .img-recortada {
    aspect-ratio: 3 / 4;  /* mantiene proporción vertical */
  }

  .img-recortada img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* recorta de los lados */
    object-position: center;
  }
}
}

.fecha-vestimenta h2{
  line-height: 70%;
  font-weight: 200;
}

.fecha-vestimenta h3{
  font-size: 3rem;
  line-height: 70%;
  font-weight: 200;
  margin-top: 0;
}

.fecha-vestimenta p{
  font-size: 1.3rem; 
  text-align: center;"
  line-height: 100px;
  margin-top: 16px;
}

.no-lateral-padding{
  padding-left: 0px !important; 
  padding-right: 0px !important;
}

.no-vertical-margin{
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

/* Estilo del botón */
.custom-map-btn {
  border: 1px solid var(--Cream) !important;
  border-radius: calc(1.5em) !important;
  color: var(--Cream) !important;
  background-color: transparent !important;
  transition: all 0.15s ease;
  line-height: 0;
  height: 40px;
}

.custom-map-btn:hover{
  background-color: var(--Cream) !important;
  color: var(--Oliva) !important;
  border-color: var(--Cream) !important;
}

.custom-btn{
  background-color: var(--Oliva) !important;
  color: var(--Cream)!important;
  border-radius: calc(1.5em) !important;
  transition: all 0.15s ease;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.custom-btn:hover{
  background-color: var(--White) !important;
  color: var(--Oliva) !important;
  border: 1px solid var(--Oliva) !important;
}

.sm-btn{
  background-color: var(--Oliva) !important;
  color: var(--Cream)!important;
  border-radius: calc(1.5em) !important;
  border: none !important;
  transition: all 0.15s ease;
}

.sm-btn:hover{
  background-color: var(--White) !important;
  color: var(--Oliva) !important;
  border: none !important;
}

.input-text{
  border: 1px solid var(--Oliva) !important;
  border-radius: calc(1.5em) !important;
  background-color: transparent !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.slider-container {
  width: 100%;
  height: 80vh;              /* altura base en desktop */
  aspect-ratio: 3 / 4;       /* ancho se calcula automáticamente */
  overflow: hidden;
  margin-bottom: 2rem; /* agrega espacio debajo del slider */
  position: relative;

}

.slider-track {
  display: flex;
  justify-content: space-between; /* reparte de extremo a extremo */
  height: 100%;
  animation: scrollSlider 30s linear infinite;

  width: max-content;
}

.slider-track img {
  height: 100%;              /* llena la altura */
  aspect-ratio: 3/4;         /* fixea la relación de aspecto de las imágenes a 3:4*/
  object-fit: cover;         /* recorta solo a los lados */
  flex-shrink: 0;
  border-radius: 1rem;
  transition: transform 0.5s ease;
  margin-right: 0.5rem;

}

/* Animación */
@keyframes scrollSlider {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .slider-container {
    height: 70vh;            /* un poco más bajo en tablets */
  }
}

@media (max-width: 768px) {
  .slider-container {
    height: 60vh;            /* más compacto en móviles */
  }
}

@media (max-width: 480px) {
  .slider-container {
    height: 50vh;            /* aún más ligero en pantallas pequeñas */
  }
}



.max-height-asistencia{
  max-height: 80vh;
}

.mesa-info{
  margin-top: 4rem;
}

.mesa-info h2{
  line-height: 70%;
  font-weight: 200;
}

.mesa-info h3{
  font-size: 6rem;
  line-height: 70%;
  font-weight: 200;
  margin-top: 0;
}

.mesa-info p{
  font-size: 1.3rem; 
  text-align: center;"
  line-height: 100px;
  margin-top: 16px;
}

.footer{
  padding-top: 10vh;

}

.footer-container{
  position: relative;
  height: 100vh; /* o el alto que necesites */
  width: auto;
  overflow: hidden;
  background-image: url(images/footer-image.jpeg);
  background-position: left;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.footer-row{
  justify-content: end;
  
}

@media (max-width: 768px) {
  .footer-row{
    justify-content: center;
  }
}

.footer-overlay{
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 2rem;
  /* background-color: rgba(0, 0, 0, 0.4); /* Fondo semitransparente para legibilidad */
  border-radius: 8px;
}

.footer-gradient-container{
  height: 10rem;
}

.footer-gradient{
   background: linear-gradient(to bottom, var(--Cream), rgba(255, 0, 0, 0));
    width: 100%; 
    height: 30vh; 
}

@media (max-width: 768px) {
  .footer-gradient-container{
    height: 2rem;
  }
}



.responsive-h1{
  font-size: 10rem;
}

.responsive-footer-font{
  font-size: 3rem;
}

@media (max-width: 768px) {
  .responsive-h1{
    font-size: 7rem;
  }

  .responsive-footer-font{
  font-size: 2rem;
  }
}

/*Estilos del botoncito para volver al form*/
.link-btn{
  background-color: transparent !important;
  border: none !important;
}

.link-btn:hover{
  text-decoration: underline !important;
}

/*Estilos para darle más altura a la card de la invitación en mobile*/
.invitation-responsive{
  padding-left: 8rem; 
  padding-right: 4rem;
  display: flex;
}

@media (max-width: 768px) {
  .invitation-responsive{
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
  }
}

.img-container {
  width: 300px;       /* tamaño fijo del contenedor */
  height: 300px;      /* mismo alto para todas las imágenes */
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* mantiene proporción sin deformar */
}




