/* Plexo - tema del portal público (BS5). Los colores llegan por cliente desde main_theme_vars.php */
:root {
    --px-primary: #292e52; --px-primary-rgb: 41, 46, 82;
    --px-secondary: #27912e; --px-secondary-rgb: 39, 145, 46;
    --px-gov: #3366cc;
    --px-on-primary: #fff;
    --px-bg: #f5f6fa; --px-surface: #fff; --px-text: #1d2033; --px-muted: #5d6278; --px-line: #e3e5ee;
    --px-radius: 14px; --px-radius-sm: 8px;
    --px-shadow: 0 1px 2px rgba(20, 24, 50, .04), 0 10px 30px -12px rgba(20, 24, 50, .16);
    --px-shadow-hover: 0 16px 36px -14px rgba(20, 24, 50, .24);
    /* Tarjetas: blancas con filete tenue, sin sombra en reposo */
    --px-card-bg: var(--px-surface); --px-card-line: rgba(var(--px-primary-rgb), .09);
    --px-card-shadow: none;
    --px-font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --bs-body-font-family: var(--px-font);
    --bs-body-color: var(--px-text);
    --bs-primary: var(--px-primary); --bs-primary-rgb: var(--px-primary-rgb);
    --bs-secondary-rgb: var(--px-secondary-rgb);
    --bs-link-color: var(--px-primary); --bs-link-color-rgb: var(--px-primary-rgb);
    --bs-link-hover-color: var(--px-secondary); --bs-link-hover-color-rgb: var(--px-secondary-rgb);
    --bs-border-radius: var(--px-radius-sm);
}

