/* ============================================
   CPSH Buenos Aires — Sección Miembro
   Implementación fiel del diseño Stitch
   Primary: #21446e | Accent: #3c8dbc
   Font: Inter + Material Symbols Outlined
   ============================================ */

/* ---- Google Fonts import via PHP layout ---- */

/* ---- CSS Variables ---- */
:root {
    --primary: #21446e;
    --primary-dark: #1a3555;
    --primary-light: rgba(33, 68, 110, 0.08);
    --accent: #3c8dbc;
    --accent-light: rgba(60, 141, 188, 0.1);
    --bg: #f6f7f8;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text-dark: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .04);

    --transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

/* ---- Base ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    vertical-align: middle;
    user-select: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -.01em;
}

/* ============================================
   TOP INFO BAR
   ============================================ */
.header-top {
    background: linear-gradient(90deg, var(--primary-dark) 0%, #2a5298 50%, var(--primary) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 0;
}

.ht-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    gap: 16px;
}

/* Left: contact items */
.ht-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.ht-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: color .2s;
    letter-spacing: .01em;
}

.ht-item:hover {
    color: #fff;
    text-decoration: none;
}

.ht-item .material-symbols-outlined {
    font-size: 14px;
    opacity: .75;
}

.ht-sep {
    color: rgba(255, 255, 255, .25);
    font-size: 14px;
    margin: 0 2px;
    user-select: none;
}

/* Center: portal badge */
.ht-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ht-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 3px 12px 3px 8px;
    border-radius: 50px;
}

.ht-portal-badge .material-symbols-outlined {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}

/* Right: social icons */
.ht-right {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: flex-end;
}

.ht-social {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: background .2s, color .2s;
}

.ht-social:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    text-decoration: none;
}

.ht-social .material-symbols-outlined {
    font-size: 14px;
}

@media (max-width: 767px) {
    .ht-center {
        display: none;
    }

    .ht-item span:not(.material-symbols-outlined) {
        display: none;
    }

    .ht-item .material-symbols-outlined {
        opacity: 1;
    }

    .ht-inner {
        padding: 0 12px;
    }
}

/* ============================================
   NAVBAR  (Stitch: sticky white header, 80px)
   ============================================ */
.navbar {
    margin-bottom: 0;
    border-radius: 0;
}

.navbar-inverse {
    background: var(--surface);
    border: none;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    min-height: 72px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Brand — icon + text block */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px 0 0;
    margin-top: 10px !important;
}

.navbar-right {
    margin-top: 0 !important;
}

@media (min-width: 768px) {
    .navbar-brand {
        height: 72px;
    }
}

.navbar-brand .brand-icon {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-brand .brand-icon .material-symbols-outlined {
    font-size: 22px;
}

.navbar-brand .brand-text .name {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -.02em;
    display: block;
}

.navbar-brand .brand-text .sub {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}

/* Logo image fallback (if brand image is used) */
.navbar-brand>img {
    max-height: 44px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .08));
}

.navbar-right {
    margin-top: 0;
}

@media (min-width: 768px) {
    .navbar-right {
        display: flex;
        align-items: center;
        height: 72px;
    }
}

/* Nav links */
.navbar-inverse .navbar-nav>li>a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

@media (min-width: 768px) {
    .navbar-inverse .navbar-nav>li>a {
        padding: 0 14px;
        line-height: 72px;
        height: 72px;
    }
}

.navbar-inverse .navbar-nav>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .25s ease;
}

.navbar-inverse .navbar-nav>li>a:hover {
    color: var(--primary);
    background: transparent;
}

.navbar-inverse .navbar-nav>li>a:hover::after {
    transform: scaleX(1);
}

.navbar-inverse .navbar-nav>.active>a {
    color: var(--primary);
    font-weight: 700;
    background: transparent;
}

.navbar-inverse .navbar-nav>.active>a::after {
    transform: scaleX(1);
}

.navbar-inverse .navbar-nav>.active>a:hover,
.navbar-inverse .navbar-nav>.active>a:focus {
    background: transparent;
    color: var(--primary);
}

/* Open dropdown */
.navbar-inverse .navbar-nav>.open>a,
.navbar-inverse .navbar-nav>.open>a:hover,
.navbar-inverse .navbar-nav>.open>a:focus {
    color: var(--primary) !important;
    background: transparent !important;
    font-weight: 700;
}

.navbar-inverse .navbar-nav>.open>a::after {
    transform: scaleX(1) !important;
}

/* ----  Dropdown menu — Stitch rich card style ---- */
.navbar-inverse .navbar-nav .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    min-width: 280px;
    margin-top: 4px;
    background: var(--surface);
    animation: dropIn .18s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rich dropdown items with icon + text */
.navbar-inverse .navbar-nav .dropdown-menu>li>a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    border: none;
}

