/* =============================================================================
   DaVinci LMS — Modern Theme 2026
	Bootstrap 5.3 · sin scroll horizontal · estética limpia y espaciosa
============================================================================= */

/* ---------------------------------------------------------------------------
	   1. Tokens
--------------------------------------------------------------------------- */
:root {
    --dv-primary:        #3b82f6;
    --dv-primary-dark:   #2563eb;
    --dv-primary-darker: #1d4ed8;
    --dv-primary-soft:   #eff6ff;

    --bs-primary:             var(--dv-primary);
    --bs-primary-rgb:         59, 130, 246;
    --bs-link-color:          var(--dv-primary-dark);
    --bs-link-color-rgb:      37, 99, 235;
    --bs-link-hover-color:    var(--dv-primary-darker);
    --bs-link-hover-color-rgb: 29, 78, 216;

    --dv-success: #10b981;
    --dv-warning: #f59e0b;
    --dv-danger:  #ef4444;
    --dv-info:    #06b6d4;

    --dv-bg:            #f6f8fb;
    --dv-surface:       #ffffff;
    --dv-surface-alt:   #f9fafb;
    --dv-border:        #e5e7eb;
    --dv-border-strong: #d1d5db;

    --dv-text:        #111827;
    --dv-text-muted:  #6b7280;
    --dv-text-subtle: #9ca3af;

    --dv-font-sans: "Inter", "RobotoDraft", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    --dv-fs-base: 15px;
    --dv-fs-sm:   13.5px;
    --dv-fs-h1:   28px;
    --dv-fs-h2:   24px;
    --dv-fs-h3:   20px;
    --dv-lh-base: 1.55;

    --dv-radius-sm:   8px;
    --dv-radius:      12px;
    --dv-radius-lg:   16px;
    --dv-radius-pill: 999px;

    --dv-shadow-xs: 0 1px 2px rgba(17, 24, 39, .04);
    --dv-shadow-sm: 0 1px 3px rgba(17, 24, 39, .06), 0 1px 2px rgba(17, 24, 39, .04);
    --dv-shadow:    0 4px 12px rgba(17, 24, 39, .06);
    --dv-shadow-md: 0 10px 24px rgba(17, 24, 39, .10);
    --dv-shadow-lg: 0 20px 48px rgba(17, 24, 39, .14);

    --dv-navbar-h:      68px;
    --dv-navbar-h-sm:   60px;
    --dv-footer-h:      56px;
    --dv-page-max:      1440px;
    --dv-container-pad: 24px;
}

/* ---------------------------------------------------------------------------
	   2. Base
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: var(--dv-fs-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;   /* mata el scroll horizontal de raíz */
}

body {
    font-family: var(--dv-font-sans);
    font-size: 1rem;
    line-height: var(--dv-lh-base);
    color: var(--dv-text);
    background-color: var(--dv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    padding-top: var(--dv-navbar-h);
    display: flex;
    flex-direction: column;
}

@media (max-width: 767.98px) {
    body { padding-top: var(--dv-navbar-h-sm); }
}

#content,
.container-lg,
.container-xl { flex: 1 0 auto; width: 100%; }

/* Contenedores fluidos que nunca desbordan */
.container,
.container-fluid,
.container-lg,
.container-xl,
.dv-container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--dv-container-pad);
    padding-right: var(--dv-container-pad);
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-xl, .dv-container {
        max-width: var(--dv-page-max);
    }
}

/* Fila sin margen negativo (evita overflow horizontal) */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    margin-left: 0;
    margin-right: 0;
}
.row > * {
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--dv-text);
    line-height: 1.25;
}
h1 { font-size: var(--dv-fs-h1); }
h2 { font-size: var(--dv-fs-h2); }
h3 { font-size: var(--dv-fs-h3); }

a {
    color: var(--bs-link-color);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover, a:focus { color: var(--bs-link-hover-color); }

hr {
    border: 0;
    border-top: 1px solid var(--dv-border);
    margin: 1.5rem 0;
    opacity: 1;
}

::selection { background: var(--dv-primary-soft); color: var(--dv-primary-darker); }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--dv-border-strong);
    border-radius: var(--dv-radius-pill);
    border: 2px solid var(--dv-bg);
}
*::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ---------------------------------------------------------------------------
	   3. Layout — top / center / bottom
--------------------------------------------------------------------------- */
#content,
.dv-page { padding: 2rem 0 3rem; width: 100%; }

.page-section       { padding: 2rem 0; }
.page-section.half  { padding: 1rem 0; }
.page-section.third { padding: 1.5rem 0; }
.page-section + .page-section:not(.equal) { padding-top: 0; }
.page-section > *:last-child { margin-bottom: 0; }

.split-vertical { display: table; width: 100%; height: 100%; min-height: 240px; border-spacing: 0; }
.split-vertical .split-vertical-body { display: table-row; height: 100%; }
.split-vertical .split-vertical-body > .split-vertical-cell { position: relative; width: 100%; height: 100%; }
.split-vertical .split-vertical-body > .split-vertical-cell > div { position: absolute; inset: 0; overflow: auto; }

[data-scrollable]   { position: relative; height: 100%; overflow-x: hidden; }
[data-scrollable-h] { position: relative; max-width: 100%; width: 100%; overflow-x: auto; }