/* Base */
body.px-site { background-color: var(--px-bg); color: var(--px-text); font-family: var(--px-font); }
a, a:visited { color: var(--bs-link-color); text-decoration: none; }
a:hover { color: var(--bs-link-hover-color); }
:focus-visible { outline: 3px solid #ffbf47 !important; outline-offset: 2px; }
.px-skip { position: absolute; left: -999px; top: 0; z-index: 2000; background: #ffbf47; color: #000 !important; padding: .5rem 1rem; font-weight: 600; }
.px-skip:focus { left: 8px; top: 8px; }
.px-link-btn { background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.px-link-btn:hover { text-decoration: underline; }

/* Botones con los colores del cliente */
.btn-primary {
    --bs-btn-bg: var(--px-primary); --bs-btn-border-color: var(--px-primary);
    --bs-btn-hover-bg: var(--px-secondary); --bs-btn-hover-border-color: var(--px-secondary);
    --bs-btn-active-bg: var(--px-secondary); --bs-btn-active-border-color: var(--px-secondary);
    --bs-btn-color: var(--px-on-primary); --bs-btn-hover-color: #fff;
}
.btn-outline-primary {
    --bs-btn-color: var(--px-primary); --bs-btn-border-color: var(--px-primary);
    --bs-btn-hover-bg: var(--px-primary); --bs-btn-hover-border-color: var(--px-primary); --bs-btn-hover-color: var(--px-on-primary);
}
.btn-px { background: var(--px-secondary); color: #fff !important; border: 0; border-radius: 999px; padding: .65rem 1.35rem; font-weight: 600; }
.btn-px:hover { filter: brightness(1.08); }

/* Barra GOV.CO */
.px-govbar { background: var(--px-gov); color: #fff; font-size: .85rem; }
.px-govbar .container, .px-govbar .container-fluid { min-height: 40px; }
.px-govbar img { height: 26px; width: auto; display: block; }
.px-govbar a, .px-govbar button { color: #fff !important; }
.px-govbar .px-gb-btn { background: transparent; border: 1px solid rgba(255, 255, 255, .4); border-radius: 6px; padding: .15rem .55rem; font-size: .8rem; line-height: 1.4; white-space: nowrap; }
.px-govbar .px-gb-btn:hover { background: rgba(255, 255, 255, .15); }
.px-govbar .px-search { width: 260px; }
.px-govbar .px-search .form-control { height: 28px; padding: .1rem .75rem; font-size: .82rem; background: #fff; border: 0; }
.px-govbar .px-search .btn { height: 28px; padding: 0 .65rem; font-size: .82rem; background: rgba(0, 0, 0, .25); border: 0; color: #fff; }
.px-govbar .px-search .btn:hover { background: rgba(0, 0, 0, .4); }

/* Encabezado */
.px-header { background: var(--px-surface); border-bottom: 1px solid var(--px-line); }
.px-header .px-brand { display: flex; align-items: center; gap: 1rem; color: var(--px-text) !important; }
.px-header .px-brand img { height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.px-brand-name { font-weight: 700; font-size: 1.3rem; line-height: 1.15; color: var(--px-primary); }
.px-brand-sub { font-size: .82rem; color: var(--px-muted); }
.px-header-img a { display: block; }
.px-header-img img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: center; }
.px-header-img.px-caja .container, .px-header-img.px-caja .container-fluid { padding-top: .75rem; padding-bottom: .75rem; }
.px-header-img.px-caja img { max-height: 220px; width: auto; max-width: 100%; }
.px-search { max-width: 380px; width: 100%; }
.px-search .form-control { border-radius: 999px 0 0 999px; border-color: var(--px-line); background: var(--px-bg); }
.px-search .btn { border-radius: 0 999px 999px 0; }

/* Menú principal */
.px-nav { background: var(--px-primary) !important; position: sticky; top: 0; z-index: 1020; padding: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.px-nav .navbar-brand img { height: 40px; width: auto; }
.px-nav .nav-link { color: rgba(255, 255, 255, .9) !important; font-weight: 500; padding: .9rem 1rem !important; }
.px-nav .nav-link:hover, .px-nav .nav-link.show, .px-nav .nav-link:focus-visible { color: #fff !important; background: rgba(255, 255, 255, .1); }
.px-nav .navbar-toggler { border-color: rgba(255, 255, 255, .45); margin: .5rem 0; }
.px-nav .navbar-toggler-icon { filter: invert(1) brightness(2); }
.px-nav .px-search .form-control { background: rgba(255, 255, 255, .95); border: 0; }
.px-nav .px-search .btn { background: var(--px-secondary); border-color: var(--px-secondary); color: #fff; }
.px-nav .ttpx_senias { display: none; }
.px-nav .dropdown-menu { border: 0; border-radius: 0 0 var(--px-radius) var(--px-radius); box-shadow: 0 12px 30px rgba(20, 24, 50, .18); padding: 1rem; margin-top: 0 !important; }
.px-mega-cols { column-gap: 1.5rem; }
.px-mega-c2 { columns: 2; min-width: 520px; }
.px-mega-c3 { columns: 3; min-width: 760px; }
.px-mega-link, .px-mega-group { break-inside: avoid; }
.px-mega-link { display: block; padding: .45rem .6rem; border-radius: var(--px-radius-sm); color: var(--px-text) !important; font-size: .93rem; }
.px-mega-link:hover, .px-mega-link:focus-visible { background: var(--px-bg); color: var(--px-primary) !important; }
.px-mega-link .fa, .px-mega-link [class*="fa-"] { width: 1.2em; color: var(--px-secondary); }
.px-mega-group { margin-bottom: .6rem; }
.px-mega-head { display: block; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--px-secondary) !important; padding: .55rem .6rem .25rem; }
.px-mega-group .px-mega-link { padding-left: .9rem; font-size: .9rem; }
/* Los dos últimos menús abren hacia la izquierda para no salirse */
@media (min-width: 992px) {
    .px-nav .navbar-nav > .dropdown:nth-last-child(-n+2) > .dropdown-menu { left: auto; right: 0; }
    /* Menús largos: scroll interno; plexo.theme.js ajusta la altura al espacio visible */
    .px-nav .dropdown-menu { max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 991.98px) {
    .px-nav .navbar-collapse { max-height: calc(100vh - 70px); overflow-y: auto; overscroll-behavior: contain; }
    .px-mega-c2, .px-mega-c3 { columns: 1; min-width: 0; }
    .px-nav .dropdown-menu { border-radius: var(--px-radius-sm); margin-bottom: .5rem !important; }
    .px-nav .px-search { max-width: none; margin: .5rem 0 1rem; }
}

/* Menú en cascada (tres niveles); el nivel 3 se posiciona con plexo.theme.js */
.px-casc .dropdown-menu { min-width: 270px; padding: .5rem; }
.px-nav .px-casc .dropdown-menu .dropdown-item,
.px-nav .px-casc .dropdown-menu > li > a { display: flex; align-items: center; gap: .35rem; width: 100%; padding: .45rem .7rem; border-radius: var(--px-radius-sm); font-size: .93rem; white-space: normal; color: var(--px-text) !important; background: transparent; }
.px-nav .px-casc .dropdown-item:hover, .px-nav .px-casc .dropdown-item:focus-visible,
.px-nav .px-casc .px-casc-item.open > .px-casc-toggle { background: var(--px-bg); color: var(--px-primary) !important; }
.px-casc .dropdown-item [class*="fa-"]:not(.px-casc-caret) { width: 1.2em; color: var(--px-secondary); }
.px-casc-caret { margin-left: auto; font-size: .7rem; opacity: .6; transition: transform .15s; }
.px-casc-sub { list-style: none; margin: 0; padding: .5rem; display: none; }
.px-casc-item.open > .px-casc-sub { display: block; }
@media (min-width: 992px) {
    .px-casc-sub { position: fixed; z-index: 1060; min-width: 260px; max-width: 380px; background: var(--px-surface); border-radius: var(--px-radius); box-shadow: 0 12px 30px rgba(20, 24, 50, .2); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 991.98px) {
    .px-casc-sub { padding: 0 0 .25rem .5rem; margin-left: .9rem; border-left: 2px solid rgba(var(--px-secondary-rgb), .35); }
    .px-casc-item.open .px-casc-caret { transform: rotate(90deg); }
}

/* Menú lateral (offcanvas) con acordeón nativo */
.px-nav-lateral > .container, .px-nav-lateral > .container-fluid { display: flex; align-items: center; min-height: 56px; }
.px-off-btn { color: #fff !important; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: .4rem 1.1rem; font-weight: 600; }
.px-off-btn:hover, .px-off-btn:focus-visible { background: rgba(255, 255, 255, .14); }
.px-off-home { color: rgba(255, 255, 255, .9) !important; padding: .5rem .75rem; }
.px-offmenu { --bs-offcanvas-width: 380px; }
.px-offmenu .offcanvas-header { background: var(--px-primary); color: var(--px-on-primary); }
.px-offmenu .offcanvas-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.px-offmenu .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .85; }
.px-offmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem; padding: .6rem .7rem; border-radius: var(--px-radius-sm); font-weight: 600; color: var(--px-text); }
.px-offmenu summary::-webkit-details-marker { display: none; }
.px-offmenu summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: .7rem; opacity: .6; transition: transform .15s; }
.px-offmenu details[open] > summary::after { transform: rotate(180deg); }
.px-offmenu summary:hover, .px-offmenu summary:focus-visible { background: var(--px-bg); }
.px-offmenu summary [class*="fa-"], .px-off-link [class*="fa-"] { width: 1.2em; color: var(--px-secondary); }
.px-off-l1 { border-bottom: 1px solid var(--px-line); }
.px-off-l1 > summary { font-size: 1rem; color: var(--px-primary); }
.px-off-in { padding: 0 0 .5rem .5rem; }
.px-off-l2 > summary { font-weight: 500; font-size: .93rem; }
.px-off-l2 > .px-off-link { padding-left: 1.7rem; }
.px-off-link { display: block; padding: .45rem .7rem; border-radius: var(--px-radius-sm); color: var(--px-text) !important; font-size: .93rem; }
.px-off-link:hover, .px-off-link:focus-visible { background: var(--px-bg); color: var(--px-primary) !important; }
.px-off-top { font-weight: 600; border-bottom: 1px solid var(--px-line); margin-bottom: .25rem; }
.px-offmenu .ttpx_senias { display: none; }

/* Secciones (site_cols.ESTILO) */
.px-section { padding: 3.5rem 0; position: relative; }
.px-section--normal { background: transparent; }
.px-section--suave { background: var(--px-surface); }
.px-section--primario { background: var(--px-primary); color: var(--px-on-primary); }
.px-section--acento { background: linear-gradient(110deg, var(--px-secondary), rgba(var(--px-secondary-rgb), .82)); color: #fff; }
.px-section--primario .px-title h2, .px-section--acento .px-title h2 { color: inherit; }
.px-section--primario, .px-section--acento, .px-section--hero, .px-section--superpuesta, .px-section[style*="background-image"] { --px-card-line: transparent; }
.px-section--superpuesta { --px-card-shadow: var(--px-shadow); }
.px-section--primario a:not(.btn), .px-section--acento a:not(.btn) { color: inherit; }
/* Clases heredadas como flexbox no deben encoger el contenedor de la sección */
.px-section > .container, .px-section > .container-fluid { width: 100%; }
.px-section--hero { padding: 0; }
.px-section--hero > .container, .px-section--hero > .container-fluid { padding: 0; max-width: none; }
.px-section--hero .row { --bs-gutter-x: 0; --bs-gutter-y: 0; margin: 0; }
.px-section--superpuesta { padding: 0 0 2.5rem; margin-top: -3.5rem; z-index: 5; }
.px-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.px-title h2 { font-weight: 700; font-size: 1.6rem; margin: 0; color: var(--px-primary); }
.px-title h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--px-secondary); margin-bottom: .6rem; }
.px-section--primario .px-title h2::before { background: var(--px-secondary); }
.px-section--acento .px-title h2::before { background: #fff; }

/* Tarjeta base para componentes */
/* Tarjetas BS5 (reemplazo de los panel BS3; la sombra fuerte de .panel en custom.css se anula) */
.px-site .card { --bs-card-border-color: var(--px-card-line); --bs-card-border-radius: var(--px-radius); --bs-card-inner-border-radius: calc(var(--px-radius) - 1px); --bs-card-cap-bg: transparent; --bs-card-cap-padding-y: .8rem; --bs-card-cap-padding-x: 1.1rem; --bs-card-spacer-y: 1.1rem; --bs-card-spacer-x: 1.1rem; --bs-card-bg: var(--px-card-bg); box-shadow: var(--px-card-shadow); margin-bottom: 1.25rem; }
.px-site .panel { box-shadow: var(--px-card-shadow); }
.px-site .card-header { font-weight: 600; border-bottom: 1px solid var(--px-card-line); }
.px-site .card-header .card-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.px-site .card-title > a { color: inherit; }
.px-site .card-body::after { content: ""; display: table; clear: both; }
.px-site .card-footer { background: transparent; border-top: 1px solid var(--px-card-line); }
.px-site .card > .table, .px-site .card > .table-responsive > .table { margin-bottom: 0; }
.px-site .panel-group > .card, .px-site .card.pliegue { margin-bottom: .5rem; --bs-card-border-radius: var(--px-radius-sm); --bs-card-inner-border-radius: calc(var(--px-radius-sm) - 1px); }
.px-site .card > .card.panel-collapse { border: 0; border-radius: 0; box-shadow: none; margin: 0; }
/* Blindaje contra hojas de cliente que son volcados de temas BS3 (cargan después) */
.px-site .card.panel { border: 1px solid var(--bs-card-border-color); border-radius: var(--bs-card-border-radius); background: var(--bs-card-bg); box-shadow: var(--px-card-shadow); }
.px-site .card.panel > .card-header.panel-heading { background: var(--bs-card-cap-bg); color: inherit; border-color: var(--px-card-line); border-radius: 0; padding: var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x); }
.px-site .card.panel > .card-header.panel-heading:first-child { border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0; }
.px-site .card.panel .card-body.panel-body { background: transparent !important; padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x); }
.px-site .card > .card.panel-collapse { border: 0; border-radius: 0; box-shadow: none; }
.px-site .card.panel-primary { border-color: var(--px-primary); }
.px-site .card.panel-primary > .card-header, .px-site .card.panel.panel-primary > .card-header.panel-heading { background: var(--px-primary); color: var(--px-on-primary); border-color: var(--px-primary); }
.px-site .card.panel-success { border-color: #cfe9d1; } .px-site .card.panel-success > .card-header, .px-site .card.panel.panel-success > .card-header.panel-heading { background: #e3f4e4; color: #1e6b23; border-color: #cfe9d1; }
.px-site .card.panel-info { border-color: #cbe6f5; } .px-site .card.panel-info > .card-header, .px-site .card.panel.panel-info > .card-header.panel-heading { background: #e1f1fa; color: #0b5a83; border-color: #cbe6f5; }
.px-site .card.panel-warning { border-color: #f6e3b4; } .px-site .card.panel-warning > .card-header, .px-site .card.panel.panel-warning > .card-header.panel-heading { background: #fdf3dc; color: #7a5600; border-color: #f6e3b4; }
.px-site .card.panel-danger { border-color: #f3cccc; } .px-site .card.panel-danger > .card-header, .px-site .card.panel.panel-danger > .card-header.panel-heading { background: #fbe4e4; color: #8a1f1f; border-color: #f3cccc; }
.px-v26-cal .card { border: 0; box-shadow: none; margin: 0; background: transparent; }
.px-card { background: var(--px-card-bg); border: 1px solid var(--px-card-line); border-radius: var(--px-radius); box-shadow: var(--px-card-shadow); overflow: hidden; height: 100%; color: var(--px-text); }

/* ---------- Componentes de módulo (lib_php/px_componentes.php) ---------- */
/* .fill (custom.css) fija height:100% y eso impide que la fila iguale alturas */
[data-px-mod]:has(> .px-mod) { display: flex; flex-direction: column; height: auto; min-height: 0; }
.px-mod { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.px-mod > .px-card, .px-mod > .px-v64 { flex: 1; }
.px-mod-title { font-size: 1.25rem; font-weight: 700; color: var(--px-primary); margin: 0; }
.px-section--primario .px-mod-title, .px-section--acento .px-mod-title { color: inherit; }
a.px-card { display: block; text-decoration: none; transition: transform .2s, box-shadow .2s, background-color .2s; }
a.px-card:hover, a.px-card:focus-visible { transform: translateY(-2px); box-shadow: var(--px-shadow-hover); color: var(--px-text); }

/* Reproductor de YouTube liviano */
.px-yt { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.px-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.px-yt:hover img { opacity: 1; }
.px-yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.px-yt-play i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1.4rem; padding-left: 4px; transition: background .2s, transform .2s; }
.px-yt:hover .px-yt-play i, .px-yt:focus-visible .px-yt-play i { background: #e62117; transform: scale(1.06); }
.px-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 6: visual */
.px-v6-imagen { padding: 0; }
.px-v6-imagen img { display: block; width: 100%; height: auto; }
.px-v6-cap { display: block; padding: .75rem 1rem; font-weight: 600; text-align: center; }
.px-v6-tarjeta { display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: 1.4rem 1rem; height: 100%; }
.px-v6-ilus { width: auto; max-width: 70%; height: 96px; object-fit: contain; }
.px-v6-ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--px-secondary-rgb), .12); color: var(--px-secondary); font-size: 1.6rem; }
.px-v6-tit { font-weight: 700; font-size: 1rem; color: var(--px-primary); line-height: 1.25; }
.px-v6-sub { font-size: .85rem; color: var(--px-muted); }
.px-v6-banner { position: relative; padding: 0; min-height: 220px; color: #fff; }
.px-v6-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.px-v6-banner-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .75rem; padding: 1.5rem; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 65%); }
.px-v6-banner .px-v6-tit { color: #fff; font-size: 1.35rem; }
.px-v6-doc { padding: 1.25rem; font-weight: 600; }

/* 8: noticias */
.px-v8-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--px-bg); }
.px-v8-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.px-card:hover .px-v8-img img { transform: scale(1.04); }
.px-v8-feat .px-v8-img { aspect-ratio: 16 / 10; }
.px-v8-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.25rem 1.3rem; }
.px-v8-feat .px-v8-body { padding: 1.4rem 1.5rem 1.6rem; }
.px-v8-tit { font-weight: 700; color: var(--px-text); line-height: 1.3; font-size: 1rem; }
.px-v8-feat .px-v8-tit { font-size: 1.35rem; }
.px-v8-res { color: var(--px-muted); font-size: .9rem; }
.px-v8-fecha { font-size: .78rem; color: var(--px-muted); font-weight: 500; }
.px-v8-lista { padding: .25rem 0; }
.px-v8-item { display: flex; gap: .9rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--px-card-line); color: var(--px-text) !important; }
.px-v8-item:last-child { border-bottom: 0; }
.px-v8-item img { flex: 0 0 96px; width: 96px; height: 72px; object-fit: cover; border-radius: var(--px-radius-sm); }
.px-v8-item > span { display: flex; flex-direction: column; gap: .2rem; }
.px-v8-item .px-v8-tit { font-size: .93rem; font-weight: 600; }
.px-v8-item:hover .px-v8-tit { color: var(--px-secondary); }
.px-v8-mas { text-align: center; margin-top: .5rem; }

/* 26: agenda */
.px-v26-agenda { padding: .5rem 1.25rem; }
.px-v26-ev { display: flex; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--px-card-line); }
.px-v26-ev:last-child { border-bottom: 0; }
.px-v26-dia { flex: 0 0 58px; text-align: center; border-radius: var(--px-radius-sm); background: rgba(var(--px-primary-rgb), .08); color: var(--px-primary); padding: .35rem 0; line-height: 1.1; }
.px-v26-dia b { display: block; font-size: 1.4rem; }
.px-v26-dia small { font-size: .7rem; text-transform: uppercase; font-weight: 600; }
.px-v26-ev strong { display: block; font-size: .95rem; }
.px-v26-ev span { font-size: .8rem; color: var(--px-muted); }
.px-v26-vacio { padding: 1rem 0; color: var(--px-muted); font-size: .9rem; }
.px-v26-cal { padding: 1rem; }
.px-v26-cal .panel { border: 0; box-shadow: none; margin: 0; background: transparent; }
.px-v26-cal .panel-body { padding: 0; }

/* 31: galería */
.px-v31 { border-radius: var(--px-radius); overflow: hidden; background: #111; }
.px-section--hero .px-v31 { border-radius: 0; box-shadow: none; }
/* Variante hero a todo el ancho aunque la sección sea centrada */
.px-section { overflow-x: clip; }
[data-px-mod].col-md-12:has(> .px-v-hero) { width: 100vw; max-width: 100vw; flex: 0 0 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: 0; padding-right: 0; }
.px-v-hero .px-v31 { border-radius: 0; box-shadow: none; }
.px-section:has(> div > .row > [data-px-mod]:only-child > .px-v-hero):not(:has(.px-title)) { padding-top: 0; padding-bottom: 0; }
.px-v31-slide { display: flex; height: var(--px-alto, 420px); }
.px-v31-foto { position: relative; flex: 1; overflow: hidden; display: block; }
.px-v31-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px) brightness(.75); }
.px-v31-foto img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.px-v31-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); color: #fff; font-weight: 600; }
/* Flechas e indicadores siempre encima de las fotos enlazadas */
.carousel > .carousel-control-prev, .carousel > .carousel-control-next, .carousel > .carousel-indicators { z-index: 5; }
/* Transición "zoom": desvanecer + acercamiento lento (Ken Burns) durante cada foto */
.px-kb .carousel-item.active > * { animation: px-kb var(--px-kb-t, 9s) ease-out both; }
@keyframes px-kb { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .px-kb .carousel-item.active > * { animation: none; } }
.px-v31 .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; }
@media (max-width: 767.98px) { .px-v31-slide { height: auto; aspect-ratio: 16 / 9; } }
.px-scroller { position: relative; }
.px-scroll-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem; scrollbar-width: none; }
.px-scroll-track::-webkit-scrollbar { display: none; }
.px-scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--px-surface); color: var(--px-primary); box-shadow: var(--px-shadow); }
.px-scroll-btn.prev { left: -12px; } .px-scroll-btn.next { right: -12px; }
.px-scroll-btn:hover { background: var(--px-primary); color: #fff; }
.px-v31-logo { flex: 0 0 200px; scroll-snap-align: start; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; min-height: 130px; text-align: center; }
.px-v31-logo img { max-width: 100%; max-height: 70px; object-fit: contain; filter: grayscale(.4); transition: filter .2s; }
.px-v31-logo:hover img { filter: none; }
.px-v31-logo span { font-size: .78rem; color: var(--px-muted); font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 61: videos */
.px-v61-body { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1.1rem; }
.px-v61-tit { font-weight: 600; line-height: 1.3; }
.px-v61-fecha { font-size: .78rem; color: var(--px-muted); }
.px-v61-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; padding: 0 1.1rem 1.1rem; }
.px-v61-item { display: flex; flex-direction: column; gap: .35rem; padding: 0; border: 0; background: none; text-align: left; font-size: .8rem; color: var(--px-text); }
.px-v61-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--px-radius-sm); outline: 2px solid transparent; transition: outline-color .15s; }
.px-v61-item:hover img, .px-v61-item.activo img { outline-color: var(--px-secondary); }
.px-v61-mas { text-align: right; font-weight: 600; font-size: .9rem; }