.navbar-inverse .navbar-nav .dropdown-menu>li>a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* Icon chip in dropdown */
.navbar-inverse .navbar-nav .dropdown-menu>li>a .dropdown-icon {
    background: var(--primary-light);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-inverse .navbar-nav .dropdown-menu>li>a .dropdown-icon .material-symbols-outlined {
    font-size: 18px;
}

.navbar-inverse .navbar-nav .dropdown-menu>li>a .dropdown-text {
    display: flex;
    flex-direction: column;
}

.navbar-inverse .navbar-nav .dropdown-menu>li>a .dropdown-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.navbar-inverse .navbar-nav .dropdown-menu>li>a .dropdown-text span {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
    line-height: 1.3;
}

.navbar-inverse .navbar-nav .dropdown-menu>li>a:hover .dropdown-text strong {
    color: var(--primary);
}

/* Old-style dropdown headers and dividers */
.dropdown-menu .dropdown-header {
    padding: 8px 12px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
}

.dropdown-menu .divider {
    margin: 6px 12px;
    background: var(--border);
}

/* ---- Notification button ---- */
.notification-btn {
    position: relative;
    padding: 8px 10px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition);
    border: none;
    background: transparent;
    display: flex !important;
    align-items: center;
}

@media (min-width: 768px) {
    .notification-btn {
        height: 72px;
    }
}

.notification-btn:hover {
    background: var(--bg) !important;
    color: var(--text-dark);
}

.notification-btn .notif-dot {
    position: absolute;
    top: 18px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--surface);
    z-index: 1;
}

/* ---- User header trigger (name + matricula + avatar) ---- */
.user-header-dropdown>a.user-header-trigger {
    padding: 0;
    display: flex !important;
    align-items: center;
    border-left: 1px solid var(--border);
    margin-left: 8px;
    background: transparent !important;
    color: var(--text-dark) !important;
}

@media (min-width: 768px) {
    .user-header-dropdown>a.user-header-trigger {
        height: 72px;
    }
}

.user-header-trigger:hover,
.user-header-trigger:focus {
    background: transparent !important;
    color: var(--text-dark) !important;
}

.user-header-widget-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    cursor: pointer;
}

.user-header-widget-inner:hover .user-name {
    color: var(--primary);
}

.user-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-header-trigger .user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    transition: var(--transition);
}

.user-header-trigger .user-mat {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
}

.user-header-trigger .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid rgba(33, 68, 110, .15);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.user-header-dropdown:hover .user-avatar,
.user-header-dropdown.open .user-avatar {
    border-color: var(--primary);
}

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

.user-chevron {
    font-size: 18px !important;
    color: var(--text-muted);
    transition: transform .2s ease;
}

.user-header-dropdown.open .user-chevron {
    transform: rotate(180deg);
}

/* ---- User dropdown panel ---- */
.user-dropdown-menu {
    min-width: 292px;
    overflow: visible;
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(33, 68, 110, .12) !important;
    box-shadow: 0 18px 35px rgba(15, 23, 42, .12), 0 6px 16px rgba(15, 23, 42, .06) !important;
    padding: 8px !important;
    margin-top: 8px !important;
    background: var(--surface);
    animation: dropIn .18s ease;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 24px;
    width: 14px;
    height: 14px;
    border-top: 1px solid rgba(33, 68, 110, .12);
    border-left: 1px solid rgba(33, 68, 110, .12);
    background: #fbfcfe;
    transform: rotate(45deg);
}

