
/* =========================================================
   CT GEOLOGÍA - NAVEGACIÓN PRINCIPAL
   FULL WIDTH DARK LIQUID GLASS
   Archivo: assets/css/navigation.css
========================================================= */

:root {
    --ct-glass-bg: rgba(5, 13, 23, .62);
    --ct-glass-bg-scrolled: rgba(4, 10, 18, .84);
    --ct-glass-border: rgba(170, 205, 238, .16);
    --ct-blue: #83c3ff;
    --ct-text: #d0dceb;
}

/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */

html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

body {
    padding-top: 82px;
}

/* =========================================================
   ENCABEZADO DE ANCHO COMPLETO
========================================================= */

.ct-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    width: 100%;
    margin: 0;
    padding: 0;

    background: var(--ct-glass-bg);

    border: 0;
    border-bottom: 1px solid var(--ct-glass-border);
    border-radius: 0;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);

    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);

    transition:
        background .3s ease,
        box-shadow .3s ease;
}

.ct-header.is-scrolled {
    background: var(--ct-glass-bg-scrolled);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .28);
}

/* =========================================================
   CONTENEDOR ALINEADO CON EL CONTENIDO DE LA PÁGINA
========================================================= */

.ct-header-container {
    width: min(1200px, 90%);
    min-height: 82px;

    margin-left: auto;
    margin-right: auto;
    padding: 10px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    transition: min-height .3s ease;
}

.ct-header.is-scrolled .ct-header-container {
    min-height: 74px;
}

/* =========================================================
   LOGO
========================================================= */

.ct-header .logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ct-header .logo-image {
    display: block;

    width: auto;
    height: 55px;
    max-width: 230px;

    object-fit: contain;
}

/* =========================================================
   NAVEGACIÓN DE ESCRITORIO
========================================================= */

.ct-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
}

.ct-desktop-nav .nav-item {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 14px;

    color: var(--ct-text);

    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 7px;

    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease;
}

/* Efecto hover */

.ct-desktop-nav .nav-item:hover {
    color: #ffffff;
    background: rgba(77, 163, 255, .10);
    border-color: rgba(120, 185, 240, .13);
}

/* Sección activa */

.ct-desktop-nav .nav-item.active {
    color: #a9d5ff;
    background: rgba(77, 163, 255, .13);
    border-color: rgba(120, 185, 240, .16);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* =========================================================
   BOTÓN HAMBURGUESA
========================================================= */

.ct-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 6px;

    background: rgba(90, 155, 210, .12);

    border: 1px solid rgba(160, 205, 245, .22);
    border-radius: 10px;

    cursor: pointer;

    transition: background .25s ease;
}

.ct-menu-toggle:hover {
    background: rgba(90, 155, 210, .22);
}

.ct-menu-toggle span {
    display: block;

    width: 19px;
    height: 2px;

    border-radius: 5px;
    background: #d8ecff;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.ct-menu-toggle.is-open span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.ct-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.ct-menu-toggle.is-open span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   FONDO OSCURO DEL MENÚ MÓVIL
========================================================= */

.ct-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;

    background: rgba(0, 4, 10, .70);

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.ct-menu-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   PANEL LATERAL MÓVIL
========================================================= */

.ct-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    z-index: 1100;

    width: min(370px, 88vw);
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    padding: 25px 24px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 39, 60, .97),
            rgba(5, 13, 24, .99)
        );

    border-left: 1px solid rgba(150, 195, 235, .25);

    box-shadow:
        -20px 0 60px rgba(0, 0, 0, .45),
        inset 1px 0 0 rgba(255, 255, 255, .05);

    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);

    transform: translateX(105%);
    visibility: hidden;

    transition:
        transform .38s cubic-bezier(.22, .75, .25, 1),
        visibility .38s ease;
}

.ct-mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}

body.ct-menu-open {
    overflow: hidden;
}

/* =========================================================
   CABECERA DEL PANEL MÓVIL
========================================================= */

.ct-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom: 1px solid rgba(170, 205, 238, .16);
}

.ct-mobile-brand img {
    display: block;

    width: auto;
    height: 52px;
    max-width: 205px;

    object-fit: contain;
}

.ct-menu-close {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #d6e8f8;

    font-size: 30px;
    line-height: 1;

    background: rgba(255, 255, 255, .06);

    border: 1px solid rgba(180, 210, 240, .16);
    border-radius: 11px;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}

.ct-menu-close:hover {
    background: rgba(90, 155, 210, .20);
    transform: rotate(90deg);
}

/* =========================================================
   TÍTULO DEL PANEL MÓVIL
========================================================= */

.ct-mobile-menu-caption {
    margin-top: 35px;
    margin-bottom: 15px;

    color: #83b9e9;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

/* =========================================================
   ENLACES MÓVILES
========================================================= */

.ct-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ct-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 52px;
    padding: 0 15px;

    color: #c8d8e8;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    background: rgba(255, 255, 255, .025);

    border: 1px solid transparent;
    border-radius: 10px;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.ct-mobile-links a:hover {
    color: #ffffff;
    background: rgba(75, 145, 205, .12);
    border-color: rgba(115, 180, 235, .16);
}

.ct-mobile-links a.active {
    color: #d9edff;
    background: rgba(62, 133, 195, .20);
    border-color: rgba(112, 180, 240, .20);
}

.ct-mobile-arrow {
    color: #82b9e8;
    font-size: 23px;
    line-height: 1;
}

/* =========================================================
   PIE DEL PANEL MÓVIL
========================================================= */

.ct-mobile-menu-footer {
    margin-top: auto;
    padding-top: 25px;

    border-top: 1px solid rgba(170, 205, 238, .14);

    color: #a9c9e8;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ct-mobile-menu-footer span {
    display: block;

    margin-top: 8px;

    color: #748ba2;

    font-size: 9px;
    font-weight: 400;
    letter-spacing: 1.2px;
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1050px) {

    .ct-header-container {
        width: 90%;
        gap: 12px;
    }

    .ct-desktop-nav {
        gap: 3px;
    }

    .ct-desktop-nav .nav-item {
        padding: 0 9px;
        font-size: 11px;
    }

    .ct-header .logo-image {
        height: 48px;
    }
}

/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (max-width: 850px) {

    body {
        padding-top: 68px;
    }

    .ct-header-container {
        width: 90%;
        min-height: 68px;
    }

    .ct-header .logo-image {
        height: 48px;
    }

    .ct-desktop-nav {
        display: none;
    }

    .ct-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {

    .ct-header-container {
        width: 90%;
        min-height: 63px;
    }

    .ct-header .logo-image {
        height: 44px;
        max-width: 190px;
    }

    .ct-mobile-menu {
        padding: 22px 19px;
    }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ct-header *,
    .ct-mobile-menu *,
    .ct-menu-backdrop {
        transition: none !important;
    }
}
