/* ESTILOS DEL DARK MODE SE ENCUENTRAN AL FINAL, DESPUÉS DEL FOOTER */

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    min-height: 100vh;
}

label{
    user-select: none;
}

/* ESTILOS DEL HEADER */

a{
    text-decoration: none;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    color: #333; 
    margin: 0;
}

.header-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 120px;
    margin: 0;
    padding: 20px 40px 20px 20px;
}

.nav-menu li {
    border-bottom: 2px solid #ddd;
    padding: 10px 10px;
}

.nav-menu li a {
    text-decoration: none;
    font-size: 18px;
    font-weight:100;
    color: #555;
    transition: color 0.3s ease;
    display: block;
}

.nav-menu li a:hover {
    color: #7fc7f7;
    padding-bottom: 2px;
}

/* Estilo del menú hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s ease;
    margin-right: 10px;
}

/* Líneas del menú hamburguesa */
.hamburger .line {
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Animación cuando el menú hamburguesa está activo */
.hamburger.active .line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Estilos del menú hamburguesa cuando está visible */
.nav-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 300px;
}

/* Estilos específicos solo para el menú hamburguesa */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 50px 0;
        border-radius: 8px;
        opacity: 0;
        transform: translateY(-20px);
        text-align: center;
    }

    .nav-menu li {
        border-bottom: 2px solid #ddd;
        padding: 10px 0;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .logo{
        height: 80px;
        width: 80px;
    }
}

#negrop {
    color: #3f77f1;
    font-weight: 600;
}

/* ---- ESTILOS DEL MAIN ----- */

main{
    display: flex;
    margin: 0;
    padding: 0;
}

/* ESTILOS DE PRESENTACION DE CADA CONTENIDO */

.opciones {
    margin: 10px 0;
}

.contenido {
    display: none;
    padding: 0 0 50px 0;
}

.contenido h2{
    text-align: center;
    margin: 25px 0 10px 0;
}

.contenido h3{
    text-align: center;
    margin: 20px 0 5px 0;
}

.contenido p{
    text-align: justify;
    margin: 15px 0 15px 0;
    line-height: 20px
}

.contenido li{
    text-align: justify;
    margin: 5px 0 10px 0;
    line-height: 20px
}

.contenido.activo {
    display: block;
}

.content{
    margin: 0 5% 0 0;
}

/* ESTILOS DE LATERAL SPACE */

.lateral-space {
    position: fixed;
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 73%;
    width: 23%;
    margin-bottom: 5%;
}

.contenedor {
    margin: 20px auto;
    padding: 10px 0 10px 5px;
    border: 1px solid #333;
    border-radius: 10px;
    background-color: #f8f8f8;
}

.contenedor h3{
    padding: 0 0 0 5px;
}

.contenedor-opciones {
    margin-bottom: 15px;
}

.contenedor-opciones input {
    margin-right: 10px;
}

.contenedor-opciones label {
    font-size: 16px;
}

.size,
.theme,
.reed {
    margin-top: 20px;
}

.size label {
    font-size: 16px;
}

#fontSizeSlider {
    width: 100%;
    margin-top: 10px;
}

#fontSizeValue {
    font-size: 18px;
    margin-top: 10px;
}

.lateral-space button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.lateral-space button:hover {
    background-color: #0056b3;
}

.bord{
    height: 75%;
}

.lateral-space a{
    padding: 6px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 40px 0 5px 20px;
    z-index: 99;
}

/* ESTILOS DEL CONTENEDOR ÍNDICE Y TÍTULO DE CADA CONTENIDO*/

.video-container{
    display: flex;
    justify-content: center;
}

.video-container iframe{
    margin: 1rem 2rem 0 0;
}

.contenido{
    width: 75%;
    margin: 0 0 0 25%;
}

.indice{
    height: 80px;
    background-color: #5555550d;
}

.indice h3{
    text-align: left;
    font-size: 16px;
    margin-left: 10px;
}

.indice ul{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    margin:0 2% 0 20px;
}

.indice li{
    margin: 0;
    font-size: 12px;
    margin-right: 10px;
}

.indice a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
}
  
.indice a::before {
    content: "■";
    margin: 0 3px 2px 0;
}

.indice a:hover{
    text-decoration: underline;
}
  /*  ESTILOS DEL VIDEO CONTAINER/ CONTENIDO VISUAL */

.contenedor-opciones{
    display: flex;
    gap: 10px;
    margin: 0 0 0 10px;
    align-items: center;
}


  /* ESTILOS DEL FOOTER DE LA PÁGINA */

footer{
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    padding-bottom: 10px;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.4);
    z-index: 999999;
}


.firspar{
    margin: 5px 0;
}

.firspa{
    margin: 20px 0;
}


.seco p{
    margin: 5px 0;
}

.contact-grid-footer {
    display: grid;
    grid-template-columns: auto;
    gap: 10px;
    align-items: center;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item-footer a{
    color: #000;
}

.contact-item svg {
    width: 20px;
    height: 20px;
}


@media (max-width: 800px){
    .seco{
        margin-left: 0;
    }

    .firs{
        margin-left: 0;
    }

    footer{
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .contact-grid-footer{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .contact-item-footer span{
        display: none;
    }
}

/* ESTILOS DE PANTALLA OSCURA */

.dark-mode{
    background-color: #252525;
    color: #f0f0f0;
    a{
        color: #f0f0f0;
    }
}

.lateral-space .dark-mode{
    z-index: 9;
}

footer .dark-mode{
    z-index: 9999;
}

/* ESTILOS CON MEDIA QUERY PARA PANTALLAS PEQUEÑAS */

@media (max-width: 800px){
    /* ESTILOS DE INDICE Y CONTENIDOS */
    .indice{
        display: none;
    }

    .contenido{
        width: 100%;
        margin: 0;
        margin: 380px 0 0 0;
    }

    .content{
        margin: 0 5% 0 5%;
    }

    /* ESTILOS LATERAL SPACE */

    .lateral-space{
        position: absolute;
        top: 10%;
        left: 5%;
        width: 90%;
        padding: 0;
        height: 0;
        text-align: center;
    }

    .theme{
        display: flex;
        justify-content: center;
    }

    .video-container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contenedor-opciones{
        margin: 0 20px 0 0;
    }

    .lateral-space button{
        margin: 0 0 20px 0;
    }

    .lateral-space a{
        margin: 0;
    }
}