/* 64: suscripción */
.px-v64 { display: flex; gap: 1.25rem; padding: 1.75rem 2rem; border-radius: calc(var(--px-radius) + 4px); background: linear-gradient(110deg, var(--px-secondary), rgba(var(--px-secondary-rgb), .8)); color: #fff; }
.px-section--acento .px-v64 { background: rgba(255, 255, 255, .1); }
.px-v64-banda { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.px-v64-tarjeta { flex-direction: column; }
.px-v64-txt { display: flex; flex-direction: column; gap: .2rem; }
.px-v64-tit { font-size: 1.35rem; font-weight: 700; }
.px-v64-sub { opacity: .85; font-size: .92rem; }
.px-v64-form { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1; max-width: 640px; }
.px-v64-tarjeta .px-v64-form { flex-direction: column; max-width: none; }
.px-v64-form .form-control { flex: 1 1 180px; border-radius: 999px; border: 0; padding: .65rem 1.1rem; font-size: .92rem; }
.px-v64-form .btn { border-radius: 999px; background: var(--px-primary); color: var(--px-on-primary); font-weight: 600; padding: .65rem 1.4rem; }
.px-v64-form .btn:hover { filter: brightness(1.15); }

/* 67: botonera */
.px-v67-tiles { display: flex !important; flex-direction: column; align-items: center; gap: .6rem; padding: 1.25rem .75rem; height: 100%; text-align: center; }
.px-v67-tiles .px-v67-img { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--px-bg); }
.px-v67-tiles .px-v67-img img { width: 100%; height: 100%; object-fit: contain; }
.px-v67-pocos .px-v67-img { width: 150px; height: 150px; }
.px-v67-pocos .px-v67-nm { font-size: 1rem; }
.px-v67-nm { font-size: .88rem; font-weight: 600; color: var(--px-text); line-height: 1.25; }
.px-v67-tarjetas { padding: 0; height: 100%; }
.px-v67-tarjetas .px-v67-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--px-bg); }
.px-v67-tarjetas .px-v67-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.px-v67-tarjetas:hover .px-v67-img img { transform: scale(1.05); }
.px-v67-tarjetas .px-v67-nm { display: block; padding: .9rem 1rem; font-size: 1rem; color: var(--px-primary); }
.px-v67-logo { display: grid !important; place-items: center; height: 110px; padding: 1rem; }
.px-v67-logo img { max-width: 100%; max-height: 72px; object-fit: contain; filter: grayscale(.4); transition: filter .2s; }
.px-v67-logo:hover img { filter: none; }
.px-v67-lista { padding: .25rem 0; }
.px-v67-item { display: flex; align-items: center; gap: .85rem; padding: .7rem 1rem; border-bottom: 1px solid var(--px-card-line); color: var(--px-text) !important; }
.px-v67-item:last-child { border-bottom: 0; }
.px-v67-item img { width: 44px; height: 44px; object-fit: contain; border-radius: var(--px-radius-sm); background: var(--px-bg); }
.px-v67-item:hover { background: var(--px-bg); }
.px-v67-item i { color: var(--px-muted); font-size: .8rem; }

