/* =========================================================
   ZATTI DESIGN SYSTEM (v1)
   - Tokens + componentes base
   - Pensado para convivir con Bootstrap viejo
   ========================================================= */

/* --- Tokens (colores, tipografía, sombras, etc.) --- */
/* ---------------------------------------------------------
   1) Tokens
   --------------------------------------------------------- */
:root {
    /* Brand scale (azul del logo) */
    --z-blue-900: #020A30;
    --z-blue-800: #030F45; /* logo principal */
    --z-blue-700: #071A66;
    --z-blue-600: #0D2688;
    --z-blue-500: #1737A8;
    --z-blue-400: #3557C2;
    --z-blue-300: #6C86D9;
    --z-blue-200: #A9B8EC;
    --z-blue-100: #DDE4FA;
    --z-blue-50: #F3F5FF;
    /* Secondary (amarillo del logo) */
    --z-yellow-700: #B45309;
    --z-yellow-600: #D97706;
    --z-yellow-500: #F59E0B;
    --z-yellow-400: #FBBF24;
    --z-yellow-300: #FCD34D;
    /* Semantic tokens (lo que usa el resto del CSS) */
    --z-surface: #ffffff;
    --z-text: #0f172a;
    --z-muted: #64748b;
    --z-border: #e5e7eb;
    --z-primary: var(--z-blue-800);
    --z-primary-hover: var(--z-blue-700);
    --z-link: var(--z-blue-600);
    /* Estados (success / warning / danger / info) */
    --z-success-50: #ecfdf5;
    --z-success-200: #a7f3d0;
    --z-success-800: #065f46;
    --z-warning-50: #fffbeb;
    --z-warning-200: var(--z-yellow-300);
    --z-warning-800: #92400e;
    --z-danger-50: #fff1f2;
    --z-danger-200: #fecdd3;
    --z-danger-800: #9f1239;
    --z-info-50: #ecfeff;
    --z-info-200: #a5f3fc;
    --z-info-800: #155e75;
    /* Aliases semánticos (para componentes) */
    --z-sem-success-bg: var(--z-success-50);
    --z-sem-success-border: var(--z-success-200);
    --z-sem-success-text: var(--z-success-800);
    --z-sem-success-solid: #16a34a;
    --z-sem-warning-bg: var(--z-warning-50);
    --z-sem-warning-border: var(--z-warning-200);
    --z-sem-warning-text: var(--z-warning-800);
    --z-sem-warning-solid: var(--z-yellow-500);
    --z-sem-danger-bg: var(--z-danger-50);
    --z-sem-danger-border: var(--z-danger-200);
    --z-sem-danger-text: var(--z-danger-800);
    --z-sem-danger-solid: #ef4444;
    --z-sem-info-bg: var(--z-info-50);
    --z-sem-info-border: var(--z-info-200);
    --z-sem-info-text: var(--z-info-800);
    --z-sem-info-solid: #0891b2;
    /* Focus ring */
    --z-focus: rgba(13,38,136,.18); /* basado en blue-600 */
    --z-focus-border: rgba(13,38,136,.40);
    /* Radius + shadow */
    --z-radius: 14px;
    --z-radius-sm: 10px;
    --z-shadow: 0 20px 60px rgba(0,0,0,.25);
    --z-shadow-soft: 0 10px 25px rgba(0,0,0,.18);
    /* Tipografía */
    --z-font: "Inter",system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
    --z-font-size: 14px;
}

/* Asegura box-sizing consistente */
.zatti, .zatti *, .zatti *::before, .zatti *::after {
    box-sizing: border-box;
}

    /* --- Helpers --- */
    .zatti,
    .zatti * {
        font-family: var(--z-font);
    }

.zatti {
    color: var(--z-text);
    font-size: var(--z-font-size);
}

/* Fondo “login style” */
.zatti-bg {
    min-height: 100vh;
    background: radial-gradient(1200px 800px at 50% 20%, rgba(255,255,255,.10), transparent 55%), linear-gradient(180deg, var(--z-bg2), var(--z-bg1));
}

/* Layout centrado */
.zatti-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

