html {
    scroll-behavior: smooth;
}


/* Estilos para el texto */
body.custom-body {
    background-color: #c7bfae;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, .05) 2px, rgba(255, 255, 255, .05) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, .05) 2px, rgba(255, 255, 255, .05) 4px);
    font-family: "Parkinsans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    margin-bottom: 50px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 17px;
}



/* PORTADA */

header {
    background-size: contain;
    background-image: url('images/header_2.png');
    background-repeat: no-repeat;
    background-position: center;
    height: 500px;
}

.post-header {
    max-width: 70%;
    margin: 20px auto 0px;
}





/* BIENVENIDOS */

#bienvenidos {
    text-align: center;
    margin-top: 30px;
}


#bienvenidos h1 {
    color: #35281d;
    font-family: 'Quattrocento', serif;
    font-style: normal;
    font-size: 35px;
    letter-spacing: 2px;
}

.bienvenidos-texto p {
    text-align: center;
    padding: 15px;
}



.cuenta-regresiva {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
    margin: 30px auto;
    max-width: 800px;
}

#cuenta-atras {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.tiempo {
    text-align: center;
    min-width: 80px;
}

.tiempo span {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #35281d;
    font-family: 'Quattrocento', serif;
    line-height: 1;
    margin-bottom: 8px;
}

.barra {
    font-size: 1.5em;
    color: #8b7355;
    margin: 0 8px;
    font-weight: 300;
}

@media only screen and (max-width: 768px) {
    .cuenta-regresiva {
        padding: 30px 15px;
    }
    
    #cuenta-atras {
        gap: 20px;
    }
    
    .tiempo span {
        font-size: 36px;
    }
    
    .barra {
        font-size: 1.5em;
        margin: 0 8px;
    }
}

@media only screen and (max-width: 480px) {
    .cuenta-regresiva {
        padding: 25px 10px;
    }
    
    #cuenta-atras {
        gap: 12px;
    }
    
    .tiempo span {
        font-size: 28px;
    }
    
    .tiempo {
        min-width: 60px;
    }
    
    .barra {
        font-size: 1.2em;
        margin: 0 5px;
    }
}


/* LOCATION */

#general-information {
    text-align: center;
    padding: 50px 20px;
}

#general-information h1 {
    color: #35281d;
    font-family: 'Quattrocento', serif;
    font-size: 35px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(53, 40, 29, 0.1);
}

#general-information video {
    object-fit: contain;
    overflow-clip-margin: content-box;
    overflow: clip;
    max-width: -webkit-fill-available;
}

.general-information-texto p {
    text-align: center;
    padding: 15px;
    font-size: 18px;
    line-height: 1.6;
    color: #4a3a2d;
    max-width: 800px;
    margin: 0 auto 30px;
}


/* Google Maps */
#mapDiv {
    height: 400px;
    max-width: 90%;
    margin: 30px auto 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(53, 40, 29, 0.25);
    border: 3px solid #f5f3f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mapDiv:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(53, 40, 29, 0.35);
}




/* ITINERARIO */

.timeline {
    position: relative;
    margin: 50px auto;
    padding-left: 40px;
    border-left: 3px solid #35281d;
    max-width: 600px;
}

@media only screen and (max-width: 768px) {
    .timeline {
        max-width: 100%;
        margin: 50px 20px;
        padding-left: 30px;
    }
}

.event {
    position: relative;
    padding: 20px 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
}

.event:before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 12px;
    height: 12px;
    background-color: #eae5e2;
    border-radius: 50%;
}

.event .time {
    width: 100px;
}

/* .event .icon {
    margin-right: 20px;
} */

.event .icon img {
    /* width: 30px;
    height: 30px; */
    max-width: 25%;
}

@media only screen and (max-width: 768px) {
    .event .icon img {
        max-width: 40%;
    }
}

.event .description {
    font-size: 0.8em;
    color: #35281d;
}

.event .hidden {
    font-size: 0.8em;
    color: #35281d;
}

.event .description:hover {
    color: #35281d;
    transition: color 0.3s ease;
}

/* Animation logic */
.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

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


.itinerario img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

.element-crew {
    max-width: 3%;
}

.element {
    max-width: 4%;
}





/* INFORMACIÓN DE INTERÉS */

#info_interes {
    /* background-image: url('images/flowers.avif'); */
    background-size: contain;
    text-align: center;
    padding: 20px;
}

#info_interes h1 {
    color: #35281d;
    font-family: 'Quattrocento', serif;
    font-size: 35px;
    letter-spacing: 2px;
}

#info_interes h4 {
    color: white;
}

#info_interes p {
    text-align: center;
    padding: 15px;
}

#info_interes img {
    max-width: 20%;
}

