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;
    font-weight: bold;
    cursor: pointer;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.menu-btn string {
    font-size: 0.8rem;
}

.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: transparent;
    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 */
#articulo-programacion {
    margin: 0 auto; /* Centrar el contenido */
    padding: 20px;
    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 */
#articulo-programacion h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Estilo para los subtítulos */
#articulo-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 */
#articulo-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 */
#articulo-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 */
#articulo-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;
}

/* Estilo del contenedor de comentarios */
#comentarios {
    margin-bottom: 2.8rem;
    padding: 10px;
    background-color: white;
    color: black;
}

#comentarios h2 {
    margin-bottom: 10px;
}

#comentarios-lista div {
    margin-bottom: 10px;
}

/* Estilo del formulario */
#comentario-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

#comentario-form input,
#comentario-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#comentario-form button {
    align-self: flex-end;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#comentario-form button:hover {
    background-color: #45a049;
}

/* Estilo básico para los comentarios */
.comentario {
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

/* Estilo para las respuestas */
.respuesta {
    padding: 10px;
    margin-left: 20px;
    border-left: 3px solid #4CAF50;
    background-color: #e8f5e9;
}

/* Fuente más pequeña para el nombre en las respuestas */
.respuesta-contenido p:first-of-type {
    font-size: 90%; /* Hacer la fuente un poco más pequeña */
}

.respuesta-contenido {
    margin-top: 5px;
}

/* Botón de responder */
.responder-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.responder-btn:hover {
    background-color: #45a049;
}

/* Enlace para mostrar todas las respuestas */
.mostrar-respuestas {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    margin-left: 10px;
}

.mostrar-respuestas:hover {
    color: #0056b3;
}

/* Línea divisoria */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

/* Botón de enviar respuesta */
.enviar-respuesta {
    background-color: #4CAF50; /* Verde */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    margin-top: 10px;
}

.enviar-respuesta:hover {
    background-color: #45a049;
}

/* Nuevos estilos para el nombre y la fecha */

/* Estilo para el nombre y la fecha */
.comentario strong, .respuesta strong {
    display: block; /* Mostrar el nombre en bloque */
    font-size: 1.1em;
    margin-bottom: 5px;
}

/* Estilo para la fecha debajo del nombre */
.comentario .fecha, .respuesta .fecha {
    font-size: 0.85em; /* Tamaño de fuente más pequeño */
    color: #888; /* Color gris */
    margin-top: -5px; /* Ajuste de espacio superior */
}

/* Ocultar el banner de cookies por defecto */
.hidden-banner {
    display: none;
}

/* Estilo para el overlay que bloquea la página */
#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

/* Estilos para el banner de cookies */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 9999;
}

/* 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);
    }

    #articulo-programacion {
        padding: 15px;
    }

    #articulo-programacion h2 {
        font-size: 2rem;
    }

    #articulo-programacion h3 {
        font-size: 1.5rem;
    }

    #articulo-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%;
    }
    
}