.user-dropdown-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #edf1f5;
    border-radius: var(--radius-lg);
    background: #fbfcfe;
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(33, 68, 110, .12);
    background: var(--primary-light);
}

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

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-info strong {
    display: block;
    font-size: 14px;
    font-weight: 850;
    color: var(--text-dark);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-info > span {
    display: block;
    font-size: 11px;
    font-weight: 750;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 3px;
}

.user-dropdown-info small {
    display: block;
    margin-top: 8px;
}

.user-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #b45309;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.user-status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.user-status-success,
.user-status-green {
    border-color: #bbf7d0;
    background: #ecfdf3;
    color: #15803d;
}

.user-status-danger,
.user-status-red {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.user-status-info,
.user-status-primary,
.user-status-blue {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.user-status-warning,
.user-status-yellow,
.user-status-orange {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.user-dropdown-divider {
    height: 1px;
    margin: 8px 4px;
    overflow: hidden;
    background: #edf1f5;
}

/* Dropdown items */
.navbar-inverse .navbar-nav .user-dropdown-menu>li>a.user-dropdown-item,
.navbar-inverse .navbar-nav .user-dropdown-menu>li .user-dropdown-item,
a.user-dropdown-item,
button.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-md);
    line-height: 1.4;
}

.navbar-inverse .navbar-nav .user-dropdown-menu .user-dropdown-item-icon,
.user-dropdown-item-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    transition: var(--transition);
}

.navbar-inverse .navbar-nav .user-dropdown-menu .user-dropdown-item-icon .material-symbols-outlined,
.user-dropdown-item-icon .material-symbols-outlined {
    font-size: 18px;
    color: currentColor;
    transition: var(--transition);
}

.navbar-inverse .navbar-nav .user-dropdown-menu>li>a.user-dropdown-item:hover,
.navbar-inverse .navbar-nav .user-dropdown-menu>li .user-dropdown-item:hover,
a.user-dropdown-item:hover,
button.user-dropdown-item:hover {
    background: #fbfcfe;
    color: var(--primary);
    text-decoration: none;
}

.navbar-inverse .navbar-nav .user-dropdown-menu>li>a.user-dropdown-item:hover .user-dropdown-item-icon,
.navbar-inverse .navbar-nav .user-dropdown-menu>li .user-dropdown-item:hover .user-dropdown-item-icon,
a.user-dropdown-item:hover .user-dropdown-item-icon,
button.user-dropdown-item:hover .user-dropdown-item-icon {
    background: rgba(33, 68, 110, .12);
}

.user-dropdown-logout {
    color: #dc2626 !important;
}

.user-dropdown-logout .user-dropdown-item-icon {
    background: #fef2f2;
    color: #dc2626 !important;
}

.user-dropdown-logout:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.user-dropdown-logout:hover .user-dropdown-item-icon {
    background: #fee2e2;
}

.user-dropdown-form {
    display: block;
    padding: 0;
    margin: 0;
}

/* ---- Warning pill in navbar ---- */
.debt-warning-btn {
    display: inline-flex !important;
    align-items: center;
    padding: 18px 12px 18px 0 !important;
    /* aligns with navbar height */
    text-decoration: none;
    color: #ef4444 !important;
    font-weight: 600;
    font-size: 13px;
    gap: 6px;
    transition: color 0.2s;
}

.debt-warning-btn:hover {
    color: #b91c1c !important;
    text-decoration: none;
}

.debt-warning-btn .material-symbols-outlined {
    font-size: 18px;
}

/* ---- Mobile toggle ---- */
.navbar-inverse .navbar-toggle {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 18px;
    background: var(--bg);
}

.navbar-inverse .navbar-toggle .icon-bar {
    background: var(--accent);
}

.navbar-inverse .navbar-toggle:hover {
    background: var(--primary-light);
}

/* ============================================
   BREADCRUMB  (Stitch: subtle gray strip)
   ============================================ */
.member-breadcrumb-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.breadcrumb {
    background: var(--bg);
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 10px 24px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.breadcrumb>li {
    display: inline-flex;
    min-width: 0;
    align-items: center;
}

@media (max-width: 767px) {
    .breadcrumb {
        padding-right: 15px;
        padding-left: 15px;
        overflow-wrap: anywhere;
    }

    .breadcrumb > li,
    .breadcrumb > li > a {
        max-width: 100%;
    }
}

.breadcrumb>li+li:before {
    content: '';
    display: none;
}

.breadcrumb>li+li::before {
    display: none;
}

/* Use Stitch-style chevron icon — override via adjacent li */
.breadcrumb>li .bc-sep {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 4px;
    line-height: 1;
}

.breadcrumb>li>a {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    padding: 2px 4px;
    border-radius: 4px;
}

.breadcrumb>li>a:hover {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb>.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    max-width: 1280px;
}

/* ============================================
   STITCH SERVICE CARDS  (4-column grid)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-card .card-icon .material-symbols-outlined {
    font-size: 24px;
}

.service-card .card-icon-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.service-card .card-icon-accent {
    background: var(--accent-light);
    color: var(--accent);
}

.service-card .card-icon-green {
    background: rgba(34, 197, 94, .1);
    color: #16a34a;
}

.service-card .card-icon-orange {
    background: rgba(249, 115, 22, .1);
    color: #ea580c;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.service-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    float: none;
    text-align: left;
    width: auto;
    margin: 0 0 16px;
}

.service-card .card-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.service-card .card-link .material-symbols-outlined {
    font-size: 16px;
    transition: transform .2s ease;
}

.service-card .card-link:hover {
    text-decoration: none;
    color: var(--primary-dark);
}

.service-card .card-link:hover .material-symbols-outlined {
    transform: translateX(3px);
}

/* ============================================
   STITCH CTA BANNER  (navy with ghost icon)
   ============================================ */
.cta-banner {
    background: var(--primary);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.cta-banner .cta-ghost-icon {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    opacity: .08;
    pointer-events: none;
}

.cta-banner .cta-ghost-icon .material-symbols-outlined {
    font-size: 200px;
    color: #fff;
}

.cta-banner h3 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
}

.cta-banner p {
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    margin: 0 0 28px;
    float: none;
    text-align: left;
    width: auto;
}

.cta-banner .btn-cta {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.cta-banner .btn-cta:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--primary);
}

/* ============================================
   DASHBOARD STATS CARDS  (4-column)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 0 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card.stat-featured {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(33, 68, 110, .25);
}

.stat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-card-icon {
    padding: 10px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon-green {
    background: rgba(34, 197, 94, .1);
    color: #16a34a;
}

.stat-card-icon-blue {
    background: rgba(33, 68, 110, .08);
    color: var(--primary);
}

.stat-card-icon-white {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.stat-card-icon-amber {
    background: rgba(251, 191, 36, .1);
    color: #d97706;
}

.stat-card-icon-purple {
    background: rgba(139, 92, 246, .1);
    color: #8b5cf6;
}

.stat-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.stat-badge-green {
    background: rgba(34, 197, 94, .1);
    color: #16a34a;
}

.stat-badge-slate {
    background: #f1f5f9;
    color: #64748b;
}

.stat-badge-white {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.stat-badge-amber {
    background: rgba(251, 191, 36, .1);
    color: #d97706;
}

.stat-badge-purple {
    background: rgba(139, 92, 246, .1);
    color: #8b5cf6;
}

.badge-nuevo {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .03em;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.stat-card-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
    float: none;
    text-align: left;
    width: auto;
}

.stat-featured .stat-card-label {
    color: rgba(255, 255, 255, .7);
}

.stat-card-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -.02em;
    line-height: 1;
    float: none;
    text-align: left;
    width: auto;
}

.stat-featured .stat-card-value {
    color: #fff;
}

.stat-featured .stat-card-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, .7);
    margin-top: 3px;
    float: none;
    text-align: left;
    width: auto;
}

.stat-card.stat-featured-purple {
    background: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 8px 16px rgba(139, 92, 246, .25);
    animation: stat-pulse-purple 2s infinite;
}

@keyframes stat-pulse-purple {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, .4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.stat-featured-purple .stat-card-label {
    color: rgba(255, 255, 255, .8);
}

.stat-featured-purple .stat-card-value {
    color: #fff;
}

.stat-featured-purple .stat-badge-purple {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.stat-featured-purple .stat-card-icon-purple {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.icon-shake {
    animation: icon-shake 2s infinite cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes icon-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0) rotate(-5deg);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0) rotate(5deg);
    }
}

/* ============================================
   DASHBOARD CONTENT GRID  (2/3 + 1/3)
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-top: 0;
}

/* News feed card */
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.news-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.news-card-header a {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.news-item:hover {
    background: var(--bg);
}

.news-item:last-child {
    border-bottom: none;
}

.news-thumb {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-md);
    background: var(--border);
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
}

.news-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.news-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin: 0 0 6px;
}