.boton {
    display: inline-block;
    padding: 10px 20px;
    background-color: #afa894;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

.slider {
    align-items: center;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: auto;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
}

.nav {
    background-color: #00000000;
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.nav.prev {
    left: 10px;
}

.nav.next {
    right: 10px;
}

.nav:focus {
    outline: none;
}

/* ASISTENCIA */

#asistencia {
    text-align: center;
    padding: 40px 20px;
    background-color: #afa894;
}

#asistencia h1 {
    font-family: 'Quattrocento', serif;
    font-size: 35px;
    color: #35281d;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

#asistencia p {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
}

/* Formulario */
.form-container-asist {
    background: #eae5e2;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    font-size: 16px;
    color: #333333;
    margin-top: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333333;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #0056b3;
    outline: none;
}

input::placeholder {
    color: #888888;
}

/* Radio buttons */
.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

input[type="radio"] {
    margin-right: 8px;
}

label[for="acompanadoNo"],
label[for="acompanadoSi"] {
    font-size: 14px;
    color: #555555;
}

label[for="busSi"],
label[for="busNo"] {
    font-size: 14px;
    color: #555555;
}

label[for="carne"],
label[for="pescado"] {
    font-size: 14px;
    color: #555555;
}

#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: max-content;
    max-height: 80vh;
    overflow-y: auto;
}

#popup h2 {
    color: #35281d;
    font-family: 'Quattrocento', serif;
    font-size: 26px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

@media only screen and (max-width: 600px) {
    #popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 25px;
        background-color: #ffffff;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        width: 90%;
        max-width: 350px;
        max-height: 85vh;
        overflow-y: auto;
    }
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#closeButton {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    font-size: 28px;
    color: #35281d;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
}

#closeButton:hover {
    background-color: #35281d;
    color: white;
    transform: rotate(90deg);
}

.modal {
    display: none;
    /* Inicialmente oculto */
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Fondo oscuro semitransparente */
    z-index: 1;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
}

/* ESTILOS PARA BOTONES DEL POPUP */
#addAcompananteButton,
#guardarButton {
    background-color: #35281d;
    color: white;
    border: none;
    padding: 12px 30px;
    margin: 10px 5px;
    border-radius: 25px;
    cursor: pointer;
    font-family: "Parkinsans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(53, 40, 29, 0.2);
}

#addAcompananteButton:hover,
#guardarButton:hover {
    background-color: #4a3a2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(53, 40, 29, 0.3);
}

#guardarButton {
    background-color: #8b7355;
    font-weight: 500;
}

#guardarButton:hover {
    background-color: #a38968;
}

/* LISTA DE ACOMPAÑANTES */
#accompaniments-list {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f8f6;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
}

#accompaniments-list .accompaniment-item {
    background-color: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#accompaniments-list input {
    margin: 5px 0;
    padding: 8px 12px;
    border: 1px solid #d0cbc5;
    border-radius: 5px;
    font-family: "Parkinsans", sans-serif;
}

.add-button,
.save-button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.add-button:hover,
.save-button:hover {
    background-color: black;
}

*/

/* Botón de enviar: Estilo Business */
button#submit {
    background-color: black;
    /* Azul corporativo */
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    /* Bordes redondeados y modernos */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra sutil */
    cursor: pointer;
    transition: all 0.3s ease;
}

button#submit:hover {
    background-color: black;
    /* Azul más oscuro para hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    /* Intensifica la sombra */
    transform: translateY(-2px);
    /* Ligero levantamiento al hacer hover */
}

button#submit:active {
    background-color: #0e3d80;
    /* Azul aún más oscuro al hacer clic */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    /* Reduce la sombra */
    transform: translateY(0);
    /* Elimina el levantamiento */
}

/* Responsivo */
@media only screen and (max-width: 600px) {
    .form-container-asist {
        padding: 20px;
        max-width: 90%;
    }

    #asistencia p {
        font-size: 16px;
    }
}



/* FOOTER */
.pre-footer {
    max-width: 50%;
    display: block;
    margin: 0 auto;
}

@media only screen and (max-width: 768px) {
    .pre-footer {
        max-width: 80%;
    }
}


footer {
    background-color: #afa894;
    padding: 10px;
    color: white;
}

.footer-content p {
    text-align: center;
    font-weight: 200;
}


/* CONTACTOS */

.contactos-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.contacto-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.contacto-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #35281d 0%, #5a4a3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contacto-icon svg {
    width: 30px;
    height: 30px;
    color: #ffffff;
}

.contacto-card h3 {
    font-family: 'Quattrocento', serif;
    font-size: 24px;
    color: #35281d;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contacto-telefono,
.contacto-whatsapp {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    margin: 8px 0;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

.contacto-telefono {
    background: #35281d;
    color: #ffffff;
}

.contacto-telefono:hover {
    background: #5a4a3a;
    transform: scale(1.05);
}

.contacto-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.contacto-whatsapp:hover {
    background: #20ba57;
    transform: scale(1.05);
}

.contacto-telefono svg,
.contacto-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive para contactos */
@media only screen and (max-width: 768px) {
    .contactos-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .contacto-card {
        max-width: 100%;
        width: 100%;
    }
}