/* Contenido interno (módulos, noticias) */
.px-content { padding: 2rem 0 1rem; }
/* Contenedor de la página: el filete normal, no el borde oscuro de panel-primary */
.px-site .px-content > .card.panel-primary { border-color: var(--px-card-line); }
.px-site .card > .card.panel-collapse { background: transparent; }
.px-site .card.pliegue > .card-header { transition: background-color .15s; }
.px-site .card.pliegue > .card-header:hover, .px-site .card.pliegue > .card-header:has(+ .collapse.show) { background: rgba(var(--px-primary-rgb), .035); }
.px-site .card-header:last-child, .px-site .card-header:has(+ .collapse:not(.show)) { border-bottom: 0; }
.px-back { margin: 1.5rem 0; }

/* Pie de página (framework-agnóstico: también lo usa kiosk.php) */
.px-footer { background: var(--px-primary); color: rgba(255, 255, 255, .85); font-size: .92rem; margin: 0; }
.px-footer-inner { padding: 3rem 0 2rem; }
.px-footer h2 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 1rem; }
.px-footer a, .px-footer a:visited, .px-footer .px-link-btn { color: rgba(255, 255, 255, .85); }
.px-footer a:hover, .px-footer .px-link-btn:hover { color: #fff; text-decoration: underline; }
.px-footer p { margin: 0 0 .5rem; }
.px-footer .px-f-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.px-footer .px-f-brand img { max-height: 70px; max-width: 160px; border-radius: 6px; background: #fff; padding: 4px; }
.px-footer .px-f-brand strong { color: #fff; font-size: 1.1rem; line-height: 1.2; }
.px-footer .px-f-ic { width: 1.4em; color: var(--px-secondary); text-align: center; }
.px-footer .px-f-rich p, .px-footer .px-f-rich { margin-bottom: .5rem; }
.px-footer ul { list-style: none; padding: 0; margin: 0; }
.px-footer li { margin-bottom: .55rem; }
.px-soc { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.px-soc a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff !important; font-size: 1rem; }
.px-soc a:hover { background: var(--px-secondary); text-decoration: none !important; }
.px-marca-pais { height: 40px; width: auto; border-radius: 5px; margin-top: 1rem; }
.px-credits { background: rgba(0, 0, 0, .18); color: rgba(255, 255, 255, .75); font-size: .8rem; text-align: center; padding: .55rem 0; }
.px-credits a, .px-credits a:visited { color: #fff; }
.px-credits strong { color: #fff; font-weight: 600; }
.px-cr-upd { display: inline-block; margin-left: .75rem; }
.px-footer-gov { background: var(--px-gov); color: #fff; font-size: .82rem; }
.px-footer-gov .px-fg-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 0; }
.px-footer-gov img { height: 36px; width: auto; }

/* Accesibilidad flotante (reemplaza la barra fija de la izquierda) */
.px-a11y { position: fixed; right: 16px; bottom: 16px; z-index: 1030; }
.px-a11y-toggle { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--px-primary); color: #fff; font-size: 1.45rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.px-a11y-toggle:hover { background: var(--px-secondary); }
.px-a11y-panel { position: absolute; right: 0; bottom: 64px; width: 230px; background: var(--px-surface); border-radius: var(--px-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); padding: .6rem; }
.px-a11y-panel[hidden] { display: none; }
.px-a11y-panel button { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; background: transparent; padding: .55rem .65rem; border-radius: var(--px-radius-sm); font-size: .92rem; color: var(--px-text); text-align: left; }
.px-a11y-panel button:hover { background: var(--px-bg); }
.px-a11y-panel button i { width: 20px; color: var(--px-primary); }
.px-a11y-panel button.btn-danger { background: rgba(var(--px-secondary-rgb), .14); font-weight: 600; }
.px-a11y-panel button.btn-danger::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; color: var(--px-secondary); }

@media print {
    .px-govbar, .px-nav, .px-a11y, .px-footer-gov { display: none !important; }
}

/* Acordeón de contenido (modulo12) y normograma (modulo65) */
.px-acc-buscar { position: relative; margin-bottom: 1rem; }
.px-acc-buscar > em { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--px-muted); pointer-events: none; }
.px-acc-buscar input { padding: .65rem 7rem .65rem 2.6rem; border-radius: 999px; border-color: var(--px-line); background: var(--px-surface); }
.px-acc-buscar input:focus { border-color: rgba(var(--px-primary-rgb), .45); box-shadow: 0 0 0 .2rem rgba(var(--px-primary-rgb), .12); }
.px-acc-n { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--px-muted); }
.px-site .px-acc {
    --bs-accordion-bg: var(--px-surface); --bs-accordion-border-color: var(--px-card-line); --bs-accordion-border-radius: var(--px-radius-sm); --bs-accordion-inner-border-radius: calc(var(--px-radius-sm) - 1px);
    --bs-accordion-btn-padding-x: 1.1rem; --bs-accordion-btn-padding-y: .9rem; --bs-accordion-btn-color: var(--px-text); --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-color: var(--px-primary); --bs-accordion-active-bg: rgba(var(--px-primary-rgb), .05); --bs-accordion-btn-focus-box-shadow: inset 0 0 0 2px rgba(var(--px-primary-rgb), .35);
    --bs-accordion-body-padding-x: 1.25rem; --bs-accordion-body-padding-y: 1.1rem;
    display: flex; flex-direction: column; gap: .5rem; background: transparent;
}
.px-site .px-acc > .accordion-item { border: 1px solid var(--px-card-line); border-radius: var(--px-radius-sm); overflow: hidden; box-shadow: var(--px-card-shadow); background: var(--px-surface); }
.px-site .px-acc .accordion-header { margin: 0; font-size: 1rem; }
.px-site .px-acc .accordion-button { gap: .7rem; font-weight: 600; font-size: 1rem; line-height: 1.35; border-radius: 0 !important; box-shadow: none; transition: background-color .15s, color .15s; }
.px-site .px-acc .accordion-button:hover { background: rgba(var(--px-primary-rgb), .035); }
.px-site .px-acc .accordion-button:not(.collapsed) { border-bottom: 1px solid var(--px-card-line); }
.px-site .px-acc .accordion-button:focus-visible { box-shadow: var(--bs-accordion-btn-focus-box-shadow); }
.px-acc-ic { flex: 0 0 2.1rem; height: 2.1rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(var(--px-primary-rgb), .08); color: var(--px-primary); font-size: .95rem; }
.px-acc-tit { flex: 1 1 auto; min-width: 0; }
.px-acc-badge { flex: 0 0 auto; margin-left: auto; margin-right: .4rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(var(--px-primary-rgb), .08); color: var(--px-primary); font-size: .75rem; font-weight: 600; }
.px-site .px-acc .accordion-body { color: var(--px-text); }
.px-site .px-acc .accordion-body > :last-child { margin-bottom: 0; }
/* Segundo nivel (subgrupos del normograma) más liviano */
.px-site .px-acc-sub { gap: .35rem; }
.px-site .px-acc-sub > .accordion-item { box-shadow: none; }
.px-site .px-acc-sub .accordion-button { --bs-accordion-btn-padding-y: .7rem; font-size: .95rem; }
.px-site .px-acc-sub .px-acc-ic { flex-basis: 1.7rem; height: 1.7rem; font-size: .8rem; }
.px-acc-desc { color: var(--px-muted); margin-bottom: .75rem; }
/* Documentos */
.px-doc-grupo { margin: .9rem 0 .3rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--px-muted); }
.px-doc-grupo:first-child { margin-top: 0; }
.px-site a.px-doc { display: flex; align-items: center; gap: .8rem; padding: .6rem .75rem; border-radius: var(--px-radius-sm); color: var(--px-text); text-decoration: none; transition: background-color .15s; }
.px-site a.px-doc + a.px-doc { border-top: 1px solid var(--px-line); border-top-left-radius: 0; border-top-right-radius: 0; }
.px-site a.px-doc:hover { background: rgba(var(--px-primary-rgb), .05); }
.px-site a.px-doc:hover strong { color: var(--px-primary); text-decoration: underline; }
.px-doc > em { flex: 0 0 1.4rem; font-size: 1.25rem; text-align: center; color: var(--px-muted); }
.px-doc-pdf > em { color: #c62828; } .px-doc-doc > em, .px-doc-docx > em { color: #1565c0; } .px-doc-xls > em, .px-doc-xlsx > em { color: #2e7d32; }
.px-doc-txt { flex: 1 1 auto; min-width: 0; }
.px-doc-txt strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.px-doc-txt small { display: block; color: var(--px-muted); font-size: .85rem; }
.px-doc-fecha { flex: 0 0 auto; font-size: .8rem; color: var(--px-muted); white-space: nowrap; }
.px-acc-anexos { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--px-line); }
.px-acc-anexos h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--px-muted); margin-bottom: .4rem; }
.px-acc-vacio { padding: 1.25rem; text-align: center; color: var(--px-muted); border: 1px dashed var(--px-line); border-radius: var(--px-radius-sm); }
@media (max-width: 575.98px) {
    .px-site .px-acc { --bs-accordion-btn-padding-x: .85rem; --bs-accordion-body-padding-x: .85rem; }
    .px-doc-fecha { display: none; }
}
.px-site .px-acc .accordion-button::after { background: currentColor; -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat; width: .95rem; height: .95rem; opacity: .6; }
.px-site .px-acc .accordion-button:not(.collapsed)::after { opacity: 1; }