.news-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    float: none;
    text-align: left;
    width: auto;
}

.news-date {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-top: 6px;
    float: none;
    text-align: left;
    width: auto;
}

/* Sidebar widgets */
.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.sidebar-widget-accent {
    background: var(--accent);
    border-color: var(--accent);
}

.sidebar-widget-body {
    padding: 20px 24px;
}

.sidebar-widget h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.sidebar-widget p {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 16px;
    float: none;
    text-align: left;
    width: auto;
}

.sidebar-widget .btn-widget {
    width: 100%;
    background: #fff;
    color: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-widget .btn-widget:hover {
    background: #f1f5f9;
}

/* Quick actions panel */
.quick-actions {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.quick-actions h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    color: var(--text-body);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 8px;
}

.quick-action-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.quick-action-item:hover .material-symbols-outlined {
    transform: scale(1.1);
}

.quick-action-item .material-symbols-outlined {
    color: var(--primary);
    font-size: 20px;
    transition: transform .2s ease;
}

/* ============================================
   PROFILE PAGE  (Stitch: header + sections)
   ============================================ */
.miembro-view {
    padding: 32px 0;
}

/* Profile header card */
.stitch-profile-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-sm);
}

.stitch-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.stitch-avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 4px solid var(--bg);
    background: var(--border-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
}

.stitch-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stitch-avatar .glyphicon {
    font-size: 44px;
    color: var(--text-muted);
}

.stitch-profile-info {
    flex: 1;
}

.stitch-profile-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -.02em;
    margin: 0 0 4px;
    line-height: 1.15;
}

.stitch-profile-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0 0 12px;
    float: none;
    text-align: left;
    width: auto;
}

.stitch-profile-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stitch-badge-matricula {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
}

.stitch-badge-matricula .material-symbols-outlined {
    font-size: 15px;
}

.stitch-badge-status {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.stitch-badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.stitch-badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.stitch-badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.stitch-badge-slate {
    background: #f1f5f9;
    color: #64748b;
}

/* Detail card */
.stitch-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.stitch-section {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.stitch-section:last-child {
    border-bottom: none;
}

.stitch-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 18px;
}

.stitch-section-title .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary);
}

/* Grid cells */
.stitch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stitch-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.stitch-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stitch-cell {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    transition: background .15s;
}

.stitch-cell:hover {
    background: rgba(33, 68, 110, .03);
}

.stitch-cell-alt {
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.stitch-cell-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .08em;
    margin-bottom: 4px;
    float: none;
    text-align: left;
    width: auto;
}

.stitch-cell-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    float: none;
    text-align: left;
    width: auto;
}

/* License status cards */
.stitch-status-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg);
}

.stitch-status-card-primary {
    background: rgba(33, 68, 110, .06);
    border-left: 4px solid var(--primary);
}

.stitch-status-card-primary .stitch-cell-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
}

.stitch-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stitch-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.stitch-status-dot-success {
    background: #22c55e;
}

.stitch-status-dot-warning {
    background: #f59e0b;
}

.stitch-status-dot-danger {
    background: #ef4444;
}

.stitch-status-text {
    font-size: 14px;
    font-weight: 700;
}

.stitch-status-text-success {
    color: #16a34a;
}

.stitch-status-text-warning {
    color: #d97706;
}

.stitch-status-text-danger {
    color: #dc2626;
}

