/* Estilos especificos del apartado de Opiniones de Formacion */
.opf-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #0d6efd 45%, #6610f2 100%);
    color: #fff;
    padding: 90px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.opf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0, transparent 45%),
                      radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.1) 0, transparent 40%);
    pointer-events: none;
}

.opf-hero h1 {
    color: #fff;
    font-weight: 700;
    font-size: 2.6rem;
    margin-bottom: 18px;
    position: relative;
}

.opf-hero p.opf-lead {
    font-size: 1.15rem;
    max-width: 760px;
    margin: 0 auto;
    opacity: 0.92;
    position: relative;
}

.opf-stats {
    margin-top: -55px;
    position: relative;
    z-index: 3;
}

.opf-stat-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(13, 30, 80, 0.15);
    padding: 30px 18px;
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.opf-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(13, 30, 80, 0.22);
}

.opf-stat-number {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.opf-stat-label {
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.opf-section-title {
    text-align: center;
    margin: 70px 0 40px;
}

.opf-section-title h2 {
    font-weight: 700;
}

.opf-section-title .opf-underline {
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    margin: 14px auto 0;
    border-radius: 2px;
}

.opf-course-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 5px solid #0d6efd;
}

.opf-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.13);
}

.opf-course-card .opf-cc-body {
    padding: 26px 24px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.opf-cc-entidad {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 6px;
}

.opf-cc-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: #212529;
}

.opf-cc-fecha {
    font-size: 0.85rem;
    color: #8a8f98;
    margin-bottom: 18px;
}

.opf-cc-metrics {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.opf-cc-rating {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #212529;
    line-height: 1;
}

.opf-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.95rem;
    line-height: 1;
}

.opf-star {
    position: relative;
    display: inline-block;
    color: #d8dee9;
}

.opf-star-full {
    color: #ffc107;
}

.opf-star-half::before {
    content: "★";
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.opf-cc-bars {
    margin-top: auto;
}

.opf-cc-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: #6c757d;
}

.opf-cc-bar-row span.opf-bar-label {
    flex: 0 0 138px;
}

.opf-cc-bar-track {
    flex: 1;
    background: #eef1f6;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}

.opf-cc-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
}

.opf-cc-bar-pct {
    flex: 0 0 40px;
    text-align: right;
    font-weight: 700;
    color: #212529;
}

.opf-cc-footer {
    background: #f6f8fc;
    padding: 12px 24px;
    font-size: 0.82rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.opf-cc-footer strong {
    color: #212529;
}

.opf-cc-official {
    margin: 0 24px 20px;
    background: #eefaf3;
    border: 1px solid #cdeedd;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.78rem;
    color: #146c43;
    line-height: 1.4;
}

.opf-cc-official strong {
    color: #0f5132;
}

.opf-carousel-wrap {
    position: relative;
    padding: 10px 0 20px;
}

.opf-carousel-viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.opf-carousel-track {
    display: flex;
    gap: 22px;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.opf-carousel-track.opf-dragging {
    cursor: grabbing;
    transition: none !important;
}

.opf-testimonio-card {
    flex: 0 0 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    padding: 28px 26px 22px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.opf-testimonio-quote-icon {
    font-family: Georgia, serif;
    font-size: 3.2rem;
    line-height: 1;
    color: #dce4f7;
    font-weight: 700;
    margin-bottom: -10px;
}

.opf-testimonio-texto {
    font-size: 0.98rem;
    color: #33394a;
    line-height: 1.55;
    flex: 1;
    font-style: italic;
}

.opf-testimonio-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef1f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.opf-testimonio-curso {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0d6efd;
    max-width: 210px;
}

.opf-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    color: #0d6efd;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.opf-carousel-arrow:hover {
    background: #0d6efd;
    color: #fff;
}

.opf-carousel-arrow.opf-prev {
    left: -6px;
}

.opf-carousel-arrow.opf-next {
    right: -6px;
}

.opf-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.opf-carousel-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dce4f7;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.opf-carousel-dots span.opf-active {
    background: #0d6efd;
    transform: scale(1.25);
}

.opf-cta {
    background: linear-gradient(135deg, #101a33, #1c2f5e);
    color: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    margin: 80px 0 40px;
}

.opf-cta h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.opf-cta p {
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 24px;
}

@media (max-width: 767px) {
    .opf-hero h1 {
        font-size: 1.9rem;
    }

    .opf-testimonio-card {
        flex: 0 0 280px;
    }

    .opf-carousel-arrow {
        display: none;
    }

    .opf-cc-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
