/* ===== CURSOS TAB SYSTEM ===== */
    .cursos-tabs {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    .cursos-tab {
        padding: 10px 22px;
        border-radius: 9999px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        cursor: pointer;
        border: 2px solid #e5e7eb;
        background: #fff;
        color: #6b7280;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        font-family: inherit;
    }
    .cursos-tab:hover {
        border-color: var(--primary-blue);
        color: var(--primary-blue);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 79, 176, 0.12);
    }
    .cursos-tab.active {
        background: var(--primary-blue);
        border-color: var(--primary-blue);
        color: #fff;
        box-shadow: 0 4px 16px rgba(0, 79, 176, 0.25);
    }

    /* ===== COURSE CARDS ENHANCED ===== */
    .cursos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    @media (max-width: 768px) {
        .cursos-grid {
            grid-template-columns: 1fr;
        }
    }

    .curso-card-enhanced {
        background: #fff;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: flex;
        flex-direction: column;
    }
    .curso-card-enhanced:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0, 79, 176, 0.12);
    }

    .curso-card-img {
        position: relative;
        height: 200px;
        overflow: hidden;
        background-color: #f3f4f6;
    }
    
    /* KJA Minimalist Watermark */
    .curso-card-img::before {
        content: 'KJA';
        position: absolute;
        bottom: 10px;
        right: 12px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        color: rgba(255, 255, 255, 0.95);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.15em;
        padding: 4px 8px;
        border-radius: 4px;
        z-index: 2;
        border: 1px solid rgba(255, 255, 255, 0.3);
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        pointer-events: none;
        line-height: 1;
    }
    .curso-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    .curso-card-enhanced:hover .curso-card-img img {
        transform: scale(1.05);
    }

    /* Course Cover Overlay (Platzi/Udemy Style) */
    .curso-cover-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 25, 60, 0.7) 0%, rgba(0, 25, 60, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
        transition: all 0.4s ease;
    }
    .curso-cover-overlay svg {
        width: 54px;
        height: 54px;
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border-radius: 50%;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        transform: scale(0.85);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    .curso-cover-overlay svg.icon-play {
        padding-left: 18px; /* visually center play triangle */
    }
    .curso-card-enhanced:hover .curso-cover-overlay svg {
        transform: scale(1);
        opacity: 1;
        background: var(--primary-pink);
        border-color: var(--primary-pink);
        color: #fff;
        box-shadow: 0 10px 30px rgba(241, 0, 117, 0.4);
    }

    /* Badge stack */
    .curso-badge-tipo {
        position: absolute;
        top: 12px;
        left: 12px;
        display: inline-flex;
        align-items: center;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        background: rgba(255, 255, 255, 0.95);
        color: var(--primary-blue);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        z-index: 2;
    }

    /* Modality badges */
    .curso-badges-inline {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
    }
    .curso-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 700;
        background: #fff;
        z-index: 1;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }
    .curso-badge svg {
        width: 14px;
        height: 14px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    
    .curso-badge--vivo {
        background: #fef2f2;
        color: #ef4444;
        border: 1px solid rgba(239, 68, 68, 0.2);
    }
    .curso-badge--vivo::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ef4444;
        animation: liveBlink 1.5s ease-in-out infinite;
    }
    .curso-badge--grabado {
        background: #f5f3ff;
        color: #7c3aed;
        border: 1px solid rgba(124, 58, 237, 0.2);
    }
    .curso-badge--zoom {
        background: #eff6ff;
        color: #2563eb;
        border: 1px solid rgba(37, 99, 235, 0.2);
    }
    .curso-badge--presencial {
        background: #f0fdf4;
        color: #059669;
        border: 1px solid rgba(5, 150, 105, 0.2);
    }

    /* ─── HYPERFRAMES SKILL PATTERNS (Marker Highlighting) ─── */
    .mh-highlight-wrap { position: relative; display: inline-flex; align-items: center; }
    .mh-highlight-text { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; }
    .mh-highlight-bar {
        position: absolute; top: 0; left: -4px; right: -4px; bottom: 0;
        background: currentColor; opacity: 0.15; transform: scaleX(0); 
        transform-origin: left center; border-radius: 4px; z-index: 0;
    }
    
    .mh-circle-wrap { position: relative; display: inline-flex; align-items: center; }
    .mh-circle-text { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; }
    .mh-circle-ring {
        position: absolute; top: 50%; left: 50%; width: 130%; height: 160%;
        transform: translate(-50%, -50%) rotate(-3deg) scale(0);
        border: 2px solid currentColor; border-radius: 50%;
        pointer-events: none; z-index: 0; opacity: 0.5;
    }

    @keyframes liveBlink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }

    .curso-card-body {
        padding: 1.25rem 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .curso-card-body h3 {
        font-size: 1.05rem;
        font-weight: 800;
        color: #111827;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    .curso-meta-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    .curso-meta-item {
        font-size: 11px;
        color: #6b7280;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .curso-card-body p {
        font-size: 13px;
        color: #6b7280;
        line-height: 1.6;
        margin-bottom: 1rem;
        flex: 1;
    }

    /* Zoom/QR slots */
    .curso-extras {
        display: flex;
        gap: 8px;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    .curso-extra-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 12px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.25s ease;
    }
    .curso-extra-link--zoom {
        background: #eff6ff;
        color: #2563eb;
        border: 1px solid rgba(37, 99, 235, 0.15);
    }
    .curso-extra-link--zoom:hover {
        background: #2563eb;
        color: #fff;
    }
    .curso-extra-link--qr {
        background: #f0fdf4;
        color: #059669;
        border: 1px solid rgba(5, 150, 105, 0.15);
    }

    .curso-qr-img {
        width: 100%;
        max-width: 160px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.08);
        margin-bottom: 0.75rem;
    }

    .curso-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 20px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.3s ease;
        margin-top: auto;
    }
    .curso-cta--primary {
        background: var(--primary-pink);
        color: #fff;
        box-shadow: 0 4px 14px rgba(241, 0, 117, 0.2);
    }
    .curso-cta--primary:hover {
        background: #d10065;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(241, 0, 117, 0.3);
    }

    /* Empty state */
    .cursos-empty {
        text-align: center;
        padding: 3rem 1rem;
        color: #9ca3af;
    }
    .cursos-empty svg {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
        opacity: 0.4;
    }
    .cursos-empty h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #6b7280;
        margin-bottom: 0.5rem;
    }
    .cursos-empty p {
        font-size: 13px;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Flyer overlay */
    .curso-flyer-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,15,50,0.7) 0%, transparent 60%);
        z-index: 1;
    }

    /* Schedule pills */
    .curso-schedule {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }
    .curso-day {
        padding: 2px 8px;
        border-radius: 6px;
        font-size: 9px;
        font-weight: 700;
        background: #f3f4f6;
        color: #374151;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .curso-day--active {
        background: var(--primary-blue);
        color: #fff;
    }

