body {

    font-family: "Montserrat", sans-serif;

    background-color: #333;
    color: white;
    margin: 0;
}

header {
    position: fixed; /* Fija el header */
    top: 0; /* Posición en la parte superior */
    left: 0; /* Asegura que esté alineado al borde izquierdo */
    width: 100%; /* Ocupa todo el ancho de la página */
    background-color: #111; /* Fondo del header */
    padding: 0 1rem 0 1rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    height: 4.5rem;
}

header h1 {
    color: whitesmoke;
    text-shadow: 0 0 10px aqua;
    margin-left: 0.5rem;
}

div {
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 3rem;
}

.menu-btn {
    font-size: 1.7rem;
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.menu.hidden {
    display: none;
}

.menu-btn:hover {
    background-color: rgba(0, 255, 255, 0.5);
    border-radius: 0.5rem;
    color: black;
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 60%;
    margin: 1rem;
    padding: 0;
    border: solid 0.1rem cyan;
    border-radius: 0.7rem;
}

header a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

header input {
    flex-grow: 1;
    padding: 8px;
    box-sizing: border-box;
    width: auto;
    border: none;
    background-color: transparent;
    color: white;
}

header input:focus {
    border: none;
    outline: none;
}

.search-bar button {
    padding: 8px 16px;
    background-color: cyan;
    font-weight: bold;
    border: none;
    border-radius: 0.7rem;
}

.search-bar button:hover {
    cursor: pointer;
    background-color: rgba(0, 255, 255, 0.5);
}

.hidden {
    display: none;
}

.draw {
    display: flex;
    width: 15.5rem;
    height: 100%;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0;
    top: 4.5rem;
    left: 0;
    right: 0;
}

.btndraw, .btnslct {
    text-decoration: none;
    padding: 1rem;
    width: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    color: white;
    text-shadow: 0 0 10px cyan;
}

.btnslct {
    background-color: rgba(0, 255, 255, 0.9);
    color: black;
    font-weight: bold;
}

.btndraw i, .btnslct i {
    margin-right: .07rem;
}

nav a:hover {
    background-color: rgba(0, 255, 255, 0.5);
    color: black;
    text-shadow: 0 0 8px white;
}

.draw a {
    text-decoration: none;
 }

 .draw .icon-app {
    font-size: 2rem;
    color: cyan;
 }

.draw .icon-app:hover {
    background-color: transparent;
    font-size: 2.4rem;
    color: #fff;
 }

.menu {
    z-index: 1000;
    position: fixed;
    top: 20%;
    left: 0;
    right: 0;
    padding: 2rem;
}

main {
    margin-top: 4.5rem;
}

footer {
    background-color: #111;
    color:  #999;
    position: fixed; /* Fija el footer */
    bottom: 0; /* Posición en la parte superior */
    left: 0; /* Asegura que esté alineado al borde izquierdo */
    width: 100%; /* Ocupa todo el ancho de la página */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 3px;
    text-align: center;
    font-size: 12px;
}
 footer a {
    text-decoration: none;
    color: cyan;
 }

 footer .icon-app {
    font-size: 2rem;
 }

 footer .icon-app:hover {
    font-size: 2.4rem;
    color: #fff;
 }

 /* Estilos generales del artículo */
#recurso-programacion {
    max-width: 800px; /* Limitar el ancho del contenido */
    margin: 0 auto; /* Centrar el contenido */
    padding: 20px;
    margin-bottom: 4rem;
    line-height: 1.6; /* Mejorar el espaciado entre líneas */
    font-family: Arial, sans-serif; /* Cambiar el estilo de la fuente */
    background-color: white;
}

/* Estilo para el título del artículo */
#recurso-programacion h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Estilo para los subtítulos */
#recurso-programacion h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ddd; /* Línea debajo de los subtítulos */
    padding-bottom: 5px;
}

/* Estilo para los párrafos */
#recurso-programacion p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    text-align: justify; /* Justificar el texto para que quede más alineado */
}

/* Estilo para las imágenes del artículo */
#recurso-programacion img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}


/* Ajuste para que las imágenes grandes tengan un buen espaciado */
#recurso-programacion img + p {
    margin-top: 0;
}

.autores-seccion {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 16px;
    color: #555;
    text-align: center;
}

.autores-seccion a {
    color: #007BFF;
    text-decoration: none;
}

.autores-seccion a:hover {
    text-decoration: underline;
}

.fecha-articulo {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    text-align: center;
}

.descargas-seccion {
    margin-top: 20px;
    text-align: center;
}

.boton-descarga {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.boton-descarga:hover {
    background-color: #0056b3;
}


/* Responsive */
/* Celular */

@media screen and (max-width: 768px) {
    header {
        padding: 0.5rem;
    }

    header h1 {
        display: none;
    }

    .search-bar {
        max-width: 100%;
        margin: 0;
    }

    .menu-btn {
        margin-left: 0;
    }

    .draw {
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
    }

    #recurso-programacion {
        padding: 15px;
    }

    #recurso-programacion h2 {
        font-size: 2rem;
    }

    #recurso-programacion h3 {
        font-size: 1.5rem;
    }

    #recurso-programacion p {
        font-size: 1rem;
    }
    
}

/* Pantallas Pequeñas */

@media screen and (max-width: 380px) {
    header {
        padding: 0.5rem;
    }

    .search-bar {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Espacio entre el input y el botón */
        flex-direction: row; /* Asegura que los elementos estén en una fila horizontal */
        width: 60%; /* Ajusta el ancho de la barra de búsqueda */
    }
    
    .search-bar input {
        width: 66%;
    }
    
    .search-bar button {
        padding: 8px 4px;
        font-size: 0.5rem;
        width: 30%;
        border-radius: 0.5rem;
    }

    .menu-btn {
        margin-left: 0;
    }

    .draw {
        width: 100%;
        height: 100%;
    }
    
}
