/* --- Variables específicas (ajustar según tu style.css base) --- */
:root {
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --primary-blue: #0056b3; /* Asumiendo un azul corporativo */
    --accent-glow: rgba(0, 86, 179, 0.4);
    --text-main: #333;
    --text-muted: #666;
}

/* Modo oscuro (compatibilidad básica) */
body.dark-mode {
    --card-bg: #1e1e1e;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
}

/* --- Hero Section --- */
.courses-hero {
    background: linear-gradient(135deg, var(--primary-blue), #002a5c);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.courses-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.courses-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- Grid de Cursos --- */
.courses-section {
    padding-bottom: 80px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* --- Tarjeta del Curso (Card) --- */
.course-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Efecto Hover Moderno */
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--accent-glow);
    border-color: var(--primary-blue);
}

/* Thumbnail */
.course-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumb img {
    transform: scale(1.1);
}

/* Overlay de Play */
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.play-overlay i {
    color: white;
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.course-card:hover .play-overlay {
    opacity: 1;
}

/* Badges (Etiquetas) */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge.beginner { background: #28a745; }
.badge.intermediate { background: #fd7e14; }
.badge.advanced { background: #dc3545; }
.badge.new { background: #6f42c1; animation: pulse 2s infinite; }

/* Contenido de la tarjeta */
.course-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-icon {
    position: absolute;
    top: -30px;
    left: 20px;
    background: var(--primary-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 4px solid var(--card-bg); /* Efecto recorte */
}

.course-content h3 {
    margin-top: 15px;
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.course-meta i {
    color: var(--primary-blue);
    margin-right: 5px;
}

/* Botón */
.btn-course {
    display: block;
    text-align: center;
    background: var(--primary-blue);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-course:hover {
    background: #003d82; /* Color más oscuro */
}

/* Animación Pulse para etiqueta "Nuevo" */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animación de entrada al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividad extra */
@media (max-width: 768px) {
    .courses-hero h1 { font-size: 1.8rem; }
    .courses-hero { clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
}


/* --- Estilos para la sección Quién Soy (FALTABA ESTO) --- */

.about-promo {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Un fondo suave para separar secciones */
}

/* Este es el contenedor mágico que los pone lado a lado */
.container-about {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* ESTO ES LA CLAVE */
    gap: 30px;     /* Espacio entre las dos cajas */
    flex-wrap: wrap; /* Para que en celular baje uno abajo del otro */
    align-items: stretch; /* Para que tengan la misma altura si quieres */
}

/* Responsividad para celulares: que se pongan vertical */
@media (max-width: 768px) {
    .container-about {
        flex-direction: column;
    }
    
    .about-box {
        flex-direction: column;
        text-align: center;
    }

    .social-mini {
        justify-content: center;
    }
}

/* --- AQUI SIGUE LO QUE YA TENIAS (.about-box, .promo-box, etc...) --- */
.about-box {
    /* ... tu código actual ... */
}

/* Caja Perfil */
.about-box {
    flex: 2;
    background: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.profile-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3b82f6;
}

.profile-text h2 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.profile-text p {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.social-mini {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-mini a {
    color: #1e3a8a;
    font-size: 20px;
    transition: color 0.3s;
}

.social-mini a:hover { color: #3b82f6; }



/* Caja Promo (El gancho comercial) */
.promo-box {
    flex: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.promo-content i {
    font-size: 40px;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 20px;
}

.promo-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.promo-list {
    list-style: none;
    margin: 20px 0;
}

.promo-list li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-promo {
    display: block;
    text-align: center;
    background: white;
    color: #1e3a8a;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
