:root {
    --turquesa: #0077b6;
    --arena: #fdfcf9;
    --texto: #1d3557;
    --acento: #e67e22;
    --blanco: #ffffff;
    --gris-claro: #f0f4f8;
}

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--arena);
    color: var(--texto);
    line-height: 1.6;
    overflow-x: hidden;
}

#main-content { 
    transition: opacity 0.4s ease; 
}

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: var(--blanco);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: 1px; }
.logo span { color: var(--turquesa); }
.nav-links { display: flex; list-style: none; gap: 15px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--texto); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.btn-nav { background: var(--turquesa); color: white !important; padding: 7px 15px; border-radius: 5px; }

/* HERO */
.hero {
    height: 75vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagenes/fondo.jpg') center/cover;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); margin-bottom: 10px; }
.btn-main { background: var(--acento); color: white; border: none; padding: 15px 35px; border-radius: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; }

/* LUNA */
.lunar-status { display: flex; justify-content: center; margin-top: -40px; padding: 0 5%; position: relative; z-index: 10; }
.lunar-card { 
    background: var(--texto); 
    color: white; 
    padding: 20px 35px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}
.moon-icon { font-size: 2.2rem; }

/* VIDEOS CARRUSEL */
.video-carousel-section { padding: 60px 0; background: var(--gris-claro); overflow: hidden; }
.video-container {
    overflow-x: auto;
    display: flex;
    padding: 20px 5%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.video-container::-webkit-scrollbar { display: none; }
.video-track { display: flex; gap: 20px; }
.video-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.video-card video { width: 100%; height: 200px; object-fit: cover; display: block; background: #000; }
.video-card h4 { padding: 15px; text-align: center; font-size: 0.9rem; }

/* GALERÍA DE CAPTURAS */
.capturas-section { background: var(--blanco); padding: 60px 5%; }
.capturas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.captura-item { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; }
.captura-item img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s ease; cursor: pointer;
}
.captura-item:hover img { transform: scale(1.1); }

/* GUÍAS */
.guias-section { padding: 60px 5%; }
.guias-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.guia-card { position: relative; height: 400px; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.guia-card img { width: 100%; height: 100%; object-fit: cover; }
.guia-info { 
    position: absolute; bottom: 0; width: 100%; padding: 25px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; 
}

/* SERVICIOS */
.servicios-section { padding: 60px 5%; }
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.servicio-item { 
    background: var(--blanco); padding: 25px; border-radius: 12px; 
    text-align: center; transition: 0.3s; border: 1px solid #eee; 
}
.servicio-item.clickable { cursor: pointer; }
.servicio-item.clickable:hover { 
    border-color: var(--acento); transform: translateY(-5px); background: #fffcf9;
}
.servicio-item .icon { font-size: 2.5rem; margin-bottom: 10px; display: block; }

/* GALERÍAS INTERNAS (Templates) */
.galeria-section { position: relative; animation: fadeIn 0.5s ease; padding: 60px 5%; }
.btn-back-arrow { 
    position: fixed; top: 80px; left: 20px; width: 45px; height: 45px; 
    border-radius: 50%; border: none; background: var(--turquesa); 
    color: white; font-size: 20px; cursor: pointer; z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
}
.grid-imagenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.foto-pez { 
    height: 350px; border-radius: 15px; overflow: hidden; position: relative; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.foto-pez img { width: 100%; height: 100%; object-fit: cover; }
.foto-pez h3 { 
    position: absolute; bottom: 20px; left: 20px; color: white; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.7); font-size: 1.5rem;
}

/* TÍTULOS */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.2rem; color: var(--turquesa); margin-bottom: 5px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* RESPONSIVE */
@media (max-width: 600px) {
    .video-card { flex: 0 0 85vw; }
    .capturas-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* FOOTER */
.footer-section {
    background-color: var(--texto);
    color: var(--blanco);
    padding: 60px 5% 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    color: var(--acento);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Formulario de Suscripción */
.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    flex: 1;
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 12px 20px;
    border: none;
    background-color: var(--acento);
    color: white;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background-color: #d35400;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--turquesa);
    transform: translateY(-3px);
}

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