/* Caribe Jurídicos — overrides tema visual */
.cj-ads-notice-bar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 12px;
    text-align: center;
    position: relative;
    z-index: 1040;
}
.cj-ads-notice-bar a {
    color: #02D7D7;
    margin-left: 8px;
    text-decoration: underline;
}
.cj-theme-header { top: 28px; padding-top: 0; }
.cj-theme-body { padding-top: 100px; }
.cj-theme-body.cj-home { padding-top: 100px; }
.cj-theme-header.has-carousel ~ .cj-main-content,
.cj-home .cj-main-content { padding-top: 0; }

.cj-disclaimer-bar {
    background: #7c2d12;
    color: #ffedd5;
    font-size: 12px;
    line-height: 1.45;
    padding: 10px 0;
    width: 100%;
}
.cj-disclaimer-bar a { color: #fdba74; text-decoration: underline; margin-left: 6px; }
.cj-disclaimer-bar strong { color: #fed7aa; }

.cj-main-content { min-height: 40vh; }

.cj-logo-mobile { color: #fff; font-weight: 700; font-size: 1rem; }

.btn-portal-disabled,
.btn-portal-disabled:hover {
    opacity: 0.85;
    cursor: not-allowed !important;
    pointer-events: auto;
}
.cj-disabled-note {
    font-size: 13px;
    color: #1A2E66;
    max-width: 260px;
    white-space: normal;
}

.cj-footer-brand-note {
    font-size: 14px;
    color: #333;
    margin-top: -10px;
    margin-bottom: 1rem;
}

#contenedorMenuPersona.active { top: 0; z-index: -5; position: relative; }
#contenedorMenuEmpresa { display: none; }
#contenedorMenuEmpresa.active { display: block; top: -110px; z-index: -10; position: relative; }
#contenedorMenuPersona:not(.active) { display: none; }

.slick-prev, .slick-next {
    background: none !important;
    color: #1A2E66;
    font-size: 24px;
    width: 30px;
    height: 30px;
}
.slick-prev:before, .slick-next:before { color: #1A2E66; font-size: 24px; }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    padding: 12px 0;
}
.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cookie-banner p { margin: 0; font-size: 14px; color: #444; }
.cookie-banner-actions { display: flex; gap: 8px; }

.page-hero-theme {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #1A2E66, #009FE3);
    color: #fff;
    text-align: center;
}
.page-hero-theme h1 { font-size: 2.2rem; margin-bottom: .75rem; }
.legal-content-theme {
    max-width: 820px;
    margin: 2rem auto 4rem;
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.legal-alert-theme {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.cj-section-lead { max-width: 720px; }

.cj-independencia-strip { background: #fff; }

.cj-icon-card-img { max-width: 72px; height: auto; }

.cj-gallery-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(26, 46, 102, .12);
}
.cj-gallery-body { background: #fff; }
.cj-gallery-img { display: block; object-fit: cover; max-height: 220px; width: 100%; }

.cj-academia-card { border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.cj-academia-img { height: 180px; object-fit: cover; }

.cj-diferencia-section {
    background: linear-gradient(135deg, #1A2E66 0%, #009FE3 55%, #02D7D7 100%);
    border-radius: 24px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
.cj-diferencia-list li { margin-bottom: .65rem; line-height: 1.5; }
.cj-diferencia-avatar { max-width: 120px; border-radius: 50%; border: 3px solid #02D7D7; }

.cj-page-banner-strip img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 200px;
}

.cj-nosotros-visual img { border-radius: 12px; width: 100%; object-fit: cover; }

@media (max-width: 991px) {
    .cj-theme-body { padding-top: 92px; }
    .multicarrusel-tamano-minimo.persona.active { top: 0; }
}

@media (min-width: 992px) {
    .cj-theme-body { padding-top: 116px; }
    .cj-theme-header.has-carousel ~ .cj-main-content,
    body.cj-home .cj-main-content { margin-top: 100px; }
}

.cj-brand-logo { max-height: 40px; width: 180px; height: 40px; object-fit: contain; }
.cj-footer-logo { max-width: 280px; width: 280px; height: 62px; object-fit: contain; }

.cj-home-h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
}

.cj-home-intro { max-width: 920px; margin-left: auto; margin-right: auto; }

/* Seccion CTA educativa (alias semantico del tema) */
.seccion-inscripcion-educativa .parte-textos h2,
.seccion-inscripcion-educativa .parte-botones .btn { font-weight: 600; }

.page-hero-theme {
    padding: 120px 0 40px;
    background: linear-gradient(180deg, #e8f7f7 0%, #fff 100%);
}
.page-hero-theme h1 { color: #1A2E66; font-size: 2rem; margin-bottom: .75rem; }
.legal-content-theme { max-width: 820px; }
.legal-alert-theme {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 14px;
}

/* --- Rendimiento, accesibilidad y SEO --- */
@font-face {
    font-family: "Font Awesome 5 Free";
    font-display: swap;
}
@font-face {
    font-family: "Font Awesome 5 Brands";
    font-display: swap;
}

.cj-banner-img {
    aspect-ratio: 1366 / 533;
    object-fit: cover;
    height: auto;
}
@media (max-width: 767px) {
    .cj-banner-img { aspect-ratio: 400 / 440; }
}

.cj-brand-logo,
.cj-footer-logo {
    object-fit: contain;
}

.menu-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.cj-ads-notice-bar a {
    color: #5eead4;
    font-weight: 600;
}

.cj-theme-footer a,
.cj-disclaimer-bar a,
.cookie-banner a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bg-azul-navi .nav-link.btn-link,
.bg-azul-navi .navbar-nav .btn-link.nav-link {
    color: #fff !important;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.75rem;
}
.bg-azul-navi .nav-link.btn-link .underline,
.bg-azul-navi .navbar-nav .btn-link.nav-link .underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-rrss a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.btn-buscador,
.botonBuscador {
    min-width: 44px;
    min-height: 44px;
}

.cj-program-icon { max-width: 120px; height: auto; object-fit: contain; }

img[width][height] {
    height: auto;
}
