/* Ajustes compartidos para escritorio, tableta y móvil. */
html { width: 100%; min-width: 0; }
body { min-width: 0; overflow-wrap: anywhere; }
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #edb32d; outline-offset: 3px;
}
body.boxed #wrapper, body.boxed .page-wrapper { width: 100%; max-width: 100%; min-width: 0; }
body.boxed .page-wrapper.contenidos > .container-fluid > .row {
    display: flex; flex-wrap: wrap; align-items: stretch;
}
body.boxed .page-wrapper.contenidos > .container-fluid > .row > [class*="col-"] { min-width: 0; }
.col-md-9.contenidos { justify-content: flex-start; min-height: calc(100svh - 76px); }
.col-md-3.barra { min-height: calc(100svh - 76px); }
.page-header .navbar > .container-fluid { display: flex; align-items: center; gap: 12px; min-height: 70px; }
.page-header .header-logo { order: 0; flex: 0 1 auto; margin-right: auto; }
.page-header .header-links { order: 1; flex: 0 0 auto; width: auto; margin-left: auto; }
.page-header .menu-toggle { display: none; }
.page-header .header-logo img { width: 150px !important; max-width: 40vw; max-height: 62px; object-fit: contain; margin: 0 !important; }
.header-account .dropdown-container { width: min(320px, calc(100vw - 24px)); max-width: calc(100vw - 24px); }
.header-search .exp-search-input { max-width: min(320px, 65vw); }
/* El encabezado y la cuenta funcionan sin el JavaScript del tema externo. */
.page-header.ca-site-header { position: relative; z-index: 1020; border: 0; }
.ca-site-header .navbar { margin: 0; padding: 0; min-height: 0; }
.ca-site-header .navbar::after { content: none; display: none; }
.ca-site-header .navbar > .container-fluid { position: relative; }
.ca-site-header .header-logo, .ca-site-header .header-logo a { height: auto; min-height: 0; padding: 0; }
.ca-site-header .header-logo .ca-brand-home {
    display: inline-flex; align-items: center; gap: 20px; position: relative;
    text-decoration: none; border-radius: 8px; cursor: pointer;
}
.ca-site-header .header-logo .ca-brand-home img {
    display: block; width: 112px !important; height: auto;
    max-width: none; max-height: 70px; padding: 0; object-fit: contain;
}
.ca-brand-home-label {
    display: flex; align-items: center; gap: 8px; padding-left: 20px;
    border-left: 1px solid #dce4ef; color: #173d6b;
    font: 600 13px/1.5 Arial, sans-serif;
}
.ca-brand-home:hover .ca-brand-home-label { color: #145399; text-decoration: underline; text-underline-offset: 4px; }
.ca-site-header .ca-brand-home:focus-visible { outline: 3px solid #145399; outline-offset: 5px; }
.ca-site-header .header-links { display: block; order: 2; position: static; margin: 0; padding: 0; }
.ca-site-header .header-account { position: relative; margin: 0; padding: 0; }
.ca-site-header .ca-account-toggle {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px;
    border: 1px solid #dce4ef !important; border-radius: 24px;
    background: #f0f5fb !important; color: #173d6b !important;
    font: 600 14px/1.4 Arial, sans-serif; cursor: pointer;
}
.ca-site-header .ca-account-toggle:hover, .ca-site-header .ca-account-toggle:focus, .ca-site-header .ca-account-toggle:active { background: #e7eef8 !important; color: #123964 !important; }
.ca-site-header button:focus-visible { outline: 3px solid #edb32d; outline-offset: 3px; }
.ca-site-header .ca-account-toggle .lnr-user {
    display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 50%; background: #eaf1fa !important; color: #145399 !important; font-size: 20px;
}
.ca-site-header .header-account .dropdown-container[hidden] { display: none !important; }
.ca-site-header .header-account .dropdown-container:not([hidden]) {
    display: block; position: absolute; top: calc(100% + 8px); right: 0; left: auto;
    visibility: visible; opacity: 1; transform: none; margin: 0; padding: 20px;
    background: #fff; color: #122449; box-shadow: 0 6px 24px #0003; text-align: center;
    max-height: calc(100dvh - 100px); overflow-y: auto;
}
.ca-site-header .header-account .dropdown-container .title { color: #122449; }
.ca-site-header .header-search { position: static; order: 1; flex: 0 0 40px; width: 40px; height: 44px; margin: 0; padding: 0; }
.ca-site-header .exp-search { position: static; width: 40px; height: 44px; min-width: 0; overflow: visible; background: transparent; }
.ca-site-header .exp-icon-search, .ca-site-header .exp-search-close {
    display: grid; place-items: center; position: static; width: 40px; height: 44px;
    border: 0; padding: 0; background: transparent; color: #122449; font-size: 20px; cursor: pointer;
}
.ca-site-header .exp-search-input, .ca-site-header .exp-search-submit, .ca-site-header .exp-search-close { display: none; }
.ca-site-header .exp-search.ca-search-open {
    position: absolute; inset: 0; z-index: 1; display: flex; align-items: center;
    width: 100%; height: 100%; padding: 8px 12px; background: #f3e7e7;
}
.ca-site-header .ca-search-open form { display: flex; align-items: center; gap: 8px; width: 100%; }
.ca-site-header .ca-search-open .exp-search-input {
    display: block; position: static; flex: 1; width: 100%; min-width: 0; max-width: none;
    height: 44px; padding: 8px 12px; border: 1px solid #122449; background: #fff; color: #122449;
}
.ca-site-header .ca-search-open .exp-icon-search, .ca-site-header .ca-search-open .exp-search-submit { display: none; }
.ca-site-header .ca-search-open .exp-search-close { display: grid; flex-shrink: 0; }
.ca-course-navigation { width: 100%; min-width: 0; }
.ca-course-menu-toggle { display: none; }
.ca-course-menu-panel[hidden] { display: none !important; }
.menu_webinars ul li a { min-height: 48px; overflow-wrap: anywhere; }
.menu_webinars ul li a span.material-symbols-outlined { flex-shrink: 0; }
.menu_webinars ul li a:hover { transform: none; }
.tit_webinar h2 { font-size: clamp(18px, 1.6vw, 25px); line-height: 1.35; }
.contenidos h1, .contenidos h2, .contenidos h3, .contenidos h4 { overflow-wrap: anywhere; }
.contenidos .row { min-width: 0; }
.contenidos #container { position: relative; width: 100%; height: min(78svh, 900px); min-height: 360px; }
.contenidos #container .flipbook-main-wrapper { max-width: 100%; }
.contenidos video, .contenidos .plyr { width: 100%; max-width: 100%; }
.contenidos iframe[src*="youtube"], .contenidos iframe[src*="vimeo"] {
    width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0;
}
.contenidos table { display: block; max-width: 100%; overflow-x: auto; }
.contenidos .form-control, .contenidos textarea, .contenidos select { width: 100%; max-width: 100%; }
.contenidos input[type="file"] { width: 100%; }
.contenidos .panel, .contenidos .panel-body, .contenidos .panel-title { min-width: 0; }
.contenidos .radio label { display: block; padding-left: 28px; white-space: normal; }
.contenidos .radio input { width: 20px; height: 20px; margin-left: -28px; }
.contenidos #chartdiv_, .contenidos [id^="chartdiv"] { max-width: 100%; }
.modal-dialog { max-width: calc(100vw - 24px); }
.modal-content { max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-body .btn { white-space: normal; max-width: 100%; min-height: 44px; }
.modal-header h2 { margin-right: 24px; font-size: clamp(21px, 3vw, 28px); }
.modal .modal-header { position: relative; padding-right: 56px; }
.modal .modal-header .close { position: absolute; top: 8px; right: 8px; margin: 0; float: none; min-width: 36px; min-height: 36px; }
.ca-payment-main, .ca-payment-product { min-width: 0; }
.ca-payment-main dl, .ca-payment-main dd { overflow-wrap: anywhere; }
.ca-payment-main input, .ca-payment-main select { min-height: 44px; }
.footer-copyright { padding: 14px; line-height: 1.5; }
.ca-admin-entry { width: 100%; padding: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #eef5ff; color: #14345d; }

/* La entrada y el login permiten desplazamiento y aumento de texto. */
body.gccentrada { overflow: auto !important; }
body.gccentrada .page-wrapper { min-height: 100svh; padding: 24px; }
body.gccentrada .container.form-card { position: relative; bottom: auto; margin: 0 auto; width: 100%; padding-top: max(140px, 20svh); }
body.gccentrada .container.form-card > [class*="col-"] { width: min(100%, 420px); margin-left: auto; float: none; }
body.gccentrada .form-card.gcc, body.gccentrada .form-card.gcc form { width: 100%; }
body.gccentrada .form-card.gcc .form-control { width: 100%; min-height: 48px; font-size: 16px; }
body.gccentrada .form-card.gcc .btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 48px; height: auto !important; padding: 14px 16px;
    font-size: 16px; line-height: 1.4; white-space: normal;
}
body.gccentrada .form-card.gcc .btn .lnr { flex-shrink: 0; }
body.gccentrada .entrada22 { position: fixed; inset: 0; z-index: 2000; height: 100dvh; overflow-y: auto; padding: 24px; }
body.gccentrada .entrada22 .btn-entrada-22 { width: min(340px, 100%); right: 6vw; max-width: calc(100vw - 48px); }
body.gccentrada .entrada22 .btn-entrada-22 img { max-width: 100%; }

@media (max-width: 991px) {
    .col-md-9.contenidos, .col-md-3.barra { width: 100%; min-height: 0; height: auto; float: none; }
    .col-md-9.contenidos { overflow: visible; padding-bottom: 20px; }
    .col-md-3.barra.menu { padding: 0; }
    .col-md-3.barra:not(.menu) { padding: 20px; flex-direction: row; align-items: center; gap: 16px; justify-content: center; }
    .col-md-3.barra:not(.menu) > div { max-width: 50%; }
    .col-md-3.barra:not(.menu) img { max-height: 130px; width: auto !important; margin: 0 auto !important; }
    .ca-course-menu-toggle {
        display: flex; justify-content: space-between; align-items: center; width: 100%;
        padding: 16px 20px; min-height: 52px; border: 0; border-bottom: 1px solid #5175a0;
        background: #0d3268; color: white; font: 600 16px/1.4 Arial, sans-serif; text-align: left;
    }
    .ca-course-menu-toggle span { margin-left: 12px; }
    .ca-course-menu-panel { padding: 0 12px 12px; }
    .tit_webinar h2 { text-align: left; }
    .tit_webinar a.regresar { display: none; }
    .menu_webinars ul li a { min-height: 48px; }
    .contenidos .menu-bajo-display { flex-wrap: wrap; gap: 16px; }
    .contenidos #container { height: 70svh; min-height: 340px; }
    .col-md-9.contenidos .row > .col-md-2, .col-md-9.contenidos .row > .col-md-3,
    .col-md-9.contenidos .row > .col-md-4, .col-md-9.contenidos .row > .col-md-6 { width: 50%; float: left; }
    .col-md-9.contenidos .row > .col-md-12 { width: 100%; }
    body.gccentrada .page-wrapper .tituloentrada { position: static; text-align: center; }
    body.gccentrada .page-wrapper .tituloentrada img { max-width: min(300px, 80vw); }
    body.gccentrada .container.form-card { max-width: 520px; padding-top: 24px; }
    body.gccentrada .container.form-card > [class*="col-"] { width: 100%; margin: 0; padding: 0; }
    body.gccentrada .entrada22 .tituloentrada { position: static; margin: 0 auto auto; }
    body.gccentrada .entrada22 .tituloentrada img { max-width: min(300px, 75vw); }
    body.gccentrada .entrada22 .btn-entrada-22 { position: static; height: auto; margin: auto; }
    body.gccentrada .entrada22 .logo22 { position: static; }
}

@media (max-width: 575px) {
    .page-header .navbar > .container-fluid { padding: 8px 12px; gap: 8px; min-height: 62px; }
    .page-header .header-logo img { max-width: 128px; max-height: 52px; }
    .ca-site-header .header-logo .ca-brand-home { gap: 10px; }
    .ca-site-header .header-logo .ca-brand-home img { width: 88px !important; max-height: 56px; }
    .ca-brand-home-label { display: none; }
    .header-link > a { min-width: 40px; min-height: 44px; }
    .page-wrapper.contenidos > .container-fluid { padding-right: 12px; padding-left: 12px; }
    .page-wrapper.contenidos > .container-fluid > .row { margin-right: -12px; margin-left: -12px; }
    .col-md-9.contenidos > .row { padding: 16px 8px !important; }
    .col-md-9.contenidos .row { margin-left: 0; margin-right: 0; }
    .contenidos h1, .contenidos h2.size-lg { font-size: clamp(23px, 6vw, 31px); line-height: 1.3; }
    .contenidos h4.sectoter { margin: 12px 0 20px; font-size: 20px; letter-spacing: .03em; }
    .contenidos .category-title h3 { white-space: normal; height: auto; }
    .contenidos .category-image img { width: 100%; height: auto; object-fit: contain; }
    .col-md-9.contenidos .row > .col-md-6 { width: 100%; }
    .contenidos .panel-heading, .contenidos .panel-body { padding-right: 12px; padding-left: 12px; }
    #delivery1 .panel-body label { font-size: 16px; line-height: 1.6; }
    .contenidos .btn { white-space: normal; min-height: 44px; }
    .modal-dialog { width: auto; margin: 12px; }
    .modal-body, .modal-header, .modal-footer { padding: 16px; }
    .modal-content { max-height: calc(100dvh - 24px); }
    body.gccentrada .page-wrapper { padding: 18px 16px 64px; }
    body.gccentrada .entrada22 { padding: 24px 20px 64px; }
    body.gccentrada .entrada22 .btn-entrada-22 button { font-size: 16px; letter-spacing: .2em; }
    .ca-payment-header { gap: 12px; padding: 14px 16px; }
    .ca-payment-header img { max-width: 48vw; }
    .ca-payment-main { padding: 24px 16px; }
    .ca-payment-main h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