.footer,
.dv-footer {
    flex-shrink: 0;
    text-align: center;
    color: var(--dv-text-muted);
    background: var(--dv-surface);
    border-top: 1px solid var(--dv-border);
    min-height: var(--dv-footer-h);
    padding: .85rem 0;
    font-size: var(--dv-fs-sm);
    font-weight: 500;
}
@media (max-width: 767.98px) {
    .footer, .dv-footer { padding: .75rem 1rem; min-height: auto; }
}

/* ---------------------------------------------------------------------------
	   4. Navbar 2026 — topbar limpia, espaciosa, sin overflow
--------------------------------------------------------------------------- */
.navbar.dv-navbar,
.dv-navbar {
    height: var(--dv-navbar-h);
    min-height: var(--dv-navbar-h);
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--dv-border);
    padding: 0;
    z-index: 1030;
    overflow: visible;
}
.navbar.dv-navbar.fixed-top { top: 0; }

@media (max-width: 767.98px) {
    .navbar.dv-navbar, .dv-navbar {
        height: var(--dv-navbar-h-sm);
        min-height: var(--dv-navbar-h-sm);
    }
}

/* Contenedor flex: brand | spacer | actions */
.dv-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    max-width: var(--dv-page-max);
    margin-inline: auto;
    padding-inline: var(--dv-container-pad);
    min-width: 0;              /* permite que los hijos se encojan */
}

/* Brand (izq) — logo + campus */
.dv-navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 0 1 auto;
}

/* FIX del logo: sin .svg, alto explícito, ancho auto */
.dv-navbar-brand .navbar-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    height: var(--dv-navbar-h);
    padding: 0;
    margin: 0;
    text-decoration: none;
    min-width: 0;
    flex: 0 1 auto;
}
@media (max-width: 767.98px) {
    .dv-navbar-brand .navbar-brand-logo { height: var(--dv-navbar-h-sm); }
}
.dv-navbar-brand .navbar-brand-logo img {
    display: block;
    height: 40px;             /* altura fija explícita */
    width: auto;              /* ancho auto mantiene proporción */
    max-width: 180px;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    .dv-navbar-brand .navbar-brand-logo img { height: 32px; max-width: 140px; }
}
.dv-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dv-text);
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Neutraliza cualquier regla heredada sobre .svg dentro del brand */
.dv-navbar-brand .navbar-brand-logo .svg,
.dv-navbar-brand .navbar-brand-logo svg {
    height: auto !important;
    width: auto !important;
    position: static !important;
    background: none !important;
    fill: currentColor !important;
    display: block !important;
}

/* Campus banner (a la derecha del logo) */
.dv-navbar-campus {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--dv-border);
    font-weight: 600;
    color: var(--dv-text);
    font-size: var(--dv-fs-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
    min-width: 0;
    flex: 0 1 auto;
}
@media (max-width: 991.98px) {
    .dv-navbar-campus { display: none; }  /* se oculta en tablet/mobile para no desbordar */
}

/* Collapse (der) */
.dv-navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

/* Grupo de acciones */
.dv-navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}
.dv-navbar-actions > .nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    gap: .15rem;
    min-width: 0;
}
.dv-navbar-actions > .dv-navbar-dock { margin-left: .5rem; }

/* Iconos y links del navbar — estilo 2026 */
.dv-navbar .nav-link,
.dv-navbar-actions .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    padding: .5rem .85rem;
    border-radius: var(--dv-radius);
    color: var(--dv-text);
    font-weight: 600;
    font-size: var(--dv-fs-sm);
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.dv-navbar .nav-link:hover,
.dv-navbar .nav-link:focus,
.dv-navbar-actions .nav-link:hover {
    background: var(--dv-primary-soft);
    color: var(--dv-primary-darker);
}
.dv-navbar .nav-link:active { transform: scale(.97); }
.dv-navbar .nav-link.active {
    background: var(--dv-primary-soft);
    color: var(--dv-primary-darker);
    font-weight: 700;
}
.dv-navbar .nav-link i,
.dv-navbar .nav-link .bi,
.dv-navbar .nav-link .material-icons-outlined {
    font-size: 1.25rem;
    line-height: 1;
}

/* Icon-only buttons (burbuja circular) */
.dv-navbar-quick-group .nav-link,
.dv-navbar-actions #btnDVHELP,
.dv-navbar-dock .nav-link {
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 50%;
}
.dv-navbar-quick-group .nav-link:hover,
.dv-navbar-actions #btnDVHELP:hover,
.dv-navbar-dock .nav-link:hover {
    background: var(--dv-primary-soft);
    color: var(--dv-primary-darker);
}

/* Dropdown — rediseño 2026 */
.dv-navbar .dropdown-menu {
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-lg);
    box-shadow: var(--dv-shadow-md);
    padding: .5rem;
    margin-top: .5rem;
    min-width: 240px;
    background: var(--dv-surface);
    animation: dvFadeIn .18s ease;
}
@keyframes dvFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dv-navbar-user-group .dropdown-menu { right: 0; left: auto; }

