/**
 * Estilos Premium del Dashboard - Auspíciame.pe
 * Ubicación: assets/css/dashboard-styles.css
 * Versión: 1.5 - Organización Quirúrgica
 */

/* ==========================================================================
   1. VARIABLES Y UTILIDADES
   ========================================================================== */
:root {
    --primary-blue: #1062A9;
    --action-orange: #EC9625;
    --bg-canvas: #f4f7fa;
    --text-main: #1a202c;
    --text-muted: #667085;
    --white: #ffffff;
    --radius-lg: 8px; /* Para contenedores y botones */
    --radius-sm: 4px; /* Para iconos y detalles */
    --font-header: 'Rubik', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Clases de utilidad */
.radius-8 { border-radius: var(--radius-lg) !important; }
.radius-4 { border-radius: var(--radius-sm) !important; }

/* ==========================================================================
   2. RESETEO Y ESTRUCTURA GLOBAL (Full-Width Hack)
   ========================================================================== */
/* Neutralizamos los contenedores del tema Blocksy/Elementor */
#primary, .content-area, .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ausp-dashboard-full-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--bg-canvas);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ==========================================================================
   3. SIDEBAR (Navegación Lateral)
   ========================================================================== */
.ausp-sidebar-main {
    width: 300px;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 40px 25px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    z-index: 100;
    overflow-x: hidden;
}

.ausp-sidebar-header {
    padding-bottom: 50px;
    text-align: center;
}

.ausp-dashboard-logo {
    max-width: 180px;
    height: auto;
}

/* Navegación y Etiquetas de Grupo */
.ausp-sidebar-navigation {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.ausp-nav-group-title {
    font-family: var(--font-header);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0 15px 10px;
}

/* Ítems de Menú */
.ausp-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
    box-sizing: border-box; 
    width: 100%;
}

.ausp-icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px;
    transition: inherit;
}

/* Estado Activo (Naranja) */
.ausp-nav-item.is-active {
    background-color: var(--action-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(236, 150, 37, 0.4);
}

.ausp-nav-item.is-active .ausp-icon-box {
    background: rgba(255, 255, 255, 0.25);
}

.ausp-nav-item:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transform: translateX(5px);
}

/* Footer del Sidebar (Cerrar Sesión) */
.ausp-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
}