/* Stitch alert */
.stitch-alert {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.stitch-alert-icon {
    background: #ffedd5;
    color: #ea580c;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
}

.stitch-alert-title {
    font-weight: 700;
    color: #9a3412;
    font-size: 14px;
    margin-bottom: 4px;
    float: none;
    text-align: left;
    width: auto;
}

.stitch-alert-text {
    color: #c2410c;
    font-size: 13px;
    line-height: 1.6;
    float: none;
    text-align: left;
    width: auto;
}

/* ============================================
   FOOTER  (Stitch: navy multi-column)
   ============================================ */
footer.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-brand .brand-logo .material-symbols-outlined {
    font-size: 28px;
    color: var(--primary);
}

.footer-brand .brand-logo span.name {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -.02em;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    float: none;
    text-align: left;
    width: auto;
    margin: 0;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-col .contact-item .material-symbols-outlined {
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding: 20px 32px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    float: none;
    text-align: left;
    width: auto;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .footer-links a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom .footer-links a:hover {
    color: var(--primary);
}

/* Old footer image (fallback if used) */
footer.footer .container img {
    max-height: 44px;
    opacity: .7;
    filter: grayscale(1);
}

#bottom-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, .5);
    padding: 14px 0;
    font-size: 11px;
    text-align: center;
}

/* ============================================
   LOGIN / FORM
   ============================================ */
.site-login {
    padding-top: 48px;
}

.site-login h1 {
    text-align: center;
    color: var(--primary);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
}

.login {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.account-login {
    width: 440px;
}

.login-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-form button.btn {
    width: 100%;
    background: var(--primary) !important;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    padding: 13px;
    border-radius: var(--radius-md);
    margin: 16px 0 20px;
    transition: var(--transition);
    letter-spacing: .01em;
}

.login-form button.btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(33, 68, 110, .3);
}

.form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 68, 110, .12);
    outline: none;
}

.remember {
    float: left;
    width: 100%;
}

p {
    float: left;
    width: 100%;
    /* text-align: center; */
    font-size: 14px;
}

p a {
    color: var(--accent);
    transition: var(--transition);
}

p a:hover {
    color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    padding: 9px 20px;
    transition: var(--transition);
}

.btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn:active {
    transform: translateY(0);
}

.btn.certificados {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
}

/* ============================================
   BADGES / LABELS  (pill)
   ============================================ */
.label {
    font-weight: 700;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.label-success {
    background: #dcfce7;
    color: #16a34a;
}

.label-warning {
    background: #fef3c7;
    color: #d97706;
}

.label-danger {
    background: #fee2e2;
    color: #dc2626;
}

.label-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.label-default {
    background: #f1f5f9;
    color: #64748b;
}

.label-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.set {
    color: #16a34a;
    font-style: italic;
}

.not-set {
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 14px 20px;
    font-size: 14px;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* ============================================
   TABLES
   ============================================ */
.table>thead>tr>th {
    background: var(--bg);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid var(--border);
    padding: 11px 16px;
}

.table>tbody>tr>td {
    padding: 11px 16px;
    border-color: var(--border-light);
    vertical-align: middle;
    font-size: 14px;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background: var(--bg);
}

.table>tbody>tr:hover {
    background: var(--primary-light);
}

/* ============================================
   PANELS
   ============================================ */
.panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.panel-heading {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 700;
}

.panel-default>.panel-heading {
    background: var(--bg);
    color: var(--text-dark);
    border-color: var(--border);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination>li>a,
.pagination>li>span {
    color: var(--primary);
    border-color: var(--border);
    border-radius: var(--radius-md) !important;
    margin: 0 2px;
    transition: var(--transition);
}

.pagination>.active>a,
.pagination>.active>span {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination>li>a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
}

#modal-cert .modal-content {
    border-radius: var(--radius-xl);
    text-align: center;
}

#modal-cert .modal-cert-text {
    color: var(--primary);
    text-align: left;
}

#modal-cert h3 {
    font-weight: 900;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--primary);
    margin-bottom: 16px;
}

/* ============================================
   MISC
   ============================================ */
.page-header {
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-top: 28px;
    margin-bottom: 20px;
}

.resoluciones {
    margin-top: 28px;
}

.cuenta-corriente-matriculado td {
    vertical-align: inherit !important;
    text-align: left;
}

.clickeable {
    cursor: pointer;
}

#preview-cert p {
    text-align: left;
}

#preview-cert .title,
#preview-cert .subtitle {
    text-align: center;
}

#preview-cert hr {
    border-top: 1px solid var(--border);
}

#preview-cert .box-title {
    background: var(--bg);
    padding: 4px 12px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

#qr-download-certificado img {
    margin: 0 auto;
}

#modal-cert .img-check {
    margin: 24px 0;
}

#modal-cert .img-qr {
    margin-left: 20px;
}

/* Blink animation */
.text {
    font-size: 14px;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
}

.parpadea {
    animation: parpadeo 2s ease-in-out infinite;
}

@keyframes parpadeo {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

/* Help icon */
.ayuda-container {
    position: absolute;
    top: 15px;
    right: 25px;
}

.ayuda-icono {
    font-size: 1.6em;
    cursor: pointer;
    color: var(--accent);
    animation: rebote 2.5s ease-in-out infinite;
    transition: var(--transition);
}

.ayuda-icono:hover {
    color: #d97706;
    transform: scale(1.12);
}

@keyframes rebote {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Notif hamburger */
#notificacion-hamburgesa {
    position: absolute;
    top: 4px;
}

.notificacion.content-wrapper {
    margin-left: 0 !important;
}

p#mensaje-notificacion {
    text-align: left;
}