.dv-navbar .dropdown-menu .dropdown-item,
.dv-navbar .dropdown-menu li > a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;          /* ← más aire para que no se vean pegados */
    border-radius: var(--dv-radius-sm);
    font-size: var(--dv-fs-sm);
    font-weight: 500;
    color: var(--dv-text);
    line-height: 1.35;
    min-height: 40px;
    transition: background-color .12s ease, color .12s ease;
}
.dv-navbar .dropdown-menu .dropdown-item:hover,
.dv-navbar .dropdown-menu .dropdown-item:focus,
.dv-navbar .dropdown-menu li > a:hover {
    background: var(--dv-primary-soft);
    color: var(--dv-primary-darker);
    text-decoration: none;
}
.dv-navbar .dropdown-menu .dropdown-item i,
.dv-navbar .dropdown-menu li > a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--dv-text-muted);
    flex-shrink: 0;
}
.dv-navbar .dropdown-menu .dropdown-item:hover i,
.dv-navbar .dropdown-menu li > a:hover i {
    color: var(--dv-primary-darker);
}
.dv-navbar .dropdown-menu .dropdown-divider { margin: .5rem 0; border-color: var(--dv-border); }

.dv-navbar .navbar-toggler {
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-sm);
    padding: .45rem .65rem;
    background: transparent;
}
.dv-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }

/* Mobile: apila todo limpiamente */
@media (max-width: 767.98px) {
    .dv-navbar-container {
        flex-wrap: nowrap;
        padding-inline: 1rem;
        gap: .5rem;
    }
    .dv-navbar-brand { flex: 1 1 auto; }

    .dv-navbar .navbar-toggler { display: inline-flex; align-items: center; justify-content: center; }

    .dv-navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dv-surface);
        border-top: 1px solid var(--dv-border);
        border-bottom: 1px solid var(--dv-border);
        box-shadow: var(--dv-shadow-md);
        padding: 1rem;
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100vh - var(--dv-navbar-h-sm));
        overflow-y: auto;
        z-index: 1029;
    }
    .dv-navbar-collapse.show,
    .dv-navbar-collapse.collapsing { display: flex !important; }

    .dv-navbar-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: .25rem;
    }
    .dv-navbar-actions > .nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: .15rem;
    }
    .dv-navbar-actions > .nav > .nav-item { width: 100%; }
    .dv-navbar-actions > .nav > .nav-item > .nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: var(--dv-radius-sm);
    }
    .dv-navbar-quick-group .nav-link,
    .dv-navbar-actions #btnDVHELP,
    .dv-navbar-dock .nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: var(--dv-radius-sm);
        padding: .65rem .85rem;
    }
    .dv-navbar .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        border: 0;
        box-shadow: none;
        background: var(--dv-surface-alt);
        margin: .25rem 0;
        padding: .35rem;
    }
    .dv-navbar-dock { margin-left: 0 !important; }
}

/* ---------------------------------------------------------------------------
	   5. Cards
--------------------------------------------------------------------------- */
.card {
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-lg);
    background: var(--dv-surface);
    box-shadow: var(--dv-shadow-xs);
    transition: box-shadow .2s ease, transform .2s ease;
    overflow: hidden;
}
.card:hover { box-shadow: var(--dv-shadow-sm); }

.card-header {
    background: var(--dv-surface);
    border-bottom: 1px solid var(--dv-border);
    padding: 1.1rem 1.35rem;
    font-weight: 600;
}
.card-body { padding: 1.35rem; }
.card-footer {
    background: var(--dv-surface-alt);
    border-top: 1px solid var(--dv-border);
    padding: 1rem 1.35rem;
}

.paper-shadow {
    position: relative;
    background: var(--dv-surface);
    border-radius: var(--dv-radius-lg);
    box-shadow: var(--dv-shadow-xs);
    transition: box-shadow .25s ease;
}
.paper-shadow:hover { box-shadow: var(--dv-shadow-sm); }
.paper-shadow[data-z]:before,
.paper-shadow[data-z]:after { display: none; }

/* ---------------------------------------------------------------------------
	   6. List group
--------------------------------------------------------------------------- */
.list-group { border-radius: var(--dv-radius); }
.list-group-item {
    background: var(--dv-surface);
    border-color: var(--dv-border);
    padding: .85rem 1.25rem;
    font-size: var(--dv-fs-sm);
    color: var(--dv-text);
    transition: background-color .12s ease;
}
.list-group-item + .list-group-item { border-top-width: 1px; }
.list-group-item:hover { background: var(--dv-surface-alt); }
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background: var(--dv-primary-soft);
    border-color: var(--dv-primary-soft);
    color: var(--dv-primary-darker);
    font-weight: 600;
}

.list-group-link { color: var(--dv-text); }
.list-group-link:hover { color: var(--dv-primary-darker); }

/* ---------------------------------------------------------------------------
	   7. Botones
--------------------------------------------------------------------------- */
.btn {
    border-radius: var(--dv-radius-sm);
    font-weight: 600;
    font-size: var(--dv-fs-sm);
    padding: .55rem 1rem;
    transition: all .15s ease;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.btn:focus { box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .25); }
.btn:active { transform: scale(.98); }

.btn-white {
    background: #fff;
    border: 1px solid var(--dv-border);
    color: var(--dv-text);
}
.btn-white:hover {
    background: var(--dv-surface-alt);
    border-color: var(--dv-border-strong);
    color: var(--dv-text);
}

