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 */
#recurso-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 */
#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;
}

.c-reg {
    display: flex;
    background-color: white;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#iniciarCuenta {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius:50px;
    cursor: pointer;
}

#segundoBoton {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background-color: red;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-radius:50px;
}

#cuentaRegresiva {
    display: none;
    padding: 10px;
    font-size: 1.5rem;
    text-align: center;
    background-color: #4CAF50;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    
}

#pass-file {
    display: none;
    padding: 10px;
    font-size: 1rem;
    text-align: center;
    background-color: transparent;
    color: rgb(0, 0, 0);
    border: none;
}

/* Estilos para la animación de carga */
.loading-icon {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #4CAF50;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos del check verde (que reemplaza a la animación de carga) */
.check-icon {
    font-size: 36px;
    color: green;
    text-align: center;
}

.boton-descarga {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn-links {
    display: none;
    margin: 5px;
    padding: 10px 15px;
    background-color: #0f0;
    color: rgb(0, 0, 0);
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid black;
}

.oldFile {
    background-color: gold;
}

.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: transparent;
    color: dodgerblue;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.responder-btn:hover {
    background-color: transparent;
    color: grey;
}

/* 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;
}

.mensaje-respuesta {
    width: 90%;
}

/* 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 */
}

/* Corazón gris (sin like) */
.grey-heart {
    font-size: 2rem;
    color: grey;
    cursor: pointer;
}

/* Corazón rojo (con like) */
.red-heart {
    font-size: 2rem;
    color: red;
    cursor: pointer;
}

/* 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;
}

/* Estilos para el botón "Dar Like al Video" */
.btn-like {
    display: block;               /* Ocupa toda la línea */
    margin-top: 10px;             /* Separación con el párrafo superior */
    background-color: red;        /* Fondo rojo */
    border-radius: 10px;          /* Bordes redondeados */
    padding: 10px;                /* Espaciado interno */
    color: white;                 /* Texto blanco */
    border: none;                 /* Sin borde */
    cursor: pointer;              /* Cambia el cursor al pasar sobre el botón */
    text-align: center;           /* Texto centrado */
    font-size: 16px;              /* Tamaño de letra */
    transition: background-color 0.3s ease; /* Efecto de transición para el color de fondo */
}

.btn-like:hover {
    background-color: darkred;    /* Cambia el color al pasar el mouse por encima */
}

/* Estilos para el párrafo con las contraseñas */
.password-text {
    font-size: 18px;             /* Tamaño de letra */
    color: green;                /* Color del texto */
    font-weight: bold;           /* Texto en negrita */
    margin-top: 15px;            /* Margen superior */
    line-height: 1.5;            /* Espaciado entre líneas */
    text-align: center;          /* Texto centrado */
}

.btnLikesGoal {
    background-color: dodgerblue;
    color: white;
    font-weight: bold;
    padding: 0.5rem;
    border: solid 0.2rem black;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* Estilo de la sección del video */
#video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #181818;
    padding: 20px;
    border-radius: 8px;
    width: fit-content;
    margin: auto;
    color: #fff;
}

/* Estilo del video */
#tutorialVideo {
    width: 600px;
    border: 2px solid #333;
    border-radius: 4px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
}

/* Barra de progreso del video */
#progressBar {
    width: 100%;
    margin-top: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #444;
    height: 5px;
    cursor: pointer;
    border-radius: 5px;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    cursor: pointer;
}

#progressBar::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    cursor: pointer;
}

/* Controles personalizados */
#video-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

/* Estilo de los botones */
#video-controls button {
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#video-controls button:hover {
    background-color: #cc0000;
}

#video-controls button:focus {
    outline: none;
}

/* Título de la sección */
#video-section h2 {
    font-family: Arial, sans-serif;
    color: #f1f1f1;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

/* 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;
    }
    
    #tutorialVideo {
    width: 100%;
    }
    
}

/* 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%;
    }
    
}
