/* =====================================================
   CURSOS A MEDIDA — Estilos (tema azul)
   ===================================================== */

#cm-page {
    font-family: 'IBM Plex Sans', sans-serif;
}

/* ---- HERO ---- */
.cm-hero {
    position: relative;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.cm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,35,70,0.85) 0%, rgba(46,163,242,0.50) 100%);
}

.cm-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px 32px 80px;
}

.cm-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
}

.cm-hero-inner h1 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    color: #fff !important;
    line-height: 1.1;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.cm-hero-inner p {
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    max-width: 600px;
    line-height: 1.65;
    margin-bottom: 36px;
    padding-bottom: 0;
}

.cm-btn-hero {
    display: inline-block;
    background: #2ea3f2;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cm-btn-hero:hover {
    background: #1a8fd1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,163,242,0.40);
}

/* ---- LAYOUT GENERAL ---- */
.cm-section {
    padding: 80px 0;
}

.cm-section--white { background: #fff; }
.cm-section--alt   { background: #f0f6ff; }

.cm-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

.cm-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2ea3f2;
    background: rgba(46,163,242,0.10);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.cm-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.cm-section-header h2 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: #1a2e4a !important;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.cm-section-header p {
    font-size: 16px;
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
    padding-bottom: 0;
}

/* ---- INTRO ---- */
.cm-intro-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
}

.cm-intro-text h2 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: #1a2e4a !important;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.cm-intro-text p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.cm-intro-puntos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.cm-punto {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.cm-punto svg {
    width: 18px;
    height: 18px;
    color: #2ea3f2;
    flex-shrink: 0;
}

.cm-intro-img {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(46,163,242,0.15);
}

.cm-intro-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* ---- CURSOS GRID ---- */
.cm-cursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cm-curso-card {
    background: #fff;
    border: 1px solid #d0e8f8;
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cm-curso-card:hover {
    box-shadow: 0 10px 36px rgba(46,163,242,0.14);
    transform: translateY(-3px);
}

.cm-curso-icon {
    width: 46px;
    height: 46px;
    background: rgba(46,163,242,0.10);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-curso-icon svg {
    width: 22px;
    height: 22px;
    color: #2ea3f2;
}

.cm-curso-card h3 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1a2e4a !important;
    line-height: 1.25;
    margin: 0;
    padding-bottom: 0;
}

.cm-curso-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    flex: 1;
    padding-bottom: 0;
}

.cm-curso-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cm-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.cm-tag--presencial {
    background: #e8f4ff;
    color: #1a6fa3;
    border: 1px solid #b3d9f5;
}

.cm-tag--online {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ---- FORMACIÓN ONLINE ---- */
.cm-online-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 64px;
    align-items: center;
}

.cm-online-img {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(46,163,242,0.15);
}

.cm-online-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.cm-online-text h2 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: #1a2e4a !important;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.cm-online-text > p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.cm-online-ventajas {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 28px;
}

.cm-ventaja {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cm-ventaja-icon {
    width: 40px;
    height: 40px;
    background: rgba(46,163,242,0.10);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-ventaja-icon svg {
    width: 18px;
    height: 18px;
    color: #2ea3f2;
}

.cm-ventaja strong {
    display: block;
    font-size: 15px;
    color: #1a2e4a;
    margin-bottom: 2px;
}

.cm-ventaja p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.cm-btn-online {
    display: inline-block;
    background: #2ea3f2;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cm-btn-online:hover {
    background: #1a8fd1;
    transform: translateY(-2px);
}

/* ---- CTA ---- */
.cm-cta {
    background: linear-gradient(135deg, #0f2346 0%, #2ea3f2 100%);
    padding: 80px 0;
    text-align: center;
}

.cm-cta h2 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.cm-cta p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.65;
    padding-bottom: 0;
}

.cm-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cm-btn-cta {
    display: inline-block;
    background: #fff;
    color: #0f2346 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cm-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

.cm-btn-cta--outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.6);
}

.cm-btn-cta--outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ---- REQUISITOS ---- */
.cm-requisitos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cm-requisito-card {
    background: #f0f6ff;
    border: 1px solid #d0e8f8;
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cm-requisito-card h3 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1a2e4a !important;
    margin: 0;
    padding-bottom: 0;
}

.cm-requisito-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    padding-bottom: 0;
}

/* ---- PASOS (cómo funciona) ---- */
.cm-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cm-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #d0e8f8;
    border-radius: 14px;
    padding: 28px 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cm-step:hover {
    box-shadow: 0 10px 36px rgba(46,163,242,0.14);
    transform: translateY(-3px);
}

.cm-step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #2ea3f2;
    color: #fff;
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cm-step-body h3 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1a2e4a !important;
    margin: 0 0 8px;
    padding-bottom: 0;
}

.cm-step-body p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    padding-bottom: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
    .cm-intro-grid,
    .cm-online-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cm-online-grid {
        direction: ltr;
    }
    .cm-intro-img img,
    .cm-online-img img {
        height: 280px;
    }
    .cm-cursos-grid,
    .cm-requisitos {
        grid-template-columns: 1fr 1fr;
    }
    .cm-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cm-hero-inner { padding: 80px 20px 60px; }
    .cm-inner      { padding: 0 20px; }
    .cm-section    { padding: 56px 0; }
    .cm-cursos-grid,
    .cm-requisitos { grid-template-columns: 1fr; }
    .cm-intro-img img,
    .cm-online-img img { height: 220px; }
}