.btn-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-link {
    color: var(--dv-text);
    font-weight: 600;
}
.btn-link:hover { color: var(--dv-primary-darker); text-decoration: none; }

/* ---------------------------------------------------------------------------
	   8. Formularios
--------------------------------------------------------------------------- */
.form-control, .form-select {
    border-radius: var(--dv-radius-sm);
    border-color: var(--dv-border);
    font-size: var(--dv-fs-sm);
    padding: .6rem .9rem;
    color: var(--dv-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--dv-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .18);
}
.input-group-text {
    background: var(--dv-surface-alt);
    border-color: var(--dv-border);
    color: var(--dv-text-muted);
    font-size: var(--dv-fs-sm);
}

/* ---------------------------------------------------------------------------
	   9. Badges
--------------------------------------------------------------------------- */
.badge {
    font-weight: 600;
    font-size: .72rem;
    padding: .4em .7em;
    border-radius: var(--dv-radius-pill);
    letter-spacing: .01em;
}
.text-bg-light, .badge.bg-light {
    background: var(--dv-surface-alt) !important;
    color: var(--dv-text) !important;
    border: 1px solid var(--dv-border);
}

/* ---------------------------------------------------------------------------
	10. Progress
--------------------------------------------------------------------------- */
.progress {
    background: var(--dv-border);
    border-radius: var(--dv-radius-pill);
    height: 8px;
    overflow: hidden;
}
.progress-bar {
    background: var(--dv-primary);
    border-radius: var(--dv-radius-pill);
    font-size: 11px;
    line-height: 8px;
}

/* ---------------------------------------------------------------------------
	11. Nav tabs
--------------------------------------------------------------------------- */
.nav-tabs { border-bottom: 1px solid var(--dv-border); gap: .25rem; }
.nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--dv-text-muted);
    font-weight: 600;
    font-size: var(--dv-fs-sm);
    padding: .7rem 1.1rem;
    border-radius: var(--dv-radius-sm) var(--dv-radius-sm) 0 0;
}
.nav-tabs .nav-link:hover { background: var(--dv-surface-alt); color: var(--dv-text); }
.nav-tabs .nav-link.active {
    color: var(--dv-primary-darker);
    background: transparent;
    border-bottom-color: var(--dv-primary);
}
.tab-content { padding: 1.35rem; background: var(--dv-surface); border-radius: 0 0 var(--dv-radius) var(--dv-radius); }

/* ---------------------------------------------------------------------------
	12. Alertas
--------------------------------------------------------------------------- */
.alert, .claroMessageBox {
    border-radius: var(--dv-radius);
    border: 1px solid var(--dv-border);
    box-shadow: var(--dv-shadow-xs);
    font-size: var(--dv-fs-sm);
    padding: 1rem 1.15rem;
}

/* ---------------------------------------------------------------------------
	13. Breadcrumb
--------------------------------------------------------------------------- */
.breadcrumbTrail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .85rem 0;
    font-size: var(--dv-fs-sm);
    color: var(--dv-text-muted);
}
.breadcrumbTrail a { color: var(--dv-text-muted); }
.breadcrumbTrail a:hover { color: var(--dv-primary-darker); }
.breadcrumbTrail strong { color: var(--dv-text); font-weight: 700; }
#breadcrumbLine hr { margin: .5rem 0; border-color: var(--dv-border); }

/* ---------------------------------------------------------------------------
	14. Banner (parallax) — cabecera del curso
--------------------------------------------------------------------------- */
.parallax {
    position: relative;
    overflow: hidden;
    border-radius: var(--dv-radius-lg);
    background: linear-gradient(135deg, var(--dv-primary) 0%, var(--dv-primary-darker) 100%);
    color: #fff;
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--dv-shadow);
}
.parallax .icon-block { background: rgba(255,255,255,.2); color: #fff; }
.text-headline { font-size: var(--dv-fs-h3); font-weight: 700; letter-spacing: -.02em; }
.text-subhead  { font-size: var(--dv-fs-sm); opacity: .92; }

.icon-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    font-size: 22px;
    text-align: center;
    flex-shrink: 0;
}
.icon-block.s25    { width: 25px;  height: 25px;  font-size: 13px; }
.icon-block.s30    { width: 30px;  height: 30px;  font-size: 14px; }
.icon-block.s60    { width: 60px;  height: 60px;  font-size: 24px; }
.icon-block.s90    { width: 90px;  height: 90px;  font-size: 34px; }
.icon-block.half   { width: 50px;  height: 50px;  font-size: 22px; }
.icon-block.double { width: 150px; height: 150px; font-size: 44px; }

