body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

#loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  flex-direction: column;
  transition: opacity 1s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  background-color: #fff;
  pointer-events: none; /* Para que se pueda hacer click debajo */
}

#loading-screen img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 1;
  content: url("inside-out.jpg");
}

@media only screen and (max-width: 768px) {
  #loading-screen img {
    content: url("inside-outmvl.jpg");
  }
  #menu {
    width: 95%;
  }
}

.overlay-text {
  font-size: 8.5em;
  font-family: 'Inside Out', sans-serif;
  color: white;
  text-align: center;
  font-weight: bold;
  z-index: 3;
  position: relative;
  top: -300px;
  margin: 0;
  text-shadow: 
    0 0 5px #d9e6fa,
    0 0 20px #d9e6fa,
    0 0 30px #d9e6fa,
    0 0 40px #d9e6fa;
}

@media only screen and (max-width: 768px) {
  .overlay-text {
    font-size: 6em;
    top: -42%;
  }
}

#main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  transform: translateY(100%);
  animation: slideIn 1s forwards;
}

@keyframes slideIn {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

#main-content.show {
  display: flex;
  animation: none;
}

.invitation-card {
  background-image: url('fondo1.jpg');
  background-size: contain;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.invitation-details {
  /* margin: 20px 0; Eliminado para dar espacio a la fecha */
  color: #000000;
  margin-bottom: 20px;
}

.invitation-details p.main-title {
  font-size: 2em; /* Un poco más pequeño para encajar */
  font-family: 'Inside Out', sans-serif;
  margin: 10px 0 20px 0;
}

#enter-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border: 3px solid #FFD700;
  color: black;
  font-size: 20px;
  padding: 10px 20px;
  margin: 20px auto;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.3s ease;
  font-family: 'Inside Out', sans-serif;
}

#enter-button i {
  font-size: 70px;
  margin-top: 5px;
  transition: transform 0.3s ease;
  animation: blink 1.5s infinite;
}

#enter-button:hover i {
  transform: scale(1.2);
}

.menu-button {
  padding: 10px 20px;
  font-size: 1.2em;
  background-color: #FFFFFF;
  border: 1px solid #cbb26a;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  border-radius: 5px;
  width: 50%;
}