/* Contenedor */
.zatti-wrap {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* Brand */
.zatti-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: #fff;
}

    .zatti-brand h1 {
        margin: 0;
        font-size: 30px;
        line-height: 1.1;
        font-weight: 900;
    }

    .zatti-brand .sub {
        margin: 0;
        color: rgba(255,255,255,.85);
        font-size: 14px;
    }

/* Logo contenedor */
.zatti-logo {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--z-shadow-soft);
    overflow: hidden;
}

    .zatti-logo img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

/* Card */
.z-card {
    width: 100%;
    background: var(--z-surface);
    border-radius: var(--z-radius);
    box-shadow: var(--z-shadow);
    padding: 26px;
}

    .z-card h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 900;
    }

    .z-card .z-helper {
        margin: 6px 0 18px 0;
        color: var(--z-muted);
        font-size: 13px;
        line-height: 1.35;
    }

/* Form fields */
.z-field {
    margin: 14px 0;
}

.z-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111827;
}

.z-input {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-sm);
    padding: 12px 12px;
    outline: none;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
    background: #f8fafc;
}

    .z-input:focus {
        border-color: var(--z-focus-border);
        box-shadow: 0 0 0 4px var(--z-focus);
        background: #fff;
    }

/ /* ---------------------------------------------------------
   7) Buttons (unificado)
   --------------------------------------------------------- */
.z-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--z-radius-sm);
    padding: 10px 12px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
}


.z-btn:active {
    transform: translateY(1px);
}

.z-btn:focus {
    outline: none;
}

.z-btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(3,15,69,.15);
}

.z-btn[disabled], .z-btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.z-btn--block {
    width: 100%;
    display: flex; /* o block */
    justify-content: center;
}

/* tamaños */
.z-btn--sm {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
}

.z-btn--md {
    padding: 10px 14px;
    font-size: 14px;
}

.z-btn--lg {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 14px;
}

.z-btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--z-radius-sm);
    padding: 10px 12px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
}

    .z-btn-inline:active {
        transform: translateY(1px);
    }

/* variantes */
.z-btn--primary {
    background: var(--z-blue-800);
    color: #fff;
}

    .z-btn--primary:hover {
        background: var(--z-blue-900);
    }

.z-btn-primary:hover,
.z-btn-primary:focus,
.z-btn-primary:active {
    color: #fff;
}

.z-btn--secondary {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--z-blue-900);
}

    .z-btn--secondary:hover {
        background: #e0e7ff;
    }

.z-btn--outline {
    background: #fff;
    border-color: var(--z-border);
    color: var(--z-text);
}

    .z-btn--outline:hover {
        border-color: #cbd5e1;
        background: #f8fafc;
    }

.z-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--z-text);
}

    .z-btn--ghost:hover {
        background: rgba(15,23,42,.05);
    }

.z-btn--danger {
    background: var(--z-sem-danger-solid);
    color: #fff;
}

    .z-btn--danger:hover {
        filter: brightness(.95);
    }

.z-btn--success {
    background: var(--z-sem-success-solid);
    color: #fff;
}

    .z-btn--success:hover {
        filter: brightness(.95);
    }

.z-btn--warning {
    background: var(--z-sem-warning-solid);
    color: #111827;
}

    .z-btn--warning:hover {
        filter: brightness(.98);
    }

/* icon button */
.z-btn--icon {
    padding: 10px;
    width: 40px;
    height: 40px;
}

.z-btn__icon {
    font-size: 18px;
    line-height: 1;
}

/* aliases legacy (para no romper páginas) */
.z-btn-primary {
    background: var(--z-primary);
    border-color: transparent;
    color: #fff;
}

    .z-btn-primary:hover {
        background: var(--z-primary-hover);
    }

.z-btn-success {
    background: var(--z-sem-success-solid);
    color: #fff;
    border: 1px solid transparent;
}

    .z-btn-success:hover {
        filter: brightness(.95);
    }

.z-btn-warning {
    background: var(--z-sem-warning-solid);
    color: #111827;
    border: 1px solid transparent;
}

    .z-btn-warning:hover {
        filter: brightness(.98);
    }

.z-btn-outline {
    background: #fff;
    border: 1px solid var(--z-border);
    color: var(--z-text);
}

    .z-btn-outline:hover {
        border-color: #cbd5e1;
        background: #f8fafc;
    }

