/* =====================================================
   admin.css — ESTILOS UNIFICADOS PARA ADMINISTRACIÓN
   Basado en el diseño de home.css (glassmorphism, variables)
   Compatible con todas las vistas admin existentes
   ===================================================== */

/* ===== TOKENS (heredados de home.css) ===== */
/* Variables en tokens.css */
/* ===== RESET BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--font-body);
    background: var(--rw-navy);
    color: var(--rw-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--rw-navy);
    position: relative;
}

/* ===== SIDEBAR MODERNO ===== */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--rw-navy) 0%, var(--rw-navy2) 100%);
    border-right: 1px solid var(--rw-border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s var(--ease-expo);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.admin-sidebar::-webkit-scrollbar       { width: 5px; }
.admin-sidebar::-webkit-scrollbar-track { background: var(--rw-navy2); }
.admin-sidebar::-webkit-scrollbar-thumb { background: var(--rw-orange); border-radius: 5px; }

.sidebar-header {
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--rw-border);
    margin-bottom: 0.5rem;
}
.sidebar-header h3 {
    color: var(--rw-text);
    font-size: 1.25rem;
    margin-top: 0.75rem;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}
.sidebar-header i  {
    font-size: 2.5rem;
    color: var(--rw-orange);
}
.sidebar-header .small {
    font-size: 0.7rem;
    color: var(--rw-muted);
    letter-spacing: 0.08em;
}

.admin-sidebar .nav-link {
    color: var(--rw-text2);
    padding: 0.75rem 1.5rem;
    transition: all 0.25s var(--ease-expo);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    margin: 0.25rem 0.75rem;
}
.admin-sidebar .nav-link:hover  {
    background: rgba(249,115,22,0.08);
    color: var(--rw-orange);
}
.admin-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(249,115,22,0.12), transparent);
    color: var(--rw-orange);
    border-right: 2px solid var(--rw-orange);
}
.admin-sidebar hr {
    border-color: var(--rw-border);
    margin: 0.75rem;
}

/* Botón toggle móvil */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    background: var(--rw-orange);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(249,115,22,0.3);
    cursor: pointer;
    transition: all 0.3s var(--ease-expo);
}
.sidebar-toggle:hover   {
    background: var(--rw-orange-dark);
    transform: scale(1.05);
}
.sidebar-toggle i       {
    font-size: 1.5rem;
    color: white;
}
.sidebar-overlay        {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}
.sidebar-overlay.active { display: block; }

/* ===== CONTENIDO PRINCIPAL ===== */
.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 1.5rem;
    transition: all 0.3s var(--ease-expo);
    width: calc(100% - 280px);
}

/* ===== TOPBAR ===== */
.topbar {
    background: rgba(30,41,59,0.8);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 0.875rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--rw-border);
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s var(--ease-expo);
}
.topbar h4   {
    color: var(--rw-text);
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.topbar h4 i {
    color: var(--rw-orange);
    margin-right: 0.5rem;
}
.topbar span {
    color: var(--rw-muted);
    font-size: 0.85rem;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.stat-card  {
    background: rgba(30,41,59,0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--rw-border);
    transition: all 0.3s var(--ease-expo);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rw-orange), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--rw-border2);
}
.stat-card:hover::before {
    opacity: 1;
}
.stat-card h3    {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rw-text);
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}
.stat-card p     {
    color: var(--rw-muted);
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 500;
}
.stat-icon       {
    font-size: 2rem;
    color: var(--rw-orange);
    opacity: 0.35;
    transition: all 0.3s;
}
.stat-card:hover .stat-icon {
    opacity: 0.7;
    transform: scale(1.05);
}

/* ===== CHARTS ===== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.chart-card  {
    background: rgba(30,41,59,0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--rw-border);
    transition: all 0.3s var(--ease-expo);
}
.chart-card:hover {
    border-color: var(--rw-border2);
}
.chart-card h5   {
    color: var(--rw-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.chart-card h5 i {
    color: var(--rw-orange);
    margin-right: 0.5rem;
}

/* ===== TABLES GRID ===== */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ===== TABLE CUSTOM ===== */
.table-custom {
    background: rgba(30,41,59,0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--rw-border);
    transition: all 0.3s var(--ease-expo);
}
.table-custom:hover {
    border-color: var(--rw-border2);
}
.table-custom .table-header {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--rw-border);
}
.table-custom .table-header h5 {
    color: var(--rw-text);
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
}
.table-custom .table-responsive {
    overflow-x: auto;
}
.table-custom table {
    width: 100%;
    --bs-table-bg: transparent;
    --bs-table-color: var(--rw-text2);
    --bs-table-border-color: var(--rw-border);
    color: var(--rw-text2);
}
.table-custom th {
    color: var(--rw-orange);
    font-weight: 600;
    border-bottom: 1px solid var(--rw-border);
    padding: 0.875rem 1rem;
    background: rgba(15,23,42,0.5);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}
.table-custom td {
    color: var(--rw-text2);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rw-border);
}
.table-custom tr:last-child td { border-bottom: none; }
.table-custom tr:hover td {
    background: rgba(249,115,22,0.04);
}