.logout-link {
    color: #ffffff !important;
    background: rgba(255, 87, 87, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-link:hover {
    background: rgba(255, 87, 87, 0.4) !important;
}

.logout-link .ausp-icon-box {
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   4. ÁREA DE CONTENIDO (MAIN)
   ========================================================================== */
.ausp-dashboard-body {
    flex-grow: 1;
    padding: 50px 70px;
    box-sizing: border-box;
    max-width: calc(100% - 300px);
}

.ausp-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.ausp-welcome-text h1 {
    font-family: var(--font-header);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.ausp-welcome-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0;
}

/* Botón "Nueva Campaña" */
.ausp-btn-primary {
    background-color: var(--action-orange);
    color: var(--white) !important;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(236, 150, 37, 0.4);
    transition: 0.3s;
    border: none;
}

.ausp-btn-primary:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 8px 24px rgba(236, 150, 37, 0.5);
}

/* Contenedor de Vistas Dinámicas */
.ausp-content-dynamic-area {
    width: 100%;
}

/* ==========================================================================
   5. RESPONSIVE DETALLADO Y BARRA INFERIOR
   ========================================================================== */

/* Estilos de la Barra Inferior (Oculta en Escritorio) */
.ausp-mobile-bottom-nav {
    display: none;
}

@media (max-width: 1200px) {
    .ausp-dashboard-body {
        padding: 40px;
    }
}

@media (max-width: 1024px) {
    /* 5.1 Ajuste de Contenedor para evitar scroll horizontal */
    .ausp-dashboard-full-container {
        flex-direction: column;
        left: auto;
        right: auto;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* 5.2 Sidebar Compacto Superior */
    .ausp-sidebar-main {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ausp-sidebar-header {
        padding-bottom: 0;
    }

    .ausp-dashboard-logo {
        max-width: 120px;
    }

    /* Ocultamos navegación lateral para usar la inferior */
    .ausp-sidebar-navigation, 
    .ausp-nav-group-title,
    .ausp-sidebar-footer span {
        display: none !important;
    }

    /* 5.3 Área de Contenido con espacio para la barra */
    .ausp-dashboard-body {
        max-width: 100%;
        padding: 30px 20px 100px 20px; /* Padding inferior aumentado */
    }

    .ausp-main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .ausp-welcome-text h1 {
        font-size: 28px;
    }

    /* 5.4 Implementación Quirúrgica de la Barra Inferior */
    .ausp-mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background-color: var(--primary-blue);
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .ausp-mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none !important;
        font-size: 11px;
        font-weight: 500;
        flex: 1;
        transition: 0.3s;
    }

    .ausp-mobile-bottom-nav a i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    /* Estado activo en móvil (Naranja) */
    .ausp-mobile-bottom-nav a.is-active {
        color: var(--action-orange);
    }
}

/* Optimización para móviles pequeños */
@media (max-width: 480px) {
    .ausp-btn-primary {
        width: 100%;
        justify-content: center;
    }
}



/**
 * ESTILOS ESPECÍFICOS: VIEW-ESCRITORIO
 * Ubicación: assets/css/dashboard-styles.css
 */

/* 1. CONTENEDOR Y CUADRÍCULA DE KPIs */
.ausp-escritorio-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.ausp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* 2. ESTILO DE TARJETAS (Cards) */
.ausp-card {
    background: var(--white);
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease;
    box-sizing: border-box; /* Previene desbordamientos a la derecha */
}

.ausp-card:hover {
    transform: translateY(-5px);
}

.kpi-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kpi-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin: 5px 0;
}

.kpi-trend {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-success { color: #27ae60 !important; }

/* 3. FILA DE ESTADÍSTICAS (Gráfico y Lista) */
.ausp-main-stats-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 25px;
    align-items: start;
}

.ausp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.ausp-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Selector de Filtro */
.ausp-select-filter {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

/* Contenedor del Gráfico */
.ausp-chart-canvas-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden; /* Evita desbordes del gráfico en móviles */
}

/* 4. LISTA DE AUSPICIADORES RECIENTES */
.ausp-list-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ausp-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

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

.ausp-avatar {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.bg-orange { background-color: #f6ad55 !important; }
.bg-brown { background-color: #a0522d !important; }

.ausp-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ausp-item-info strong {
    font-size: 15px;
    color: var(--text-main);
}

.ausp-item-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.ausp-item-amount {
    font-weight: 700;
    font-size: 15px;
}

/* Enlace "Ver todos" */
.ausp-card-footer {
    margin-top: 25px;
    text-align: center;
}

.ausp-link-more {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.ausp-link-more:hover {
    text-decoration: underline;
}

/* 5. RESPONSIVO ESPECÍFICO DEL ESCRITORIO */

/* Tablets y Laptops Pequeñas (Hasta 1200px) */
@media (max-width: 1200px) {
    .ausp-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Pantallas Medianas (Hasta 992px) */
@media (max-width: 992px) {
    .ausp-main-stats-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ausp-chart-canvas-wrapper {
        height: 280px;
    }
}

/* Móviles (Hasta 600px) */
@media (max-width: 600px) {
    .ausp-kpi-grid {
        grid-template-columns: 1fr !important; /* Forzamos columna única */
        gap: 15px;
    }

    .kpi-value {
        font-size: 28px;
    }

    .ausp-card {
        padding: 20px;
    }

    .ausp-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ausp-select-filter {
        width: 100%;
    }

    .ausp-avatar {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .ausp-item-info strong {
        font-size: 14px;
    }
}


/* ==========================================================================
   BLOQUES DE ESTADÍSTICAS (Gráfico y Lista)
   Ajuste para evitar desbordamiento derecho en móviles
   ========================================================================== */

@media (max-width: 1024px) {
    /* 1. Forzamos que la fila de estadísticas se comporte como columna única */
    .ausp-main-stats-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2. Ajuste de las tarjetas individuales para evitar el ancho fijo */
    .ausp-chart-container,
    .ausp-recent-list {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* Permite que el elemento se encoja si es necesario */
        box-sizing: border-box !important; /* Incluye el padding en el 100% del ancho */
    }

    /* 3. Aseguramos que el contenedor del gráfico no fuerce un ancho mayor */
    .ausp-chart-canvas-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important; /* Reducimos altura en móvil para mejor visibilidad */
        overflow: hidden !important;
    }

    /* 4. Limpieza de items de la lista para que no empujen hacia la derecha */
    .ausp-list-item {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}





/**
 * ESTILOS MAESTROS: GESTIÓN DE CAMPAÑAS (VIEW-MIS-CAMPANAS)
 * Versión: 2.5 - Diseño Limpio y de Alto Impacto
 */

/* 1. CABECERA Y FILTROS */
.ausp-campanas-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.ausp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.ausp-status-filters {
    display: flex;
    gap: 8px;
}

.filter-link {
    text-decoration: none !important;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: 0.3s ease;
}

.filter-link.is-active {
    background: var(--primary-blue);
    color: var(--white) !important;
    border-color: var(--primary-blue);
}

/* 2. GRID DE CAMPAÑAS */
.ausp-campanas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

/* 3. DISEÑO DE TARJETA (CARD) */
.ausp-campana-card {
    background: var(--white);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Sombra sutil en lugar de borde grueso */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ausp-campana-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Visual e Imagen Mejorada */
.campana-card-visual {
    height: 230px; /* Más alto para mayor impacto */
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.campana-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ausp-campana-card:hover .campana-card-visual img {
    transform: scale(1.05); /* Efecto zoom sutil al pasar el mouse */
}

/* Badges Flotantes Modernos */
.ausp-badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
}

.ausp-badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Colores de Estado */
.status-activa { background: #27ae60; }
.status-revision { background: var(--action-orange); }
.status-borrador { background: #1a202c; } /* Estilo Dark para borradores */
.status-finalizada { background: var(--primary-blue); }

.badge-days {
    background: rgba(26, 32, 44, 0.85); /* Fondo Dark translúcido */
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 4. CUERPO DE TARJETA */
.campana-card-body {
    padding: 24px;
    flex-grow: 1;
}

.campana-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a202c; /* Color Dark para títulos */
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Barra de Progreso Premium */
.progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}

.progress-labels span:first-child {
    font-size: 14px;
    color: #4a5568;
}

.progress-labels strong {
    font-size: 16px;
    color: var(--text-main);
}

.percentage-text {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 15px;
}

.ausp-progress-bar {
    height: 10px;
    background: #edf2f7;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), #3182ce);
    border-radius: 20px;
}

.campana-footer-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #718096;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

/* 5. ACCIONES (Botones Modernos) */
.campana-card-actions {
    padding: 16px 24px;
    background: var(--white);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #f1f5f9;
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #4a5568;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.action-btn.delete-btn:hover {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #e53e3e;
}

/* 6. SLOT NUEVA CAMPAÑA */
.new-campana-slot {
    border: 2px dashed #e2e8f0 !important;
    background: #f8fafc !important;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.new-campana-slot .slot-content i {
    font-size: 48px;
    color: var(--primary-blue);
    background: white;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.new-campana-slot h3 {
    color: var(--primary-blue);
    font-weight: 800;
}

/* 7. RESPONSIVO */
@media (max-width: 768px) {
    .ausp-campanas-grid {
        grid-template-columns: 1fr !important;
    }
    .campana-card-visual { height: 200px; }
}




/**
 * ESTILOS: ESTRUCTURA DASHBOARD Y ELEMENTOS ADICIONALES
 * Versión: 6.0 - Overwrite Completo para Blocksy
 */

/* 1. CONTENEDOR DE SECCIÓN */
.ausp-auspiciadores-section {
    padding: 30px !important;
    background-color: #f8fafc !important; /* Fondo gris ultra suave de referencia */
    min-height: 100vh !important;
}

/* 2. CABECERA DE SECCIÓN */
.ausp-auspiciadores-section .ausp-section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 35px !important;
}

.header-text h2 {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.02em !important;
}

.header-text p {
    color: #64748b !important;
    font-size: 15px !important;
    margin: 0 !important;
}

/* Badge "Comunidad Fiel" */
.community-status {
    background: #eff6ff !important;
    color: #2563eb !important;
    padding: 10px 20px !important;
    border-radius: 100px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1) !important;
}

/* 3. GRID DE KPIs (4 COLUMNAS) */
.ausp-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 45px !important;
}

.ausp-kpi-card {
    background: #ffffff !important;
    padding: 24px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.ausp-kpi-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08) !important;
}

.kpi-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: block !important;
    margin-bottom: 12px !important;
}

.kpi-value {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 0 10px 0 !important;
}

.kpi-meta {
    font-size: 13px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.kpi-meta.text-success {
    color: #10b981 !important;
    font-weight: 700 !important;
}

/* 4. CABECERA INTERNA DE TABLA (Botón Exportar) */
.table-inner-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.table-inner-header h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 !important;
}

.btn-export {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

.btn-export:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* 5. SISTEMA DE MODAL PREMIUM */
.ausp-modal {
    display: none; /* Controlado por JS */
    position: fixed !important;
    z-index: 9999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6) !important; /* Overlay oscuro elegante */
    backdrop-filter: blur(4px) !important;
    align-items: center !important;
    justify-content: center !important;
}

.ausp-modal-content {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    width: 90% !important;
    max-width: 500px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    animation: auspModalIn 0.3s ease-out !important;
}

@keyframes auspModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.modal-header h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.close-modal {
    font-size: 28px !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.modal-body {
    padding: 24px !important;
}

.modal-body p {
    color: #475569 !important;
    margin-bottom: 20px !important;
    font-size: 15px !important;
}

/* Estilo de Textarea en Modal */
.modal-body textarea {
    width: 100% !important;
    padding: 15px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    font-family: inherit !important;
    font-size: 14px !important;
    resize: none !important;
    outline: none !important;
}

.modal-body textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.modal-footer {
    padding: 20px 24px !important;
    background: #f8fafc !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

/* Botones de Modal */
.btn-cancel {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.btn-finish {
    background: #ec9625 !important; /* Naranja Auspíciame */
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
}

/* 6. RESPONSIVIDAD (EXTENSO) */
@media (max-width: 1024px) {
    .ausp-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .ausp-auspiciadores-section {
        padding: 20px !important;
    }

    .ausp-section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .ausp-kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .table-inner-header {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    .btn-export {
        width: 100% !important;
        justify-content: center !important;
    }
}

/**
 * CSS PREMIUM: GESTIÓN DE AUSPICIADORES (ANTI-BLOCKSY)
 */

/* Contenedor principal sin bordes externos del tema */
.ausp-auspiciadores-section table.ausp-premium-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    margin: 0 !important;
}

/* Encabezado: Fondo claro y texto sutil */
.ausp-auspiciadores-section .ausp-premium-table thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 16px 24px !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Celdas: Aireadas y sin bordes verticales */
.ausp-auspiciadores-section .ausp-premium-table tbody td {
    padding: 20px 24px !important;
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

/* Avatar Circular Premium */
.user-cell {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.avatar-circle {
    width: 42px !important;
    height: 42px !important;
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

.user-name {
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
}

/* Columna Campaña (Azul institucional) */
.campaign-cell {
    color: #2563eb !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.campaign-cell i {
    color: #3b82f6 !important;
    margin-right: 6px !important;
}

/* Aporte */
.amount-cell strong {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

/* Botones con estilo de la Imagen de Referencia */
.btn-thanks {
    background-color: #ec9625 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.btn-thanks:hover {
    background-color: #d4821a !important;
    transform: translateY(-1px) !important;
}

.badge-thanked {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Responsividad */
@media (max-width: 768px) {
    .ausp-table-responsive {
        overflow-x: auto !important;
    }
    .ausp-premium-table {
        min-width: 900px !important;
    }
}




/*******************************************************************************
 * SECCIÓN: BILLETERA DEL ATLETA (DASHBOARD PREMIUM)
 * Basado en diseño de gestión financiera
 * Incluye overrides específicos para anular bordes sólidos del tema.
 ******************************************************************************/

/* 1. CONTENEDOR MAESTRO */
.ausp-wallet-wrapper {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: transparent;
}

.ausp-wallet-wrapper .wallet-header {
    margin-bottom: 35px;
}

.ausp-wallet-wrapper .wallet-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.ausp-wallet-wrapper .wallet-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* 2. TARJETAS KPI (RESUMEN FINANCIERO) */
.ausp-wallet-wrapper .wallet-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.ausp-wallet-wrapper .wallet-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease;
}

.ausp-wallet-wrapper .card-blue {
    border-left: 6px solid #2563eb !important; /* Azul Billetera */
}

.ausp-wallet-wrapper .card-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.ausp-wallet-wrapper .card-value {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1;
}

.ausp-wallet-wrapper .card-info {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ausp-wallet-wrapper .card-info i {
    color: #94a3b8;
}

/* 3. FILA DE ACCIÓN: BANCO Y RETIRO */
.ausp-wallet-wrapper .wallet-actions-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

/* Tarjeta de Banco */
.ausp-wallet-wrapper .bank-details-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.ausp-wallet-wrapper .bank-details-card .bank-info-flex {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ausp-wallet-wrapper .bank-icon-box {
    font-size: 32px;
    color: #0f56a3;
    background: #f1f5f9;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.ausp-wallet-wrapper .bank-data h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.ausp-wallet-wrapper .bank-data p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.ausp-wallet-wrapper .bank-data .cci-num {
    font-size: 13px;
    color: #94a3b8;
}

.ausp-wallet-wrapper .badge-verified {
    background: #ecfdf5 !important;
    color: #10b981 !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Caja de Retiro (Azul Marino) */
.ausp-wallet-wrapper .withdraw-box {
    background: #0f56a3; /* Fondo diseño */
    padding: 30px;
    border-radius: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ausp-wallet-wrapper .withdraw-box p {
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.9;
}

.ausp-wallet-wrapper .btn-solicitar-retiro {
    background: #ec9625 !important; /* Naranja corporativo */
    color: #ffffff !important;
    border: none !important;
    padding: 16px 30px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(236, 150, 37, 0.3) !important;
}

.ausp-wallet-wrapper .btn-solicitar-retiro:hover {
    background: #d6851e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(236, 150, 37, 0.4) !important;
}

/* 4. REFINAMIENTO EXTREMO DE TABLA */
.ausp-wallet-wrapper .wallet-history h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
}

.ausp-wallet-wrapper .table-container {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01) !important;
}

/* Forzar reset de tabla contra el tema */
.ausp-wallet-wrapper table.ausp-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Encabezados de Tabla (th) */
.ausp-wallet-wrapper table.ausp-table thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Celdas de Tabla (td) */
.ausp-wallet-wrapper table.ausp-table tbody td {
    padding: 22px 24px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: #ffffff !important;
    font-size: 14px !important;
    color: #1e293b !important;
}

.ausp-wallet-wrapper table.ausp-table tbody tr:last-child td {
    border-bottom: none !important;
}

.ausp-wallet-wrapper table.ausp-table tbody tr:hover td {
    background-color: #fcfdfe !important;
}

/* Concepto y Referencia */
.ausp-wallet-wrapper table.ausp-table td strong {
    display: block !important;
    font-size: 15px !important;
    color: #1e293b !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
}

.ausp-wallet-wrapper table.ausp-table td small {
    display: block !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Badges de Estado Pill */
.ausp-wallet-wrapper .status-completed,
.ausp-wallet-wrapper .status-process {
    padding: 6px 16px !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-block !important;
}

.ausp-wallet-wrapper .status-completed {
    background-color: #ecfdf5 !important;
    color: #10b981 !important;
}

.ausp-wallet-wrapper .status-process {
    background-color: #fffbeb !important;
    color: #f59e0b !important;
}

/* Alineación de Montos */
.ausp-wallet-wrapper table.ausp-table td.amount-positive {
    color: #10b981 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-align: right !important;
}

.ausp-wallet-wrapper table.ausp-table td.amount-negative {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-align: right !important;
}

/* Responsivo para Móviles */
@media (max-width: 991px) {
    .ausp-wallet-wrapper .wallet-stats-grid,
    .ausp-wallet-wrapper .wallet-actions-row {
        grid-template-columns: 1fr;
    }
    
    .ausp-wallet-wrapper .bank-details-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}