@charset "utf-8";
/* estilos.css */
:root {
    --primary-color: #0d6efd;
    --background: #f4f7f6;
    --text-color: #333;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    margin-top: 2rem;
}

/* Estilos de Login */
.login-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 4rem auto;
    text-align: center;
}

.login-box h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.btn {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #0b5ed7;
}

/* Estilos de la Clase */
.header-clase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mensaje-exito {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}
/* Añadir a estilos.css */
.grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.card-curso {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card-curso:hover {
    transform: translateY(-5px);
}

.card-curso img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-body p {
    font-size: 0.9rem;
    color: #666;
    height: 60px;
    overflow: hidden;
}

.precio {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 15px 0;
    color: #333;
}
:root {
    --primary: #0056b3;
    --success: #28a745;
    --warning: #ffc107;
    --bg: #f8f9fa;
    --text: #212529;
}

body { background: var(--bg); font-family: 'Inter', sans-serif; color: var(--text); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.nav-main { background: white; padding: 15px 0; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 100; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--primary); }

.welcome-header { margin: 40px 0; }
.grid-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }

.card-dashboard { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); position: relative; }
.badge-status { font-size: 0.75rem; text-transform: uppercase; font-weight: bold; color: #666; margin-bottom: 10px; display: block; }

.progreso-container { margin: 20px 0; }
.progreso-info { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; }
.barra-fondo { background: #eee; height: 10px; border-radius: 10px; overflow: hidden; }
.barra-relleno { background: var(--primary); height: 100%; transition: width 0.4s ease; }

.btn-success { background: var(--success); color: white; padding: 10px 15px; border-radius: 6px; text-decoration: none; font-weight: bold; }
.btn-alt { border: 2px solid var(--primary); color: var(--primary); padding: 8px 15px; border-radius: 6px; text-decoration: none; font-weight: bold; }

.expirado { opacity: 0.7; filter: grayscale(0.5); border: 1px solid #ddd; }
/* estilos.css - Sección del Menú */
.nav-principal {
    background-color: #0056b3; /* Color principal de tu marca */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-enlaces {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-enlaces a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-enlaces a:hover {
    color: #e0e0e0;
}

/* Botones especiales dentro del menú */
.btn-nav {
    background-color: #28a745;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-nav:hover {
    background-color: #218838;
}

.btn-nav-outline {
    border: 1px solid white;
    padding: 8px 15px;
    border-radius: 5px;
}

.btn-nav-outline:hover {
    background-color: white;
    color: #0056b3 !important;
}