/* ============================================================
   FICHA CURSO — 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 ─────────────────────────────────────────── */
.ficha-curso *,
.ficha-curso *::before,
.ficha-curso *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

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

/* ── Botones ──────────────────────────────────────────────── */
.fc-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;
}
.fc-btn:hover { opacity: 0.88; transform: translateY(-1px); }

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

.fc-btn--secondary {
    background: #2a293d;
    color: #fff;
}

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

.fc-btn--sm {
    padding: 10px 18px;
    font-size: 12px;
}

/* ── Botón dinámico UDD (shortcode udd_dynamic_button) ───── */
.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: #fff;
    color: #2a293d !important;
    border: 2px solid #fff;
    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: #2a293d !important;
}

/* ════════════════════════════════════════════════════════════
   SECCIÓN 1: HERO
   ════════════════════════════════════════════════════════════ */
.fc-hero {
    background: #2a293d;
    color: #fff;
    padding: 160px 24px 80px;
    overflow: hidden;
}

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

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

/* Docente */
.fc-hero__docente {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.fc-hero__docente-img-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
}

.fc-hero__docente-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-hero__docente-nombre {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.fc-hero__docente-cargo {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
}

/* Texto bienvenida */
.fc-hero__bienvenida {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.fc-hero__precio {
    font-weight: 700;
    font-size: 28px;
    color: #fff;
}

.fc-hero__precio .woocommerce-Price-amount { color: #fff; }

/* Columna derecha: imagen con marco de corchetes */
.fc-hero__right {
    display: flex;
    justify-content: center;
    align-items: center;
}

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


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

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

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

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

.fc-descripcion__texto {
    font-size: 16px;
    line-height: 1.7;
    color: #3a3a4e;
}

.fc-carreras {
    margin-top: 32px;
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.fc-carreras--bloqueada {
    background: #fff0f0;
    border-left: 4px solid #e05252;
}

.fc-carreras--libre {
    background: #f0fff6;
    border-left: 4px solid #52c07e;
}

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

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

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

/* ════════════════════════════════════════════════════════════
   SECCIÓN 3: TEMARIO (ACORDEÓN)
   ════════════════════════════════════════════════════════════ */
.fc-temario {
    padding: 80px 0;
    background: #fff;
}

.fc-acordeon {
    border-top: 1px solid #dde5e2;
}

.fc-acordeon__item {
    border-bottom: 1px solid #dde5e2;
}

.fc-acordeon__trigger {
    width: 100%;
    background: none !important;
    border: none !important;
    outline: none;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-family: 'Darker Grotesque', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #2a293d !important;
    text-align: left;
    transition: opacity 0.2s;
}

.fc-acordeon__trigger:hover { opacity: 0.7; }

.fc-acordeon__trigger[aria-expanded="true"] {
    background: none !important;
    color: #2a293d !important;
}

.fc-acordeon__trigger[aria-expanded="true"] .fc-acordeon__icon {
    transform: rotate(45deg);
}

.fc-acordeon__icon {
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.25s ease;
    color: #2a293d;
    flex-shrink: 0;
    min-width: 20px;
    text-align: center;
}

.fc-acordeon__panel {
    padding: 0 0 20px 38px;
    font-size: 15px;
    line-height: 1.7;
    color: #3a3a4e;
}

.fc-acordeon__panel[hidden] { display: none; }

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

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

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

.fc-certificacion__imagenes {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

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

/* ════════════════════════════════════════════════════════════
   SECCIÓN 5: CURSOS RELACIONADOS
   ════════════════════════════════════════════════════════════ */
.fc-relacionados {
    padding: 80px 0;
    background: #fff;
}

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

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

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

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

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

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

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

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

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

.fc-curso-card__precio {
    font-size: 20px;
    font-weight: 700;
    color: #2a293d;
    margin-bottom: 14px;
}

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

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

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

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

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

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

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

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

    .fc-hero__title { font-size: 28px; }
}
