/* Configuraciones Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    background-color: #f4f7f6; 
    color: #333;
    margin: 0;
    padding: 0;
    width: 100%;

}



[id] {
    scroll-margin-top: 100px; 
}


/* Encabezado con tu Imagen */
.header-principal {
    width: 100%;
    background-color: #f4f4f4;
    overflow: hidden;
    line-height: 0; /* Un gris suave por si la imagen tarda en cargar */
   
}

.header-principal h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}



header, .header-container, .logo-container {
    width: 100% !important;
    display: block;
    overflow: hidden;
}

header img {
   width: 100%;
    height: auto;
    display: block;
    max-height: 500px; 
    object-fit: cover;
}



.header-container img {
    max-width: 100%;
    height: auto;
}

/* Barra de Herramientas */
.navbar {
    background-color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover {
    color: #18bc9c;
}

/* Contenedor de Cabañas (Grid) */
.contenedor {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2c3e50;
}

.grid-cabanas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Se ajusta solo según la pantalla */
    gap: 30px;
}

/* Tarjetas de cada Cabaña */
.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    margin: 15px auto;
    width: 95%;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Evita que la foto se estire */
}

.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.btn-fotos {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Botón de WhatsApp */
.btn-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    
  
    text-decoration: none !important; 
    border: none !important;
}


.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    text-decoration: none !important;
    color: #FFF; /* Asegura que el logo siga blanco */
}

.btn-whatsapp i {
    text-decoration: none !important;
    display: block;
}

/* Contenedor de la imagen dentro de la card */
.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;    
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 100; 
    
    background-color: #2c3e50;
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    pointer-events: none; 
}

.overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;

    /* Asegura que el contenedor use todo el espacio */
    width: 100%;             
    height: 100%;            
    box-sizing: border-box; 

    padding-bottom: 20px;
    padding-right: 10px;      

    text-align: right;       
}

/* Efecto de oscurecer al pasar el mouse */
.overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    text-decoration: none;
    transition: 0.3s;
    font-weight: bold;
}

.image-container:hover .overlay-link {
    opacity: 1;
}

.image-container:hover img {
    transform: scale(1.1); /* Zoom suave al pasar el mouse */
}

.btn-fotos {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: 0.3s;
    gap: 8px;
}

.btn-fotos:hover {
    background-color: #18bc9c;
}

/* El Fondo del Modal */
.modal-galeria {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-desc {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}


.modal-contenido {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    text-align: left;
}

.lista-amenities {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.lista-amenities li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lista-amenities i {
    color: #3498db;
    width: 20px;
}

.cerrar {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 28px;
    cursor: pointer;
}



/* Contenedor de la imagen ampliada */
.modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    max-width: 900px;
}

.slide { display: none; text-align: center; }
.slide img { width: 100%; border-radius: 10px; }

/* Botones de navegación */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    color: white;
    font-weight: bold;
    font-size: 40px;
    padding: 16px;
    margin-top: -50px;
    user-select: none;
    text-decoration: none;
}

.next { right: 0; }
.prev { left: 0; }

.cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.footer-sitio {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0 15px 0; /* Reducido de 60px a 30px */
    margin-top: 40px;       /* Reducido de 80px a 40px */
    text-align: center;
}

.footer-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Reducido el espacio entre bloques de 30px a 15px */
}

.footer-info h3 {
    font-size: 1.6rem; 
    color: #18bc9c;
    margin-bottom: 5px;
}

.footer-info p {
    color: #bdc3c7;
    margin: 2px 0; /* Párrafos más juntos */
    font-size: 0.95rem;
}

.footer-detalles p {
    margin-bottom: 10px;
}

.redes-sociales a {
    text-decoration: none; 
    border: none !important; 
    outline: none !important; 
    background: none !important; 
    display: inline-block;
    margin: 0 15px; 
    color: white; 
    transition: 0.3s;
}

.copyright {
    margin-top: 20px; /* Reducido de 40px a 20px */
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: #7f8c8d;
}


.botones-container {
    display: flex;
    justify-content: center; 
    align-items: center;    
    gap: 10px;              
    width: 100%;           
    margin-top: 15px;
}

/* Usamos el estilo de tu botón "Ver Galería" para AMBOS */
.btn-fotos {
    background-color: #2c3e50; /* El color oscuro que ya tenés */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;             
    min-width: 120px;         
    transition: 0.3s;
}


.btn-celeste {
    background-color: #3498db !important;
}

.btn-fotos:hover {
    opacity: 0.8;
}

img {
  max-width: 100%; /* No permite que la imagen sea más grande que su contenedor */
  height: auto;    /* Mantiene la proporción */
  display: block;
}


/* Para visualizar en celulares */
/* --- ÚNICO BLOQUE PARA CELULARES Y TABLETS --- */
@media (max-width: 768px) {
    .header-principal {
        background-color: #f1916a; /* Color naranja suave del atardecer de tu foto */
        padding: 0;
        overflow: hidden;
    }

    .header-principal img {
        height: 180px;             /* Altura fija controlada */
        width: 100%;
        object-fit: contain;       /* El logo se verá COMPLETITO siempre */
        background-color: #f1916a; /* Asegura que el fondo sea el mismo */
        display: block;
    }

    /* --- NAVBAR GRID --- */
    .navbar ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
        margin: 0;
    }

    .navbar li {
        border: 0.5px solid rgba(255,255,255,0.1);
        list-style: none;
    }

    .navbar li:last-child {
        grid-column: span 2;
    }

    .navbar a {
        display: block;
        padding: 15px 0;
        margin: 0 !important;
        text-align: center;
        font-size: 13px;
        width: 100%;
    }
}