.menu-button:hover { background-color: #cbb26a; }

.section {
  background-color: #fff;
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  width: 90vw;
  max-width: 600px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 14px;
  font-size: 1.1em;
  margin-right: 10px;
}

form input {
  padding: 8px;
  margin-bottom: 15px;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 70%;
  box-sizing: border-box;
}

form button {
  padding: 10px 20px;
  font-size: 1.2em;
  background-color: #FFD700;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 5px;
}

form button:hover { background-color: #FFB700; }

#nombrecancion { margin-right: 16px; }

.song-input {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.song-input input {
  margin-left: 10px;
  flex-grow: 1;
}

.add-song-icon {
  cursor: pointer;
  font-size: 20px;
  color: #FFD700;
  margin-left: 10px;
  border: 2px solid #FFD700;
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 16px;
}

.add-song-icon:hover { color: #FFB700; }

.song-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.song-container label {
  font-size: 1.2em;
  margin-right: 16px;
}

.song-container input {
  width: 60%;
  padding: 8px;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-right: 10px;
  box-sizing: border-box;
}

.nombres {
  font-size: 3.5em;
  font-family: 'Inside Out', sans-serif;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.mapouter {
  position: relative;
  text-align: right;
  height: 100%;
  width: 100%;
}

.gmap_canvas iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.titulosection {
  font-family: 'Inside Out', sans-serif;
  text-align: center;
}

.finca {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.icon {
  width: 20px;
  margin-right: 10px;
  vertical-align: middle;
}

.whatsapp-icon {
  color: green;
  text-decoration: none;
  font-size: 1.2em;
}

.whatsapp-icon:hover { color: darkgreen; }

.call-icon {
  color: #000;
  text-decoration: none;
  font-size: 1.2em;
}

.call-icon:hover { color: #007bff; }

.confirmation-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.confirmation-form .form-group { margin-bottom: 15px; }

.confirmation-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.confirmation-form input[type="text"],
.confirmation-form input[type="radio"],
.confirmation-form select,
.confirmation-form textarea {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.confirmation-form input[type="radio"] {
  width: auto;
  margin-right: 10px;
}

.confirmation-form .additional-fields { margin-top: 20px; }

.confirmation-form .submit-button {
  padding: 12px 20px;
  background-color: #FFD700;
  font-size: 1.2em;
  color: black;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.confirmation-form .submit-button:hover { background-color: #FFB700; }

.confirmation-form input[type="radio"]:checked + label,
.confirmation-form input[type="radio"]:checked + input[type="radio"] + label {
  font-weight: bold;
}

#fotoinvi {
  width: 90%;
}

button[data-section="playlist"] { background-color: #FFFFFF; }
button[data-section="playlist"]:hover { background-color: #cbb26a; }
button[data-section="localizacion"] { background-color: #FFFFFF; }
button[data-section="localizacion"]:hover { background-color: #cbb26a; }
button[data-section="contacto"] { background-color: #FFFFFF; }
button[data-section="contacto"]:hover { background-color: #cbb26a; }
#AdultNames, #ChildNames5, #ChildNames4 { margin-top: 2%; }


/* =========================================
   ESTILOS NUEVOS PARA LA FECHA (ELEGANT DATE)
   Prefijo 'ed-' usado para no romper el resto.
   ========================================= */

.ed-container {
    text-align: center;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    margin: 20px 0; /* Espacio arriba y abajo */
}

.ed-month {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.ed-middle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ed-date-number {
    font-family: 'Oswald', sans-serif;
    font-size: 4.3rem; /* Reducido un poco para móvil */
    line-height: 1;
    font-weight: 400;
    color: #111;
}

.ed-side-text {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 8px 0;
    border-top: 1px solid #cbb26a;    /* Dorado elegante */
    border-bottom: 1px solid #cbb26a;
    width: 90px;
    color: #333;
}

.ed-year {
    margin-top: 5px;
    letter-spacing: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
}

/* Ajuste responsive para la fecha en móviles muy pequeños */
@media only screen and (max-width: 400px) {
    .ed-date-number { font-size: 3.3rem; }
    .ed-side-text { width: 90px; font-size: 0.9rem; }
}
/* =========================================
   ESTILOS CALENDARIO (ESTILO INSTAGRAM)
   ========================================= */

.calendar-container {
    text-align: center;
    margin: 20px auto;
    max-width: 350px; /* Ancho controlado para que no se desparrame */
    font-family: 'Playfair Display', serif;
    color: #333;
}

.cal-top-text {
    font-family: 'Oswald', sans-serif; /* Sans-serif limpia */
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.cal-header {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #cbb26a; /* Tu color dorado */
    margin: 5px 0 20px 0;
    font-weight: 600;
}

/* La Rejilla del Calendario */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas iguales */
    gap: 10px 0; /* Espacio vertical entre filas */
    justify-items: center;
    align-items: center;
    margin-bottom: 20px;
}

.cal-day {
    font-size: 1.2rem;
    color: #444;
}

/* El día especial (26) */
.heart-date {
    position: relative;
    font-weight: bold;
    color: #000;
    z-index: 1; /* Para estar encima del corazón */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-bg {
    position: absolute;
    top: 55%; 
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1; /* Detrás del número */
    font-size: 2rem; /* Tamaño del corazón */
    color: #cbb26a; /* Dorado */
    opacity: 0.6; /* Un poco transparente como si estuviera dibujado */
}

/* El enlace de abajo */
.cal-save-link {
    display: block;
    margin-top: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: white;
    background-color: #000;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.cal-save-link:hover {
    background-color: #333;
}

/* Ajuste móvil */
@media only screen and (max-width: 400px) {
    .cal-grid { gap: 5px 0; }
    .heart-bg { font-size: 1.8rem; }
}
/* =========================================
   ESTILOS CUENTA ATRÁS (ELEGANT BLACK & GOLD)
   ========================================= */

.countdown-wrapper {
    text-align: center;
    margin: 30px auto;
    width: 90%;
    max-width: 600px;
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinea arriba para gestionar alturas */
    gap: 10px;
    color: #1a1a1a;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px; /* Ancho fijo para evitar "saltos" cuando cambia el número */
}

.cd-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 400;
    color: #1a1a1a; /* Número en Negro */
}

.cd-label {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #cbb26a; /* Etiqueta en Dorado */
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #cbb26a; /* Línea dorada sutil */
    width: 100%;
}

.cd-separator {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #cbb26a; /* Dos puntos dorados */
    margin-top: 5px; 
}

/* Ajustes Responsive para móviles */
@media only screen and (max-width: 500px) {
    .cd-number { font-size: 2.2rem; }
    .cd-separator { font-size: 1.5rem; margin-top: 8px; }
    .cd-item { width: 50px; }
    .cd-label { font-size: 0.6rem; letter-spacing: 1px; }
    .countdown-container { gap: 5px; }
}
.iconos {
    width: 3vw;
    min-width: 45px;
    height: auto;
    margin-top: 10px;
}


@media only screen and (max-width: 768px) {
    .iconos {
        width: 15vw;     
        max-width: 80px; 
    }
}
/* =========================================
   AUMENTO DE TAMAÑO FECHA EN MÓVIL
   (Para igualar al ancho del calendario)
   ========================================= */

@media only screen and (max-width: 768px) {
    /* El contenedor crece para ocupar el ancho disponible */
    .ed-container {
        width: 100%;
        max-width: 350px; /* Lo igualamos al ancho máximo del calendario */
        margin: 20px auto;
        transform: scale(1.1); /* Un pequeño zoom extra general del 10% */
    }

    /* Número 5 mucho más grande */
    .ed-date-number {
        font-size: 6.5rem; /* Antes era 4rem */
        margin: 0 10px;    /* Un poco de aire a los lados */
    }

    /* Textos laterales (Sábado / Hora) */
    .ed-side-text {
        font-size: 0.85rem; /* Letra un poco más grande */
        width: 110px;       /* Líneas más largas para llenar espacio */
        border-width: 1px;  /* Mantenemos la línea fina y elegante */
    }

    /* Mes y Año más presentes */
    .ed-month {
        font-size: 1.2rem;
        letter-spacing: 6px;
        margin-bottom: 0;
    }

    .ed-year {
        font-size: 1.2rem;
        letter-spacing: 8px;
    }
}

/* =========================================
   Cabeceras y textos
   ========================================= */
   .cabecera{
        font-size: 2.5rem;
        font-family: 'Playfair Display', serif;
    }
    .texto{
        font-size: 1rem;
        font-family: 'Playfair Display', serif;
    }