/* styles.css – estilos base */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #222222;
}

.main-header .navbar {
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

/* LOGO */
.logo-img {
    height: 40px;
    width: auto;
}

/* espacio para el navbar fijo */
main {
    padding-top: 80px;
}

/* ============================
   MENÚ 40% MÁS GRANDE
============================ */
.navbar-nav .nav-link {
    font-size: 1.25rem;  /* aumentado */
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

/* secciones generales */
.section {
    padding: 80px 0;
}

.section h1,
.section h2,
.section h3 {
    margin-bottom: 20px;
}

.section p {
    margin-bottom: 12px;
    max-width: 680px;
}

/* colores de secciones */
.section-orange {
    background: #ff7a00;
    color: #ffffff;
}

.section-white {
    background: #ffffff;
    color: #222222;
}

.section-black {
    background: #000000;
    color: #f5f5f5;
}

.section-grey {
    background: #f3f3f3;
    color: #222222;
}

/* hero */
.hero-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}

.hero-text {
    flex: 1 1 280px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.12);
    font-size: 13px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.92;
    margin-bottom: 16px;
}

.hero-trust {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 10px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hero-image {
    flex: 1 1 260px;
    text-align: center;
}

/* imagen sección 1: máx 300px de alto */
.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

/* footer */
.site-footer {
    font-size: 0.9rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* selector de idiomas con banderas – AHORA 50% MÁS GRANDES */
.lang-flag {
    width: 36px; /* antes 24px */
    height: auto;
}

.current-flag {
    border-radius: 999px;
}

/* dropdown idiomas */
.lang-switcher .lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 6px 8px;
    min-width: 160px;
    display: none;
    z-index: 1000;
}

.lang-switcher .lang-dropdown.show {
    display: block;
}

.lang-option {
    font-size: 0.9rem;
    padding: 4px 6px;
    color: #222;
    text-decoration: none;
    border-radius: 6px;
}

.lang-option:hover {
    background-color: #f3f3f3;
    text-decoration: none;
}

/* ============================
   ICONO LOGIN SIN CÍRCULO
============================ */
.login-icon-btn {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.login-icon-btn:hover {
    background: transparent !important;
    border: none !important;
}

.login-icon-btn svg {
    width: 28px;
    height: 28px;
}

/* ============================
   CARDS DE CURSOS
============================ */
.course-card-link {
    display: block;
}

.course-card {
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* Contenedor con proporción fija (16:9) para que la imagen no se deforme */
.course-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.course-card-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* meta + descripción corta */
.course-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.course-short {
    font-size: 0.9rem;
    color: #4b5563;
}

/* ============================
   B2B IMAGE
============================ */
.b2b-image-wrapper img {
    max-height: 320px;
    object-fit: cover;
}

/* responsive */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .section {
        padding: 60px 0;
    }
}
