/* RESET Y ESTRUCTURA BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* PIE DE PÁGINA (FOOTER) MINIMALISTA */
.site-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    margin-top: 60px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
}

.social-link {
    color: #444;
    transition: color 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.social-link:hover {
    color: #000;
    opacity: 0.7;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-credits {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

/* BLOQUEO DE SCROLL EN HOME */
body.home-page {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* TEMAS */
body.theme-dark {
    background-color: #000000;
    color: #e0e0e0;
}

body.theme-light {
    background-color: #ffffff;
    color: #111111;
}

/* --------------------------------------------------
   MENÚ FLOTANTE INFERIOR (SÓLO EN HOME / MODO OSCURO)
-------------------------------------------------- */
body.theme-dark .logo-link {
    position: fixed;
    top: 30px;
    left: 5%;
    z-index: 1001;
    text-decoration: none;
}

body.theme-dark .logo-img {
    height: 96px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

body.theme-dark .logo-img:hover {
    opacity: 0.85;
}

body.theme-dark .nav-bottom {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    align-items: center;
    padding: 12px 28px;
    border-radius: 40px;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.theme-dark .nav-bottom a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

body.theme-dark .nav-bottom a:hover {
    color: #ffffff;
}

/* --------------------------------------------------
   BARRA SUPERIOR DE EXTREMO A EXTREMO (PÁGINAS INTERNAS)
-------------------------------------------------- */
body.theme-light .nav-top-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center; /* Mantiene el menú centrado en la pantalla */
    padding: 0 5%;
    z-index: 1000;
    
    /* Estado inicial invisible (arriba del todo) */
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    box-shadow: none;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    
    transition: all 0.4s ease;
}

/* Estado al hacer scroll (Aparece la caja rectangular de extremo a extremo) */
body.theme-light .nav-top-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Logo fijo a la izquierda dentro de la misma barra superior */
body.theme-light .logo-link-header {
    position: absolute;
    left: 5%;
    text-decoration: none;
    display: flex;
    align-items: center;
}

body.theme-light .logo-img-header {
    height: 72px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

body.theme-light .logo-img-header:hover {
    opacity: 0.85;
}

/* Menú centrado */
body.theme-light .nav-top {
    display: flex;
    gap: 15px;
    align-items: center;
}

body.theme-light .nav-top a {
    color: #555555;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

body.theme-light .nav-top a:hover {
    color: #111111;
    border-color: rgba(0, 0, 0, 0.15);
}

/* PESTAÑA ACTIVA EN CÁPSULA NEGRA */
body.theme-light .nav-top a.active-link {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    font-weight: 500;
}

/* CARRUSEL A PANTALLA COMPLETA (HOME) */
.hero-carousel {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.prev-btn { left: 40px; }
.next-btn { right: 40px; }

/* ESTILOS PARA FOTOGRAFÍAS EN PÁGINAS INTERNAS */
.page-image-container {
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

/* CONTENIDO DE PÁGINAS INTERNAS */
.page-content {
    padding: 160px 10% 120px 10%;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.text-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 300;
    color: #333333;
}

.text-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #666666;
}

.section-desc {
    margin-bottom: 40px;
    font-size: 1.05rem;
    color: #666666;
}

/* GRIDS */
.gear-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.gear-category h3, .service-box h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #111111;
}

.gear-category h3 {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gear-category ul {
    list-style: none;
}

.gear-category li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #666666;
}

.service-box p, .contact-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666666;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 30px;
}

.contact-item span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #999999;
}

.contact-item a, .contact-item p {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    color: #111111;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    body.theme-light .nav-top-wrapper {
        height: 80px;
        padding: 0 4%;
    }
    body.theme-light .logo-img-header {
        height: 48px;
    }
    body.theme-light .nav-top {
        gap: 4px;
    }
    body.theme-light .nav-top a {
        font-size: 0.65rem;
        padding: 5px 8px;
    }
    body.theme-dark .nav-bottom {
        bottom: 30px;
        gap: 10px;
        padding: 10px 16px;
    }
    body.theme-dark .nav-bottom a {
        font-size: 0.75rem;
    }
    .page-content {
        padding: 130px 6% 80px 6%;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .prev-btn { left: 15px; }
    .next-btn { right: 15px; }
}

/* --------------------------------------------------
   BOTÓN FLOTANTE DE WHATSAPP (ESQUINAS INFERIOR DERECHA)
-------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================
   CORRECCIÓN Y OPTIMIZACIÓN MENÚ MÓVIL
   ========================================== */

/* 1. Estilos base para la barra superior */
.nav-top-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid #E63946; /* Contorno rojo sutil */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    box-sizing: border-box;
}

/* Control del tamaño del logo */
.logo-img-header {
    height: 35px;
    width: auto;
    display: block;
}

.nav-top {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-top a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-top a:hover, 
.nav-top a.active-link {
    color: #E63946;
}

/* 2. Ajuste automático para pantallas chicas / Celulares */
@media (max-width: 768px) {
    .nav-top-wrapper {
        flex-direction: column; /* Pone el logo arriba y las letras abajo */
        padding: 10px 12px;
        gap: 8px;
    }

    .logo-img-header {
        height: 26px; /* Hace el logo más compacto */
    }

    .nav-top {
        gap: 8px 12px;
        flex-wrap: wrap; /* Si no caben en una línea, bajan ordenados */
        justify-content: center;
    }

    .nav-top a {
        font-size: 0.78rem; /* Achica la letra para que quepan holgados */
    }
    
    .page-content {
        padding-top: 110px !important; /* Da espacio para que el menú no tape el título */
    }
}

/* ==========================================
   BARRA SUPERIOR AMPLIADA Y ESPACIADA
   ========================================== */

.nav-top-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Aumentamos el padding lateral para que no quede pegado a los bordes de la pantalla */
    padding: 16px 40px; 
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid #E63946; /* Contorno rojo corporativo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    box-sizing: border-box;
}

/* Tamaño equilibrado del logo para dejar espacio al menú */
.logo-img-header {
    height: 38px;
    width: auto;
    display: block;
}

/* Contenedor del menú con mayor separación (gap) entre palabras */
.nav-top {
    display: flex;
    gap: 28px; /* Espacio amplio y cómodo entre cada opción (El Estudio, Equipamiento, etc.) */
    align-items: center;
}

.nav-top a {
    text-decoration: none;
    color: #333;
    font-size: 0.92rem;
    font-weight: 400;
    white-space: nowrap; /* Evita que las palabras de dos partes como "El Estudio" se corten en dos líneas */
    transition: color 0.2s;
}

.nav-top a:hover, 
.nav-top a.active-link {
    color: #E63946;
}

/* Ajustes limpios para celulares */
@media (max-width: 768px) {
    .nav-top-wrapper {
        flex-direction: column;
        padding: 12px 20px;
        gap: 12px;
    }

    .logo-img-header {
        height: 30px;
    }

    .nav-top {
        gap: 12px 18px; /* Espaciado equilibrado en móvil de dos filas */
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-top a {
        font-size: 0.82rem;
    }
    
    .page-content {
        padding-top: 130px !important; 
    }
}