body, p, li, a, span, label, input, button,
textarea, select, td, th {
    font-family: 'Montserrat', sans-serif;
}
h1, h2, h3, h4, h5, h6,
.home_title, .section_title h2, .footer_title,
.course_title h3 a, .news_post_title a,
.about_title, .sidebar_title, .featured_title h3 a,
.juventud-hero__title, .sec__title, .act-card__title,
.insta-sec__title, .cta-sec__title {
    font-family: 'Libre Baskerville', serif !important;
}
* {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

#barra_menu {
    background-color: #24344B;
}
#barra_menu.estilo_nav_index {
    background-color: rgba(255,255,255,0);
}
#barra_menu.estilo_nav {
    background-color: rgba(36,52,75,1);
}

.header_search_container {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    background: #2c2b31;
    z-index: -1;
    opacity: 0;
    transition: bottom 400ms ease, opacity 400ms ease;
}
.header_search_container.active {
    bottom: -73px;
    opacity: 1;
    z-index: 999 !important;
}
.header_search_content {
    width: 100%;
    height: 73px;
}
.header_search_form {
    display: block;
    position: relative;
    width: 100%;
}
.search_input {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    padding-left: 20px;
    padding-right: 50px;
    background: transparent;
    border-bottom: 2px solid #F85E0C;
    color: #fff;
    font-size: 14px;
}
.search_input::placeholder { color: rgba(255,255,255,0.5); }
.header_search_button {
    position: absolute;
    top: 0; right: 0;
    width: 40px; height: 100%;
    border: none; outline: none;
    background: transparent;
    cursor: pointer;
}
.header_search_button i { font-size: 16px; color: #d9d9d9; transition: color 200ms; }
.header_search_button:hover i { color: #F85E0C; }

.search_wrap { position: relative; }
.search_live_results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 99999;
    max-height: 440px;
    overflow-y: auto;
    border-top: 3px solid #F85E0C;
}
.slr_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}
.slr_item:hover { background: #f5f7fa; text-decoration: none; }
.slr_icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg,#042C49,#24344B);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff; font-size: 13px;
}
.slr_tipo  { font-size: 10px; color: #F85E0C; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.slr_titulo{ font-size: 13px; font-weight: 600; color: #24344B; line-height: 1.3; }
.slr_sub   { font-size: 11px; color: #888; }
.slr_ver_todos {
    display: block; text-align: center;
    padding: 11px; background: #24344B;
    color: #fff !important; font-size: 13px; font-weight: 600;
    text-decoration: none !important;
}
.slr_ver_todos:hover { background: #F85E0C; }
.slr_sin_res { padding: 20px; text-align: center; color: #888; font-size: 13px; }
.slr_cargando{ padding: 16px; text-align: center; color: #aaa; font-size: 13px; }

/* ══════════════════════════════════════════════════════════════════
   TOP BAR  — barra de contacto superior
═══════════════════════════════════════════════════════════════════ */

.top_bar {
    background-color: #0d1b2a !important;
    border-bottom: 2px solid rgba(248,94,12,0.32);
}

.top_bar_content {
    height: 46px !important;
}

/* Texto e iconos del top bar */
.top_bar_contact_list li > div,
.top_bar_contact_list li label {
    color: rgba(255,255,255,0.78) !important;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.top_bar_contact_list li > div:hover,
.top_bar_contact_list li > a > div {
    color: #fff !important;
}

/* ══════════════════════════════════════════════════════════════════
   NAV BAR  — barra de navegación
═══════════════════════════════════════════════════════════════════ */

/* Estado: página no-index (sólido por defecto) */
#barra_menu {
    background-color: #24344B;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Estado: index sin scroll (transparente sobre el hero) */
#barra_menu.estilo_nav_index {
    background-color: rgba(13,27,42,0.35) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

/* Estado: scrolled (sólido con sombra) */
#barra_menu.estilo_nav {
    background-color: #1a2b3d !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
    border-bottom: 2px solid rgba(248,94,12,0.55);
}

/* ── Nav links — estilos de desktop ─────────────────────────────── */
.main_nav li a {
    background: transparent !important;
    color: rgba(255,255,255,0.88) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px !important;
    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main_nav li a:hover,
.main_nav li.active a {
    background: #F85E0C !important;
    color: #fff !important;
}

/* Icono de búsqueda */
.search_button i {
    color: rgba(255,255,255,0.75) !important;
    transition: color 0.2s ease;
}
.search_button:hover i {
    color: #F85E0C !important;
}

/* ── Responsive header — aplica en todas las páginas ─────────────────
   Hamburguesa activa hasta 1280px.
   El container Bootstrap pasa de 960px (lg) a 1140px (xl) en 1200px,
   y el nav completo cabe sin wrapping solo a partir de ~1280px.
──────────────────────────────────────────────────────────────────── */

@media only screen and (max-width: 1280px) {
    .top_bar        { display: none !important; }
    .main_nav       { display: none !important; }
    .search_button  { display: none !important; }
    .logo_principal { max-width: 220px !important; }

    .hamburger {
        display: inline-block !important;
        margin-left: 20px;
        vertical-align: middle;
    }

    /* Navbar siempre sólido en tablet/móvil */
    #barra_menu,
    #barra_menu.estilo_nav_index,
    #barra_menu.estilo_nav {
        background-color: #1a2b3d !important;
        box-shadow: none !important;
        border-bottom: 2px solid rgba(248,94,12,0.4) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* ── Desktop completo (≥1281px) ───────────────────────────────────── */
@media only screen and (min-width: 1281px) {
    .hamburger { display: none !important; }

    /* Logo compacto para que quepan los items del nav */
    .logo_principal { max-width: 260px !important; }

    /* Forzar nav en una sola fila, sin wrapping */
    .main_nav_contaner {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .main_nav {
        display: inline-flex !important;
        flex-wrap: nowrap;
        align-items: center;
        list-style: none;
        margin: 0; padding: 0;
    }
    .main_nav li {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER REDESIGN  — aplica en todas las páginas
═══════════════════════════════════════════════════════════════════ */

.pibg-footer {
    background-color: #f2f1f8 !important;
    padding-top: 72px !important;
    padding-bottom: 0 !important;
    border-top: 3px solid rgba(248,94,12,0.4) !important;
}

.pibg-footer__top {
    padding-bottom: 16px;
}

.pibg-footer__col {
    margin-bottom: 44px;
}

.pibg-footer__logo-link {
    display: inline-block;
    margin-bottom: 18px;
}

.pibg-footer__logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.pibg-footer__verse {
    font-size: 13px;
    color: #666;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 6px;
}

.pibg-footer__verse-ref {
    font-size: 12px;
    color: #F85E0C;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
}

.pibg-footer__social {
    display: flex;
    gap: 10px;
}

.pibg-footer__soc-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666 !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pibg-footer__soc-link:hover {
    background: #F85E0C;
    border-color: #F85E0C;
    color: #fff !important;
    transform: translateY(-2px);
}

.pibg-footer__heading {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #44425a !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pibg-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pibg-footer__list li {
    margin-bottom: 11px;
    font-size: 13px;
    color: #666;
}

.pibg-footer__list li a {
    color: #666 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.pibg-footer__list li a:hover {
    color: #F85E0C !important;
    padding-left: 5px;
}

.pibg-footer__list--contact li {
    display: flex;
    align-items: center;
    gap: 0;
}

.pibg-footer__list-icon {
    color: #F85E0C;
    margin-right: 10px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.pibg-footer__address {
    font-size: 13px;
    color: #666;
    line-height: 1.75;
    margin-bottom: 18px;
}

.pibg-footer__map-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #F85E0C !important;
    border: 1px solid rgba(248,94,12,0.45);
    border-radius: 20px;
    padding: 7px 18px;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.03em;
}

.pibg-footer__map-btn:hover {
    background: #F85E0C;
    color: #fff !important;
    border-color: #F85E0C;
}

.pibg-footer__bottom {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.02em;
}

@media only screen and (max-width: 768px) {
    .pibg-footer {
        padding-top: 52px !important;
    }
    .pibg-footer__col {
        margin-bottom: 32px;
    }
}
