/* Fondo profesional */
body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

/* Contenedor izquierdo ajustado a toda la altura de la página */
#contenedor-izquierdo {
    width: 280px; /* Tamaño fijo para un mejor diseño */
    height: 100vh; /* Ocupa toda la altura de la ventana */
    background: #1c1c35f0;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 0; /* Elimina bordes redondeados para ocupar toda la altura */
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor del logo */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    width: auto;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Menú */
#contenedor-izquierdo ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

#contenedor-izquierdo ul li {
    margin: 15px 0;
}

#contenedor-izquierdo ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

#contenedor-izquierdo ul li a:hover {
    color: #f0be68;
}

/* Contenido principal */
.main-content {
    margin-left: 300px;
    padding: 40px;
    flex: 1;
}

/* Contenedor de cursos */
.contenedor-cursos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Tarjeta de cada curso */
.curso {
    background: #292941;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    width: 220px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}

.curso:hover {
    transform: scale(1.05);
}

/* Imagen circular */
.imagen-curso {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 7px solid #f0be68;
}

.imagen-curso img {
    width: 110%;
    height: 110%;
    object-fit: cover;
}

/* Estilos de texto */
h1, h2, h3 {
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
}

h3 {
    font-size: 18px;
    margin: 10px 0;
}

 #foro .pr {
    color: #d7af6a;
    font-size: 14px;
    margin: 0;
}

.titulo {
 font-weight: 600;
    color: #d7af6a;
   /*  text-transform: uppercase; */
    margin: -20px auto; /* Reduce el espacio arriba y abajo */
    transition: transform 0.3s ease-in-out;
}

.contenedor-cursos {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .curso {
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 15px;
        width: 250px;
        text-align: center;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between; /* Asegura que el botón quede al final */
    }

    .imagen-curso img {
        max-width: 110%;
        height: auto;
        border-radius: 5px;
    }

    .boton-container {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: auto; /* Empuja el botón hacia abajo */
    }

    .btn-inscribirse {
        padding: 8px 12px;
        background-color: #ae8b50;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        text-align: center;
        width: 80%;
    }

    .btn-inscribirse:hover {
        background-color: #b53605;
    }


.text_titulo {
    font-weight: 600;
    color: #d7af6a;
   /*  text-transform: uppercase; */
    margin: -20px auto; /* Reduce el espacio arriba y abajo */
    transition: transform 0.3s ease-in-out;
}

.text_2 {
    font-weight: 600;
    color: #64615b;
   /*  text-transform: uppercase; */
    margin: -20px auto; /* Reduce el espacio arriba y abajo */
    transition: transform 0.3s ease-in-out;
}

.text_3 {
    font-weight: 0;
    color: #64615b;
   /*  text-transform: uppercase; */
    margin: -20px auto; /* Reduce el espacio arriba y abajo */
    transition: transform 0.3s ease-in-out;
}

.imagen-container {
    position: relative;
    display: inline-block;
}

.imagen-curso {
    position: relative; /* Para que la medalla se posicione dentro */
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: visible; /* Permite que la medalla sobresalga */
    margin: 0 auto 10px;
    border: 7px solid #f0be68; /* Borde del círculo */
}

.imagen-curso img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Asegura que la imagen respete la forma circular */
}

/* Posicionamiento exacto de la medalla en la parte superior derecha */
.medalla-container {
    position: absolute;
    top: 107px;  /* Asegura que sobresalga completamente del borde */
    right: 0px; /* Mueve la medalla hacia la derecha */
    width: 50px;  /* Ajusta el tamaño de la medalla */
    height: auto;
    z-index: 100; /* Asegura que esté sobre todo */
}

.medalla {
    width: 100%;
    height: auto;

}
/* Contenedor del slider */

.slider-container {
    width: 100%;
    max-width: 1100px;
    margin: 0px auto;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Estilos del slider */
.slider {
    display: flex;
    width: 100%;
    transition: transform 1s ease-in-out;
}

/* Cada slide (imagen y enlace) */
.slide {
    flex: 1;
    min-width: 100%;
}

/* Ajuste de las imágenes */
.slide img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* Transición de imágenes */
@keyframes sliderAnim {
    0% { transform: translateX(0); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}



/* Login */

.login-container {
            background: white;
            padding: 0px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 300px;
            text-align: center;
        }
        .login-container h2 {
            margin-bottom: 20px;
            color: #333;
        }
        .input-group {
            margin-bottom: 15px;
            text-align: left;
        }
        .input-group label {
            display: block;
            font-size: 13px;
            color: #555;
            margin-left: 14px;
        }
        .input-group input {
            width: 85%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin-top: 5px;
            margin-right: 10px;
            margin-left: 10px;
        }
        .btn {
            background-color: #ae8b50;
            color: white;
            border: none;
            padding: 10px;
            width: 75%;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        .btn:hover {
            background-color: #b83406;
        }



/* Ajustes para pantallas pequeñas (≤ 768px) */
@media (max-width: 768px) {
    /* Se apila todo en vertical */
    body {
        flex-direction: column;
    }

    /* Contenedor izquierdo ahora se posiciona arriba */
    #contenedor-izquierdo {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
    }

    /* Logo centrado en móviles */
    .logo {
        max-width: 150px;
    }

    /* Menú centrado en móviles */
    #contenedor-izquierdo ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 10px 0;
    }

    #contenedor-izquierdo ul li {
        margin: 5px 10px;
    }

    /* El contenido principal se desplaza hacia abajo */
    .main-content {
        margin-left: 0;
        margin-top: 20px;
        padding: 20px;
    }
}

/* Estilos para los modales */
/* Estilos para los modales con scroll */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 📌 Estilos para el fondo oscuro del modal */
.modal {
    /* display: none; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5); */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* 📌 Estilos para el contenido del modal */
.modal-content {
    background: #292941;
    padding: 20px;
    border-radius: 8px;
    width: 80%; /* Por defecto ocupa el 80% del ancho */
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #d7af6a;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Lo coloca exactamente en el centro */
}

/* 📌 Media Query para dispositivos pequeños (smartphones) */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%; /* Ocupar casi todo el ancho en móviles */
        max-width: 400px; /* Limita el ancho en móviles */
        max-height: 80vh; /* Ajusta la altura */
        padding: 15px;
        font-size: 14px;
    }
}

/* 📌 Media Query para pantallas aún más pequeñas (menores de 480px) */
@media screen and (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-width: 350px;
        max-height: 75vh;
        padding: 10px;
        font-size: 12px;
    }
}

/* 📌 Botón de cierre */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

/* 📌 Estilos para la animación de apertura */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-content {
    animation: fadeIn 0.3s ease-out;
}



/* Cuerpo del modal con scroll */
.modal-body {
    max-height: 60vh; /* Limita el alto del contenido */
    overflow-y: auto; /* Habilita el scroll si el contenido es muy grande */
    padding-right: 10px; /* Espaciado para evitar solapamiento del scroll */
}

/* Estilo para la barra de scroll (opcional) */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: #ae8b50;
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Botón de cierre */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cerrar {
    background-color: #ae8b50;
    color: white;
    border: none;
    padding: 10px;
    width: 100px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.btn-cerrar:hover {
    background-color: #b83406;
}

