body {
    font-family: 'Titillium Web', sans-serif;
    background-color: #f8f9fa; /* Color de fondo de respaldo */
    line-height: 1.6;
    color: #333;
    /* Fondo de vigas de madera clara */
    background-image: url('assets/img/light-wood-beams.jpg'); /* Asegúrate de tener esta imagen */
    background-attachment: fixed; /* Mantiene el fondo fijo al hacer scroll */
    background-size: cover;
}

/* Clases para el fondo de madera, útil si quieres variar */
.bg-light-wood {
    background-image: url('assets/img/light-wood-beams.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-color: #f8f9fa; /* Fallback */
}

/* Estilos para el navbar */
.navbar {
    background-color: rgba(33, 37, 41, 0.9) !important; /* Un poco transparente */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.7rem;
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffd700 !important; /* Color dorado para el activo/hover */
}

/* Estilos del Header/Carousel */
#home {
    height: 100vh; /* Altura completa de la ventana */
    min-height: 500px;
    background: #555; /* Color de respaldo */
}

#home .carousel-item {
    height: 100vh;
    min-height: 500px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#home .carousel-caption {
    background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para el texto */
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    margin: auto;
    left: 0;
    right: 0;
    bottom: auto; /* Ajusta la posición vertical */
    top: 50%;
    transform: translateY(-50%);
}

#home .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #fff;
}

#home .carousel-caption p {
    font-size: 1.5rem;
    font-weight: 300;
    color: #eee;
}

/* Estilos de secciones generales */
.section-title {
    font-weight: 700;
    color: #4a4a4a;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 3px;
    width: 80px;
    background-color: #ffd700; /* Dorado */
    border-radius: 5px;
}

.description-text {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Estilos de la Galería de la Casa */
#casa .list-group-item {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#casa .list-group-item.active,
#casa .list-group-item:hover {
    background-color: #ffd700;
    color: #333;
    transform: translateX(5px);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 200px; /* Altura fija para miniaturas */
    object-fit: cover; /* Recortar si es necesario */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    font-size: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}

/* Estilos para la sección de Actividades */
#actividades {
    background-color: rgba(33, 37, 41, 0.9);
}

.activity-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(52, 58, 64, 0.8) !important;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.activity-card img {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.activity-card .card-body {
    padding: 20px;
}

.activity-card .card-title {
    font-weight: 600;
    color: #ffd700;
    font-size: 1.5rem;
}

/* Estilos de Contacto */
#contacto form .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 12px 15px;
    border-radius: 5px;
}

#contacto .btn-primary {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

#contacto .btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #333;
    transform: translateY(-2px);
}

#contacto .social-icons a {
    color: #555;
    transition: color 0.3s ease;
}

#contacto .social-icons a:hover {
    color: #ffd700;
}

/* Estilos de Precios y Reservas */
#precios {
    background-color: rgba(33, 37, 41, 0.9);
}

.pricing-card {
    border: none;
    border-radius: 8px;
    background-color: rgba(52, 58, 64, 0.8) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pricing-card .card-title {
    color: #ffd700;
    font-weight: 600;
}

.pricing-card ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #212529 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

footer a:hover {
    color: #ffd700;
}

/* Responsividad general */
@media (max-width: 991.98px) {
    #home .carousel-caption h1 {
        font-size: 2.5rem;
    }
    #home .carousel-caption p {
        font-size: 1.2rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .navbar-nav .nav-link {
        margin-left: 0;
        text-align: center;
    }
    #gallery-filters {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    #home .carousel-caption {
        padding: 1rem;
    }
    #home .carousel-caption h1 {
        font-size: 2rem;
    }
    #home .carousel-caption p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2.5rem !important;
    }
    .activity-card .col-md-4 {
        height: 150px; /* Altura fija para imágenes en móviles */
    }
    .activity-card img {
        border-radius: 8px 8px 0 0 !important; /* Bordes superiores redondeados en móvil */
        width: 100%;
    }
/* Corrección para Lightbox: Ajuste de la imagen al tamaño de la ventana */

/* Aumenta la anchura máxima del contenedor de la imagen */
.lightbox .lb-container {
    max-width: 95vw !important; /* Permite que ocupe casi todo el ancho de la ventana (viewport width) */
    width: auto !important; /* Elimina la restricción de ancho fijo */
}

/* Fuerza que la imagen dentro del lightbox ocupe el espacio disponible
   y que se ajuste al alto sin exceder el 90% del alto de la ventana,
   dejando espacio para los controles. */
.lightbox .lb-container .lb-image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important; 
    max-height: 90vh !important; /* Límite de altura al 90% de la ventana */
}

/* Asegura que la navegación y los botones no se salgan */
.lightbox .lb-nav a {
    top: 50% !important; /* Centra verticalmente los botones de navegación */
    transform: translateY(-50%);
}
}
/* Estilos para la sección de iconos de redes sociales */
.social-icons {
    margin-top: 15px;
}

.social-icon-img {
    /* Define el tamaño de los iconos, ajusta a tu gusto */
    width: 70px; 
    height: 70px;
    /* Asegura que la imagen no se distorsione */
    object-fit: contain; 
    /* Añade un efecto sutil al pasar el ratón */
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon-img {
    /* Hace la imagen ligeramente más grande al pasar el ratón */
    transform: scale(1.1);
}