/* Messages menu */
.messages-menu>a>.label {
    position: absolute;
    top: 9px;
    right: 6px;
    font-size: 9px;
    padding: 2px 4px;
    min-width: 15px;
    border-radius: 50px;
}

.messages-menu>.dropdown-menu>li.header {
    font-size: 13px !important;
    padding: 10px 16px;
    background: var(--bg);
    font-weight: 600;
}

.messages-menu>.dropdown-menu>li.footer {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 12px;
    background: #fff;
    padding: 8px 16px;
    border-top: 1px solid var(--border-light);
    color: #444 !important;
    text-align: center;
}

.messages-menu>.dropdown-menu>li.footer>a {
    border-bottom: none !important;
    padding: 4px 0 !important;
    color: var(--accent);
    font-weight: 500;
}

.navbar-nav>.messages-menu>.dropdown-menu>li .menu>li>a>h4 {
    font-weight: 600 !important;
}

.navbar-nav>.messages-menu>.dropdown-menu>li .menu>li>a>p {
    margin: 0 !important;
    width: 0;
    font-size: 12px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
    font-weight: normal;
    padding-top: 2px;
    float: left;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.custom-checkbox:hover input~.checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember {
    float: left;
    width: 100%;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stitch-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .stitch-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stitch-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {

    .services-grid,
    .stats-grid,
    .stitch-grid,
    .stitch-grid-2,
    .stitch-grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stitch-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .stitch-profile-info {
        text-align: center;
    }

    .stitch-profile-subtitle {
        text-align: center;
    }

    .stitch-profile-badges {
        justify-content: center;
    }

    .stitch-profile-name {
        font-size: 22px;
    }

    .navbar-brand>img {
        width: 75%;
    }

    .navbar-brand {
        float: none;
    }

    .navbar-toggle {
        margin-top: 18px;
    }

    .login-form {
        padding: 24px;
    }

    .account-login {
        width: 90%;
    }

    .cta-banner {
        padding: 32px 24px;
    }

    .footer-grid,
    .footer-bottom {
        padding: 0 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    #modal-cert .img-qr {
        margin-left: 0;
    }

    #modal-cert .modal-cert-text {
        text-align: center;
    }
}

/* ============================================================
   FORMULARIO DE MATRICULACIÓN - DISEÑO STITCH
   ============================================================ */

.matriculacion-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(33,68,110,0.08);
    padding: 32px;
    margin-bottom: 24px;
}

/* --- Progress bar --- */
.matriculacion-card #progressbar {
    display: flex;
    margin-bottom: 40px;
    overflow: visible;
    padding: 0;
    list-style: none;
}

.matriculacion-card #progressbar li {
    list-style-type: none;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    width: 20%;
    float: left;
    position: relative;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
}

.matriculacion-card #progressbar li.active {
    color: var(--primary);
}

.matriculacion-card #progressbar li:before {
    width: 44px;
    height: 44px;
    line-height: 44px;
    display: block;
    font-size: 18px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    border-radius: 50%;
    margin: 0 auto 10px auto;
    color: var(--text-muted);
    border: 2px solid var(--border);
}

.matriculacion-card #progressbar li:nth-child(1):before { content: '1'; font-family: 'Inter', sans-serif; }
.matriculacion-card #progressbar li:nth-child(2):before { content: '2'; font-family: 'Inter', sans-serif; }
.matriculacion-card #progressbar li:nth-child(3):before { content: '3'; font-family: 'Inter', sans-serif; }
.matriculacion-card #progressbar li:nth-child(4):before { content: '4'; font-family: 'Inter', sans-serif; }
.matriculacion-card #progressbar li:nth-child(5):before { content: '5'; font-family: 'Inter', sans-serif; }

.matriculacion-card #progressbar li:after {
    content: '';
    width: 70%;
    height: 2px;
    background: var(--border);
    position: absolute;
    left: -35%;
    top: 22px;
    z-index: 0;
}

.matriculacion-card #progressbar li:first-child:after {
    content: none;
}

.matriculacion-card #progressbar li.active:before {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

.matriculacion-card #progressbar li:not(.active):hover:before {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(33,68,110,0.10);
    transform: scale(1.08);
}

.matriculacion-card #progressbar li.active:hover:before {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 4px rgba(33,68,110,0.15);
    transform: scale(1.08);
    transition: transform 0.15s, box-shadow 0.15s;
}

.matriculacion-card #progressbar li:before {
    transition: transform 0.15s, box-shadow 0.15s, background 0.18s;
}

.matriculacion-card #progressbar li.active.check:before {
    content: '✓';
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
}

.matriculacion-card #progressbar li.active:after {
    background: var(--primary);
}

.matriculacion-card #progressbar li img {
    display: none !important;
}

/* --- Fieldset (contenedor de cada paso) --- */
.matriculacion-card .form_holder fieldset {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    margin: 0;
}

/* --- Título del paso --- */
.matriculacion-card .form_holder fieldset h4 {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 8px;
    margin: 0 0 28px 0;
    border-left: 4px solid var(--primary);
}