/* ---------------------------------------------------------------------------
	15. Tablas
--------------------------------------------------------------------------- */
.table { font-size: var(--dv-fs-sm); color: var(--dv-text); border-color: var(--dv-border); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-color: var(--dv-border); }
.table > thead {
    background: var(--dv-surface-alt);
    color: var(--dv-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .05em;
}
.table > tbody > tr:hover > * { background: var(--dv-surface-alt); }

/* ---------------------------------------------------------------------------
	16. Currículum / LearnPath
--------------------------------------------------------------------------- */
.curriculum .list-group,
.learnPath .list-group { color: var(--dv-text); }
.curriculum .list-group-item,
.learnPath .list-group-item {
    padding: .85rem 1.25rem;
    border-color: var(--dv-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.curriculum .list-group-item:hover,
.learnPath .list-group-item:hover { background: var(--dv-surface-alt); }
.curriculum .list-group-item.active,
.learnPath .list-group-item.active {
    background: var(--dv-primary-soft);
    border-color: var(--dv-primary-soft);
    color: var(--dv-primary-darker);
    font-weight: 600;
}
.curriculum .list-group-item .text-crt,
.learnPath .list-group-item .text-crt {
    min-width: 25px;
    font-weight: 600;
    color: var(--dv-text-muted);
}

/* ---------------------------------------------------------------------------
	17. Utilidades
--------------------------------------------------------------------------- */
.text-light   { color: var(--dv-text-muted) !important; }
.text-subtle  { color: var(--dv-text-subtle) !important; }
.text-headline{ font-size: var(--dv-fs-h3); font-weight: 700; line-height: 1.3; }
.text-subhead { font-size: var(--dv-fs-sm); color: var(--dv-text-muted); }
.text-default { color: var(--dv-text-muted); }
.bg-body      { background-color: var(--dv-bg) !important; }
.border-bottom{ border-bottom: 1px solid var(--dv-border) !important; }
.border-top   { border-top: 1px solid var(--dv-border) !important; }

.height-100pc { height: 100%; }
.display-table { display: table; }
.v-middle { vertical-align: middle !important; }
.relative { position: relative !important; }
.overflow-hidden { overflow: hidden; }

.img-circle-rwd { border-radius: 50%; object-fit: cover; }

/* ---------------------------------------------------------------------------
	18. Media query final — evita overflow en cualquier ancho
--------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    :root { --dv-container-pad: 16px; }
    .parallax { padding: 1.25rem 1rem; }
    .card-body { padding: 1rem; }
    .card-header { padding: .9rem 1rem; }
}

/* ---------------------------------------------------------------------------
   19. Tabs verticales (config, admin tools) — diseño 2026
   Estructura: sidebar izq con scroll propio + contenido der con scroll propio
   Footer del form sticky al fondo, siempre visible.
--------------------------------------------------------------------------- */
.tabbable {
    margin-bottom: 1.5rem;
    border-radius: var(--dv-radius-lg);
    overflow: hidden;
}

/* =========================================================================
	LAYOUT VERTICAL (desktop ≥ 768px)
========================================================================= */
@media (min-width: 768px) {
    .tabbable.tabs-vertical {
        display: grid;
        grid-template-columns: 280px 1fr;
        /* Altura calculada: viewport menos navbar menos padding vertical */
        height: calc(100vh - var(--dv-navbar-h) - 200px);
        min-height: 480px;
        max-height: 820px;
        background: var(--dv-surface);
        border: 1px solid var(--dv-border);
        border-radius: var(--dv-radius-lg);
        box-shadow: var(--dv-shadow-xs);
        overflow: hidden;
    }

    /* --- Sidebar izquierdo: columna con scroll propio --- */
    .tabbable.tabs-vertical > .nav-tabs {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        background: var(--dv-surface-alt);
        border-right: 1px solid var(--dv-border);
        padding: 1rem .75rem;
        gap: .2rem;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0;
        scrollbar-width: thin;
    }

    /* --- Contenido derecho: columna con scroll propio --- */
    .tabbable.tabs-vertical > .tab-content {
        position: relative;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        padding: 0;
        background: var(--dv-surface);
        border-radius: 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    /* El form ocupa el alto y empuja su footer al fondo del área */
    .tabbable.tabs-vertical > .tab-content > form {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 0;
    }
}

/* =========================================================================
	LAYOUT HORIZONTAL (mobile / default)
========================================================================= */
@media (max-width: 767.98px) {
    .tabbable.tabs-vertical {
        display: block;
        background: var(--dv-surface);
        border: 1px solid var(--dv-border);
        border-radius: var(--dv-radius-lg);
        overflow: hidden;
    }
    .tabbable.tabs-vertical > .nav-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: .5rem;
        border-right: 0;
        border-bottom: 1px solid var(--dv-border);
        background: var(--dv-surface-alt);
        gap: .25rem;
        scrollbar-width: thin;
    }
    .tabbable.tabs-vertical > .nav-tabs > li { width: auto; }
    .tabbable.tabs-vertical > .nav-tabs .nav-link {
        border-radius: var(--dv-radius-pill);
        padding: .5rem .95rem;
        background: transparent;
    }
    .tabbable.tabs-vertical > .nav-tabs .nav-link.active {
        background: var(--dv-primary);
        color: #fff;
        box-shadow: var(--dv-shadow-sm);
    }
    .tabbable.tabs-vertical > .nav-tabs .nav-link.active::before { display: none; }
    .tabbable.tabs-vertical > .tab-content { padding: 1.25rem; }
}

/* =========================================================================
	ESTILO DE LOS TABS (ambos layouts)
========================================================================= */
.tabbable > .nav-tabs > li {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
}

.tabbable > .nav-tabs > li > a,
.tabbable > .nav-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem 1rem .7rem 1.15rem;
    border: 0;
    border-radius: var(--dv-radius-sm);
    color: var(--dv-text-muted);
    font-weight: 500;
    font-size: var(--dv-fs-sm);
    line-height: 1.35;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: background-color .15s ease, color .15s ease;
    position: relative;
}
.tabbable > .nav-tabs > li > a:hover,
.tabbable > .nav-tabs .nav-link:hover {
    background: rgba(59, 130, 246, .07);
    color: var(--dv-primary-darker);
}

/* Item activo: fondo blanco + barra de acento a la izquierda */
.tabbable > .nav-tabs > li.active > a,
.tabbable > .nav-tabs .nav-link.active {
    background: var(--dv-surface);
    color: var(--dv-primary-darker);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .06);
}
.tabbable > .nav-tabs > li.active > a::before,
.tabbable > .nav-tabs .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--dv-primary);
}