/* Links */
.z-link {
    color: var(--z-link);
    text-decoration: none;
    font-weight: 800;
}

    .z-link:hover {
        text-decoration: underline;
    }

/* Alerts / mensajes */
.z-msg {
    margin: 0 0 12px 0;
    padding: 10px 12px;
    border-radius: var(--z-radius-sm);
    font-size: 13px;
}

.z-msg-warning {
    background: #fffbeb;
    border: 1px solid var(--z-yellow-300);
    color: #92400e;
}

.z-msg-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.z-msg-danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

/* Footer */
.z-footer {
    color: rgba(255,255,255,.75);
    font-size: 12px;
    text-align: center;
    margin-top: 6px;
}

/* Utilidades mínimas */
.z-mt-12 {
    margin-top: 12px;
}

.z-mt-18 {
    margin-top: 18px;
}

.z-center {
    text-align: center;
}

/* Responsive login/card */
@media (max-width: 480px) {
    .zatti-brand h1 {
        font-size: 26px;
    }

    .z-card {
        padding: 20px;
    }
}

/* ================================
   Tarjetas de módulos (dashboard)
   ================================ */
.z-module {
    background: #fff;
    border-radius: var(--z-radius);
    box-shadow: var(--z-shadow-soft);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--z-text);
    transition: transform .12s ease, box-shadow .12s ease;
    position: relative;
}

    .z-module:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(0,0,0,.18);
    }

.z-module-icon {
    font-size: 32px;
    color: var(--z-primary);
}

    .z-module-icon i,
    .z-module-icon .material-symbols-outlined {
        font-size: 32px;
        line-height: 1;
    }

.z-module-title {
    font-weight: 800;
    font-size: 14px;
}

.z-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
}

/* ================================
   Topbar (dashboard moderno)
   ================================ */
.z-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--z-primary);
    color: #fff;
    border-bottom: 2px solid rgba(251,191,36,.55);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.z-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.z-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.z-topbar-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .z-topbar-logo img {
        width: 80%;
        height: auto;
    }