/* ============================================================
   REDISEÑO CURSOS — HERO CLARO + COLLAGE + FEATURES
   ============================================================ */

/* Navbar sobre hero claro: enlaces en azul (el hero ya no es oscuro) */
.nav-desktop-only .nav-links-center li a {
    color: var(--primary-blue);
}

.nav-desktop-only .nav-links-center li a:hover,
.nav-desktop-only .nav-links-center li a.active {
    color: var(--primary-pink);
}

.cursos-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 24px 30px;
    /* Imagen de fondo + fundido inferior hacia el color del catálogo
       para mantener ambas secciones como un solo lienzo */
    background:
        linear-gradient(180deg, rgba(241, 245, 252, 0) 78%, #f1f5fc 100%),
        url('images/cursos/fondo-cursos.webp') center / cover no-repeat;
    font-family: 'Poppins', sans-serif;
}

/* El catálogo continúa el mismo lienzo del hero: sin puntos,
   mismo degradado, para que ambos se lean como una sola sección */
.catalog-section {
    background-color: transparent !important;
    background-image:
        radial-gradient(900px 480px at 92% 10%, rgba(0, 79, 176, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, #f1f5fc 0%, #f7faff 55%, #ffffff 100%) !important;
    background-size: auto !important;
    background-position: center !important;
}

/* Esferas decorativas 3D */
.ch-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ch-orb--pink {
    width: 130px;
    height: 130px;
    top: 110px;
    left: -40px;
    background: radial-gradient(circle at 32% 30%, #ff8ec4 0%, #f10075 55%, #a3004f 100%);
    box-shadow: 0 24px 48px rgba(241, 0, 117, 0.3), inset -12px -14px 28px rgba(0, 0, 0, 0.18);
    animation: chFloat 9s ease-in-out infinite;
}

.ch-orb--blue {
    width: 170px;
    height: 170px;
    right: -50px;
    bottom: 130px;
    background: radial-gradient(circle at 32% 30%, #6ba6ff 0%, #004fb0 60%, #002a63 100%);
    box-shadow: 0 26px 52px rgba(0, 79, 176, 0.3), inset -14px -16px 30px rgba(0, 0, 0, 0.2);
    animation: chFloat 11s ease-in-out infinite reverse;
}

.ch-orb--glass {
    width: 90px;
    height: 90px;
    left: 44%;
    bottom: 40px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(214, 230, 255, 0.55) 45%, rgba(160, 195, 245, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 36px rgba(0, 47, 112, 0.12), inset -8px -10px 18px rgba(0, 79, 176, 0.1);
    animation: chFloat 8s ease-in-out infinite;
}

.ch-shape {
    position: absolute;
    width: 260px;
    height: 260px;
    left: -120px;
    bottom: -140px;
    border-radius: 42px;
    transform: rotate(24deg);
    background: linear-gradient(135deg, rgba(0, 79, 176, 0.12), rgba(0, 79, 176, 0.02));
    pointer-events: none;
}

@keyframes chFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.cursos-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
}

/* Columna de texto */
.ch-eyebrow {
    display: inline-block;
    background: rgba(241, 0, 117, 0.08);
    color: #f10075;
    border: 1px solid rgba(241, 0, 117, 0.18);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 7px 16px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.ch-title {
    font-size: clamp(2.3rem, 3.6vw, 3.4rem);
    line-height: 1.12;
    font-weight: 400;
    color: #f10075;
    margin: 0 0 18px;
}

.ch-title strong {
    font-weight: 800;
    color: #101828;
    display: inline-block;
}

.ch-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5b6472;
    max-width: 470px;
    margin: 0 0 30px;
}

.ch-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ch-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f10075;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 15px 28px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(241, 0, 117, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ch-btn-primary svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
}

.ch-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(241, 0, 117, 0.4);
    color: #fff;
}

.ch-btn-primary:hover svg {
    transform: translateX(3px);
}

.ch-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    border-radius: 9999px;
    border: 1.5px solid rgba(0, 79, 176, 0.3);
    color: #004fb0;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.ch-btn-outline:hover {
    background: #004fb0;
    border-color: #004fb0;
    color: #fff;
}

/* Collage flotante */
.ch-collage {
    position: relative;
    height: 430px;
}

/* Con la imagen de fondo (personas a la derecha), las tarjetas del
   collage taparían la foto: se ocultan y quedan solo los chips */
.ch-collage .ch-card {
    display: none;
}

.ch-orb--blue {
    display: none;
}

.ch-card {
    position: absolute;
    width: 215px;
    background: #fff;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 22px 44px rgba(13, 38, 76, 0.14), 0 4px 10px rgba(13, 38, 76, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.ch-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.ch-card-info {
    padding: 10px 6px 6px;
}

.ch-card-info strong {
    display: block;
    font-size: 0.85rem;
    color: #101828;
    line-height: 1.3;
}

.ch-card-info span {
    font-size: 0.72rem;
    color: #7a8494;
    font-weight: 600;
}

.ch-card--1 {
    top: 0;
    left: 4%;
    transform: rotate(-5deg);
    z-index: 3;
    animation: chFloat 10s ease-in-out infinite;
}

.ch-card--2 {
    top: 60px;
    right: 2%;
    transform: rotate(4deg);
    z-index: 2;
    animation: chFloat 12s ease-in-out infinite reverse;
}

.ch-card--3 {
    bottom: 12px;
    left: 24%;
    transform: rotate(-2deg);
    z-index: 4;
    animation: chFloat 11s ease-in-out infinite;
    animation-delay: -3s;
}

.ch-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    padding: 9px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #101828;
    box-shadow: 0 12px 26px rgba(13, 38, 76, 0.14);
    z-index: 5;
}

.ch-chip svg {
    width: 16px;
    height: 16px;
}

.ch-chip--cert {
    top: -6px;
    left: 2%;
    right: auto;
    color: #004fb0;
    animation: chFloat 9s ease-in-out infinite reverse;
}

.ch-chip--cert svg { color: #f10075; }

.ch-chip--students {
    bottom: 64px;
    right: 6%;
    color: #004fb0;
    animation: chFloat 10s ease-in-out infinite;
    animation-delay: -2s;
}

.ch-chip--students svg { color: #22c55e; }

/* Encabezado de la sección de programas: título + stats + destacado */
.cursos-head-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    margin-bottom: 38px;
}

.cursos-head-left h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #101828;
    margin: 0 0 6px;
    position: relative;
    display: inline-block;
}

.cursos-head-left h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f10075, #004fb0);
    margin: 12px 0 0;
}

