/* ========================= FRANJA DE SECCIONES (STICKY) ========================= */
.franja-secciones {
    position: sticky;
    top: var(--altura-banner, 260px); /* Usa la variable calculada, fallback a 260px */
    z-index: 900;
    width: 100%;
    background-color: #000000;
}

.secciones-container {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 12px 16px;
}

.seccion {
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.3px;
    position: relative;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.seccion:hover {
    opacity: 1;
    color: rgb(255, 86, 255);
}

.seccion.activa {
    opacity: 1;
    color: rgb(255, 86, 255);
}

.seccion::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: rgb(255, 86, 255);
    transition: width 0.25s ease;
}

.seccion:hover::after,
.seccion.activa::after {
    width: 100%;
}

#spider {
    width: 18px;
}

/* ========================= FRANJA DE SUBSECCIONES (STICKY) ========================= */
.franja-subsecciones {
    position: sticky;
    top: calc(var(--altura-banner, 260px) + 39px); /* Banner + altura de secciones */
    z-index: 890;
    width: 100%;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    overflow-x: auto;
    overflow-y: hidden;
    /* Ocultar scrollbar pero mantener funcionalidad */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.franja-subsecciones::-webkit-scrollbar {
    height: 4px;
}

.franja-subsecciones::-webkit-scrollbar-track {
    background: transparent;
}

.franja-subsecciones::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.franja-subsecciones::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.subsecciones-container {
    max-width: none;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    gap: 50px;
    padding: 10px 16px;
    flex-wrap: nowrap;
    min-width: min-content;
    width: fit-content;
}

.subseccion {
    font-size: 13px;
    font-weight: 500;
    color: #cccccc;
    text-decoration: none;
    letter-spacing: 0.2px;
    position: relative;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.subseccion:hover {
    opacity: 1;
    color: #ffffff;
}

.subseccion.activa {
    opacity: 1;
    color: #ffffff;
}

.subseccion::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.2s ease;
}

.subseccion:hover::after,
.subseccion.activa::after {
    width: 100%;
}

/* ========================= TITULO SUBSUBSECCION ========================= */
.subsubseccion-titulo {
    font-size: 24px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin: 30px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    text-transform:capitalize;
}

.subsubseccion-titulo:first-child {
    margin-top: 10px;
}

.subsubseccion-titulo::before {
    content: "•";
    margin-right: 10px;
    font-size: 28px; /* ajusta el tamaño del punto */
    line-height: 1;
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 768px) {
    .seccion {
        font-size: 13px;
    }
    
    .secciones-container {
        gap: 40px;
    }
    
    .subsecciones-container {
        gap: 30px;
    }
    
    .subseccion {
        font-size: 12px;
    }
}