:root {
    --azul-oceano: #005f73;
    --azul-claro: #0a9396;
    --arena: #e9d8a6;
    --blanco-cal: #fcfaf7;
    --terracota: #ae2012;
    --texto: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--texto);
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: var(--blanco-cal);
}

p {
   text-align: justify;
   text-indent: 20px;
}

/* --- NAVEGACIÓN MINIMALISTA --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--azul-oceano);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 15px; /* Menos espacio entre enlaces */
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--texto);
    font-size: 0.8rem; /* Fuente más pequeña */
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--azul-claro);
}

/* --- HERO --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 95, 115, 0.3), rgba(0, 0, 0, 0.4)), 
                url('objetos/portada2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    color: white;
}

.hero-content h3 {
    color: var(--arena);
}

.cta {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: var(--arena);
    color: var(--azul-oceano);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
}

/* --- GRID Y GALERÍA --- */
.features { 
    padding: 60px 5%; 
    text-align: center; 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    margin-top: 40px; 
}

.card { 
    padding: 30px; 
    background: white; 
    border-radius: 15px; 
    border-bottom: 4px solid var(--azul-oceano); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}

.gallery-section { 
    padding: 60px 5%; 
    background: var(--azul-oceano); 
    color: white; 
    text-align: center; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 15px; 
    margin-top: 30px; 
}

.gallery-grid img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    border: 4px solid white; 
    border-radius: 8px; 
    cursor: pointer;
}

/* --- FORMULARIOS --- */
.contact-section { 
    padding: 60px 5%; 
}

.contact-container, .calendario-container, .ubicacion-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.contact-form input, .contact-form textarea { 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
}

.btn-submit { 
    background: var(--terracota); 
    color: white; 
    border: none; 
    padding: 15px; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: 600; 
}

/* --- WHATSAPP FLOTANTE A LA IZQUIERDA --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.3s;
}

.whatsapp-float:hover { 
    transform: scale(1.05); 
}

.whatsapp-icon { 
    width: 25px; 
    height: 25px; 
}

/* --- FOOTER --- */
.main-footer { 
    background: var(--azul-oceano); 
    color: white; 
    padding: 40px 5% 20px; 
}

.footer-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
}

.footer-column p { 
    text-indent: 0; 
    margin-bottom: 10px; 
}

.footer-bottom { 
    text-align: right; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: 20px; 
    font-size: 0.8rem; 
}

.footer-column a, 
.footer-column a:visited, 
.footer-column a:hover, 
.footer-column a:active,
.main-footer a {
    color: white !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-column a:hover,
.main-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* --- RESPONSIVE / MEDIA QUERIES GENERALES --- */
@media (max-width: 768px) {
    .navbar { 
        flex-direction: row; 
        justify-content: space-between; 
    }
    .nav-links { 
        gap: 8px; 
    }
    .nav-links a { 
        font-size: 0.7rem; 
    }
    .whatsapp-float span { 
        display: none; 
    }
    .whatsapp-float { 
        padding: 15px; 
        border-radius: 50%; 
        bottom: 15px; 
        left: 15px; 
    }
}

/* Hacer que el mapa y el calendario sean responsives */
.calendario-container iframe, 
.ubicacion-container iframe {
    width: 100% !important;
    height: auto;
    min-height: 300px;
    border-radius: 10px;
}

/* --- NUEVO ESTILO PARA EL LIGHTBOX (MODAL FLOTANTE) --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10005; /* Por encima de todo, incluido el menú y WhatsApp */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 0 20px;
}

/* Clase activa controlada por JavaScript */
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrapper {
    max-width: 80%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 4px solid white;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Botón de Cerrar (X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    z-index: 10010;
}

.lightbox-close:hover {
    color: var(--arena);
}

/* Botones de Navegación (Flechas) */
.lightbox-prev, .lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    z-index: 10010;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--arena);
}

/* Ajustes específicos del Lightbox para móviles */
@media (max-width: 768px) {
    .lightbox {
        padding: 0 5px;
    }
    .lightbox-content-wrapper {
        max-width: 90%;
    }
    .lightbox-prev, .lightbox-next {
        font-size: 20px;
        padding: 10px 14px;
        background: rgba(0, 0, 0, 0.6); /* Más oscuro para que se vea bien en móviles */
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 38px;
    }
}