.cursos-head-left p {
    color: #7a8494;
    font-size: 0.95rem;
    margin: 12px 0 0;
}

/* Fila de mini-stats: número + icono circular + etiqueta */
.ch-stats {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 26px;
}

.ch-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.ch-stat-num {
    font-size: 0.88rem;
    font-weight: 800;
    color: #101828;
    line-height: 1;
}

.ch-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-stat-icon svg {
    width: 19px;
    height: 19px;
}

.ch-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a8494;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ch-stat-sep {
    width: 1px;
    height: 44px;
    background: rgba(13, 38, 76, 0.1);
}

.ch-head-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.ch-btn-dark {
    display: inline-flex;
    align-items: center;
    background: #101828;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 13px 26px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.2);
    transition: all 0.3s ease;
}

.ch-btn-dark:hover {
    background: #004fb0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 79, 176, 0.3);
}

.ch-head-note {
    font-size: 0.82rem;
    font-weight: 600;
    color: #7a8494;
}

/* Programa destacado */
.cursos-head-featured {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 440px;
}

/* Collage de tarjetas flotantes en el encabezado de programas */
.programs-collage {
    height: 380px;
}

.programs-collage .ch-card--1 {
    top: 10px;
}

.programs-collage .ch-card--3 {
    bottom: 0;
}

