/* ===== FONDO GENERAL ===== */
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: url('../img/pasto-fondo-fundacion-cordobesa-de-equinoterpia.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #1f2933;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

@media (max-width: 576px) {
    .main-container {
        margin: 16px;
        padding: 20px 16px;
        border-radius: 14px;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    border-radius: 999px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .navbar {
        border-radius: 14px;
    }
}

.navbar-scrolled {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
    background-color: rgba(255, 255, 255, 0.97) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1f2933;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border-radius: 999px;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: rgba(25, 135, 84, 0.08);
    color: #15803d;
}

/* ===== HOME SECTION ===== */
.home-section {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.home-card {
    border-radius: 20px;
    background: radial-gradient(circle at top left, #e0f2fe 0, #f9fafb 35%, #ffffff 70%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    position: relative;
    overflow: hidden;
}

.home-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-left: 4px solid #22c55e;
    opacity: 0.8;
}

.home-card .card-body {
    position: relative;
    z-index: 1;
}

/* El centrado NO afecta a la lista gracias al fix más abajo */
.home-card .card-body,
.home-card .home-title,
.home-card .home-lead,
.home-card .home-subtitle,
.home-card .home-cta-row {
    text-align: center;
}

.home-badge {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

.home-title {
    font-size: clamp(1.9rem, 2.7vw + 1rem, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.home-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-top: 1.5rem;
}

.home-lead {
    font-size: 1rem;
    color: #4b5563;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.home-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
}

/* ============================================
   FIX PARA LA LISTA DE HIGHLIGHTS
   ============================================ */

.home-card .home-highlight-list {
    text-align: left !important; /* evita centrado heredado */
}

.home-highlight-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    width: 100%;
}

.home-highlight-list li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.45rem;
}

.home-highlight-icon {
    flex-shrink: 0;
    font-size: 1.05rem;
    color: #16a34a;
    margin-top: 0.2rem;
}

.home-highlight-text {
    display: inline;
    line-height: 1.4;
}

.home-highlight-text strong {
    display: inline;
    font-weight: 600;
}

/* ===== BOTONES ===== */
.home-cta-row {
    margin-top: 1.5rem;
}

.home-cta-row .btn {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.home-cta-btn {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.home-cta-btn-alt {
    border-width: 1.5px;
}

/* ===== TARJETA SOCIAL ===== */
.home-social-card {
    border-radius: 20px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
}

.home-social-header {
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(90deg, #1877f2 0%, #1d9bf0 40%, #22c55e 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.home-social-header span {
    display: inline-flex;
    align-items: center;
}

.home-social-tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

/* FB plugin fix */
.fb-container {
    width: 100%;
}

.fb-container .fb-page {
    width: 100% !important;
    display: block;
}

.home-social-card .fb-page,
.home-social-card .fb_iframe_widget,
.home-social-card .fb_iframe_widget span,
.home-social-card .fb_iframe_widget iframe {
    width: 100% !important;
    max-width: 100% !important;
}


.home-social-card .fb_iframe_widget iframe {
    width: calc(100% + 12px) !important;
    margin-right: -12px !important;
}

/* ===== PILLS ===== */
.home-pills-row {
    margin-top: 2.8rem;
}

.home-pill {
    background: rgba(249, 250, 251, 0.96);
    border-radius: 18px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-pill h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #111827;
}

.home-pill p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.home-pill-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, 0.09);
    color: #16a34a;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.home-pill-link {
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: #2563eb;
}

.home-pill-link:hover {
    text-decoration: underline;
}

.home-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
    border-color: rgba(37, 99, 235, 0.65);
}

/* ===== COURSE MODULE CARDS ===== */
.course-module-card {
    border-radius: 0.75rem;
    background-color: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

.course-module-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
}

/* ===== REVEAL ON SCROLL (simple) ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.45s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 3rem;
    padding: 2.5rem 1.5rem 2rem;
    background: #f3f4f6;
    border-radius: 18px;
    border-top: 3px solid #d1d5db;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.footer h5 {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 1.5rem;
}

.footer .bg-white {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.footer a {
    color: #1d4ed8;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer i.fa-lock,
.footer i.fa-solid.fa-lock {
    font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .home-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .home-title {
        font-size: 1.8rem;
    }

    .home-card .card-body {
        padding: 1.75rem;
    }

    .home-pills-row {
        margin-top: 2rem;
    }
}

/* ===== TARJETAS INFO (DISERTANTES + POR QUÉ NUESTRO CURSO) ===== */

.course-speakers-card,
.course-why-card {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: linear-gradient(135deg, #eef2ff 0%, #f9fafb 40%, #ecfdf3 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.course-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.4rem;
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 35%, #22c55e 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-info-header i {
    font-size: 1rem;
}

.course-info-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.course-speakers-card .card-body,
.course-why-card .card-body {
    padding: 1.35rem 1.5rem 1.4rem;
}

.course-speaker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.course-speaker-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #111827;
}

.course-speaker-btn {
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    padding-inline: 0.95rem;
}

.course-speaker-btn i {
    font-size: 0.85rem;
}

.course-speakers-card hr {
    margin: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.course-speaker-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.course-speaker-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Textos dentro de “Por qué nuestro curso” */
.course-why-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.65rem;
}

.course-why-list {
    margin-top: 0.9rem;
}

/* Lista de jornadas con íconos */
.course-jornadas-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.course-jornadas-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
    color: #374151;
}

.course-jornadas-list i {
    flex-shrink: 0;
    font-size: 0.95rem;
    margin-top: 0.13rem;
    color: #16a34a;
}

.course-jornadas-list strong {
    font-weight: 600;
}

/* ============================================
   TARJETA: PROGRAMA DEL CURSO
   Igual estilo que Disertantes / Por qué curso
   ============================================ */

.course-program-card {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: linear-gradient(135deg, #eef2ff 0%, #f9fafb 40%, #ecfdf3 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    margin-top: 2rem;
}

.course-program-card .card-body {
    padding: 1.6rem 1.6rem 1.4rem;
}

/* Texto de introducción destacado */
.course-program-intro {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    margin-bottom: 1rem;
}

/* Lista de módulos */
.course-program-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.course-program-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
    color: #374151;
    font-size: 1rem;
    line-height: 1.45;
}

.course-program-list i {
    flex-shrink: 0;
    color: #16a34a;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.course-program-list strong {
    font-weight: 700;
}

/* ==== CTAs FINALES: BOTONES GRANDES ==== */
/* =========================================
   GRANDES CTAs FINALES (CONTACTO / INSCRIPCIÓN)
   ========================================= */

.course-bottom-cta-row {
    margin-top: 2.5rem;
}

/* El anchor se comporta como tarjeta/botón completo */
.course-big-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 170px;
    width: 100%;
    padding: 22px 20px;

    border-radius: 20px;
    text-decoration: none;
    text-align: center;

    color: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.25);
    overflow: hidden;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

/* Variante verde sólida */
.course-big-cta--green {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 60%, #4ade80 100%);
}

/* Variante con la misma paleta del header de "Disertantes" */
.course-big-cta--gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #22c55e 100%);
}

/* Contenido interno */
.course-big-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(2px);

    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.course-big-cta-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.course-big-cta-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 320px;
    opacity: 0.92;
}

/* Hover / focus: sutil levantado y un poquito más brillante */
.course-big-cta:hover,
.course-big-cta:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.35);
    filter: brightness(1.05);
}

/* Para accesibilidad en teclado */
.course-big-cta:focus-visible {
    outline: 2px solid rgba(248, 250, 252, 0.9);
    outline-offset: 3px;
}

/* Responsive: un poco más bajos en móviles */
@media (max-width: 768px) {
    .course-big-cta {
        min-height: 150px;
        padding: 18px 18px;
    }

    .course-big-cta-title {
        font-size: 0.98rem;
    }

    .course-big-cta-subtitle {
        font-size: 0.86rem;
    }
}

#pdf-content {
    padding-top: 0 !important;
}

