/* --- COMPONENTES GLOBALES --- */
.section-padding { padding: 80px 8%; }

/* --- HERO IDIOMAS --- */
.idiomas-hero {
    padding: 160px 8% 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(230, 29, 66, 0.05) 0%, transparent 60%);
}
.idiomas-hero h1 { 
    font-size: clamp(3rem, 5vw, 4.5rem); 
    font-weight: 800; 
    letter-spacing: -3px; 
    line-height: 1; 
    margin-bottom: 20px; 
}
.idiomas-hero h1 span { color: var(--cherry); }
.idiomas-hero p { font-size: 1.2rem; color: var(--text-sec); max-width: 700px; margin: 0 auto; }

/* --- GRID DE IDIOMAS (BENTO STYLE) --- */
.idiomas-grid {
    display: grid;
    /* Forzamos 3 columnas en desktop para que sea simétrico */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    margin-bottom: 80px;
}

.card-idioma {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 40px; /* Bordes redondeados como en image_0.png */
    padding: 50px 40px;
    position: relative;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.card-idioma:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.04);
}

/* Alineación de Icono y Título (Corrigiendo image_3.png) */
.idioma-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.card-idioma i {
    font-size: 2.5rem;
    color: var(--cherry);
    margin-bottom: 0; /* Quitamos el margen inferior antiguo */
}

.card-idioma h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -1px;
    color: var(--text-main);
}

.card-idioma p {
    color: var(--text-sec);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* Empuja el roadmap hacia abajo */
}

/* Roadmap de niveles (Unificado y limpio) */
.roadmap {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.roadmap-step {
    text-align: center;
    flex: 1;
}

.roadmap-step span {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-sec);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.roadmap-step p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 !important;
}

/* Detalles y Botón */
.course-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-sec);
    font-weight: 700;
    margin-bottom: 25px;
}

.course-details i { font-size: 1rem; color: var(--cherry); }

.btn-course {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    background: var(--text-main);
    color: white;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-course:hover {
    background: var(--cherry);
    transform: scale(1.02);
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .idiomas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .idiomas-grid { grid-template-columns: 1fr; }
    .card-idioma { padding: 40px 25px; }
}
/* --- SECCIÓN PROGRAMAS TODO PÚBLICO (DARK INDUSTRIAL) --- */
.publico-section {
    background: var(--text-main);
    color: white;
    border-radius: 60px; /* Bordes extra redondeados estilo Apple */
    padding: 100px 8%;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.publico-info h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 25px;
}

.publico-info h2 span {
    color: var(--cherry);
}

.publico-info p {
    font-size: 1.15rem;
    color: #a1a1a6; /* Gris tenue para que no compita con el título */
    line-height: 1.6;
}

/* Grid de los 4 items de programas */
.programas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.programa-item {
    background: rgba(255, 255, 255, 0.03); /* Vidrio esmerilado muy sutil */
    padding: 40px;
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.4s ease;
}

.programa-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--cherry);
}

.programa-item h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--cherry);
}

.programa-item p {
    font-size: 0.95rem;
    color: #d1d1d6;
    line-height: 1.5;
    margin: 0;
}

/* --- RESPONSIVE PARA SECCIÓN OSCURA --- */
@media (max-width: 1100px) {
    .publico-section {
        grid-template-columns: 1fr;
        padding: 60px 40px;
        text-align: center;
        gap: 40px;
    }
    .publico-info h2 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .programas-grid {
        grid-template-columns: 1fr;
    }
    .programa-item {
        padding: 30px;
    }
}