/* Valoración en tarjetas del grid */
.curso-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 2px 0 6px;
}

.curso-rating svg {
    width: 13px;
    height: 13px;
    color: #f5b301;
}

.curso-rating em {
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 700;
    color: #101828;
    margin-left: 6px;
}

/* Tabs con iconos */
.cursos-tabs {
    background: #fff;
    border: 1px solid rgba(13, 38, 76, 0.06);
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(13, 38, 76, 0.07);
    padding: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.cursos-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cursos-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive del rediseño */
@media (max-width: 991px) {
    .cursos-hero {
        padding: 120px 20px 36px;
    }

    .cursos-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ch-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .ch-actions {
        justify-content: center;
    }

    .ch-collage {
        display: none;
    }

    .ch-orb--blue {
        width: 110px;
        height: 110px;
        bottom: auto;
        top: 90px;
        right: -36px;
    }

    .ch-orb--pink {
        width: 84px;
        height: 84px;
    }

    .cursos-tabs {
        border-radius: 20px;
        width: 100%;
        justify-content: center;
    }

    /* Encabezado de programas apilado */
    .cursos-head-row {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .cursos-head-left h2::after {
        margin-left: auto;
        margin-right: auto;
    }

    .ch-stats {
        justify-content: center;
        gap: 14px;
    }

    .ch-head-actions {
        justify-content: center;
    }

    .cursos-head-featured {
        justify-self: center;
        max-width: 460px;
    }
}

/* ============================================================
   TARJETAS DE CURSO v3 — estilo "featured ads"
   ============================================================ */

.curso-card-v3 {
    background: #fff;
    border: 1px solid rgba(13, 38, 76, 0.06);
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 6px 24px rgba(13, 38, 76, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.curso-card-v3:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(13, 38, 76, 0.12);
    border-color: rgba(0, 79, 176, 0.12);
}

/* Imagen enmarcada con chips flotantes */
.ccv3-media {
    position: relative;
    aspect-ratio: 2 / 1; /* misma proporción que los flyers 800×400: se ven completos sin recorte a cualquier ancho */
    border-radius: 15px;
    overflow: hidden;
}

.ccv3-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.curso-card-v3:hover .ccv3-media img {
    transform: scale(1.05);
}

.ccv3-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ccv3-chip--tipo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #101828;
    z-index: 2;
}

.ccv3-mods {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.ccv3-chip--presencial { background: #059669; color: #fff; }
.ccv3-chip--zoom       { background: #004fb0; color: #fff; }
.ccv3-chip--grabado    { background: #7c3aed; color: #fff; }
.ccv3-chip--vivo       { background: #ef4444; color: #fff; }

/* Cuerpo */
.ccv3-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 8px 6px;
}

.ccv3-meta-top {
    font-size: 0.72rem;
    font-weight: 600;
    color: #98a2b3;
    margin-bottom: 6px;
}

.ccv3-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #101828;
    line-height: 1.3;
    margin: 0 0 4px;
}

.ccv3-body p {
    font-size: 0.83rem;
    line-height: 1.55;
    color: #667085;
    margin: 8px 0 14px;
    flex: 1;
}

/* Pie con divisor: píldora + botón + moneda WhatsApp */
.ccv3-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* si la píldora es larga, el pie salta de línea en vez de desbordar la tarjeta */
    gap: 10px;
    border-top: 1px solid rgba(13, 38, 76, 0.08);
    padding-top: 12px;
    margin-top: auto;
}

.ccv3-foot-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(13, 38, 76, 0.12);
    border-radius: 9999px;
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475467;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.ccv3-foot-pill svg {
    width: 13px;
    height: 13px;
    color: #004fb0;
    flex-shrink: 0;
}

.ccv3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f10075;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(241, 0, 117, 0.25);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ccv3-btn:hover {
    background: #d10065;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(241, 0, 117, 0.35);
}

.ccv3-coin {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ccv3-coin svg {
    width: 18px;
    height: 18px;
}

.ccv3-coin:hover {
    background: #22c55e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.35);
}

@media (max-width: 480px) {
    /* Pie reordenado: días arriba a lo ancho, luego botón
       estirado + moneda de WhatsApp alineados */
    .ccv3-footer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ccv3-foot-pill {
        order: 0;
        width: 100%;
        justify-content: center;
        border-style: dashed;
    }

    .ccv3-btn {
        order: 1;
        flex: 1;
        padding: 11px 18px;
    }

    .ccv3-coin {
        order: 2;
        width: 42px;
        height: 42px;
    }
}

/* ============================================================
   RESPONSIVE MÓVIL — página completa de cursos
   ============================================================ */
@media (max-width: 768px) {
    /* Hero: en móvil se muestra la zona limpia (izquierda) de la
       imagen y se añade un velo claro para asegurar la lectura */
    .cursos-hero {
        background:
            linear-gradient(180deg, rgba(246, 249, 255, 0.78) 0%, rgba(246, 249, 255, 0.5) 60%, #f1f5fc 100%),
            url('images/cursos/fondo-cursos.webp') left center / cover no-repeat;
    }

    /* Collage del encabezado de programas: abanico ordenado */
    .programs-collage {
        height: 305px;
        max-width: 340px;
    }

    .programs-collage .ch-card {
        width: 172px;
        padding: 8px;
    }

    .programs-collage .ch-card img {
        height: 92px;
    }

    .programs-collage .ch-card-info strong {
        font-size: 0.76rem;
    }

    .programs-collage .ch-card-info span {
        font-size: 0.65rem;
    }

    .programs-collage .ch-card--1 {
        top: 0;
        left: 0;
        transform: rotate(-4deg);
    }

    .programs-collage .ch-card--2 {
        top: 28px;
        right: 0;
        transform: rotate(4deg);
    }

    .programs-collage .ch-card--3 {
        bottom: 0;
        /* centrado con left calculado: la animación de flotado
           sobreescribe transform, así que no se usa translateX */
        left: calc(50% - 86px);
    }

    /* Banner CTA final más contenido */
    .cta-banner h2 {
        font-size: 1.55rem;
    }

    .cta-banner {
        padding: 48px 20px 56px;
    }
}

@media (max-width: 480px) {
    .cursos-hero {
        padding: 110px 18px 30px;
    }

    .ch-title {
        font-size: clamp(2rem, 8.5vw, 2.5rem);
    }

    /* Stats sin desborde: sin separadores, etiquetas compactas */
    .ch-stats {
        gap: 8px;
        flex-wrap: wrap;
    }

    .ch-stat {
        flex: 1 1 21%;
    }

    .ch-stat-sep {
        display: none;
    }

    .ch-stat-icon {
        width: 38px;
        height: 38px;
    }

    .ch-stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.03em;
    }

    .cursos-head-left h2 {
        font-size: 1.65rem;
    }

    .cursos-head-left p {
        font-size: 0.88rem;
    }

    .ch-head-note {
        width: 100%;
        text-align: center;
    }

    /* Tabs más compactas en pantallas pequeñas */
    .cursos-tab {
        padding: 9px 14px;
        font-size: 11px;
    }

    /* Chips de modalidad abajo para no chocar con el chip de tipo
       (p. ej. "Charla / Conferencia" + "Presencial · Virtual") */
    .ccv3-mods {
        top: auto;
        bottom: 10px;
        right: 10px;
    }
}