/* =========================================================================
	CONTENIDO DEL FORM — títulos, campos, footer
========================================================================= */

/* Título y subtítulo de sección */
.tabbable .tab-content > h3,
.tabbable .tab-content > h4,
.tabbable .tab-content .dv-section-title {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 1.75rem 2rem 1rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--dv-text);
    border: 0;
}
.tabbable .tab-content > h4,
.tabbable .tab-content .dv-section-desc {
    padding: 0 2rem 1.25rem;
    margin: 0;
    font-size: var(--dv-fs-sm);
    font-weight: 400;
    color: var(--dv-text-muted);
    border-bottom: 1px solid var(--dv-border);
}
.tabbable .tab-content > h3 + h4 {
    border-top: 0;
    padding-top: 0;
}

/* Cuerpo del form */
.tabbable .tab-content > form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
}
.tabbable .tab-content .dv-form-body {
    flex: 1 1 auto;
    padding: 0;
}

/* Grupo de campo */
.tabbable .tab-content .dv-form-group {
    padding: 1.5rem 2rem;
    margin: 0;
    border-bottom: 1px solid var(--dv-border);
    transition: background-color .15s ease;
}
.tabbable .tab-content .dv-form-group:last-child {
    border-bottom: 0;
}
.tabbable .tab-content .dv-form-group:hover {
    background: rgba(59, 130, 246, .015);
}

/* Campo individual */
.tabbable .tab-content .dv-field {
    width: 100%;
    max-width: 720px;
}

/* Label */
.tabbable .tab-content .dv-field .form-label,
.tabbable .tab-content .dv-field > label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--dv-text);
    margin: 0 0 .55rem;
}

/* Inputs / selects */
.tabbable .tab-content .form-control,
.tabbable .tab-content .form-select,
.tabbable .tab-content .input-lg {
    font-size: .95rem;
    padding: .75rem 1rem;
    min-height: 48px;
    border-radius: var(--dv-radius-sm);
    border-color: var(--dv-border);
    background-color: var(--dv-surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tabbable .tab-content .form-control:focus,
.tabbable .tab-content .form-select:focus {
    border-color: var(--dv-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15);
}

/* Select con chevron SVG consistente */
.tabbable .tab-content .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 10px;
    padding-right: 2.75rem;
}

/* Radios y checkboxes como píldoras */
.dv-switch-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.dv-switch-group .form-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: .55rem .95rem .55rem 2.5rem;
    min-height: 44px;
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-sm);
    background: var(--dv-surface);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
    position: relative;
}
.dv-switch-group .form-check:hover {
    border-color: var(--dv-primary);
    background: var(--dv-primary-soft);
}
.dv-switch-group .form-check-input {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
}
.dv-switch-group .form-check-input:checked ~ .form-check-label {
    color: var(--dv-primary-darker);
    font-weight: 600;
}
.dv-switch-group .form-check:has(.form-check-input:checked) {
    border-color: var(--dv-primary);
    background: var(--dv-primary-soft);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .12);
}
.dv-switch-group .form-check-label {
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    color: var(--dv-text);
    margin: 0;
}
@supports not selector(:has(*)) {
    .dv-switch-group .form-check-input:checked {
        outline: 2px solid var(--dv-primary);
        outline-offset: 2px;
    }
}

/* Help text y type hint */
.tabbable .tab-content .form-text,
.tabbable .tab-content .dv-field .text-muted,
.tabbable .tab-content .dv-field small {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--dv-text-muted);
    margin-top: .5rem;
    display: block;
}
.tabbable .tab-content .dv-field small.text-muted {
    margin-top: .35rem;
    font-style: italic;
    opacity: .85;
}

/* =========================================================================
   FOOTER STICKY — siempre visible al fondo del área de contenido
========================================================================= */
.tabbable .tab-content .dv-form-actions,
.tabbable .tab-content form > .dv-form-actions,
.tabbable .tab-content form > .form-actions,
.tabbable .tab-content form > .panel-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .65rem;
    padding: 1rem 2rem;
    background: linear-gradient(to top, var(--dv-surface) 80%, rgba(255,255,255,.92));
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-top: 1px solid var(--dv-border);
    box-shadow: 0 -6px 20px rgba(17, 24, 39, .05);
    z-index: 5;
    margin: 0;
}

