:root {
    /* Brand — azul profundo + violeta de acento (identidad "events") */
    --ep-primary: #4f46e5;
    --ep-primary-hover: #4338ca;
    --ep-primary-soft: rgba(79, 70, 229, .1);
    --ep-accent: #ec4899;
    --ep-accent-soft: rgba(236, 72, 153, .1);

    /* Sidebar — gradient-ready, con depth */
    --ep-sidebar-bg: #0f172a;
    --ep-sidebar-bg-end: #1e293b;
    --ep-sidebar-accent: #0b1120;
    --ep-sidebar-text: #94a3b8;
    --ep-sidebar-text-active: #ffffff;
    --ep-sidebar-hover: rgba(255,255,255,.06);

    /* Surface */
    --ep-bg: #f8fafc;
    --ep-surface: #ffffff;
    --ep-surface-alt: #f1f5f9;
    --ep-border: #e2e8f0;
    --ep-border-strong: #cbd5e1;

    /* Text */
    --ep-text: #0f172a;
    --ep-text-soft: #334155;
    --ep-muted: #64748b;

    /* Status */
    --ep-success: #10b981;
    --ep-warning: #f59e0b;
    --ep-danger:  #ef4444;
    --ep-info:    #06b6d4;

    /* Shape */
    --ep-sidebar-width: 256px;
    --ep-topbar-height: 64px;
    --ep-radius-sm: 6px;
    --ep-radius:    10px;
    --ep-radius-lg: 14px;

    /* Elevation */
    --ep-shadow-xs: 0 1px 2px rgba(15,23,42,.05);
    --ep-shadow-sm: 0 2px 4px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --ep-shadow-md: 0 4px 12px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.05);
    --ep-shadow-lg: 0 12px 28px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.05);
    --ep-shadow-xl: 0 24px 48px rgba(15,23,42,.14), 0 8px 16px rgba(15,23,42,.06);

    /* Motion */
    --ep-ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--ep-text);
    background: var(--ep-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}

a { text-decoration: none; color: var(--ep-primary); }
a:hover { color: var(--ep-primary-hover); }

h1, h2, h3, h4, h5, h6 { letter-spacing: -.015em; color: var(--ep-text); }

::selection { background: var(--ep-primary-soft); color: var(--ep-primary-hover); }

/* ===== Layout wrapper ===== */
.ep-app { display: flex; min-height: 100vh; }

/* ===== Sidebar ===== */
.ep-sidebar {
    width: var(--ep-sidebar-width);
    background: linear-gradient(180deg, var(--ep-sidebar-bg) 0%, var(--ep-sidebar-bg-end) 100%);
    color: var(--ep-sidebar-text);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .3s var(--ep-ease);
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,.04);
}

.ep-sidebar::-webkit-scrollbar { width: 6px; }
.ep-sidebar::-webkit-scrollbar-track { background: transparent; }
.ep-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }

.ep-sidebar-brand {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.01em;
    background: var(--ep-sidebar-accent);
    border-bottom: 1px solid rgba(255,255,255,.04);
    position: relative;
}

.ep-sidebar-brand::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--ep-primary) 50%, transparent);
    opacity: .4;
}

.ep-sidebar-brand i {
    color: #fff;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-accent));
    width: 32px; height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    box-shadow: 0 4px 12px rgba(79,70,229,.4);
}

.ep-sidebar-nav {
    list-style: none;
    padding: 16px 10px;
    margin: 0;
    flex: 1;
}

.ep-sidebar-section {
    padding: 18px 12px 6px;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #475569;
    font-weight: 700;
}

.ep-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 2px 0;
    color: var(--ep-sidebar-text);
    font-size: .92rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all .2s var(--ep-ease);
    position: relative;
}

.ep-sidebar-nav a i {
    width: 18px;
    text-align: center;
    font-size: .95rem;
    opacity: .75;
    transition: opacity .2s var(--ep-ease);
}

.ep-sidebar-nav a:hover {
    background: var(--ep-sidebar-hover);
    color: var(--ep-sidebar-text-active);
}

.ep-sidebar-nav a:hover i { opacity: 1; }