/* ===== BADGES MODERNOS ===== */
.badge-estado      {
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}
.badge-pendiente   { background: #f59e0b; color: #000; }
.badge-vista       { background: #3b82f6; color: white; }
.badge-cotizada    { background: #8b5cf6; color: white; }
.badge-aceptada    { background: #10b981; color: white; }
.badge-rechazada   { background: #ef4444; color: white; }
.badge-cancelada   { background: var(--rw-muted); color: white; }

.badge-admin       { background: #ef4444; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }
.badge-cliente     { background: #10b981; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }
.badge-profesional { background: #f59e0b; color: #000;  padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }
.badge-proveedor   { background: #3b82f6; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }

.badge-activo      { background: #10b981; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }
.badge-inactivo    { background: var(--rw-muted); color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }

/* ===== FORMULARIOS (unificados con home.css) ===== */
.form-label {
    color: var(--rw-text2);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.form-control, .form-select {
    background: rgba(15,23,42,0.8);
    border: 1px solid var(--rw-border);
    color: var(--rw-text);
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    transition: all 0.25s var(--ease-expo);
}
.form-control:focus, .form-select:focus {
    background: var(--rw-navy);
    border-color: var(--rw-orange);
    color: var(--rw-text);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
    outline: none;
}
.form-control::placeholder { color: var(--rw-muted); font-size: 0.85rem; }
.form-select option        { background: var(--rw-navy2); }

textarea.form-control {
    resize: vertical;
}

/* ===== BOTONES MODERNOS ===== */
.btn {
    border-radius: 0.75rem;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s var(--ease-expo);
    border: none;
}
.btn-primary         { background: var(--rw-orange); color: white; }
.btn-primary:hover   { background: var(--rw-orange-dark); transform: translateY(-2px); box-shadow: 0 4px 12px var(--rw-orange-glow); }
.btn-secondary       { background: rgba(51,65,85,0.8); color: var(--rw-text2); border: 1px solid var(--rw-border); }
.btn-secondary:hover { background: var(--rw-slate); color: white; transform: translateY(-2px); }
.btn-danger          { background: #ef4444; color: white; }
.btn-danger:hover    { background: #dc2626; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.btn-success         { background: #10b981; color: white; }
.btn-success:hover   { background: #059669; transform: translateY(-2px); }
.btn-warning         { background: #f59e0b; color: #000; }
.btn-warning:hover   { background: #d97706; transform: translateY(-2px); }

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
}
.btn-group .btn-sm {
    margin: 0 2px;
}

/* ===== MODALES ===== */
.modal-content {
    background: var(--rw-navy2);
    border: 1px solid var(--rw-border);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
}
.modal-header {
    background: var(--rw-navy2);
    border-bottom: 1px solid var(--rw-border);
    padding: 1rem 1.5rem;
}
.modal-footer {
    background: var(--rw-navy2);
    border-top: 1px solid var(--rw-border);
    padding: 1rem 1.5rem;
}
.modal-title {
    color: var(--rw-text);
    font-weight: 600;
}
.modal-title i {
    color: var(--rw-orange);
    margin-right: 0.5rem;
}
.btn-close-white { filter: invert(1); }

/* ===== ALERTAS ===== */
.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
}
.alert-success {
    background: rgba(16,185,129,0.1);
    border-left: 3px solid #10b981;
    color: #34d399;
}
.alert-danger  {
    background: rgba(239,68,68,0.1);
    border-left: 3px solid #ef4444;
    color: #f87171;
}
.alert-warning {
    background: rgba(245,158,11,0.1);
    border-left: 3px solid #f59e0b;
    color: #fbbf24;
}
.alert-info    {
    background: rgba(59,130,246,0.1);
    border-left: 3px solid #3b82f6;
    color: #60a5fa;
}

/* ===== ICON PICKER ===== */
.icon-preview-box {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(249,115,22,0.1);
    border: 1px solid var(--rw-border2);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--rw-orange);
    font-weight: 600;
}
.icon-preview-box i { font-size: 1.2rem; }
.icon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    background: var(--rw-navy);
    border: 1px solid var(--rw-border);
    border-radius: 10px;
    padding: 8px;
}
.icon-opt {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--rw-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease-expo);
    border: 1px solid transparent;
}
.icon-opt:hover    {
    background: rgba(249,115,22,0.15);
    color: var(--rw-orange);
    border-color: var(--rw-border2);
    transform: scale(1.05);
}
.icon-opt.selected {
    background: rgba(249,115,22,0.2);
    color: var(--rw-orange);
    border-color: var(--rw-orange);
}

/* ===== UTILIDADES ===== */
.text-orange   { color: var(--rw-orange) !important; }
.text-gray-400 { color: var(--rw-muted) !important; }
.text-white    { color: var(--rw-text) !important; }

.bg-navy { background: var(--rw-navy); }
.bg-navy2 { background: var(--rw-navy2); }

/* ===== RESPONSIVE ===== */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .admin-sidebar { width: 240px; }
    .admin-content { margin-left: 240px; width: calc(100% - 240px); padding: 1rem; }
    .stats-grid    { gap: 1rem; }
    .stat-card h3  { font-size: 1.5rem; }
    .charts-grid   { gap: 1rem; }
    .tables-grid   { gap: 1rem; }
}

/* Móvil (768px) */
@media (max-width: 768px) {
    .admin-sidebar        {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        width: 280px;
        box-shadow: none;
    }
    .admin-sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }
    .sidebar-toggle       {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .admin-content        {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0.75rem;
    }
    .topbar               {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
    }
    .topbar h4            { font-size: 1rem; }
    .topbar span          { font-size: 0.75rem; }

    .stats-grid           {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-card            { padding: 0.75rem 1rem; }
    .stat-card h3         { font-size: 1.25rem; }
    .stat-icon            { font-size: 1.5rem; }

    .charts-grid          { grid-template-columns: 1fr; gap: 1rem; }
    .tables-grid          { grid-template-columns: 1fr; gap: 1rem; }
    .chart-card           { padding: 1rem; }
    .chart-card canvas    { max-height: 250px; }

    .table-custom .table-header { padding: 0.75rem 1rem; }
    .table-custom th,
    .table-custom td      { padding: 0.5rem 0.75rem; font-size: 0.8rem; }

    /* Móvil: icon grid más compacto */
    .icon-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Móvil pequeño (480px) */
@media (max-width: 480px) {
    .stats-grid    { grid-template-columns: 1fr; gap: 0.5rem; }
    .stat-card     { display: flex; justify-content: space-between; align-items: center; }
    .stat-card h3  { font-size: 1.1rem; margin-bottom: 0; }
    .stat-card p   { font-size: 0.7rem; }

    .admin-content { padding: 0.5rem; }
    .chart-card h5 { font-size: 0.85rem; }

    .icon-grid { grid-template-columns: repeat(5, 1fr); }

    .modal-dialog { margin: 0.5rem; }
    .modal-content { border-radius: 1rem; }
}

/* Scroll reveal (opcional, puedes agregar clases reveal en las vistas) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
/* ── Responsive móvil tablas dashboard ── */
@media (max-width: 768px) {
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive tr { display: block; width: 100%; }
    .table-responsive thead { display: none; }
    .table-responsive tr {
        background: var(--rw-navy2, #1e293b);
        border: 1px solid rgba(148,163,184,.12);
        border-radius: 10px;
        margin-bottom: .75rem;
        padding: .75rem 1rem;
    }
    .table-responsive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .35rem 0;
        border: none !important;
        font-size: .85rem;
        border-bottom: 1px solid rgba(148,163,184,.08) !important;
    }
    .table-responsive td:last-child { border-bottom: none !important; }
    .table-responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: .72rem;
        color: var(--rw-muted, #64748b);
        text-transform: uppercase;
        letter-spacing: .04em;
        flex-shrink: 0;
        margin-right: 1rem;
    }
}

/* =====================================================
   REDWORK ADMIN — ESTILOS CONSOLIDADOS
   Extraídos de vistas individuales
   Secciones: verificaciones, detalle, configuracion,
   servicios, usuarios, pagos, membresias,
   cancelaciones, reportes + responsive global
   ===================================================== */

/* ──────────────────────────────────────────────────────
   VERIFICACIONES — index
   ────────────────────────────────────────────────────── */
.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s var(--rw-ease);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--rw-border);
    color: var(--rw-text2);
}
.filter-btn:hover {
    background: rgba(249,115,22,0.12);
    border-color: var(--rw-border-orange);
    color: var(--rw-orange);
    transform: translateY(-1px);
}
.filter-btn.active {
    background: var(--rw-orange-dim);
    border-color: rgba(249,115,22,0.4);
    color: var(--rw-orange);
}
.filter-btn .count {
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
}
.filter-btn.active .count { background: rgba(249,115,22,0.25); }

.nav-link .badge-notify {
    background: #f59e0b;
    color: #000;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    margin-left: auto;
}

.pill-verificacion {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pill-pendiente  { background: rgba(251,191,36,0.12);  color: #fbbf24; }
.pill-aprobado   { background: rgba(74,222,128,0.12);  color: #4ade80; }
.pill-rechazado  { background: rgba(239,68,68,0.12);   color: #f87171; }
.pill-sin        { background: rgba(100,116,139,0.12); color: var(--rw-muted); }

.docs-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}
.docs-counter.complete   { color: #4ade80; }
.docs-counter.incomplete { color: #fbbf24; }

.user-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.user-type-cliente      { color: #60a5fa; }
.user-type-profesional  { color: var(--rw-orange); }
.user-type-proveedor    { color: #fbbf24; }
.user-type-admin        { color: #a78bfa; }

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--rw-orange-dim);
    border: 1px solid rgba(249,115,22,0.25);
    color: var(--rw-orange);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: all 0.25s var(--rw-ease);
}
.btn-review:hover {
    background: rgba(249,115,22,0.2);
    border-color: rgba(249,115,22,0.4);
    color: var(--rw-orange);
    transform: translateY(-1px);
}

.stat-verif {
    background: rgba(30,41,59,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--rw-border);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    transition: all 0.3s var(--rw-ease);
    height: 100%;
}
.stat-verif:hover { border-color: var(--rw-border-orange); transform: translateY(-2px); }
.stat-verif-number {
    font-family: var(--rw-font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.stat-verif-label {
    font-size: 0.7rem;
    color: var(--rw-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(30,41,59,0.4);
    border-radius: 1rem;
    border: 1px solid var(--rw-border);
}
.empty-state i {
    font-size: 3rem;
    color: var(--rw-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

/* ──────────────────────────────────────────────────────
   VERIFICACIONES — detalle
   ────────────────────────────────────────────────────── */
.info-card {
    background: rgba(30,41,59,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--rw-border);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s var(--rw-ease);
}
.info-card:hover { border-color: var(--rw-border-orange); }

.card-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rw-muted);
    margin-bottom: 1rem;
}

.doc-card {
    background: rgba(15,23,42,0.6);
    border: 1px solid var(--rw-border);
    border-radius: 0.875rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s var(--rw-ease);
}
.doc-card:hover { border-color: var(--rw-border-orange); }

.doc-icon-box {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--rw-orange-dim);
    border: 1px solid var(--rw-border-orange);
    display: flex; align-items: center; justify-content: center;
    color: var(--rw-orange);
    font-size: 1rem;
    flex-shrink: 0;
}

.doc-img {
    width: 100%; max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--rw-border);
    transition: all 0.3s var(--rw-ease);
    cursor: pointer;
}
.doc-img:hover { border-color: var(--rw-border-orange); transform: scale(1.01); }

.doc-pdf-link {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--rw-orange-dim);
    border: 1px solid var(--rw-border-orange);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--rw-orange);
    font-weight: 600; font-size: 0.85rem;
    transition: all 0.25s var(--rw-ease);
}
.doc-pdf-link:hover { background: rgba(249,115,22,0.15); color: var(--rw-orange); transform: translateY(-1px); }

.btn-aprobar {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    width: 100%;
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.3);
    color: #4ade80;
    font-weight: 700; font-size: 0.9rem;
    padding: 0.85rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--rw-ease);
    margin-bottom: 0.75rem;
}
.btn-aprobar:hover { background: rgba(74,222,128,0.2); transform: translateY(-2px); }

.btn-rechazar {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    width: 100%;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #f87171;
    font-weight: 700; font-size: 0.9rem;
    padding: 0.85rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--rw-ease);
}
.btn-rechazar:hover { background: rgba(239,68,68,0.2); transform: translateY(-2px); }

.btn-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--rw-border);
    color: var(--rw-text2);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem; font-weight: 600;
    transition: all 0.25s var(--rw-ease);
}
.btn-back:hover { color: var(--rw-orange); border-color: var(--rw-border-orange); transform: translateX(-2px); }

.log-item {
    display: flex; gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rw-border);
}
.log-item:last-child { border-bottom: none; }
.log-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0;
}

.status-verified { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.2); text-align: center; }
.status-rejected { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); }

.modal-reject-overlay {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    align-items: center; justify-content: center; padding: 1rem;
}
.modal-reject-overlay.open { display: flex; }
.modal-reject-box {
    background: var(--rw-navy-mid);
    border: 1px solid var(--rw-border-orange);
    border-radius: 1.25rem;
    padding: 1.75rem;
    max-width: 480px; width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.modal-reject-title  { font-weight: 700; color: var(--rw-text); margin-bottom: 0.5rem; }
.modal-reject-desc   { font-size: 0.85rem; color: var(--rw-text2); margin-bottom: 1.25rem; }
.modal-reject-textarea {
    width: 100%;
    background: rgba(15,23,42,0.8);
    border: 1px solid var(--rw-border);
    border-radius: 10px;
    color: var(--rw-text);
    padding: 0.75rem 1rem;
    font-size: 0.85rem; font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}
.modal-reject-textarea:focus { outline: none; border-color: var(--rw-orange); box-shadow: 0 0 0 2px rgba(249,115,22,0.1); }
.btn-modal-cancel {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--rw-border);
    color: var(--rw-text2); font-weight: 600;
    padding: 0.7rem; border-radius: 10px;
    cursor: pointer; transition: all 0.25s var(--rw-ease);
}
.btn-modal-cancel:hover { background: rgba(255,255,255,0.1); }
.btn-modal-confirm {
    flex: 1;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171; font-weight: 700;
    padding: 0.7rem; border-radius: 10px;
    cursor: pointer; transition: all 0.25s var(--rw-ease);
}
.btn-modal-confirm:hover { background: rgba(239,68,68,0.25); }

/* ──────────────────────────────────────────────────────
   CONFIGURACION
   ────────────────────────────────────────────────────── */
.config-card {
    background: var(--rw-navy-mid);
    border: 1px solid var(--rw-slate);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.config-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--rw-slate);
    display: flex; align-items: center; gap: .75rem;
}
.config-card-header .icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.config-card-body { padding: 1.5rem; }

.field-group { margin-bottom: 1.25rem; }
.field-group:last-child { margin-bottom: 0; }
.field-label { font-size: .82rem; font-weight: 600; color: var(--rw-text2); display: block; margin-bottom: .4rem; }
.field-hint  { font-size: .75rem; color: var(--rw-muted); margin-top: .3rem; }

.rw-input {
    width: 100%;
    background: var(--rw-slate);
    border: 1px solid var(--rw-slate-mid);
    color: var(--rw-text);
    border-radius: 8px;
    padding: .55rem 1rem;
    font-size: .9rem;
    font-family: var(--rw-font-body);
    transition: border-color .2s, box-shadow .2s;
}
.rw-input:focus { outline: none; border-color: var(--rw-orange); box-shadow: 0 0 0 3px var(--rw-orange-dim); }
textarea.rw-input { resize: vertical; min-height: 80px; }

.input-prefix-wrap { position: relative; }
.input-prefix-wrap .prefix {
    position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
    color: var(--rw-muted); font-size: .9rem; pointer-events: none;
}
.input-prefix-wrap .rw-input { padding-left: 1.75rem; }

.paq-table { width: 100%; border-collapse: collapse; }
.paq-table th {
    font-size: .78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .05em; color: var(--rw-muted);
    padding: .5rem .75rem; text-align: left;
    border-bottom: 1px solid var(--rw-slate);
}
.paq-table td { padding: .65rem .75rem; }
.paq-table tr:not(:last-child) td { border-bottom: 1px solid rgba(51,65,85,.5); }

.btn-save {
    background: var(--rw-orange); color: #fff; border: none;
    border-radius: 10px; padding: .7rem 2rem; font-size: .95rem;
    font-weight: 600; cursor: pointer; transition: background .2s, transform .1s;
    display: inline-flex; align-items: center; gap: .5rem;
}
.btn-save:hover  { background: var(--rw-orange-dark); }
.btn-save:active { transform: scale(.97); }
.btn-save.saving { opacity: .7; pointer-events: none; }

.rw-toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
    background: var(--rw-navy-mid); border: 1px solid var(--rw-slate);
    border-radius: 10px; padding: .85rem 1.25rem;
    display: flex; align-items: center; gap: .75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    transform: translateY(20px); opacity: 0;
    transition: all .25s; pointer-events: none;
}
.rw-toast.show  { transform: translateY(0); opacity: 1; pointer-events: all; }
.rw-toast.success .toast-icon { color: var(--rw-success); }
.rw-toast.error   .toast-icon { color: var(--rw-danger); }

.pen-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ──────────────────────────────────────────────────────
   SERVICIOS
   ────────────────────────────────────────────────────── */
.orden-control { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.orden-control .btn-sm { padding: 0.2rem 0.4rem; font-size: 0.7rem; }

.icon-preview {
    width: 42px; height: 42px;
    background: var(--rw-orange-dim);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--rw-orange);
    transition: all 0.2s var(--rw-ease);
}

.servicios-grid-mobile { display: none; gap: 1rem; margin-top: 1rem; }

.servicio-card-mobile {
    background: rgba(30,41,59,0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem; padding: 1rem;
    border: 1px solid var(--rw-border);
    transition: all 0.3s var(--rw-ease);
}
.servicio-card-mobile:hover { border-color: var(--rw-border-orange); transform: translateY(-2px); }
.servicio-card-mobile .card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rw-border);
}
.servicio-card-mobile .icono {
    width: 45px; height: 45px;
    background: var(--rw-orange-dim);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--rw-orange);
}
.servicio-card-mobile .nombre {
    color: var(--rw-text); font-weight: 600; font-size: 1rem;
    flex: 1; margin-left: 0.75rem;
}
.servicio-card-mobile .orden-badge {
    background: var(--rw-slate); padding: 0.25rem 0.6rem;
    border-radius: 100px; font-size: 0.7rem; color: var(--rw-text2);
}
.servicio-card-mobile .descripcion { color: var(--rw-text2); font-size: 0.85rem; margin: 0.75rem 0; line-height: 1.5; }
.servicio-card-mobile .card-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.75rem; padding-top: 0.75rem;
    border-top: 1px solid var(--rw-border);
}
.servicio-card-mobile .orden-controls { display: flex; gap: 0.5rem; align-items: center; }
.servicio-card-mobile .action-buttons { display: flex; gap: 0.5rem; }

.icon-picker-wrap { width: 100%; }
.icon-preview-box {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--rw-orange-dim);
    border: 1px solid var(--rw-border-orange);
    border-radius: 10px; padding: 0.5rem 1rem;
    font-size: 0.9rem; color: var(--rw-orange); font-weight: 600;
}
.icon-preview-box i { font-size: 1.2rem; }