.z-topbar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

    .z-topbar-title strong {
        font-size: 16px;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .z-topbar-title span {
        font-size: 12px;
        opacity: .85;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.z-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================================
   User menu (avatar + dropdown)
   ================================ */
.z-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

    /* “puente” para que no se corte el hover al ir al dropdown */
    .z-user::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px;
    }

.z-user-btn {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px 6px 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

    .z-user-btn:hover {
        background: rgba(255,255,255,.14);
        border-color: rgba(255,255,255,.35);
    }

.z-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    overflow: hidden;
    flex: 0 0 auto;
}

    .z-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.z-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
    max-width: 220px;
}

    .z-user-meta strong {
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .z-user-meta span {
        font-size: 12px;
        opacity: .85;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.z-caret {
    width: 10px;
    height: 10px;
    margin-left: 2px;
    opacity: .85;
}

/* Dropdown (animado, sin display none) */
.z-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    background: #fff;
    color: var(--z-text);
    border-radius: var(--z-radius);
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
    border: 1px solid var(--z-border);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
    pointer-events: none;
}

    .z-dropdown a,
    .z-dropdown button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 10px;
        border-radius: 10px;
        text-decoration: none;
        color: var(--z-text);
        font-weight: 800;
        font-size: 13px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

        .z-dropdown a:hover,
        .z-dropdown button:hover {
            background: #f1f5f9;
        }

/* Abrir por hover (solo en dispositivos con hover real) */
@media (hover:hover) {
    .z-user:hover .z-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Abrir por click (todas las pantallas) */
.z-user.is-open .z-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ================================
   Responsive fixes (mobile)
   ================================ */
@media (max-width: 768px) {
    .z-topbar-inner {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .z-topbar-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .z-topbar-title strong {
        font-size: 15px;
    }

    .z-topbar-title span {
        font-size: 12px;
    }

    .z-topbar-right {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 8px;
    }


    /* En móvil, ocultamos el texto y dejamos avatar */
    .z-user-meta {
        display: none;
    }

    .z-user-btn {
        padding: 6px;
        border-radius: 999px;
        gap: 6px;
    }

    .z-avatar {
        width: 36px;
        height: 36px;
    }

    .z-dropdown {
        width: 220px;
        right: 0;
        left: auto;
    }
}

@media (max-width: 420px) {
    .z-topbar-title span {
        display: none;
    }
}

/* ================================
   Dashboard grid responsive
   ================================ */
.z-grid {
    display: grid;
    gap: 14px;
    width: 100%;
}

/* Desktop */
@media (min-width: 992px) {
    .z-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .z-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Móvil */
@media (max-width: 767px) {
    .z-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .z-module {
        padding: 14px;
        border-radius: 12px;
    }

    .z-module-icon {
        font-size: 28px;
    }

        .z-module-icon i,
        .z-module-icon .material-symbols-outlined {
            font-size: 28px;
        }

    .z-module-title {
        font-size: 13px;
    }
}

/* Móvil muy chico */
@media (max-width: 360px) {
    .z-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Module accents (color moderno por tarjeta)
   ========================================= */

/* Base: stripe izquierda + “pastilla” de icono */
.z-module {
    border-left: 4px solid rgba(3,15,69,.25);
}

.z-module-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3,15,69,.08);
}

/* Título/espaciado: al tener icono en pastilla, queda mejor así */
.z-module {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.z-module-title {
    margin-top: 0; /* por si venías con layout columna */
}

/* El ícono hereda color del acento */
.z-module-icon i,
.z-module-icon .material-symbols-outlined {
    color: var(--z-accent, var(--z-primary));
}

/* --- Variantes de acento --- */
.z-module--blue {
    --z-accent: #2563eb;
}

.z-module--green {
    --z-accent: #16a34a;
}

.z-module--amber {
    --z-accent: #f59e0b;
}

.z-module--purple {
    --z-accent: #7c3aed;
}

.z-module--rose {
    --z-accent: #e11d48;
}

.z-module--cyan {
    --z-accent: #0891b2;
}

.z-module--slate {
    --z-accent: #334155;
}

.z-module--teal {
    --z-accent: #0d9488;
}

.z-module--orange {
    --z-accent: #ea580c;
}

.z-module--indigo {
    --z-accent: #4f46e5;
}

.z-module--blue,
.z-module--green,
.z-module--amber,
.z-module--purple,
.z-module--rose,
.z-module--cyan,
.z-module--slate,
.z-module--teal,
.z-module--orange,
.z-module--indigo {
    border-left-color: color-mix(in srgb, var(--z-accent) 55%, transparent);
}

    .z-module--blue .z-module-icon,
    .z-module--green .z-module-icon,
    .z-module--amber .z-module-icon,
    .z-module--purple .z-module-icon,
    .z-module--rose .z-module-icon,
    .z-module--cyan .z-module-icon,
    .z-module--slate .z-module-icon,
    .z-module--teal .z-module-icon,
    .z-module--orange .z-module-icon,
    .z-module--indigo .z-module-icon {
        background: color-mix(in srgb, var(--z-accent) 12%, transparent);
    }

/* Mobile: vuelve a layout columna si querés (se ve más “tile”) */
@media (max-width: 767px) {
    .z-module {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ================================
   Breadcrumbs (modern)
   ================================ */

.z-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--z-muted);
    font-size: 12px;
    font-weight: 800;
}

    .z-breadcrumbs li {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .z-breadcrumbs li + li::before {
            content: "chevron_right";
            font-family: "Material Symbols Outlined";
            font-weight: normal;
            font-style: normal;
            font-size: 18px;
            line-height: 1;
            opacity: .65;
        }

    .z-breadcrumbs a {
        color: var(--z-muted);
        text-decoration: none;
        border-radius: 999px;
        padding: 6px 10px;
        background: rgba(148,163,184,.22); /* slate-300 suave */
        transition: background .12s ease, color .12s ease, transform .05s ease;
    }

        .z-breadcrumbs a:hover {
            background: rgba(148,163,184,.32);
            color: var(--z-text);
        }

    .z-breadcrumbs .is-current {
        color: var(--z-text);
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(148,163,184,.16);
    }

/* =========================================================
   LEGAJO / PERFIL (v1)
   - Layout y componentes reutilizables para "Perfil personal"
   ========================================================= */

/* Contenedor de página (reutilizable en otros módulos) */
.z-page-wrap {
    max-width: 1200px;
    margin: 18px auto;
    padding: 0 12px;
}

/* Header tipo “perfil” */
.z-profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.z-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 999px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--z-border);
    flex: 0 0 auto;
}

    .z-profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.z-profile-meta {
    min-width: 0;
    flex: 1 1 auto;
}

    .z-profile-meta h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 900;
    }

    .z-profile-meta .z-helper {
        margin: 6px 0 0 0;
    }

/* Botonera */
.z-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}





/* Secciones */
.z-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.z-section-sub {
    margin-top: 6px;
    color: var(--z-muted);
    font-size: 13px;
}

/* Toast / alert flotante (para tus mostrarAlerta) */
.z-toast {
    position: fixed;
    top: 90px; /* debajo de topbar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    width: min(680px, calc(100% - 24px));
    text-align: center;
}

/* DataTables: suavizar look dentro del DS */
.zatti .dataTables_wrapper .dataTables_filter input,
.zatti .dataTables_wrapper .dataTables_length select {
    border-radius: 10px;
    border: 1px solid var(--z-border);
    padding: 8px 10px;
    outline: none;
}

    .zatti .dataTables_wrapper .dataTables_filter input:focus,
    .zatti .dataTables_wrapper .dataTables_length select:focus {
        border-color: var(--z-focus-border);
        box-shadow: 0 0 0 4px var(--z-focus);
    }

/* Responsive */
@media (max-width: 768px) {
    .z-profile-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .z-profile-avatar {
        width: 120px;
        height: 120px;
    }
}


/* =========================================================
   LEGAJO - HERO + FIELDS (inspirado en Figma)
   ========================================================= */

.z-hero {
    border-radius: var(--z-radius);
    overflow: hidden;
    border: 1px solid var(--z-border);
    background: radial-gradient(900px 500px at 20% 10%, rgba(255,255,255,.10), transparent 55%), linear-gradient(135deg, var(--z-blue-700), var(--z-blue-900));
    color: #fff;
}

    .z-hero h2 {
        margin: 0;
        letter-spacing: -.2px;
    }


.z-hero-inner {
    padding: 22px 22px 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.z-hero-avatar {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,.9);
    background: rgba(255,255,255,.12);
    flex: 0 0 auto;
}

    .z-hero-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.z-hero-title {
    font-size: 22px;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
}

.z-hero-sub {
    margin-top: 6px;
    opacity: .9;
    font-weight: 700;
}

.z-hero-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.z-btn-hero-glass {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    border-radius: var(--z-radius-sm);
    padding: 10px 14px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .12s ease, transform .05s ease;
}

    .z-btn-hero-glass:hover {
        background: rgba(255,255,255,.22);
    }

    .z-btn-hero-glass:active {
        transform: translateY(1px);
    }

.z-btn-hero-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: var(--z-radius-sm);
    padding: 8px 14px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

    .z-btn-hero-secondary:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.7);
        color: #fff;
    }

    .z-btn-hero-secondary:active {
        transform: translateY(1px);
    }

.z-hero-body {
    background: #fff;
    color: var(--z-text);
    padding: 18px 22px 22px 22px;
}

/* Secciones tipo “Información Personal / Contacto / Médica” */
.z-block {
    padding: 14px 0;
    border-top: 1px solid var(--z-border);
}

    .z-block:first-child {
        border-top: 0;
    }

.z-block-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 18px;
    margin: 0 0 12px 0;
}

    .z-block-head i,
    .z-block-head .material-symbols-outlined {
        font-size: 20px;
        opacity: .9;
    }

/* Fields */
.z-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
}

.z-field .z-field-label {
    color: var(--z-muted);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .2px;
}

.z-field .z-field-value {
    margin-top: 6px;
    font-weight: 900;
    font-size: 16px;
    color: var(--z-text);
    word-break: break-word;
}

.z-divider {
    height: 1px;
    background: var(--z-border);
    margin: 16px 0;
}

/* responsive */
@media (max-width: 768px) {
    .z-hero-inner {
        flex-wrap: wrap;
    }

    .z-hero-actions {
        margin-left: 0;
        width: 100%;
    }

    .z-fields {
        grid-template-columns: 1fr;
    }
}