.ep-sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(79,70,229,.18), rgba(236,72,153,.10));
    color: var(--ep-sidebar-text-active);
    box-shadow: inset 0 0 0 1px rgba(79,70,229,.25);
}

.ep-sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--ep-primary), var(--ep-accent));
}

.ep-sidebar-nav a.active i { opacity: 1; color: #a5b4fc; }

.ep-sidebar-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(255,255,255,.04);
    font-size: .72rem;
    color: #475569;
    letter-spacing: .02em;
}

/* ===== Main content area ===== */
.ep-main {
    flex: 1;
    margin-left: var(--ep-sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ===== Topbar — glass effect ===== */
.ep-topbar {
    height: var(--ep-topbar-height);
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--ep-border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.ep-topbar-left { display: flex; align-items: center; gap: 16px; }

.ep-topbar-toggle {
    background: none;
    border: none;
    width: 38px; height: 38px;
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--ep-text-soft);
    cursor: pointer;
    display: none;
    transition: background .15s var(--ep-ease);
}

.ep-topbar-toggle:hover { background: var(--ep-surface-alt); }

.ep-topbar-title {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ep-text);
    letter-spacing: -.01em;
}

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

.ep-bell {
    color: var(--ep-muted);
    font-size: 1.05rem;
    position: relative;
    cursor: pointer;
    width: 38px; height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s var(--ep-ease);
}

.ep-bell:hover {
    color: var(--ep-text);
    background: var(--ep-surface-alt);
}

.ep-bell-badge {
    position: absolute;
    top: 6px; right: 6px;
    background: var(--ep-danger);
    color: #fff;
    font-size: .62rem;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 2px 6px rgba(239,68,68,.4);
}

.ep-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ep-text);
    font-size: .88rem;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    transition: background .15s var(--ep-ease);
}

.ep-user:hover { background: var(--ep-surface-alt); }

.ep-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .85rem;
    box-shadow: 0 2px 8px rgba(79,70,229,.3);
}

/* ===== Content ===== */
.ep-content { padding: 28px; flex: 1; }

.ep-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 14px;
}

.ep-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--ep-text);
}

.ep-page-subtitle {
    color: var(--ep-muted);
    font-size: .9rem;
    margin-top: 4px;
}

/* ===== Cards ===== */
.card {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    box-shadow: var(--ep-shadow-xs);
    transition: box-shadow .2s var(--ep-ease);
}

.card:hover { box-shadow: var(--ep-shadow-sm); }

.card-body { padding: 1.4rem; }

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--ep-border);
    padding: 1rem 1.4rem;
    font-weight: 600;
}

/* ===== Stat cards — jerarquía visual ===== */
.ep-stat-card {
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 22px;
    background: var(--ep-surface);
    position: relative;
    overflow: hidden;
    transition: transform .2s var(--ep-ease), box-shadow .2s var(--ep-ease);
}

.ep-stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ep-primary), var(--ep-accent));
    opacity: 0;
    transition: opacity .2s var(--ep-ease);
}

.ep-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ep-shadow-lg);
}

.ep-stat-card:hover::before { opacity: 1; }

.ep-stat-label {
    color: var(--ep-muted);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    margin-bottom: 10px;
}

.ep-stat-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--ep-text);
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.ep-stat-footer {
    margin-top: 10px;
    font-size: .8rem;
    color: var(--ep-muted);
}

.ep-stat-icon {
    position: absolute;
    right: 20px;
    top: 22px;
    width: 44px; height: 44px;
    border-radius: var(--ep-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.ep-stat-icon.primary { background: var(--ep-primary-soft); color: var(--ep-primary); }
.ep-stat-icon.success { background: rgba(16,185,129,.12); color: var(--ep-success); }
.ep-stat-icon.info    { background: rgba(6,182,212,.12);  color: var(--ep-info); }
.ep-stat-icon.warning { background: rgba(245,158,11,.12); color: var(--ep-warning); }
.ep-stat-icon.danger  { background: rgba(239,68,68,.12);  color: var(--ep-danger); }

/* ===== Tables ===== */
.table {
    margin: 0;
    color: var(--ep-text);
    font-size: .9rem;
}

.table thead th {
    background: var(--ep-surface-alt);
    border-bottom: 1px solid var(--ep-border);
    border-top: none;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ep-muted);
    font-weight: 700;
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ep-border);
    vertical-align: middle;
}