/* Botones del footer */
.tabbable .tab-content .dv-form-actions .btn,
.tabbable .tab-content form > .dv-form-actions .btn {
    min-height: 44px;
    padding: .6rem 1.5rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.tabbable .tab-content .dv-form-actions .btn-primary {
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), .25);
}
.tabbable .tab-content .dv-form-actions .btn-primary:hover {
    box-shadow: 0 6px 18px rgba(var(--bs-primary-rgb), .35);
    transform: translateY(-1px);
}
.tabbable .tab-content .dv-form-actions .btn-outline-secondary {
    border-color: var(--dv-border);
    color: var(--dv-text-muted);
    background: transparent;
}
.tabbable .tab-content .dv-form-actions .btn-outline-secondary:hover {
    background: var(--dv-surface-alt);
    border-color: var(--dv-border-strong);
    color: var(--dv-text);
}

/* Separadores sueltos del PHP antiguo: sutiles y sin duplicar */
.tabbable .tab-content hr {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--dv-border);
    opacity: 1;
}
.tabbable .tab-content .dv-form-group + hr {
    display: none;
}

/* ---------------------------------------------------------------------------
	20. Tool title banner
--------------------------------------------------------------------------- */
.dv-tool-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;

    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.15) 0%, transparent 45%),
        linear-gradient(135deg, var(--dv-primary) 0%, var(--dv-primary-darker) 100%);
    color: #fff;
    padding: 1.35rem 2rem;
    border-radius: var(--dv-radius-lg);
    box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), .18), 0 1px 3px rgba(17, 24, 39, .06);
    margin-bottom: 1.75rem;
    overflow: hidden;
}

/* Bloque izquierdo: título + subtítulo */
.dv-tool-title-head {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dv-tool-title h1,
.dv-tool-title h2,
.dv-tool-title .dv-tool-title-main {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    min-width: 0;
}

.dv-tool-title .dv-tool-title-sep {
    opacity: .55;
    margin: 0 .35rem;
    font-weight: 400;
    font-size: 1rem;
}

.dv-tool-title .dv-tool-title-main > span:last-child {
    font-weight: 500;
    opacity: .92;
}

.dv-tool-title .dv-tool-title-sub {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .75;
    line-height: 1;
}

/* Bloque derecho: acciones */
.dv-tool-title .dv-tool-title-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.dv-tool-title .dv-tool-title-actions .btn {
    min-height: 40px;
    padding: .5rem 1rem;
    font-size: var(--dv-fs-sm);
    font-weight: 600;
    border-radius: var(--dv-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all .15s ease;
}

/* Botones dentro del hero usan vidrio esmerilado */
.dv-tool-title .btn-white,
.dv-tool-title .btn-light,
.dv-tool-title .btn-outline-light {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dv-tool-title .btn-white:hover,
.dv-tool-title .btn-light:hover,
.dv-tool-title .btn-outline-light:hover {
    background: rgba(255,255,255,.24);
    border-color: rgba(255,255,255,.45);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Mobile */
@media (max-width: 575.98px) {
    .dv-tool-title {
        padding: 1.1rem 1.25rem;
        border-radius: var(--dv-radius);
        gap: 1rem;
    }
    .dv-tool-title h1,
    .dv-tool-title h2,
    .dv-tool-title .dv-tool-title-main {
        font-size: 1.15rem;
    }
    .dv-tool-title .dv-tool-title-actions { width: 100%; justify-content: flex-start; }
}

/* ---------------------------------------------------------------------------
	21. Forms dentro de tabs de configuración (aire, alineación)
--------------------------------------------------------------------------- */
.tabbable .tab-content .form-group,
.tabbable .tab-content .mb-3 { margin-bottom: 1.5rem !important; }

.tabbable .tab-content label,
.tabbable .tab-content .col-form-label {
    font-weight: 600;
    font-size: var(--dv-fs-sm);
    color: var(--dv-text);
    margin-bottom: .4rem;
}

.tabbable .tab-content .form-text,
.tabbable .tab-content small.text-muted,
.tabbable .tab-content .help-block {
    display: block;
    margin-top: .35rem;
    font-size: 12.5px;
    color: var(--dv-text-muted);
}

.tabbable .tab-content > h3,
.tabbable .tab-content > h4 {
    padding: 1.25rem 1.5rem .75rem;
    margin: 0;
    font-weight: 700;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--dv-border);
}
.tabbable .tab-content > hr {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--dv-border);
}

/* Espacio interno para el contenido del form (ConfigHtml no lo agrega) */
.tabbable .tab-content > form,
.tabbable .tab-content > .dv-form-body {
    padding: 1.25rem 1.5rem 1.75rem;
}

/* ---------------------------------------------------------------------------
	22. Input-lg (usado en config_edit.php)
--------------------------------------------------------------------------- */
.input-lg {
    min-height: 48px;
    padding: .65rem 1rem;
    font-size: 1rem;
    border-radius: var(--dv-radius-sm);
}

/* ---------------------------------------------------------------------------
   23. Config form — diseño 2026
--------------------------------------------------------------------------- */

/* === Título y subtítulo del tab (dentro del tab-content) === */
.tabbable .tab-content > h3,
.tabbable .tab-content > h4,
.tabbable .tab-content .dv-section-title {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 1.75rem 2rem 1rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--dv-text);
    border: 0;
}
.tabbable .tab-content > h4,
.tabbable .tab-content .dv-section-desc {
    padding: 0 2rem 1.25rem;
    margin: 0;
    font-size: var(--dv-fs-sm);
    font-weight: 400;
    color: var(--dv-text-muted);
    border-bottom: 1px solid var(--dv-border);
}

/* Si el h4 viene sin h3 (form simple) no dupliques padding */
.tabbable .tab-content > h3 + h4 { border-top: 0; padding-top: 0; }

/* === Cuerpo del form === */
.tabbable .tab-content > form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
}