/* --- Botones de navegación --- */
.matriculacion-card .action-button {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 28px;
    border: none;
    margin-top: 20px;
    margin-right: 8px;
    transition: background 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.matriculacion-card .action-button.next {
    background: var(--primary);
    color: #fff;
}

.matriculacion-card .action-button.next:hover,
.matriculacion-card .action-button.next:focus {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(33,68,110,0.25);
    color: #fff;
}

.matriculacion-card .action-button.previous {
    background: var(--bg);
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.matriculacion-card .action-button.previous:hover,
.matriculacion-card .action-button.previous:focus {
    background: var(--primary-light);
    border-color: var(--primary);
}

.matriculacion-card #enviar_matricula {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 28px;
    margin-top: 20px;
    margin-right: 8px;
    transition: background 0.18s, box-shadow 0.18s;
}

.matriculacion-card #enviar_matricula:hover {
    background: #15803d;
    box-shadow: 0 4px 14px rgba(22,163,74,0.25);
}

/* --- Cajas informativas (well) dentro del formulario --- */
.matriculacion-card .well {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: none;
}

/* --- Enlace de ayuda --- */
.matriculacion-help-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.15s;
}

.matriculacion-help-link:hover {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .matriculacion-card {
        padding: 20px 16px;
    }

    .matriculacion-card #progressbar li {
        font-size: 9px;
    }

    .matriculacion-card #progressbar li:before {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 15px;
    }

    .matriculacion-card #progressbar li:after {
        top: 18px;
    }
}

/* ============================================================
   PASO 4 - PAGO MATRÍCULA
   ============================================================ */

/* Alerta informativa (info / warning) */
.pago-info-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.pago-info-alert-amber {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #f59e0b;
}

.pago-info-alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.pago-info-alert-icon .material-symbols-outlined {
    font-size: 22px;
    color: var(--accent);
}

.pago-info-alert-amber .pago-info-alert-icon .material-symbols-outlined {
    color: #f59e0b;
}

.pago-info-alert-body p {
    float: none;
    width: auto;
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

.pago-info-alert-title {
    font-weight: 700 !important;
    font-size: 13px !important;
    color: var(--text-dark) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px !important;
}

.pago-penalizacion-ley-text {
    display: block;
    float: none;
    font-style: italic;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

/* Select plan de pago */
.pago-select-plan {
    margin-bottom: 24px;
}

.pago-select-plan .control-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

/* Grid 2 columnas para info de pago + datos bancarios */
.pago-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Cards de resumen y bancarios */
.pago-resumen-card,
.pago-bancarios-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}

/* Header de cada card */
.pago-resumen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.pago-resumen-header .material-symbols-outlined {
    font-size: 18px;
}

/* Tabla resumen de pago */
.pago-resumen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pago-resumen-table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
    vertical-align: middle;
}

.pago-resumen-table td:first-child {
    color: var(--text-muted);
    width: 60%;
}

.pago-resumen-table td:last-child {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

.pago-total-row td {
    background: var(--primary-light);
    color: var(--primary) !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    border-radius: 6px;
    border-bottom: none !important;
}

.pago-total-row td:last-child .text-info {
    color: var(--primary) !important;
    font-size: 18px;
    font-weight: 900;
}

.pago-valor-descuento {
    color: #16a34a !important;
}

.pago-valor-penalizacion {
    color: #dc2626 !important;
}

/* Estilos para _datos_bancarios dentro de pago-bancarios-card */
.pago-bancarios-card .titulo-pago-certificado {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
    padding: 8px 0 4px;
    margin: 12px 0 6px;
    border-bottom: 1px solid var(--border);
}

.pago-bancarios-card .dl-horizontal dt,
.pago-bancarios-card .dl-horizontal dd {
    float: none;
    width: auto;
    margin: 0;
    padding: 4px 0;
    font-size: 13px;
}

.pago-bancarios-card .dl-horizontal dt {
    color: var(--text-muted);
    font-weight: 500;
}

.pago-bancarios-card .dl-horizontal dd {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

/* ============================================================
   PASO 5 - DECLARACIÓN JURADA
   ============================================================ */

.dec-jurada-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.dec-jurada-intro {
    float: none !important;
    width: auto !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.dec-jurada-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dec-jurada-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.5;
}

.dec-jurada-list li:last-child {
    border-bottom: none;
}

.dec-jurada-list li .material-symbols-outlined {
    font-size: 18px;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Checkbox de conformidad */
.dec-jurada-conformidad {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--primary-light);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    margin-bottom: 20px;
    float: none;
    width: auto;
}

.dec-jurada-conformidad:hover {
    border-color: var(--primary);
}

.dec-jurada-conformidad input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.dec-jurada-conformidad-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dec-jurada-conformidad-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.dec-jurada-conformidad-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.dec-jurada-submit {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 28px !important;
}

@media (max-width: 768px) {
    .pago-grid {
        grid-template-columns: 1fr;
    }

    .pago-info-alert {
        flex-direction: column;
        gap: 8px;
    }

    .dec-jurada-conformidad {
        padding: 12px 14px;
    }
}

/* ============================================
   PAGO MATRÍCULA — Stitch design
   ============================================ */
.pm-page-header {
    margin-bottom: 24px;
}

.pm-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.pm-alert-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff6ff;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 28px;
}

.pm-alert-icon {
    color: var(--accent);
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pm-alert-content strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.pm-alert-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
}

.pm-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pm-col-left,
.pm-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pm-select-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.pm-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.pm-card-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.pm-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.pm-summary-table tr {
    border-bottom: 1px solid var(--border-light);
}

.pm-summary-table tr:last-child {
    border-bottom: none;
}

.pm-summary-label {
    font-size: 13px;
    color: var(--text-body);
    padding: 10px 0;
    width: 55%;
}

.pm-summary-value {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: right;
    padding: 10px 0;
}

.pm-total-row .pm-summary-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    padding-top: 14px;
}

