/* ========================================
    PROPIEDADES GENERALES
======================================== */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
}
.boton{
    margin: auto;
}

/* QUITAR EL SUBRAYADO DE LOS ENLACES */

a {
    text-decoration: none;
}

/* ========================================
    PAGINA PRINCIPAL
======================================== */

/* PROPIEDADES PARA EL BODY */

.Padre {
    width: 100%;
    min-height: 100vh;

    background: #000000;

    --gap: 5em;
    --line: 1px;
    --color: rgba(255, 255, 255, 0.2);

    background-image:
        linear-gradient(
            -90deg,
            transparent calc(var(--gap) - var(--line)),
            var(--color) calc(var(--gap) - var(--line) + 1px),
            var(--color) var(--gap)
        ),
        linear-gradient(
            0deg,
            transparent calc(var(--gap) - var(--line)),
            var(--color) calc(var(--gap) - var(--line) + 1px),
            var(--color) var(--gap)
        );

    background-size: var(--gap) var(--gap);
}

/* ========================================
    MENU PRINCIPAL
======================================== */

.menu_principal {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
    background-color: rgb(10, 17, 17);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

/* CAJA DEL LOGOTIPO Y TITULO */

.logotipo_titulo {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* LOGOTIPO DEL MENU */

.logotipo_codex {
    width: 150px;
    height: 130px;
    transition: transform 0.8s ease;
}

.logotipo_codex:hover {
    transform: scale(0.9);
}

/* TITULO CODEX */

.titulo {
    color: cadetblue;
    font-size: 35px;
}

/* CAJA DE OPCIONES DEL MENU */

.opciones_menu {
    font-size: 20px;
    width: 500px;
    display: flex;
    justify-content: space-around;
}

/* ENLACES DEL MENU */

.opciones_menu a {
    position: relative;
    padding: 8px 0;
    color: cadetblue;
}

/* LINEA DECORATIVA DE LOS ENLACES */

.opciones_menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: cadetblue;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* ANIMACION AL PASAR EL CURSOR */

.opciones_menu a:hover::after {
    transform: scaleX(1);
}

/* ENLACE ACTIVO */

.opciones_menu a.activar::after {
    transform: scaleX(1);
}

/* ========================================
    CABECERA
======================================== */

.cabecera {
    width: min(1000px, 90%);
    min-height: 400px;
    margin: auto;
}

/* TITULO DE INTRODUCCION */

.titulo_introduccion {
    text-align: center;
    position: relative;
    margin-block: 60px 40px;
    width: fit-content;
    min-width: 220px;
    min-height: 50px;
    padding-inline: 12px;
    background-color: cadetblue;
    color: rgb(240, 255, 255);
}

/* LINEA DECORATIVA DEL TITULO */

.titulo_introduccion::after {
    content: "";
    position: absolute;
    width: min(1000px, 90vw);
    left: 0;
    bottom: 0;
    height: 2px;
    background-color: rgb(56, 99, 100);
}

/* ========================================
    IMAGENES DE LA CABECERA
======================================== */

.caja_imagenes {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

/* IMAGENES DE LOS LENGUAJES */

.imagenes_cabecera {
    width: 200px;
    height: 200px;
    object-fit: contain;
    transition: transform 1s ease;
}

.imagenes_cabecera:hover {
    transform: scale(0.9);
}

/* TEXTO DEBAJO DE LAS IMAGENES */

.caja_imagenes figcaption {
    margin-top: 20px;
    color: darkgray;
    text-align: center;
}

/* ========================================
    INTRODUCCION
======================================== */

/* TEXTO DE INTRODUCCION */

.Introduccion {
    color: darkgray;
    font-size: 20px;
    line-height: 1.7;
}

/* ========================================
    CONTENIDO PRINCIPAL
======================================== */

.Contenido_principal {
    width: min(1000px, 90%);
    margin: auto;
}

/* ========================================
    INFORMACION GENERAL
======================================== */

/* TITULO DE INFORMACION */

.titulo_info {
    text-align: center;
    position: relative;
    margin-block: 60px 40px;
    width: 500px;
    max-width: 100%;
    min-height: 40px;
    background-color: cadetblue;
    color: rgb(240, 255, 255);
}

/* LINEA DECORATIVA DEL TITULO */

.titulo_info::after {
    content: "";
    position: absolute;
    width: min(1000px, 90vw);
    left: 0;
    bottom: 0;
    height: 2px;
    background-color: rgb(56, 99, 100);
}

/* CAJAS DE INFORMACION */

.caja_info {
    background: rgba(10, 20, 25, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

/* TITULOS DE LAS CAJAS */

.titulo_cajainfo {
    color: cadetblue;
    font-size: 22px;
    margin-bottom: 12px;
}

/* PREGUNTAS FRECUENTES */

.caja_info h3 {
    color: cadetblue;
    font-size: 18px;
    border-left: 3px solid cadetblue;
    padding-left: 12px;
}

/* PARRAFOS DE LAS CAJAS */

.parrafo_cajainfo {
    color: darkgray;
    font-size: 17px;
}

.caja_info p {
    color: darkgray;
    font-size: 16px;
    line-height: 1.5;
    padding-left: 15px;
    margin-bottom: 15px;
}

/* ========================================
    PIE DE PAGINA
======================================== */

.pie_de_pagina {
    width: min(1000px, 90%);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CAJA DE AUTORES */

.caja_autores {
    width: 500px;
    max-width: 100%;
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
}

/* PARRAFO DE AUTORES */

.caja_autores p {
    font-size: 20px;
    color: darkgray;
}

/* ENLACES DE AUTORES */

.caja_autores a,
.caja_autores span {
    font-size: 20px;
    color: cadetblue;
}

.caja_autores a:hover {
    color: aliceblue;
}

/* LOGOTIPO DEL PIE DE PAGINA */

.logotipo_codex_pie_de_pagina {
    width: 150px;
    height: 130px;
    opacity: 0.9;
    transition: transform 1s ease;
}

.logotipo_codex_pie_de_pagina:hover {
    transform: scale(0.8);
}

/* FIN DE LA PAGINA PRINCIPAL */

/* SUBMENU LATERAL COMPARTIDO */
.submenu_lateral{
    min-width: 300px;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    background-color: rgb(10, 17, 17);
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    padding: 20px 30px;
}

.grupo_submenu{
    margin-bottom: 30px;
}

.submenu_lateral h2{
    color: cadetblue;
    border-left: 1px solid rgb(47, 84, 85);
    padding-left: 5px;
    font-size: 22px;
    margin-bottom: 15px;
}

.submenu_lateral ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu_lateral li{
    margin-block: 10px;
    padding-left: 5px;
}

.submenu_lateral a {
    font-size: 18px;
    color: darkgray;
    transition: color 0.3s;
}

.submenu_lateral a:hover {
    color: aliceblue;
}

.submenu_lateral a.submenu_activo {
    color: cadetblue;
}

/* ESTRUCTURA Y COMPONENTES COMPARTIDOS DE LAS GUÍAS */
.contenedor_lenguaje{
    width: 100%;
    margin: 40px auto 0;
    display: flex;
    gap: 40px;
}

.contenido_lenguaje{
    width: 100%;
    max-width: 1000px;
    min-width: 0;
    margin: 0 auto;
    padding-inline: 40px;
}

.seccion_lenguaje {
    margin-bottom: 60px;
    scroll-margin-top: 120px;
}

.contenido_lenguaje h1 {
    display: inline-block;
    background-color: cadetblue;
    color: aliceblue;
    padding: 6px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contenido_lenguaje h2 {
    color: rgb(77, 129, 131);
    font-size: 32px;
    margin-block: 20px 15px;
}

.contenido_lenguaje h3 {
    color: cadetblue;
    font-size: 24px;
    margin-block: 15px 10px;
}

.contenido_lenguaje ul {
    margin-left: 20px;
}

.contenido_lenguaje p,
.contenido_lenguaje li {
    color: darkgray;
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.contenido_lenguaje figcaption {
    text-align: center;
    color: cadetblue;
}

.intro_lenguaje{
    display: flex;
    align-items: center;
    gap: 36px;
}

.intro_lenguaje_texto{
    flex: 1;
    min-width: 0;
}

.intro_lenguaje_imagen{
    flex: 0 0 190px;
    margin: 0;
    text-align: center;
}

.intro_lenguaje_imagen img{
    display: block;
    width: 100%;
    height: auto;
    transition: transform 1s ease;
}

.intro_lenguaje_imagen img:hover{
    transform: scale(0.9);
}

.historia_lenguaje{
    display: flex;
    align-items: center;
    gap: 28px;
    margin-block: 20px;
    padding: 22px;
    background-color: rgb(10, 17, 17);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
}

.historia_lenguaje_texto{
    flex: 1;
    min-width: 0;
}

.historia_lenguaje_texto p:last-child{
    margin-bottom: 0;
}

.imagen_creador{
    flex: 0 0 220px;
    margin: 0;
}

.imagen_creador img{
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 8px;
}

.imagen_creador figcaption{
    margin-top: 10px;
}

.codigo_lenguaje {
    background-color: #111111;
    border-left: 4px solid cadetblue;
    border-radius: 8px;
    padding: 20px;
    margin-block: 20px;
    overflow-x: auto;
}

.codigo_lenguaje pre {
    margin: 0;
}

.codigo_lenguaje code {
    color: aliceblue;
    font-family: Consolas, monospace;
    font-size: 16px;
}

.multimedia_lenguaje {
    margin: 25px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.imagen_lenguaje,
.video_lenguaje {
    display: block;
    width: 100%;
    max-height: 450px;
    height: auto;
    border-radius: 6px;
}

.video_lenguaje {
    object-fit: contain;
}

.tabla_lenguaje_wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin-block: 25px;
}

.tabla_lenguaje {
    width: 100%;
    border-collapse: collapse;
}

.tabla_lenguaje th,
.tabla_lenguaje td {
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 12px 15px;
    text-align: left;
    color: darkgray;
    font-size: 18px;
}

.tabla_lenguaje th {
    background-color: rgba(95, 158, 160, 0.15);
    color: cadetblue;
    font-size: 20px;
}

/* ========================================
    ESTILOS ESPECÍFICOS DE LA PÁGINA JAVA
======================================== */
.java_wora_diagrama{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-block: 25px;
}
.java_wora_paso{
    display: flex;
    flex: 1;
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    background-color: #111111;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    text-align: center;
}
.java_wora_paso strong{
    color: cadetblue;
    font-size: 18px;
}
.java_wora_paso code,
.java_wora_paso span{
    color: darkgray;
}
.java_wora_flecha{
    color: cadetblue;
    font-size: 28px;
}

/* =========================================================
    FIN DE LA PAGINA JAVA 
   ========================================================= */

/* PYTHON */

/* FIN DE LA PAGINA PYTHON */

/* JAVASCRIPT */

/* FIN DE LA PAGINA JAVASCRIPT */

