/* ============================================================
   FICHA MICROCREDENCIAL — Zigna UDD
   Fuente: Darker Grotesque (Google Fonts)
   Paleta base: fondo #f5f9f7 | oscuro #2a293d
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@400;500;600;700;900&display=swap');

/* ── Reset & base ─────────────────────────────────────────── */
.fm-page *,
.fm-page *::before,
.fm-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fm-page {
    font-family: 'Darker Grotesque', sans-serif;
    color: #2a293d;
    background: #f5f9f7;
    line-height: 1.5;
}

/* ── Contenedor centrado ──────────────────────────────────── */
.fm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Título de sección ────────────────────────────────────── */
.fm-section-title {
    font-weight: 700;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
    margin-bottom: 24px;
    color: #2a293d;
}

/* ── Ícono inline ─────────────────────────────────────────── */
.fm-icon {
    flex-shrink: 0;
    color: #2a293d;
}

/* ── Botones ──────────────────────────────────────────────── */
.fm-btn {
    display: inline-block;
    font-family: 'Darker Grotesque', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 0;
    padding: 14px 28px;
    transition: opacity 0.2s ease, transform 0.15s ease;
}
.fm-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.fm-btn--primary {
    background: #2a293d;
    color: #fff;
}

.fm-btn--outline {
    background: transparent;
    color: #2a293d;
    border: 2px solid #2a293d;
}

/* ── Botón dinámico UDD ───────────────────────────────────── */
.boton_udd {
    display: inline-block;
    font-family: 'Darker Grotesque', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    background: #2a293d;
    color: #fff !important;
    border: 2px solid #2a293d;
    border-radius: 0;
    padding: 12px 28px;
    margin-top: 4px;
    transition: opacity 0.2s ease, transform 0.15s ease;
    line-height: 1;
}
.boton_udd:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff !important;
}

/* ════════════════════════════════════════════════════════════
   SECCIÓN 1: HERO
   ════════════════════════════════════════════════════════════ */
.fm-hero {
    background: var(--grad, linear-gradient(220deg,#00FFC6 0%,#00A1F5 100%));
    color: #2a293d;
    padding: 160px 24px 80px;
    overflow: hidden;
}

.fm-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Panel izquierdo con frosted glass para garantizar legibilidad */
.fm-hero__left {
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
}

/* Eyebrow */
.fm-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2a293d;
    margin-bottom: 12px;
}

/* Título */
.fm-hero__title {
    font-weight: 700;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.1;
    margin-bottom: 28px;
    color: #2a293d;
}

/* ════════════════════════════════════════════════════════════
   SECCIÓN DOCENTES (debajo del bloque CELE)
   ════════════════════════════════════════════════════════════ */
.fm-docentes {
    margin-top: 40px;
}

.fm-docentes__titulo {
    font-weight: 700;
    font-size: 22px;
    color: #2a293d;
    margin-bottom: 24px;
}

.fm-docentes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.fm-docente-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(42,41,61,0.07);
}

.fm-docente-card__img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #dde5e2;
}

.fm-docente-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-docente-card__nombre {
    font-weight: 600;
    font-size: 15px;
    color: #2a293d;
    line-height: 1.2;
}

.fm-docente-card__cargo {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-top: 3px;
    line-height: 1.3;
}

/* Texto bienvenida */
.fm-hero__bienvenida {
    font-size: 15px;
    font-weight: 500;
    color: #2a293d;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* CTA */
.fm-hero__cta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fm-hero__precio {
    font-weight: 700;
    font-size: 28px;
    color: #2a293d;
}

.fm-hero__precio .woocommerce-Price-amount { color: #2a293d; }

/* Imagen derecha */
.fm-hero__right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fm-hero__img-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
}

.fm-hero__img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.fm-hero__img-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 0;
}

/* ════════════════════════════════════════════════════════════
   SECCIÓN 2: DESCRIPCIÓN + METADATA
   ════════════════════════════════════════════════════════════ */
.fm-descripcion {
    padding: 80px 0;
}

.fm-descripcion__inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

.fm-descripcion__texto {
    font-size: 16px;
    line-height: 1.7;
    color: #3a3a4e;
    margin-bottom: 32px;
}

/* Bloque CELE */
.fm-carreras {
    padding: 20px 20px 20px 24px;
    border-left: 4px solid #52c07e;
    background: #f0fff6;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 32px;
}

.fm-carreras__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #2a293d;
    margin-bottom: 10px;
}

.fm-carreras__header img { flex-shrink: 0; }

.fm-carreras p { margin-top: 8px; color: #2a293d; }
.fm-carreras p:first-of-type { margin-top: 0; }

/* Badges de categoría */
.fm-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    color: #2a293d;
    margin-bottom: 10px;
    margin-right: 6px;
    letter-spacing: 0.04em;
}

/* Lista de metadata */
.fm-meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.fm-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #2a293d;
}

/* ════════════════════════════════════════════════════════════
   SECCIÓN 3: CURSOS INCLUIDOS
   ════════════════════════════════════════════════════════════ */
.fm-cursos {
    padding: 80px 0;
    background: #fff;
}

.fm-cursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.fm-curso-card {
    border-radius: 0;
    overflow: hidden;
    background: #f5f9f7;
    box-shadow: 0 2px 12px rgba(42,41,61,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.fm-curso-card:hover {
    box-shadow: 0 6px 28px rgba(42,41,61,0.14);
    transform: translateY(-3px);
}

.fm-curso-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fm-curso-card__thumb {
    position: relative;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
}

.fm-curso-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fm-curso-card__body {
    padding: 20px;
}

.fm-curso-card__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2a293d;
    padding: 3px 10px;
    margin-bottom: 10px;
    border-radius: 0;
}

.fm-curso-card__title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #2a293d;
}

.fm-curso-card__horas {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.fm-curso-card__precio {
    font-size: 20px;
    font-weight: 700;
    color: #2a293d;
    margin-top: 10px;
}

.fm-curso-card__boton {
    padding: 0 20px 20px;
}

.fm-curso-card__boton .boton_udd {
    display: block;
    text-align: center;
    width: 100%;
}

/* ════════════════════════════════════════════════════════════
   SECCIÓN 4: CERTIFICACIÓN
   ════════════════════════════════════════════════════════════ */
.fm-certificacion {
    padding: 80px 0;
}

.fm-certificacion__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.fm-certificacion__texto p {
    font-size: 15px;
    line-height: 1.7;
    color: #3a3a4e;
}

.fm-certificacion__imagenes {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.fm-certificacion__img {
    width: calc(50% - 10px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 1;
}

/* ════════════════════════════════════════════════════════════
   SECCIÓN 5: CTA FINAL
   ════════════════════════════════════════════════════════════ */
.fm-cta-final {
    padding: 80px 0;
    background: #f5f9f7;
}

.fm-cta-final__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.fm-cta-final__texto {
    font-size: 20px;
    font-weight: 500;
    color: #2a293d;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .fm-hero__inner,
    .fm-descripcion__inner,
    .fm-certificacion__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fm-hero__right { order: -1; }
    .fm-hero__img-frame { max-width: 300px; margin: 0 auto; }

    .fm-cursos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .fm-hero { padding: 48px 20px; }
    .fm-descripcion, .fm-cursos, .fm-certificacion, .fm-cta-final { padding: 48px 0; }

    .fm-hero__docentes { gap: 14px; }
    .fm-hero__title { font-size: 28px; }

    .fm-cursos-grid { grid-template-columns: 1fr; }
}
