/* =====================================================
   CURSOS ACREDITADOS IFAPA — Estilos (tema azul)
   ===================================================== */

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

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

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

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

.ifapa-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;
}

.ifapa-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;
}

.ifapa-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;
}

.ifapa-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;
}

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

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

.ifapa-section--white {
    background: #fff;
}

.ifapa-section--alt {
    background: #f0f6ff;
}

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

.ifapa-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;
}

.ifapa-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.ifapa-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;
}

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

/* ---- ¿QUÉ ES IFAPA? ---- */
.ifapa-what-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: center;
}

.ifapa-what-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;
}

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

.ifapa-what-text p:last-child {
    margin-bottom: 0;
}

.ifapa-badge-card {
    background: #fff;
    border: 2px solid #d0e8f8;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(46,163,242,0.12);
}

.ifapa-badge-logo {
    max-width: 220px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.ifapa-badge-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2e4a;
    margin-bottom: 6px;
    padding-bottom: 0;
}

.ifapa-badge-body {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ifapa-badge-sep {
    width: 40px;
    height: 2px;
    background: #2ea3f2;
    margin: 20px auto;
    opacity: 0.4;
}

.ifapa-badge-detail {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ---- IMAGEN CURSOS ---- */
.ifapa-cursos-img {
    margin-bottom: 40px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(46,163,242,0.15);
}

.ifapa-cursos-img img {
    width: 100%;
    height: auto;
    display: block;
}

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

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

.ifapa-curso-card:hover {
    box-shadow: 0 12px 40px rgba(46,163,242,0.15);
    transform: translateY(-4px);
}

.ifapa-curso-card--featured {
    border-color: #2ea3f2;
    box-shadow: 0 4px 20px rgba(46,163,242,0.18);
}

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

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

.ifapa-curso-nivel {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2ea3f2;
    background: rgba(46,163,242,0.10);
    padding: 3px 12px;
    border-radius: 20px;
    width: fit-content;
}

.ifapa-curso-nivel--cualificado {
    color: #1a6fa3;
    background: rgba(26,111,163,0.10);
}

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

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

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

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

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

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

.ifapa-curso-btn {
    display: block;
    text-align: center;
    background: #2ea3f2;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 4px;
}

.ifapa-curso-btn:hover {
    background: #1a8fd1;
    transform: translateY(-1px);
}

/* ---- INFO ITEMS ---- */
.ifapa-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ifapa-info-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

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

.ifapa-info-item h4 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a2e4a !important;
    margin: 0;
    padding-bottom: 0;
}

.ifapa-info-item p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    padding-bottom: 0;
}

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

.ifapa-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;
}

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

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

.ifapa-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;
}

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

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

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

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
    .ifapa-what-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ifapa-cursos-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ifapa-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .ifapa-hero-inner {
        padding: 80px 20px 60px;
    }
    .ifapa-inner {
        padding: 0 20px;
    }
    .ifapa-cursos-grid,
    .ifapa-info-grid {
        grid-template-columns: 1fr;
    }
    .ifapa-section {
        padding: 56px 0;
    }
}
