@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

:root {
    --acento: #8b3cf7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: black;
    font-family: 'Google Sans Flex';
    font-style: normal;
    font-stretch: 100%;
    overflow-x: hidden;
}

header {
    background-color: violet;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo {
    margin-left: 20px;
}

.boton-menu-movil {
    display: none;
    position: fixed;
    top: 120px;
    left: 20px;
    z-index: 1001;
    background: var(--acento);
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    transition: background 0.3s ease;
}

.boton-menu-movil span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.boton-menu-movil.activo span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.boton-menu-movil.activo span:nth-child(2) {
    opacity: 0;
}

.boton-menu-movil.activo span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.contenedor-docs {
    display: flex;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.barra-lateral {
    width: 280px;
    background-color: #0a0a0a;
    border-right: 1px solid #1a1a1a;
    position: fixed;
    left: 0;
    top: 100px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 24px 0;
    transition: transform 0.3s ease;
}

.barra-lateral::-webkit-scrollbar {
    width: 6px;
}

.barra-lateral::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.barra-lateral::-webkit-scrollbar-thumb {
    background: var(--acento);
    border-radius: 3px;
}

.nav-barra {
    display: flex;
    flex-direction: column;
}

.seccion-nav {
    border-bottom: 1px solid #111;
}

.seccion-nav:last-child {
    border-bottom: none;
}

.elemento-nav {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: #ccc;
    font-family: 'Google Sans Flex';
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease, background 0.2s ease;
}

.elemento-nav:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.elemento-nav.activo {
    color: var(--acento);
}

.texto-nav {
    flex: 1;
}

.flecha-nav {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 4px;
}

.seccion-nav.expandido .elemento-nav .flecha-nav {
    transform: rotate(-135deg);
}

.subseccion-nav {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.seccion-nav.expandido .subseccion-nav {
    max-height: 600px;
}

.subelemento-nav {
    width: 100%;
    padding: 10px 24px 10px 36px;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    color: #666;
    font-family: 'Google Sans Flex';
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.subelemento-nav:hover {
    color: #ddd;
    background: rgba(255, 255, 255, 0.03);
    border-left-color: #444;
}

.subelemento-nav.activo {
    color: var(--acento);
    border-left-color: var(--acento);
    background: rgba(139, 60, 247, 0.05);
}

.contenido {
    flex: 1;
    margin-left: 280px;
    padding: 70px 60px;
    display: flex;
    justify-content: center;
}

.seccion-contenido {
    display: none;
    animation: aparecer 0.3s ease;
    width: 100%;
    max-width: 720px;
}

.seccion-contenido.activo {
    display: block;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.etiqueta-contenido {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acento);
    margin-bottom: 14px;
}

.titulo-contenido {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.15;
}

.divisor-contenido {
    width: 40px;
    height: 3px;
    background: var(--acento);
    border-radius: 2px;
    margin: 20px 0 30px 0;
}

.subtitulo-contenido {
    color: #888;
    font-size: 17px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.texto-contenido {
    color: #ccc;
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 0;
}

.texto-contenido a {
    color: var(--acento);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.texto-contenido a:hover {
    border-bottom-color: var(--acento);
}

.imagenes-contenido {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.envoltura-imagen {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pie-imagen {
    font-size: 12px;
    color: #555;
    letter-spacing: 0.04em;
}

.imagen-contenido {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #1e1e1e;
    display: block;
}

.aviso-contenido {
    margin-top: 28px;
    padding: 16px 20px;
    border-left: 3px solid var(--acento);
    background: rgba(139, 60, 247, 0.05);
    border-radius: 0 8px 8px 0;
    color: #bbb;
    font-size: 15px;
    line-height: 1.7;
}

.aviso-contenido strong {
    color: white;
}

.grid-contacto {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

.tarjeta-contacto {
    padding: 20px 24px;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarjeta-contacto span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
}

.tarjeta-contacto a {
    color: var(--acento);
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.tarjeta-contacto a:hover {
    opacity: 0.75;
}

.lista-opciones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.opcion {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 20px;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    background: #080808;
}

.numero-opcion {
    font-size: 13px;
    font-weight: 700;
    color: var(--acento);
    min-width: 22px;
    padding-top: 2px;
}

.texto-opcion {
    color: #bbb;
    font-size: 15px;
    line-height: 1.7;
}

.texto-opcion strong {
    color: white;
}

.superposicion {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.superposicion.activo {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .contenido {
        margin-left: 250px;
        padding: 50px 40px;
    }

    .barra-lateral {
        width: 250px;
    }

    .titulo-contenido {
        font-size: 36px;
    }

    .texto-contenido {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .boton-menu-movil {
        display: flex;
    }

    .barra-lateral {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
        top: 80px;
        height: calc(100vh - 80px);
    }

    .barra-lateral.activo {
        transform: translateX(0);
    }

    .contenido {
        margin-left: 0;
        padding: 30px 20px;
        justify-content: flex-start;
    }

    .titulo-contenido {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .subtitulo-contenido {
        font-size: 15px;
    }

    .texto-contenido {
        font-size: 15px;
        line-height: 1.7;
    }

    .imagenes-contenido {
        gap: 14px;
        margin-top: 24px;
    }

    header {
        height: 80px;
    }

    .logo {
        height: 50px !important;
    }

    .contenedor-docs {
        margin-top: 80px;
    }

    .boton-menu-movil {
        top: 100px;
    }

    .superposicion {
        display: none;
    }

    .superposicion.activo {
        display: block;
    }
}

@media (min-width: 769px) {
    .superposicion {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .contenido {
        padding: 20px 15px;
    }

    .titulo-contenido {
        font-size: 24px;
    }

    .texto-contenido {
        font-size: 14px;
    }

    .barra-lateral {
        width: 100%;
    }

    .boton-menu-movil {
        width: 45px;
        height: 45px;
        left: 15px;
    }

    .boton-menu-movil span {
        width: 22px;
    }
}