.table tbody tr { transition: background .12s var(--ep-ease); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--ep-surface-alt); }

/* ===== Buttons ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: .88rem;
    padding: .55rem 1.1rem;
    transition: all .15s var(--ep-ease);
    border-width: 1px;
}

.btn:focus, .btn:focus-visible {
    box-shadow: 0 0 0 3px var(--ep-primary-soft);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ep-primary), #6366f1);
    border-color: var(--ep-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(79,70,229,.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--ep-primary-hover), #4f46e5);
    border-color: var(--ep-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(79,70,229,.3);
}

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

.btn-outline-primary {
    color: var(--ep-primary);
    border-color: var(--ep-border-strong);
    background: var(--ep-surface);
}

.btn-outline-primary:hover {
    background: var(--ep-primary-soft);
    border-color: var(--ep-primary);
    color: var(--ep-primary-hover);
}

.btn-sm {
    font-size: .8rem;
    padding: .35rem .75rem;
    border-radius: 6px;
}

/* ===== Forms ===== */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--ep-border-strong);
    padding: .55rem .85rem;
    font-size: .9rem;
    color: var(--ep-text);
    transition: all .15s var(--ep-ease);
    background: var(--ep-surface);
}

.form-control:hover, .form-select:hover { border-color: #94a3b8; }

.form-control:focus, .form-select:focus {
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 3px var(--ep-primary-soft);
    outline: none;
}

.form-control::placeholder { color: #94a3b8; }

.form-label {
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--ep-text-soft);
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 12px 16px;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ===== Badges ===== */
.badge {
    font-weight: 600;
    padding: .38em .65em;
    border-radius: 5px;
    font-size: .7rem;
    letter-spacing: .02em;
}

.badge.bg-primary { background: var(--ep-primary) !important; }

/* ===== Dropdowns ===== */
.dropdown-menu {
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    box-shadow: var(--ep-shadow-lg);
    padding: 6px;
    animation: ep-fade-in .15s var(--ep-ease);
}

@keyframes ep-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: .88rem;
    color: var(--ep-text-soft);
    transition: background .12s var(--ep-ease);
}

.dropdown-item:hover, .dropdown-item:focus {
    background: var(--ep-primary-soft);
    color: var(--ep-primary-hover);
}

.dropdown-item.text-danger:hover { background: rgba(239,68,68,.08); color: var(--ep-danger); }

.dropdown-header {
    font-size: .78rem;
    color: var(--ep-muted);
    padding: 8px 12px;
}

.dropdown-divider { border-color: var(--ep-border); margin: 4px 0; }

/* ===== Nav tabs ===== */
.nav-tabs {
    border-bottom: 1px solid var(--ep-border);
    gap: 2px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--ep-muted);
    font-weight: 500;
    padding: .7rem 1rem;
    border-radius: 0;
    transition: all .15s var(--ep-ease);
}

.nav-tabs .nav-link:hover { color: var(--ep-text); background: transparent; }

.nav-tabs .nav-link.active {
    color: var(--ep-primary);
    background: transparent;
    border-bottom-color: var(--ep-primary);
}

/* ===== Bloques empresa participante (Eventos/Detalle) ===== */
.ep-empresa-block {
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    background: var(--ep-surface);
    overflow: hidden;
}

.ep-empresa-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--ep-surface-alt);
    border-bottom: 1px solid var(--ep-border);
    flex-wrap: wrap;
}

.ep-empresa-cupos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px dashed var(--ep-border);
}

.ep-cupo-chip {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .82rem;
}

.ep-cupo-chip-title {
    font-weight: 700;
    font-size: .78rem;
    color: var(--ep-text);
    margin-bottom: 4px;
    letter-spacing: -.01em;
}

.ep-cupo-chip-row {
    color: var(--ep-muted);
    margin-top: 2px;
}