.tabbable .tab-content .dv-form-body {
    flex: 1 1 auto;
    padding: 0;
}

/* === Grupo de campo === */
.tabbable .tab-content .dv-form-group {
    padding: 1.5rem 2rem;
    margin: 0;
    border-bottom: 1px solid var(--dv-border);
    transition: background-color .15s ease;
}
.tabbable .tab-content .dv-form-group:last-child {
    border-bottom: 0;
}
.tabbable .tab-content .dv-form-group:hover {
    background: rgba(59, 130, 246, .015);
}

/* === Campo individual === */
.tabbable .tab-content .dv-field {
    width: 100%;
    max-width: 720px;      /* evita inputs demasiado anchos en pantallas grandes */
}

/* Label */
.tabbable .tab-content .dv-field .form-label,
.tabbable .tab-content .dv-field > label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--dv-text);
    margin: 0 0 .55rem;
}

/* Inputs */
.tabbable .tab-content .form-control,
.tabbable .tab-content .form-select,
.tabbable .tab-content .input-lg {
    font-size: .95rem;
    padding: .75rem 1rem;
    min-height: 48px;
    border-radius: var(--dv-radius-sm);
    border-color: var(--dv-border);
    background-color: var(--dv-surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tabbable .tab-content .form-control:focus,
.tabbable .tab-content .form-select:focus {
    border-color: var(--dv-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15);
}

/* Select con chevron consistente */
.tabbable .tab-content .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 10px;
    padding-right: 2.75rem;
}

/* === Radios y checkboxes estilo moderno (píldora) === */
.dv-switch-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.dv-switch-group .form-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: .55rem .95rem .55rem 2.5rem;
    min-height: 44px;
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-sm);
    background: var(--dv-surface);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
    position: relative;
}
.dv-switch-group .form-check:hover {
    border-color: var(--dv-primary);
    background: var(--dv-primary-soft);
}
.dv-switch-group .form-check-input {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
}
.dv-switch-group .form-check-input:checked ~ .form-check-label {
    color: var(--dv-primary-darker);
    font-weight: 600;
}
.dv-switch-group .form-check:has(.form-check-input:checked) {
    border-color: var(--dv-primary);
    background: var(--dv-primary-soft);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .12);
}
.dv-switch-group .form-check-label {
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    color: var(--dv-text);
    margin: 0;
}

/* Fallback para navegadores sin :has() */
@supports not selector(:has(*)) {
    .dv-switch-group .form-check-input:checked {
        outline: 2px solid var(--dv-primary);
        outline-offset: 2px;
    }
}

/* === Help text y type hint === */
.tabbable .tab-content .form-text,
.tabbable .tab-content .dv-field .text-muted,
.tabbable .tab-content .dv-field small {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--dv-text-muted);
    margin-top: .5rem;
    display: block;
}
.tabbable .tab-content .dv-field small.text-muted {
    margin-top: .35rem;
    font-style: italic;
    opacity: .85;
}

/* === Footer sticky === */
.tabbable .tab-content .dv-form-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .65rem;
    padding: 1rem 2rem;
    background: linear-gradient(to top, var(--dv-surface) 80%, rgba(255,255,255,.92));
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-top: 1px solid var(--dv-border);
    box-shadow: 0 -6px 20px rgba(17, 24, 39, .05);
    z-index: 5;
}

/* Botones del footer */
.tabbable .tab-content .dv-form-actions .btn {
    min-height: 44px;
    padding: .6rem 1.5rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.tabbable .tab-content .dv-form-actions .btn-primary {
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), .25);
}
.tabbable .tab-content .dv-form-actions .btn-primary:hover {
    box-shadow: 0 6px 18px rgba(var(--bs-primary-rgb), .35);
    transform: translateY(-1px);
}
.tabbable .tab-content .dv-form-actions .btn-outline-secondary {
    border-color: var(--dv-border);
    color: var(--dv-text-muted);
    background: transparent;
}
.tabbable .tab-content .dv-form-actions .btn-outline-secondary:hover {
    background: var(--dv-surface-alt);
    border-color: var(--dv-border-strong);
    color: var(--dv-text);
}

/* === Separadores <hr> entre grupos === */
.tabbable .tab-content hr {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--dv-border);
    opacity: 1;
}

/* =========================================================================
   Bonus: no duplicar hr si el CSS ya pone border-bottom en dv-form-group
	Los <hr> sueltos que emite el PHP antiguo quedan sutiles
========================================================================= */
.tabbable .tab-content .dv-form-group + hr { display: none; }