.pm-total-row .pm-summary-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    padding-top: 14px;
}

.pm-discount {
    color: #16a34a;
    font-weight: 600;
}

/* Datos facturación */
.pm-facturacion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pm-facturacion-header .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent);
}

.pm-facturacion-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dark);
    margin: 0;
}

.pm-facturacion-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.pm-facturacion-dl {
    margin: 0 0 14px;
}

.pm-facturacion-dl dt {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 10px;
}

.pm-facturacion-dl dd {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-left: 0;
}

.pm-facturacion-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
}

.pm-facturacion-actions a {
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pm-facturacion-actions a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Datos bancarios */
.pm-bank-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 14px;
}

.pm-bank-header-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.pm-bank-header-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.pm-bank-header-cuit {
    text-align: right;
}

.pm-banks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pm-bank-item {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 12px;
}

.pm-bank-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 8px;
}

.pm-bank-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.pm-bank-row:last-child {
    margin-bottom: 0;
}

.pm-bank-row dt {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pm-bank-row dd {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 0;
    word-break: break-all;
}

/* Comprobante upload */
.pm-comprobante-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.pm-comprobante-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 14px;
}

/* Submit */
.pm-submit-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-submit-btn {
    width: 100%;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.pm-submit-btn:hover,
.pm-submit-btn:focus {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

.pm-submit-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Datos bancarios wrapper override */
.pm-datos-bancarios-wrapper h4.titulo-pago-certificado {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.pm-datos-bancarios-wrapper dl.dl-horizontal dt {
    width: auto;
    float: none;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 6px;
}

.pm-datos-bancarios-wrapper dl.dl-horizontal dd {
    margin-left: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-all;
}

@media (max-width: 768px) {
    .pm-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DISEÑO STITCH - Actualización de Matrícula
   Basado en "Visualización de Credencial - CPSHBA"
   ============================================ */

.matricula-actualizacion-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* Header Section (Stitch Style) */
.stitch-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .stitch-header {
        flex-direction: row;
        align-items: flex-end;
        gap: 20px;
    }
}

.stitch-header-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.stitch-header-icon .material-symbols-outlined {
    font-size: 32px;
}

.stitch-header-content {
    flex: 1;
}

.stitch-title {
    font-size: 30px;
    line-height: 36px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.stitch-subtitle {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
}

/* Main Content Area */
.stitch-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Alert Box (Stitch Style) */
.stitch-alert {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
}

.stitch-alert .material-symbols-outlined {
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.stitch-alert-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin: 0 0 4px;
}

.stitch-alert-text {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

/* Form Grid (Stitch Style - 2 columnas en desktop) */
.stitch-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .stitch-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Cards */
.stitch-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stitch-form-card:hover {
    box-shadow: var(--shadow-md);
}

.stitch-payment-card {
    grid-column: 1 / -1;
}

.stitch-form-card-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stitch-form-card-header .material-symbols-outlined {
    color: var(--primary);
    font-size: 24px;
}

.stitch-form-card-header h3 {
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.stitch-form-card-body {
    padding: 24px;
}

.stitch-form-help {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* Form Labels & Inputs (Stitch Style) */
.stitch-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.stitch-input {
    font-size: 14px;
    line-height: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    transition: var(--transition);
    width: 100%;
}

.stitch-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.1);
    outline: none;
}

/* File Preview */
.stitch-file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-md);
}

.stitch-file-preview .material-symbols-outlined {
    color: var(--accent);
    font-size: 20px;
}

.stitch-file-preview a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.stitch-file-preview a:hover {
    text-decoration: underline;
}

/* Success Alert */
.stitch-success-alert {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.stitch-success-alert .material-symbols-outlined {
    color: #22c55e;
    font-size: 24px;
    flex-shrink: 0;
}

.stitch-success-alert strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stitch-success-alert p {
    font-size: 14px;
    color: var(--text-body);
    margin: 0;
}

/* Action Bar */
.stitch-action-bar {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Botones Stitch */
.stitch-btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 32px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.stitch-btn-primary:hover,
.stitch-btn-primary:focus {
    background: var(--primary-dark) !important;
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-1px);
}

.stitch-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.stitch-btn-secondary {
    background: var(--bg) !important;
    color: var(--primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.stitch-btn-secondary:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* Help Grid (2 columnas) */
.stitch-help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (min-width: 768px) {
    .stitch-help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stitch-help-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
}

.stitch-help-card .material-symbols-outlined {
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.stitch-help-card h4 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin: 0 0 4px;
}

.stitch-help-card p {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .matricula-actualizacion-page {
        padding: 24px 16px;
    }

    .stitch-title {
        font-size: 24px;
        line-height: 30px;
    }

    .stitch-header {
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .stitch-form-card-body {
        padding: 16px;
    }
}
}