.ep-empresa-subsection {
    padding: 14px 18px;
    border-top: 1px solid var(--ep-border);
}

.ep-empresa-subsection:first-of-type { border-top: none; }

.ep-empresa-subtitle {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    color: var(--ep-muted);
    margin-bottom: 10px;
}

/* ===== Login split layout ===== */
.ep-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    background: var(--ep-surface);
}

.ep-login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    overflow-y: auto;
    position: relative;
}

.ep-login-form-inner {
    width: 100%;
    max-width: 400px;
}

.ep-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ep-text);
    letter-spacing: -.01em;
    margin-bottom: 48px;
}

.ep-login-logo .ep-logo-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 16px rgba(79,70,229,.35);
    font-size: .95rem;
}

.ep-login-form h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 0 0 8px;
}

.ep-login-form .ep-login-sub {
    color: var(--ep-muted);
    font-size: .95rem;
    margin: 0 0 32px;
}

.ep-login-footer {
    position: absolute;
    left: 0; right: 0; bottom: 22px;
    text-align: center;
    font-size: .78rem;
    color: var(--ep-muted);
}

/* Password show/hide */
.ep-input-pass {
    position: relative;
}
.ep-input-pass .form-control {
    padding-right: 42px;
}
.ep-input-pass-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--ep-muted);
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    border-radius: 6px;
}
.ep-input-pass-toggle:hover { color: var(--ep-text); background: var(--ep-surface-alt); }

/* Hero side */
.ep-login-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 22%, rgba(79,70,229,.55) 0%, transparent 48%),
        radial-gradient(circle at 88% 78%, rgba(236,72,153,.38) 0%, transparent 50%),
        linear-gradient(135deg, #0b1120 0%, #1e1b4b 100%);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ep-login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: .7;
}

.ep-login-hero-top,
.ep-login-hero-body,
.ep-login-hero-bottom {
    position: relative;
    z-index: 1;
}

.ep-login-hero-eyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.6);
    font-weight: 600;
}

.ep-login-hero h2 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 14px 0 18px;
    color: #fff;
}

.ep-login-hero h2 .accent {
    background: linear-gradient(135deg, #a5b4fc, #f9a8d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ep-login-hero p.lead {
    color: rgba(255,255,255,.72);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 0 36px;
}

.ep-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.ep-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,.85);
    font-size: .93rem;
}

.ep-feature-list .ep-feature-ic {
    flex: 0 0 32px;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c7d2fe;
    font-size: .85rem;
}

.ep-login-hero-bottom {
    display: flex;
    gap: 32px;
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 22px;
}

.ep-login-hero-bottom strong {
    display: block;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 2px;
}

/* Legacy auth (mantener para forgot/reset) */
.ep-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(79,70,229,.35) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(236,72,153,.28) 0%, transparent 45%),
        linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 20px;
}
.ep-auth-card {
    background: #fff;
    padding: 44px;
    border-radius: var(--ep-radius-lg);
    box-shadow: var(--ep-shadow-xl);
    width: 100%;
    max-width: 430px;
}

@media (max-width: 991.98px) {
    .ep-login { grid-template-columns: 1fr; }
    .ep-login-hero { display: none; }
}

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

.modal-header {
    border-bottom: 1px solid var(--ep-border);
    padding: 1.1rem 1.4rem;
}

.modal-body { padding: 1.4rem; }

.modal-footer {
    border-top: 1px solid var(--ep-border);
    padding: 1rem 1.4rem;
}

/* ===== Sidebar backdrop + responsive ===== */
.ep-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(2px);
    z-index: 1035;
    animation: ep-fade-in .2s var(--ep-ease);
}

.ep-sidebar-backdrop.show { display: block; }

@media (max-width: 991.98px) {
    .ep-sidebar { transform: translateX(-100%); box-shadow: var(--ep-shadow-xl); }
    .ep-sidebar.open { transform: translateX(0); }
    .ep-main { margin-left: 0; }
    .ep-topbar-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .ep-content { padding: 20px; }
    .ep-page-title { font-size: 1.35rem; }
}

/* ===== Utilidades ===== */
.text-muted { color: var(--ep-muted) !important; }

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