.icon-grid {
    display: grid; grid-template-columns: repeat(8, 1fr);
    gap: 6px; max-height: 180px; overflow-y: auto;
    background: var(--rw-navy); border: 1px solid var(--rw-border);
    border-radius: 10px; padding: 8px;
}
.icon-opt {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--rw-muted);
    cursor: pointer; transition: all 0.2s var(--rw-ease);
    border: 1px solid transparent;
}
.icon-opt:hover { background: rgba(249,115,22,0.15); color: var(--rw-orange); border-color: var(--rw-border-orange); transform: scale(1.05); }
.icon-opt.selected { background: rgba(249,115,22,0.2); color: var(--rw-orange); border-color: var(--rw-orange); }

/* ──────────────────────────────────────────────────────
   USUARIOS
   ────────────────────────────────────────────────────── */
.filter-card {
    background: rgba(30,41,59,0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem; padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--rw-border);
    transition: all 0.3s var(--rw-ease);
}
.filter-card:hover { border-color: var(--rw-border-orange); }

.filter-form {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.75rem; align-items: end;
}
.filter-form .form-control,
.filter-form .form-select { margin-bottom: 0; }
.filter-form button { white-space: nowrap; margin-bottom: 0; }

.badge-admin        { background: #ef4444; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-cliente      { background: #10b981; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-profesional  { background: #f59e0b; color: #000;  padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-proveedor    { background: #3b82f6; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-block; }

.badge-membresia-activa {
    background: linear-gradient(135deg, var(--rw-orange), #fbbf24);
    color: #000; padding: 0.25rem 0.85rem;
    border-radius: 100px; font-size: 0.65rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.badge-membresia-inactiva {
    background: var(--rw-muted); color: var(--rw-text2);
    padding: 0.25rem 0.85rem; border-radius: 100px;
    font-size: 0.65rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.35rem;
}

.btn-icon {
    width: 32px; height: 32px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; margin: 0 2px;
    transition: all 0.2s var(--rw-ease);
}
.btn-icon i { font-size: 0.85rem; }
.btn-icon:hover { transform: translateY(-2px); }

.stat-number {
    font-family: var(--rw-font-display);
    font-size: 2rem; font-weight: 700;
    color: var(--rw-orange); line-height: 1;
    margin-bottom: 0.25rem;
}

/* Mobile cards usuarios */
.table-usuarios-desktop { display: block; }
.cards-usuarios-mobile  { display: none; }
.usr-card {
    background: linear-gradient(135deg, var(--rw-navy-mid) 0%, var(--rw-navy) 100%);
    border: 1px solid var(--rw-slate);
    border-radius: 0.875rem; padding: 1rem;
    margin-bottom: 0.75rem; transition: all 0.2s;
}
.usr-card:hover { border-color: var(--rw-orange); transform: translateX(3px); }
.usr-card .usr-nombre { font-weight: 700; color: var(--rw-text); font-size: 0.95rem; }
.usr-card .usr-email  { color: var(--rw-muted-light); font-size: 0.8rem; margin-top: 0.15rem; }
.usr-card .usr-meta   { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0; }
.usr-card .usr-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.usr-card .usr-fecha  { color: var(--rw-muted); font-size: 0.75rem; }

/* Zonas */
.zonas-badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 0.5rem; font-size: 0.65rem; font-weight: 600; margin: 0.15rem; }
.zona-X { background: #3b82f6; color: white; }
.zona-Y { background: #10b981; color: white; }
.zona-Z { background: #8b5cf6; color: white; }
.alcaldia-check { display: inline-block; margin-right: 1rem; margin-bottom: 0.5rem; }
.alcaldia-check label { color: var(--rw-text2); font-size: 0.85rem; }

/* ──────────────────────────────────────────────────────
   PAGOS
   ────────────────────────────────────────────────────── */
.badge-completado  { background: #10b981; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-pendiente   { background: #f59e0b; color: #000;  padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-fallido     { background: #ef4444; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-reembolsado { background: #8b5cf6; color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-plan-pago   { background: var(--rw-orange); color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-block; }

.transaction-id {
    font-family: 'Monaco','Menlo',monospace;
    font-size: 0.7rem;
    background: rgba(15,23,42,0.8);
    padding: 0.2rem 0.5rem; border-radius: 6px;
    color: var(--rw-text2);
}

.pagos-grid-mobile { display: none; gap: 1rem; margin-top: 1rem; }
.pago-card-mobile {
    background: rgba(30,41,59,0.6); backdrop-filter: blur(8px);
    border-radius: 1rem; padding: 1rem;
    border: 1px solid var(--rw-border);
    transition: all 0.3s var(--rw-ease);
}
.pago-card-mobile:hover { border-color: var(--rw-border-orange); transform: translateY(-2px); }
.pago-card-mobile .card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rw-border);
    flex-wrap: wrap; gap: 0.5rem;
}
.pago-card-mobile .pago-id       { color: var(--rw-orange); font-weight: 600; font-size: 0.8rem; }
.pago-card-mobile .pago-usuario  { color: var(--rw-text); font-weight: 600; font-size: 0.95rem; }
.pago-card-mobile .pago-email    { color: var(--rw-muted); font-size: 0.75rem; word-break: break-all; }
.pago-card-mobile .card-row      { display: flex; justify-content: space-between; margin-bottom: 0.5rem; padding: 0.25rem 0; }
.pago-card-mobile .row-label     { color: var(--rw-muted); font-size: 0.75rem; }
.pago-card-mobile .row-value     { color: var(--rw-text2); font-size: 0.75rem; font-weight: 500; }
.pago-card-mobile .monto         { color: var(--rw-orange); font-weight: 700; font-size: 0.95rem; }
.pago-card-mobile .transaction-id-mobile { font-family: monospace; font-size: 0.65rem; background: rgba(15,23,42,0.6); padding: 0.2rem 0.4rem; border-radius: 4px; word-break: break-all; }

/* ──────────────────────────────────────────────────────
   MEMBRESIAS
   ────────────────────────────────────────────────────── */
.planes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.plan-card {
    background: rgba(30,41,59,0.6); backdrop-filter: blur(8px);
    border-radius: 1rem; padding: 1.25rem;
    border: 1px solid var(--rw-border);
    transition: all 0.3s var(--rw-ease); height: 100%;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--rw-border-orange); }
.plan-card.featured {
    border: 1px solid var(--rw-orange);
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(30,41,59,0.6));
    box-shadow: 0 4px 20px rgba(249,115,22,0.1);
}
.plan-title   { color: var(--rw-orange); font-size: 1.25rem; font-weight: 700; margin-bottom: 0; }
.plan-price   { font-size: 1.5rem; font-weight: 700; color: var(--rw-orange); }
.plan-price small { font-size: 0.8rem; color: var(--rw-muted); font-weight: 400; }

.badge-suscriptores { background: rgba(100,116,139,0.2); color: var(--rw-text2); padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }
.btn-edit-plan { background: var(--rw-orange-dim); border: 1px solid var(--rw-border-orange); color: var(--rw-orange); padding: 0.35rem 1rem; border-radius: 8px; font-size: 0.75rem; font-weight: 600; transition: all 0.25s var(--rw-ease); }
.btn-edit-plan:hover { background: rgba(249,115,22,0.2); transform: scale(1.02); }

.badge-plan     { background: var(--rw-orange); color: white; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.badge-activa   { background: #10b981; color: white; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }
.badge-inactiva { background: #ef4444; color: white; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }

.usuarios-grid-mobile { display: none; gap: 1rem; margin-top: 1rem; }
.usuario-card-mobile {
    background: rgba(30,41,59,0.6); backdrop-filter: blur(8px);
    border-radius: 1rem; padding: 1rem;
    border: 1px solid var(--rw-border);
    transition: all 0.3s var(--rw-ease);
}
.usuario-card-mobile:hover { border-color: var(--rw-border-orange); transform: translateY(-2px); }
.usuario-card-mobile .card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rw-border); flex-wrap: wrap; gap: 0.5rem; }
.usuario-card-mobile .usuario-nombre { color: var(--rw-text); font-weight: 600; font-size: 0.95rem; }
.usuario-card-mobile .usuario-email  { color: var(--rw-muted); font-size: 0.75rem; word-break: break-all; }
.usuario-card-mobile .card-row       { display: flex; justify-content: space-between; margin-bottom: 0.5rem; padding: 0.25rem 0; }
.usuario-card-mobile .row-label      { color: var(--rw-muted); font-size: 0.75rem; }
.usuario-card-mobile .row-value      { color: var(--rw-text2); font-size: 0.75rem; font-weight: 500; }
.usuario-card-mobile .plan-buttons   { display: flex; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--rw-border); flex-wrap: wrap; }

.btn-plan-basica     { background: #3b82f6; border: none; color: white; padding: 0.3rem 0.75rem; border-radius: 8px; font-size: 0.7rem; font-weight: 600; transition: all 0.2s; }
.btn-plan-basica:hover { background: #2563eb; transform: translateY(-1px); }
.btn-plan-intermedia { background: #f59e0b; border: none; color: #000; padding: 0.3rem 0.75rem; border-radius: 8px; font-size: 0.7rem; font-weight: 600; transition: all 0.2s; }
.btn-plan-intermedia:hover { background: #d97706; transform: translateY(-1px); }
.btn-plan-premium    { background: #10b981; border: none; color: white; padding: 0.3rem 0.75rem; border-radius: 8px; font-size: 0.7rem; font-weight: 600; transition: all 0.2s; }
.btn-plan-premium:hover { background: #059669; transform: translateY(-1px); }

/* ──────────────────────────────────────────────────────
   CANCELACIONES
   ────────────────────────────────────────────────────── */
.admin-table-wrap {
    background: var(--rw-navy-mid);
    border: 1px solid var(--rw-slate);
    border-radius: 12px; overflow: hidden;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead tr { background: var(--rw-slate); }
.admin-table th { padding: .85rem 1rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--rw-text2); white-space: nowrap; }
.admin-table td { padding: .85rem 1rem; font-size: .875rem; border-bottom: 1px solid rgba(51,65,85,.5); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255,255,255,.03); }

.badge-rol { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 20px; font-size: .75rem; font-weight: 600; }

.badge-estado-completada { background: var(--rw-success-dim); color: var(--rw-success); padding: .2rem .6rem; border-radius: 20px; font-size:.75rem; }
.badge-estado-pendiente  { background: var(--rw-orange-dim);  color: #fb923c;            padding: .2rem .6rem; border-radius: 20px; font-size:.75rem; }

.motivo-text { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--rw-text2); cursor: pointer; }
.motivo-text:hover { color: var(--rw-text); }

.rw-modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.7);
    z-index: 9000; display: flex; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.rw-modal-backdrop.open { opacity: 1; pointer-events: all; }
.rw-modal {
    background: var(--rw-navy-mid); border: 1px solid var(--rw-slate);
    border-radius: 14px; width: 100%; max-width: 540px;
    padding: 1.75rem; transform: translateY(16px); transition: transform .2s;
}
.rw-modal-backdrop.open .rw-modal { transform: translateY(0); }
.modal-title  { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.detail-row   { display: flex; gap: .5rem; margin-bottom: .65rem; font-size: .875rem; }
.detail-label { color: var(--rw-muted); min-width: 140px; flex-shrink: 0; }
.detail-value { color: var(--rw-text); }
.btn-close-modal { background: var(--rw-slate); color: var(--rw-text); border: none; border-radius: 8px; padding: .5rem 1.25rem; cursor: pointer; margin-top: 1rem; }

.pag-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--rw-slate); color: var(--rw-text2); text-decoration: none; font-size: .875rem; border: 1px solid transparent; transition: all .15s; }
.pag-btn:hover   { background: var(--rw-orange); color: #fff; }
.pag-btn.active  { background: var(--rw-orange); color: #fff; border-color: var(--rw-orange); }
.pag-btn.disabled { opacity: .4; pointer-events: none; }

.filters-bar { background: var(--rw-navy-mid); border: 1px solid var(--rw-slate); border-radius: 12px; padding: 1rem 1.25rem; }
.filters-bar select, .filters-bar input { background: var(--rw-slate); border: 1px solid var(--rw-slate-mid); color: var(--rw-text); border-radius: 8px; padding: .45rem .85rem; font-size: .875rem; }
.filters-bar select:focus, .filters-bar input:focus { outline: none; border-color: var(--rw-orange); box-shadow: 0 0 0 3px var(--rw-orange-dim); }
.btn-filter { background: var(--rw-orange); color: #fff; border: none; border-radius: 8px; padding: .45rem 1.1rem; font-size: .875rem; cursor: pointer; transition: background .2s; }
.btn-filter:hover { background: var(--rw-orange-dark); }
.btn-reset  { background: var(--rw-slate); color: var(--rw-text2); border: none; border-radius: 8px; padding: .45rem 1rem; font-size: .875rem; cursor: pointer; }

/* ──────────────────────────────────────────────────────
   REPORTES
   ────────────────────────────────────────────────────── */
.filter-bar { background: rgba(30,41,59,0.6); backdrop-filter: blur(8px); border-radius: 1rem; padding: 1.25rem; margin-bottom: 1.5rem; border: 1px solid var(--rw-border); transition: all 0.3s var(--rw-ease); }
.filter-bar:hover { border-color: var(--rw-border-orange); }
.filter-bar .filter-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.filter-bar .filter-group { flex: 1; min-width: 150px; }
.filter-bar .form-label { color: var(--rw-text2); font-size: 0.75rem; font-weight: 600; margin-bottom: 0.25rem; letter-spacing: 0.03em; }

.reports-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.report-card { background: rgba(30,41,59,0.6); backdrop-filter: blur(8px); border-radius: 1rem; padding: 1.25rem; border: 1px solid var(--rw-border); transition: all 0.3s var(--rw-ease); }
.report-card:hover { border-color: var(--rw-border-orange); }
.report-card h5 { color: var(--rw-text); margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }
.report-card h5 i { color: var(--rw-orange); margin-right: 0.5rem; }
.report-card canvas { max-height: 250px; width: 100%; }

.badge-solicitudes { background: var(--rw-orange); color: white; padding: 0.25rem 0.85rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.badge-promedio    { background: #10b981; color: white; padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; }
.badge-total-calif { background: #3b82f6; color: white; padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; }

.stats-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.stats-summary-grid .stat-card .stat-number { font-size: 2rem; font-weight: 700; color: var(--rw-text); margin-bottom: 0.25rem; font-family: var(--rw-font-display); }
.stats-summary-grid .stat-card p { color: var(--rw-muted-light); margin-bottom: 0; font-size: 0.85rem; }

.table-top-desktop { display: block; }
.cards-top-mobile  { display: none; }
.top-card { background: linear-gradient(135deg, var(--rw-navy-mid) 0%, var(--rw-navy) 100%); border: 1px solid var(--rw-slate); border-radius: 0.875rem; padding: 0.875rem 1rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.75rem; transition: all 0.2s; }
.top-card:hover { border-color: var(--rw-orange); }
.top-card .top-rank  { font-size: 1.25rem; font-weight: 700; color: var(--rw-orange); min-width: 28px; text-align: center; }
.top-card .top-info  { flex: 1; min-width: 0; }
.top-card .top-nombre { font-weight: 700; color: var(--rw-text); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-card .top-email  { color: var(--rw-muted-light); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ──────────────────────────────────────────────────────
   RESPONSIVE GLOBAL ADMIN
   ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .planes-grid   { gap: 1rem; }
    .reports-grid  { gap: 1rem; }
    .stats-summary-grid { gap: 1rem; }
    .filter-form   { grid-template-columns: 1fr auto auto; }
    .stats-grid    { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
    .stat-number   { font-size: 1.5rem; }
    .icon-grid     { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
    /* Verificaciones */
    .stat-verif-number { font-size: 1.5rem; }
    .filter-btn        { padding: 0.35rem 0.85rem; font-size: 0.75rem; }
    .btn-review        { padding: 0.3rem 0.7rem; font-size: 0.7rem; }

    /* Verificaciones detalle */
    .info-card { padding: 1rem; }
    .doc-card  { padding: 0.875rem; }
    .btn-aprobar, .btn-rechazar { padding: 0.7rem; font-size: 0.85rem; }
    .modal-reject-box { padding: 1.25rem; margin: 1rem; }

    /* Configuracion */
    .pen-row { grid-template-columns: 1fr; }
    .rw-input { font-size: .875rem; }

    /* Servicios */
    .servicios-table-wrap { display: none; }
    .servicios-grid-mobile { display: flex; flex-direction: column; }

    /* Usuarios */
    .filter-form { grid-template-columns: 1fr; gap: 0.5rem; }
    .filter-form button { width: 100%; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .table-usuarios-desktop { display: none; }
    .cards-usuarios-mobile  { display: block; }

    /* Pagos */
    .pagos-table-wrap .table-responsive { display: none; }
    .pagos-grid-mobile { display: flex; flex-direction: column; }

    /* Membresias */
    .planes-grid { grid-template-columns: 1fr; gap: 1rem; }
    .plan-card.featured { transform: scale(1); }
    .membresias-table-wrap .table-responsive { display: none; }
    .usuarios-grid-mobile { display: flex; flex-direction: column; }

    /* Reportes */
    .filter-bar .filter-form { flex-direction: column; }
    .filter-bar .filter-group { width: 100%; }
    .filter-bar .filter-form button { width: 100%; }
    .reports-grid { grid-template-columns: 1fr; gap: 1rem; }
    .report-card  { padding: 1rem; }
    .report-card canvas { max-height: 200px; }
    .stats-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stats-summary-grid .stat-card .stat-number { font-size: 1.5rem; }
    .table-top-desktop { display: none; }
    .cards-top-mobile  { display: block; }

    /* Verificaciones tabla → data-label cards */
    .table-custom .table,
    .table-custom thead,
    .table-custom tbody,
    .table-custom tr { display: block; width: 100%; }
    .table-custom thead { display: none; }
    .table-custom tbody tr {
        background: var(--rw-navy-mid);
        border: 1px solid var(--rw-border);
        border-radius: 10px;
        margin-bottom: .75rem;
        padding: .75rem 1rem;
    }
    .table-custom td {
        display: flex; justify-content: space-between; align-items: center;
        padding: .35rem 0; border: none !important; font-size: .85rem;
        border-bottom: 1px solid rgba(148,163,184,.08) !important;
    }
    .table-custom td:last-child { border-bottom: none !important; }
    .table-custom td::before {
        content: attr(data-label);
        font-weight: 600; font-size: .72rem; color: var(--rw-muted);
        text-transform: uppercase; letter-spacing: .04em;
        flex-shrink: 0; margin-right: 1rem;
    }

    /* Cancelaciones tabla → data-label cards */
    .admin-table, .admin-table thead,
    .admin-table tbody, .admin-table tr { display: block; width: 100%; }
    .admin-table thead { display: none; }
    .admin-table tbody tr {
        background: var(--rw-navy-mid);
        border: 1px solid var(--rw-slate);
        border-radius: 10px; margin-bottom: .75rem; padding: .75rem 1rem;
    }
    .admin-table td {
        display: flex; justify-content: space-between; align-items: flex-start;
        padding: .35rem 0; border: none !important; font-size: .84rem;
        border-bottom: 1px solid rgba(148,163,184,.08) !important;
    }
    .admin-table td:last-child { border-bottom: none !important; }
    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600; font-size: .72rem; color: var(--rw-muted);
        text-transform: uppercase; letter-spacing: .04em;
        flex-shrink: 0; margin-right: .75rem; margin-top: 2px;
    }
    .motivo-text { max-width: 140px; }

    /* Paquetes configuracion */
    .paq-table, .paq-table thead,
    .paq-table tbody, .paq-table tr { display: block; width: 100%; }
    .paq-table thead { display: none; }
    .paq-table tbody tr { background: var(--rw-slate); border-radius: 10px; margin-bottom: .75rem; padding: .75rem 1rem; }
    .paq-table td { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border: none; font-size: .875rem; border-bottom: 1px solid rgba(148,163,184,.1); }
    .paq-table td:last-child { border-bottom: none; }
    .paq-table td::before { content: attr(data-label); font-weight: 600; font-size: .72rem; color: var(--rw-muted); text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; margin-right: 1rem; }

    /* Urgentes tabla → data-label cards */
    .urgentes-table-wrap table,
    .urgentes-table-wrap thead,
    .urgentes-table-wrap tbody,
    .urgentes-table-wrap tr { display: block; width: 100%; }
    .urgentes-table-wrap thead { display: none; }
    .urgentes-table-wrap tr {
        background: var(--rw-navy-mid);
        border: 1px solid var(--rw-border);
        border-radius: 12px; margin-bottom: .85rem; padding: .85rem 1rem;
    }
    .urgentes-table-wrap td {
        display: flex; justify-content: space-between; align-items: flex-start;
        padding: .35rem 0; border: none !important; font-size: .85rem;
        border-bottom: 1px solid rgba(148,163,184,.08) !important;
    }
    .urgentes-table-wrap td:last-child { border-bottom: none !important; padding-top: .6rem; }
    .urgentes-table-wrap td::before {
        content: attr(data-label);
        font-weight: 600; font-size: .72rem; color: var(--rw-muted);
        text-transform: uppercase; letter-spacing: .04em;
        flex-shrink: 0; margin-right: 1rem; margin-top: 2px;
    }
    .urgentes-table-wrap td[data-label="Acciones"] { justify-content: flex-end; }
    .urgentes-table-wrap td[data-label="Acciones"]::before { display: none; }
}

@media (max-width: 480px) {
    /* Verificaciones */
    .filter-group { gap: 0.35rem; }
    .filter-btn   { padding: 0.3rem 0.7rem; font-size: 0.7rem; }

    /* Servicios */
    .servicio-card-mobile .card-header { flex-wrap: wrap; gap: 0.5rem; }
    .servicio-card-mobile .nombre     { font-size: 0.9rem; }
    .servicio-card-mobile .descripcion { font-size: 0.8rem; }
    .orden-control .btn-sm { padding: 0.15rem 0.3rem; font-size: 0.65rem; }
    .action-buttons .btn-sm { padding: 0.2rem 0.4rem; font-size: 0.7rem; }
    .icon-grid { grid-template-columns: repeat(6, 1fr); }

    /* Usuarios */
    .stats-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .stat-card  { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 0.75rem 1rem; }
    .stat-number { font-size: 1.25rem; margin-bottom: 0; }
    .btn-icon   { width: 28px; height: 28px; }
    .btn-icon i { font-size: 0.75rem; }

    /* Pagos */
    .pago-card-mobile .card-header { flex-direction: column; align-items: flex-start; }
    .pago-card-mobile .card-row    { flex-direction: column; gap: 0.2rem; }

    /* Membresias */
    .plan-title  { font-size: 1.1rem; }
    .plan-price  { font-size: 1.25rem; }
    .usuario-card-mobile .card-header { flex-direction: column; align-items: flex-start; }
    .plan-buttons { justify-content: center; }

    /* Reportes */
    .report-card h5 { font-size: 0.85rem; }
    .stats-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

@media (max-width: 360px) {
    .icon-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ──────────────────────────────────────────────────────
   IMPRESION
   ────────────────────────────────────────────────────── */
@media print {
    .admin-sidebar, .sidebar-toggle, .sidebar-overlay,
    .filter-bar, .filter-card, .topbar span,
    .btn-primary, .btn-secondary { display: none !important; }
    .admin-content { margin-left: 0 !important; padding: 0 !important; width: 100% !important; }
    .report-card, .table-custom { break-inside: avoid; page-break-inside: avoid; }
}


/* ── Fix overflow table-custom en móvil ── */
@media (max-width: 768px) {
    .table-custom { overflow: visible; }
}

/* ── Fondo global admin override ── */
body {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.admin-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

/* ── Urgentes — layout móvil ── */
@media (max-width: 768px) {
    .urgentes-table-wrap tr { margin-left: 0 !important; width: 100% !important; }
    .stat-card.p-0 .p-3 { padding: 0.75rem !important; }
}


/* ── Urgentes cards móvil nativas ── */
.urgentes-cards-mobile { padding: 0.75rem; }
.urg-card { background:#1e293b; border:1px solid rgba(148,163,184,.12); border-radius:12px; padding:1rem; margin-bottom:.85rem; }
.urg-card-header { display:flex; justify-content:space-between; align-items:flex-start; gap:.5rem; margin-bottom:.5rem; padding-bottom:.5rem; border-bottom:1px solid rgba(148,163,184,.1); }
.urg-titulo { font-weight:700; color:#f1f5f9; font-size:.95rem; flex:1; }
.urg-card-meta { display:flex; gap:.75rem; flex-wrap:wrap; font-size:.75rem; color:#64748b; margin-bottom:.65rem; }
.urg-card-row { display:flex; justify-content:space-between; align-items:flex-start; padding:.35rem 0; border-bottom:1px solid rgba(148,163,184,.06); font-size:.85rem; }
.urg-card-row:last-of-type { border-bottom:none; }
.urg-label { color:#64748b; font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; flex-shrink:0; margin-right:1rem; }
.urg-value { color:#cbd5e1; text-align:right; }
.urg-card-footer { display:flex; justify-content:space-between; align-items:center; margin-top:.75rem; padding-top:.65rem; border-top:1px solid rgba(148,163,184,.1); }

/* ── Paquetes grid ── */
.paquetes-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; margin-bottom:.5rem; }
.paquete-box { background:rgba(15,23,42,.6); border:1px solid rgba(148,163,184,.12); border-radius:8px; padding:.6rem; text-align:center; }
.paquete-nombre { font-size:.75rem; font-weight:700; color:#f1f5f9; margin-bottom:.2rem; }
.paquete-creditos { font-size:.7rem; color:#64748b; margin-bottom:.2rem; }
.paquete-precio { font-size:.9rem; font-weight:700; color:#f97316; }

/* ── Transacciones fix ── */
.trans-item { display:flex; align-items:center; gap:.5rem; overflow:hidden; padding:.5rem 0; border-bottom:1px solid rgba(148,163,184,.1); }
.trans-item:last-child { border-bottom:none; }
.trans-item .flex-grow-1 { min-width:0; flex:1; overflow:hidden; }
.trans-item .fw-semibold { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; font-size:.85rem; }
.trans-item .text-end { flex-shrink:0; text-align:right; }
