body {
    font-family: "Montserrat", serif;
    background-color: #f9f9f9;
    text-align: center;
    padding: 0;
    margin: 0;
}

.montserrat {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
  }

.hero {
    height: 100vh;
    background-image: url('images/mosaico.png');
    background-repeat: repeat;
    background-size: 300px 300px;
    background-position: top left;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.comunion-image {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .comunion-image {
        max-width: 90%;
        margin: 20px auto;
    }
    .hero {
        background-size: 150px 150px;
    }
}

.countdown-section {
    background-color: #226273ff;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.countdown-section h2 {
    font-size: 1.5rem;
    font-weight: normal;
}

#countdown {
    font-family: monospace;
    display: flex;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    gap: 10px;
}

@media (max-width: 600px) {
    #countdown {
        display: block;
        text-align: center;
        font-size: 1.5em;
    }
}

#countdown span {
    width: 2ch; /* Hace que cada número ocupe el mismo espacio */
    text-align: center;
    display: block;
}


.event-details {
    display: flex;
    justify-content: space-around;
    background-color: #f0f0d8;
    padding: 80px 20px;
}

.column {
    width: 45%;
    text-align: center;
}

@media (max-width: 600px) {
    .event-details {
        flex-direction: column;
        align-items: center;
    }

    .column {
        width: 100%;
        margin-bottom: 20px;
    }
}

.button, button {
    display: inline-block;
    background-color: #226273ff;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 10px;
    border: 2px solid #226273ff;
    transition: background-color 0.3s, color 0.3s;
    font-family: "Montserrat", serif; /* Asegurar misma fuente */
    font-size: 16px; /* Ajustar tamaño */
    cursor: pointer; /* Hace que el cursor sea una mano */
}

/* Efecto hover */
.button:hover, button:hover {
    background-color: white;
    color: #226273ff;
    border-color: #226273ff;
}

.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.photo-gallery-section {
    background-image: url('images/mosaico.png');
    background-repeat: repeat;
    background-size: 300px 300px;
    background-position: top left;
    color: black;
    padding: 80px 20px;
    text-align: center;
}

.photo {
    width: 400px;
    height: 400px;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .photo-gallery {
        flex-direction: column;
        align-items: center;
    }

    .photo {
        width: 80%;
        height: auto; /* Mantener la proporción de la imagen */
        margin-bottom: 20px; /* Espacio entre las fotos */
    }
}

.gift-section {
    background-color: #123450ff;
    color: white;
    padding: 20px;
    padding: 80px 20px;
}

.photo-section {
    background-color: #f0f0d8;
    padding: 20px;
    padding: 80px 20px;
}

.final-section {
    display: flex;
    color: #123450ff;
    justify-content: space-around;
    background-image: url('images/mosaico.png');
    background-repeat: repeat;
    background-size: 300px 300px;
    background-position: top left;
    padding: 80px 20px;
}

@media (max-width: 600px) {
    .final-section {
        flex-direction: column;
        align-items: center;
    }

    .column {
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 40px;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

footer {
    background-color: black;
    color: #333;
    font-weight: bold;
    padding: 20px 10px;
    
}

.footer-text {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease-in-out;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap; /* Permite que los enlaces pasen a otra línea si no caben */
    justify-content: center; /* Centra los enlaces */
    gap: 15px; /* Espaciado entre enlaces */
}

.footer-nav a {
    text-decoration: none;
    color: #333; /* Color del texto */
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease-in-out;
}

.footer-nav a:hover, .footer-text:hover {
    color: #226273ff; /* Cambia el color al pasar el ratón */
}

/* Ajustes para móviles */
@media (max-width: 600px) {
    .footer-nav {
        flex-direction: column; /* En móviles, los enlaces se apilan verticalmente */
        gap: 10px;
    }
}

.logo {
    width: 20px;
    height: 20px;
}

/* Estilos para el fondo del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    justify-content: center;
    align-items: center;
}

/* Contenido del modal */
.modal-content {
    background-color: white;
    width: 300px;
    height: 150px;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

/* Botón de cierre */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Ocultar el input file real */
input[type="file"] {
    display: none;
}