@font-face {
    font-family: 'tipografia_hp';
    src: url('../contenidos/tipografia_hp.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Fondo sepia con textura de papel */
body {
    background-color: #f4e9d8; /* Color sepia base */
    background-image: url('https://www.transparenttextures.com/patterns/paper.png'); /* Textura de papel */
    background-size: cover; /* Cubre toda la pantalla */
    font-family: "EB Garamond", serif; /* Fuente estilo antiguo */
    color: #3e3e3e; /* Color de texto oscuro para contraste */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header con fondo semitransparente */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(244, 233, 216, 1); /* Fondo sepia con 80% de opacidad */
    position: sticky; /* Header fijo al hacer scroll */
    top: 0;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

h1, h2, h3, h4, h5, nav a {
    /*font-family: 'tipografia_hp', sans-serif;*/
    font-family: "Cinzel Decorative", serif;
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    max-width: 100%; /* Asegura que la imagen no se desborde */
    height: auto; /* Mantiene la proporción de la imagen */
    max-height: 60px; /* Ajusta la altura máxima del logo */
}

.desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

/*.desktop-nav ul li {
    margin-left: 20px;
}*/

.desktop-nav ul li a {
    text-decoration: none;
    color: #3e3e3e; /* Color de texto oscuro */
    transition: color 0.3s ease; /* Transición suave al hacer hover */
    margin-right: 10px;
}

.desktop-nav ul li a:hover {
    color: rgba(62, 62, 62, 0.75); /* Cambia el color al hacer hover */
}

.hamburger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
}

section {
    padding: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

form input, form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px;
    background-color: #333;
    color: #ffcc2c;
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #45a049;
}

.botones-info{
    text-align: center;
}

p{
    font-size: 1.2em;
    text-align: center;
}

li{
    font-size: 1.2em; 
}

/* Estilos para el contador */
#countdown {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo semitransparente */
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

#countdown h1{
    font-family: 'tipografia_hp', sans-serif;
    font-size: 5em;
}

.countdown-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    gap: 10px;
}

.countdown-item {
    flex: 1 1 calc(25% - 10px); /* 4 items por fila, con espacio */
    background-color: #f4e9d8;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    font-family: "Cinzel Decorative", serif;
}

.countdown-item span.countdown-label{
    font-weight: 400;
}

.countdown-label {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #333;
}

/* Responsive para móvil */
@media (max-width: 600px) {
    .countdown-item {
        flex: 1 1 45%; /* 2 por fila en móvil */
    }
}

/* Carrusel estilo Bootstrap */
.carousel-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px; /* Ajusta según necesites */
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(197, 168, 128, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(197, 168, 128, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background-color: rgba(197, 168, 128, 1);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-inner {
        height: 500px;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

.boton {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c5a880;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 5px;
    text-align: center;
    font-size: 1.5em;
}

.info-bloque {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.info-inner {
    justify-content: center;
    flex: 1;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.info-bloque a.boton {
    align-self: center;
}

.footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9rem;
    color: #555;
    background-color: #f7f7f7;
    border-top: 1px solid #ddd;
}

.footer a {
    color: #c5a880;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .info-bloque {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .info-inner:first-child {
        flex: 0 0 30%;
    }

    .info-inner:last-child {
        flex: 0 0 70%;
    }
}

/* Estilos para el contenedor del formulario */
.form-container {
    /*max-width: 800px; /* Ancho máximo del formulario */
    margin: 0 auto; /* Centrar el formulario */
    padding: 20px;
    /*background-color: rgba(255, 255, 255, 0.8); /* Fondo semitransparente */
    /*border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* Estilos para el iframe */
.form-container iframe {
    width: 100%; /* Ocupa el 100% del contenedor */
    height: 1500px; /* Altura fija (ajusta según sea necesario) */
    border: none; /* Elimina el borde */
}

/* Estilos para el contenedor del mapa */
.map-container {
    max-width: 800px; /* Ancho máximo del mapa */
    margin: 0 auto; /* Centrar el mapa */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo semitransparente */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* Estilos para el iframe del mapa */
.map-container iframe {
    width: 100%; /* Ocupa el 100% del contenedor */
    height: 450px; /* Altura fija */
    border: none; /* Elimina el borde */
    border-radius: 10px; /* Bordes redondeados */
}

/* Estilos para movil */
@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* Oculta el menú en móvil */
        position: fixed; /* Menú fijo que cubre toda la pantalla */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Altura completa de la pantalla */
        background-color: rgba(248, 248, 248, 0.95); /* Fondo semitransparente */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000; /* Asegura que esté por encima de otros elementos */
        transition: opacity 0.3s ease, visibility 0.3s ease; /* Transición suave */
        opacity: 0;
        visibility: hidden;
    }

    .desktop-nav.active {
        display: flex; /* Muestra el menú */
        opacity: 1;
        visibility: visible;
    }

    .desktop-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .desktop-nav ul li {
        margin: 15px 0; /* Espaciado entre elementos del menú */
    }

    .desktop-nav ul li a {
        font-size: 2em; /* Tamaño de fuente más grande */
        color: #333; /* Color de texto */
        text-decoration: none;
        transition: color 0.3s ease; /* Transición suave al hacer hover */
    }

    .desktop-nav ul li a:hover {
        color: #ffcc2c; /* Cambia el color al hacer hover */
    }

    .hamburger-menu {
        display: block; /* Muestra el menú hamburguesa en móvil */
        z-index: 1001; /* Asegura que esté por encima del menú desplegable */
    }

    /* Estilo para el ícono de la "X" */
    .hamburger-menu.active #hamburger-icon {
        content: '×';
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}