/**
 * Panel de Cliente — AE ERP
 * Estilos extraídos del template panel-cliente.php para permitir caché del navegador.
 */

/* ═══════════════════════════════════════════════════════════
   TARJETA HEADER DEL CLIENTE
   ═══════════════════════════════════════════════════════════ */
.ae-client-header-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 4px 20px rgba(14, 57, 80, 0.02), 0 1px 3px rgba(14, 57, 80, 0.01);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.ae-client-header-card:hover {
    box-shadow: 0 10px 30px rgba(14, 57, 80, 0.05);
    border-color: rgba(14, 57, 80, 0.12);
}

.ae-client-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

/* Columna 1: Identidad */
.ae-client-header-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 20px;
    border-right: 1px solid #f1f5f9;
}

.ae-client-header-avatar {
    width: 48px;
    height: 48px;
    background: #0E3950;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(14, 57, 80, 0.15);
}

.ae-client-header-avatar .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
}

.ae-client-header-identity h3 {
    margin: 0 0 2px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.ae-client-header-identity p {
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.ae-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ae-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ae-badge--status-activo {
    background: #dcfce7;
    color: #166534;
}

.ae-badge--status-mora {
    background: #fee2e2;
    color: #991b1b;
}

.ae-badge--type {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Columna 2: Contacto */
.ae-client-header-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

.ae-header-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #475569;
}

.ae-header-info-row .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}

.ae-header-info-row strong {
    color: #0f172a;
}

/* Columna 3: Acciones + Servicios */
.ae-client-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 160px;
}

.ae-btn-edit-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0E3950;
    color: #ffffff;
    text-decoration: none !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(14, 57, 80, 0.15);
    white-space: nowrap;
}

.ae-btn-edit-profile:hover {
    background: #1a5c80;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 57, 80, 0.2);
}

.ae-header-services {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

.ae-service-tag {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.68rem;
    color: #475569;
    font-weight: 600;
}

/* Responsive header */
@media (max-width: 1100px) {
    .ae-client-header-inner {
        grid-template-columns: 1fr auto;
        gap: 20px;
    }

    .ae-client-header-identity {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 16px;
        grid-column: 1 / -1;
    }

    .ae-client-header-actions {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .ae-client-header-inner {
        grid-template-columns: 1fr;
    }

    .ae-client-header-actions {
        align-items: stretch;
    }

    .ae-btn-edit-profile {
        justify-content: center;
    }

    .ae-client-header-card {
        padding: 18px 20px;
    }

    .ae-attention-section {
        padding: 18px 20px;
    }
}

/* ═══════════════════════════════════════════════════════════
   CHAT IA SOFÍA — FONDO ANIMADO
   El gradiente va en el WRAPPER (chat.css no lo toca)
   ═══════════════════════════════════════════════════════════ */

/* EL WRAPPER ES EL LIENZO ANIMADO */
.ae-sidebar-chat-wrapper {
    border-radius: 18px;
    overflow: hidden;
    position: relative;

    /* Colores casi blancos — el movimiento se percibe, no los colores */
    background: linear-gradient(135deg,
            #f8fafb 0%,
            #eef4fb 20%,
            #f2f0fa 40%,
            #eaf3fb 60%,
            #f4f2fb 80%,
            #f8fafb 100%);
    background-size: 400% 400%;
    animation: aeGradientFlow 12s ease infinite;

    box-shadow:
        0 0 0 1px rgba(14, 57, 80, 0.10),
        0 4px 20px rgba(14, 57, 80, 0.08);
}

/* Capa de puntos de red — textura de IA muy sutil */
.ae-sidebar-chat-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(14, 57, 80, 0.07) 1px, transparent 1px),
        radial-gradient(circle, rgba(80, 100, 200, 0.04) 1.5px, transparent 1.5px);
    background-size: 28px 28px, 70px 70px;
    background-position: 0 0, 14px 14px;
    animation: aeNetDrift 30s linear infinite;
}

/* El widget del chat sube encima del fondo */
.ae-sidebar-chat-wrapper>* {
    position: relative;
    z-index: 1;
}

/* ── Hacer transparente el interior del chat ─────────────
   Usamos especificidad alta + !important para ganar a chat.css
   ────────────────────────────────────────────────────────── */

/* ── Hacer transparente todo el interior del chat ─────────
   Hacemos transparentes todos los contenedores para que se vea
   únicamente el gradiente y las partículas del canvas.
   ────────────────────────────────────────────────────────── */

.ae-sidebar-chat-wrapper .ae-chat-widget,
.ae-sidebar-chat-wrapper .ae-chat-mode-inline,
.ae-sidebar-chat-wrapper #ae-chat-widget,
.ae-sidebar-chat-wrapper .ae-chat-panel,
.ae-sidebar-chat-wrapper #ae-chat-panel,
.ae-sidebar-chat-wrapper .ae-chat-messages,
.ae-sidebar-chat-wrapper .ae-chat-input-area,
.ae-sidebar-chat-wrapper .ae-chat-form {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Zona de bienvenida transparente, sin cuadrado */
.ae-sidebar-chat-wrapper .ae-chat-welcome-container {
    background: transparent !important;
    padding-top: 22px !important;
}

.ae-sidebar-chat-wrapper .ae-chat-welcome-container::before,
.ae-sidebar-chat-wrapper .ae-chat-welcome-container::after {
    display: none !important;
    content: none !important;
}

/* Header transparente (si se muestra) */
.ae-sidebar-chat-wrapper .ae-chat-header {
    background: rgba(255, 255, 255, 0.35) !important;
    border-bottom: 1px solid rgba(14, 57, 80, 0.10) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* El "cajón" de escribir el mensaje (el pill redondo) */
.ae-sidebar-chat-wrapper .ae-chat-input-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(14, 57, 80, 0.12) !important;
    box-shadow: 0 4px 15px rgba(14, 57, 80, 0.05) !important;
    transition: all 0.3s ease !important;
}

.ae-sidebar-chat-wrapper .ae-chat-input-wrapper:hover,
.ae-sidebar-chat-wrapper .ae-chat-input-wrapper:focus-within {
    border-color: rgba(14, 57, 80, 0.30) !important;
    box-shadow: 0 6px 20px rgba(14, 57, 80, 0.08) !important;
}

/* Textarea interior transparente */
.ae-sidebar-chat-wrapper .ae-chat-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0E3950 !important;
}

/* Footer: nota de marca sutil sin fondo */
.ae-sidebar-chat-wrapper .ae-chat-footer-note {
    color: rgba(14, 57, 80, 0.40) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-top: 6px !important;
}


/* Título y subtítulo */
.ae-sidebar-chat-wrapper .ae-chat-welcome-title {
    font-size: 24px !important;
    color: #0E3950 !important;
}

.ae-sidebar-chat-wrapper .ae-chat-welcome-subtitle {
    font-size: 14px !important;
    color: #3a5570 !important;
    padding-bottom: 14px !important;
}

/* ── Keyframes ───────────────────────────────────────────── */

/* Movimiento diagonal del gradiente — completamente visible */
@keyframes aeGradientFlow {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 20%;
    }

    50% {
        background-position: 100% 80%;
    }

    75% {
        background-position: 0% 70%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Puntos de red se deslizan */
@keyframes aeNetDrift {
    0% {
        background-position: 0px 0px, 13px 13px;
    }

    50% {
        background-position: 26px 13px, 39px 26px;
    }

    100% {
        background-position: 0px 0px, 13px 13px;
    }
}


/* ═══════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.ae-panel-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.ae-panel-col-left,
.ae-panel-col-right {
    min-width: 0;
}

@media (max-width: 1100px) {
    .ae-panel-main-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .ae-attention-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN "REQUIERE TU ATENCIÓN"
   ═══════════════════════════════════════════════════════════ */
.ae-attention-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.03), 0 1px 3px rgba(245, 158, 11, 0.01);
    border: 1px solid rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ae-attention-section:hover {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.ae-attention-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a !important;
}

.ae-enlaces-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
    color: #0E3950 !important;
}

.ae-enlaces-section {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    margin-bottom: 20px;
}

.ae-attention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    align-items: start;
}

/* Tarjetas de atención */
.ae-attn-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(var(--attn-color-rgb), 0.15);
    border-left: 4px solid rgb(var(--attn-color-rgb));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(var(--attn-color-rgb), 0.03);
}

.ae-attn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(var(--attn-color-rgb), 0.1);
    border-color: rgba(var(--attn-color-rgb), 0.3);
}

.ae-attn-card__header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--attn-color-rgb), 0.03);
    border-bottom: 1px solid rgba(var(--attn-color-rgb), 0.08);
}

.ae-attn-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--attn-color-rgb));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ae-attn-card__icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ae-attn-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.ae-attn-card__body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ae-attn-item-main {
    margin-bottom: 16px;
}

.ae-attn-item-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    display: block;
}

.ae-attn-item-meta {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.ae-attn-item-meta strong {
    color: rgb(var(--attn-color-rgb));
    font-weight: 700;
}

.ae-attn-card__footer {
    padding: 0 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.ae-attn-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    background: rgb(var(--attn-color-rgb));
    color: #fff;
}

.ae-attn-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
    color: #fff;
}

.ae-attn-more {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.ae-attn-more:hover {
    color: rgb(var(--attn-color-rgb));
    text-decoration: underline;
}

/* Color tokens para tarjetas de atención */
.ae-attn--red {
    --attn-color-rgb: 239, 68, 68;
}

.ae-attn--orange {
    --attn-color-rgb: 245, 158, 11;
}

.ae-attn--blue {
    --attn-color-rgb: 59, 130, 246;
}

.ae-attn--purple {
    --attn-color-rgb: 139, 92, 246;
}

.ae-attn--pink {
    --attn-color-rgb: 219, 39, 119;
}

/* ═══════════════════════════════════════════════════════════
   TARJETAS SECUNDARIAS (MÓDULOS / "ENLACES DE INTERÉS")
   ═══════════════════════════════════════════════════════════ */
.ae-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

.ae-dash-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    color: #1e293b;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.ae-dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
}

.ae-dash-card:hover .ae-dash-card__icon {
    box-shadow: 0 4px 14px var(--card-color, rgba(59, 130, 246, 0.25));
}

.ae-dash-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ae-dash-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #3b82f6;
    flex-shrink: 0;
    transition: box-shadow 0.25s;
}

.ae-dash-card__icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ae-dash-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    line-height: 1.25;
}

.ae-dash-card__stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.ae-dash-card__stat {
    display: flex;
    flex-direction: column;
}

.ae-dash-card__stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}

.ae-dash-card__stat-label {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 2px;
}

.ae-dash-card__pending {
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.ae-dash-card__pending--active {
    background: #fee2e2;
    color: #b91c1c;
}

.ae-dash-card__pending--zero {
    background: #dcfce7;
    color: #15803d;
}

/* Barra de progreso micro */
.ae-dash-card__progress {
    height: 4px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
    margin-top: 4px;
}

.ae-dash-card__progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* Tarjeta de Pago Rápido (oscura) */
.ae-dash-card--pay {
    background: linear-gradient(135deg, #0E3950 0%, #1a5c80 100%);
    border-color: transparent;
    color: #fff;
}

.ae-dash-card--pay:hover {
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(14, 57, 80, 0.22);
}

.ae-dash-card--pay .ae-dash-card__title {
    color: #fff;
}

.ae-dash-card--pay .ae-dash-card__stat-val {
    color: #ECAD20;
}

.ae-dash-card--pay .ae-dash-card__stat-label {
    color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   SLIDER DE BANNERS
   ═══════════════════════════════════════════════════════════ */
.ae-guest-slider-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(14, 57, 80, 0.15);
    background: #0f172a;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: stretch;
    margin-top: 20px;
    margin-bottom: 20px;
}

.ae-guest-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    flex-grow: 1;
}

.ae-guest-slider::-webkit-scrollbar {
    display: none;
}

.ae-guest-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.ae-guest-slide a {
    display: flex;
    width: 100%;
    height: 100%;
}

.ae-guest-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ae-guest-slider-nav {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.ae-guest-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
    pointer-events: auto;
}

.ae-guest-slider-dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ae-guest-slider-pause {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
    backdrop-filter: blur(4px);
}

.ae-guest-slider-pause:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   ESTADO VACÍO — TODO AL DÍA
   ═══════════════════════════════════════════════════════════ */
.ae-all-clear-card {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 30px;
}

.ae-all-clear-card__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ae-all-clear-card__icon {
    width: 52px;
    height: 52px;
    background: #22c55e;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.ae-all-clear-card__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.ae-all-clear-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.ae-all-clear-cta--primary {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}

.ae-all-clear-cta--primary:hover {
    background: #15803d;
    color: #fff;
    transform: translateY(-1px);
}

.ae-all-clear-cta--secondary {
    background: #fff;
    color: #16a34a;
    border-color: #86efac;
}

.ae-all-clear-cta--secondary:hover {
    background: #f0fdf4;
    color: #15803d;
}

/* ═══════════════════════════════════════════════════════════
   ANIMACIÓN SPIN (usada en spinners IA)
   ═══════════════════════════════════════════════════════════ */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════
   HERRAMIENTAS PREMIUM (GRID DESTACADO) & PESTAÑAS
   ═══════════════════════════════════════════════════════════ */

/* Contenedor de pestañas moderno (Segmentado) */
.ae-portal-tabs-container {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
    display: inline-flex;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.ae-portal-tabs {
    display: flex;
    gap: 2px;
}

.ae-portal-tab-btn {
    background: transparent !important;
    border: none !important;
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s ease !important;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none !important;
}

.ae-portal-tab-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.ae-portal-tab-btn:hover {
    color: #0f172a !important;
    background: rgba(14, 57, 80, 0.05) !important;
}

.ae-portal-tab-btn:hover .dashicons {
    transform: scale(1.1);
}

.ae-portal-tab-btn.active {
    background: #ffffff !important;
    color: #0E3950 !important;
    box-shadow: 0 4px 12px rgba(14, 57, 80, 0.08) !important;
}

@media (max-width: 768px) {
    .ae-portal-tabs-container {
        display: flex;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ae-portal-tabs-container::-webkit-scrollbar {
        display: none;
    }
    .ae-portal-tabs {
        width: 100%;
    }
    .ae-portal-tab-btn {
        flex: 1;
        justify-content: center !important;
        padding: 9px 10px !important;
        font-size: 0.78rem !important;
        white-space: nowrap;
    }
}

/* Grid de herramientas premium */
.ae-premium-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .ae-premium-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .ae-premium-tools-grid {
        grid-template-columns: 1fr;
    }
}

.ae-premium-tool-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.ae-premium-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(14, 57, 80, 0.12);
}

.ae-premium-tool-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: transform 0.2s;
}

.ae-premium-tool-card:hover .ae-premium-tool-icon-wrapper {
    transform: scale(1.1);
}

.ae-premium-tool-icon-wrapper .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ae-premium-tool-content h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.ae-premium-tool-content p {
    margin: 0 0 16px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.ae-premium-tool-action {
    margin-top: auto;
}

.ae-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

/* ── Temas de herramientas — sistema unificado ── */

/* Todos los cards comparten la misma base visual */
.ae-tool--design,
.ae-tool--clinical,
.ae-tool--seo,
.ae-tool--visitas,
.ae-tool--ticket {
    border-top: 3px solid #0E3950;
    border-bottom: 1px solid #e2e8f0;
}

/* Ícono unificado: fondo azul muy suave, ícono corporativo */
.ae-tool--design .ae-premium-tool-icon-wrapper,
.ae-tool--clinical .ae-premium-tool-icon-wrapper,
.ae-tool--seo .ae-premium-tool-icon-wrapper,
.ae-tool--visitas .ae-premium-tool-icon-wrapper,
.ae-tool--ticket .ae-premium-tool-icon-wrapper {
    background: #eef3f7;
    color: #0E3950;
}

/* Hover: el ícono recibe el color de acento corporativo */
.ae-premium-tool-card:hover .ae-premium-tool-icon-wrapper {
    background: #0E3950;
    color: #ffffff;
}

/* Todos los botones CTA iguales */
.ae-tool--design .ae-tool-btn,
.ae-tool--clinical .ae-tool-btn,
.ae-tool--seo .ae-tool-btn,
.ae-tool--visitas .ae-tool-btn,
.ae-tool--ticket .ae-tool-btn {
    background: #0E3950;
    color: #ffffff;
}

.ae-tool--design .ae-tool-btn:hover,
.ae-tool--clinical .ae-tool-btn:hover,
.ae-tool--seo .ae-tool-btn:hover,
.ae-tool--visitas .ae-tool-btn:hover,
.ae-tool--ticket .ae-tool-btn:hover {
    background: #0b2e42;
    transform: translateY(-1px);
}

/* Estado bloqueado */
.ae-tool-btn--locked {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: pointer;
    transform: none !important;
}

.ae-tool-btn--locked:hover {
    background: #e2e8f0 !important;
    color: #64748b !important;
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════════
   WORKSPACE DEL ASISTENTE SOFÍA
   ═══════════════════════════════════════════════════════════ */
.ae-sofia-workspace-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ae-sofia-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0E3950 0%, #164E63 100%);
    color: #FFFFFF;
    padding: 18px 26px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(14, 57, 80, 0.16);
    position: relative;
    overflow: hidden;
}

.ae-sofia-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 70%);
    pointer-events: none;
}

.ae-sofia-avatar-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ae-sofia-avatar-glow {
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #06B6D4, #ECAD20, #0E3950);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.85;
    filter: blur(4px);
    animation: sofiaGlowRotate 6s linear infinite;
}

@keyframes sofiaGlowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ae-sofia-avatar-svg-box {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0E3950;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) inset;
}

.ae-sofia-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #0E3950;
    background: #10b981;
    z-index: 2;
}

.ae-sofia-status-indicator .ae-ping {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #10b981;
    animation: aePingRadar 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ae-sofia-header-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.ae-sofia-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ae-sofia-header-details h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.ae-sofia-header-details p {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

/* Workspace Layout Split */
.ae-sofia-workspace-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .ae-sofia-workspace-layout {
        grid-template-columns: 1fr;
    }
}

.ae-sofia-chat-container {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(14, 57, 80, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.ae-sofia-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ae-sofia-sidebar-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(14, 57, 80, 0.04);
}

.ae-sofia-sidebar-card h5 {
    margin: 0 0 10px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0e3950;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ae-sofia-sidebar-text {
    margin: 0 0 16px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

/* Prompts Grid */
.ae-sofia-prompts-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ae-sofia-prompt-btn {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer;
    text-align: left !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: 100% !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.ae-sofia-prompt-btn::after {
    content: '→';
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ae-sofia-prompt-btn:hover {
    background: #ffffff !important;
    border-color: #0e3950 !important;
    color: #0e3950 !important;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(14, 57, 80, 0.08) !important;
}

.ae-sofia-prompt-btn:hover::after {
    transform: translateX(3px);
    color: #0e3950;
}

/* Status List */
.ae-sofia-status-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ae-sofia-status-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: #475569;
}

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

.ae-status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.ae-sofia-status-list li div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.ae-sofia-status-list li div span {
    font-weight: 700;
    color: #10b981;
}

/* ==========================================================================
   ESTILOS COMPARTIDOS DE MÓDULOS DEL PORTAL (REFRACTORIZADO SAAS)
   ========================================================================== */
.ae-filter-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 32px;
}
[data-theme="dark"] .ae-filter-container {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-filter-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
[data-theme="dark"] .ae-filter-chip {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-muted);
}
.ae-filter-chip:hover {
    border-color: #cbd5e1;
    color: #1e293b;
    background: #f8fafc;
}
[data-theme="dark"] .ae-filter-chip:hover {
    border-color: var(--ae-primary);
    color: var(--ae-text-main);
    background: var(--ae-primary-soft);
}
.ae-filter-chip.active {
    background: #0E3950;
    border-color: #0E3950;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 57, 80, 0.15);
}
[data-theme="dark"] .ae-filter-chip.active {
    background: var(--ae-primary);
    border-color: var(--ae-primary);
    color: #ffffff;
}
.ae-filter-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    transition: all 0.2s ease;
}
[data-theme="dark"] .ae-filter-badge {
    background: var(--ae-card-bg);
    color: var(--ae-text-muted);
}
.ae-filter-chip.active .ae-filter-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Grid de Listados */
.ae-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
    transition: opacity 0.25s ease;
}

/* --- COTIZACIONES --- */
.ae-cotizacion-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .ae-cotizacion-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-cotizacion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}
[data-theme="dark"] .ae-cotizacion-card:hover {
    border-color: var(--ae-primary);
}
.ae-cotizacion-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ae-cotizacion-card__num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0E3950;
}
[data-theme="dark"] .ae-cotizacion-card__num {
    color: var(--ae-primary);
}
.ae-cotizacion-card__body {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ae-cotizacion-card__concept {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
[data-theme="dark"] .ae-cotizacion-card__concept {
    color: var(--ae-text-main);
}
.ae-cotizacion-card__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}
.ae-cotizacion-card__info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}
.ae-cotizacion-card__total {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: #1e293b;
    margin-top: 12px;
}
[data-theme="dark"] .ae-cotizacion-card__total {
    color: var(--ae-text-main);
}
.ae-cotizacion-card__total .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #10b981;
}
.ae-cotizacion-card__footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    text-align: right;
}
[data-theme="dark"] .ae-cotizacion-card__footer {
    border-top-color: var(--ae-border);
}
.ae-cotizacion-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0E3950;
    transition: color 0.2s ease, transform 0.2s ease;
}
[data-theme="dark"] .ae-cotizacion-card__btn {
    color: var(--ae-primary);
}
.ae-cotizacion-card:hover .ae-cotizacion-card__btn {
    color: #3b82f6;
    transform: translateX(4px);
}

/* --- VISITAS --- */
.ae-visita-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0E3950;
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="dark"] .ae-visita-section-title {
    color: var(--ae-text-main);
}
.ae-visita-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
[data-theme="dark"] .ae-visita-card-header {
    border-bottom-color: var(--ae-border);
}
.ae-visita-date-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ae-visita-calendar-icon {
    width: 48px;
    height: 48px;
    background: #f0f4f8;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0E3950;
    font-weight: 700;
}
[data-theme="dark"] .ae-visita-calendar-icon {
    background: var(--ae-main-bg);
    color: var(--ae-primary);
}
.ae-visita-date-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}
[data-theme="dark"] .ae-visita-date-info h4 {
    color: var(--ae-text-main);
}
.ae-visita-date-info p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}
.ae-visita-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}
.ae-visita-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ae-visita-info-item .dashicons {
    color: #0E3950;
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}
[data-theme="dark"] .ae-visita-info-item .dashicons {
    color: var(--ae-primary);
}
.ae-visita-info-item div h5 {
    margin: 0 0 4px;
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ae-visita-info-item div p {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
}
[data-theme="dark"] .ae-visita-info-item div p {
    color: var(--ae-text-main);
}
.ae-visita-observaciones-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    border-left: 4px solid #cbd5e1;
}
[data-theme="dark"] .ae-visita-observaciones-box {
    background: var(--ae-main-bg);
    color: var(--ae-text-muted);
    border-left-color: var(--ae-border);
}
.ae-visita-acciones-box {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    color: #166534;
    line-height: 1.6;
    border-left: 4px solid #10b981;
}
[data-theme="dark"] .ae-visita-acciones-box {
    background: rgba(16, 185, 129, 0.05);
    color: #4ade80;
    border-left-color: #10b981;
}

/* --- MI PERFIL --- */
.ae-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.ae-profile-section {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
[data-theme="dark"] .ae-profile-section {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-profile-section h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}
[data-theme="dark"] .ae-profile-section h3 {
    color: var(--ae-text-main);
    border-bottom-color: var(--ae-border);
}
.ae-form-group {
    margin-bottom: 16px;
}
.ae-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
[data-theme="dark"] .ae-form-group label {
    color: var(--ae-text-muted);
}
.ae-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
[data-theme="dark"] .ae-form-control {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-main);
}
.ae-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.ae-form-control[readonly] {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
    cursor: not-allowed;
}
[data-theme="dark"] .ae-form-control[readonly] {
    background: var(--ae-card-bg);
    color: var(--ae-text-muted);
    border-color: var(--ae-border);
}
.ae-profile-section--dark {
    background: linear-gradient(135deg, #0E3950 0%, #1a5c80 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(14, 57, 80, 0.2) !important;
}
[data-theme="dark"] .ae-profile-section--dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid var(--ae-border) !important;
}
.ae-profile-section--dark h3 {
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.ae-profile-section--dark .ae-form-group label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ae-form-control--dark {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    backdrop-filter: blur(5px);
}
[data-theme="dark"] .ae-form-control--dark {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: var(--ae-border) !important;
}
.ae-form-control--dark:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
@media (max-width: 768px) {
    .ae-profile-grid { grid-template-columns: 1fr; }
}

/* --- PAGOS EN LÍNEA Y COMPROBANTES (REDISEÑO EJECUTIVO SAAS) --- */
.ae-pay-container {
    max-width: 100%;
    margin: 0 auto 32px auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
}
[data-theme="dark"] .ae-pay-container {
    background: var(--ae-card-bg);
    border: 1px solid var(--ae-border);
}
.ae-pay-info {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    color: #0f172a;
    padding: 36px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
[data-theme="dark"] .ae-pay-info {
    background: #0f172a;
    border-right-color: var(--ae-border);
    color: #f8fafc;
}
.ae-pay-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}
.ae-pay-form-wrapper {
    padding: 36px 38px;
    background: #ffffff;
    min-width: 0;
}
[data-theme="dark"] .ae-pay-form-wrapper {
    background: var(--ae-card-bg);
}
.ae-pay-info h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
[data-theme="dark"] .ae-pay-info h2 {
    color: #ffffff;
}
.ae-pay-info p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 26px;
}
[data-theme="dark"] .ae-pay-info p {
    color: #cbd5e1;
}
.ae-pay-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ae-pay-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.5;
}
[data-theme="dark"] .ae-pay-benefits li {
    color: #e2e8f0;
}
.ae-pay-benefit-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0E3950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 1px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ae-pay-benefits .dashicons,
.ae-pay-benefits .ti {
    color: #0E3950;
    font-size: 16px;
}
.ae-pay-form-title {
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0 0 4px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.ae-pay-form-subtitle {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0 0 20px;
    line-height: 1.45;
}
[data-theme="dark"] .ae-pay-form-title {
    color: var(--ae-text-main);
}

/* Selector rápido de documentos pendientes */
.ae-pay-quick-docs {
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.ae-pay-quick-docs__label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 8px;
}
.ae-pay-quick-docs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ae-pay-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 0.78rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ae-pay-quick-chip:hover,
.ae-pay-quick-chip.is-selected {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}
.ae-pay-quick-chip__ref {
    font-weight: 600;
}
.ae-pay-quick-chip__val {
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.74rem;
}
.ae-pay-quick-chip.is-selected .ae-pay-quick-chip__val {
    background: #dbeafe;
    color: #1e40af;
}

/* Input de monto con símbolo $ y sufijo COP alineados dentro del campo */
.ae-pay-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.ae-pay-amount-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    pointer-events: none;
    line-height: 1;
    z-index: 2;
}
.ae-pay-amount-curr {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 5px;
    pointer-events: none;
    z-index: 2;
}
.ae-form-control.ae-form-control--amount {
    padding-left: 34px !important;
    padding-right: 58px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.ae-btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0E3950;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid #0E3950;
    padding: 13px 20px;
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-sizing: border-box;
}
.ae-btn-pay:hover {
    background: #164e6b;
    border-color: #164e6b;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14, 57, 80, 0.18);
}

/* Sello de seguridad Wompi controlado para que la imagen nunca distorsione el layout */
.ae-secure-badge {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}
.ae-secure-badge-img {
    height: 26px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain !important;
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-block;
}

/* Tarjeta de redirección a Wompi */
.ae-pay-redirect-card {
    max-width: 520px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.ae-pay-redirect-card h3 {
    margin: 14px 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}
.ae-pay-redirect-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}
.ae-pay-redirect-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #0E3950;
    border-radius: 50%;
    margin: 0 auto;
    animation: aePaySpin 0.8s linear infinite;
}
@keyframes aePaySpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
    .ae-pay-container {
        grid-template-columns: 1fr;
    }
    .ae-pay-info {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 28px 24px;
    }
    .ae-pay-form-wrapper {
        padding: 28px 24px;
    }
    .ae-pay-info h2 {
        font-size: 1.3rem;
    }
}

/* Comprobante de Pago */
.ae-receipt-container {
    max-width: 720px;
    margin: 24px auto 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
[data-theme="dark"] .ae-receipt-container {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-receipt-header {
    background: #f8fafc;
    padding: 32px 28px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .ae-receipt-header {
    background: var(--ae-card-bg);
    border-bottom-color: var(--ae-border);
}
.ae-receipt-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}
[data-theme="dark"] .ae-receipt-header h2 {
    color: var(--ae-text-main);
}
.ae-receipt-header p {
    margin: 8px auto 0;
    max-width: 520px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}
.ae-receipt-header .dashicons,
.ae-receipt-header .ti {
    font-size: 38px;
    width: 38px;
    height: 38px;
    color: var(--receipt-border-color, #0E3950);
    margin-bottom: 12px;
    display: inline-block;
}
.ae-receipt-body {
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.ae-receipt-image {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.ae-receipt-image img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
}
.ae-receipt-data {
    flex: 1.5;
    min-width: 280px;
}
.ae-data-row {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
[data-theme="dark"] .ae-data-row {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
}
.ae-data-lbl {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}
.ae-data-val {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}
[data-theme="dark"] .ae-data-val {
    color: var(--ae-text-main);
}
.ae-status-badge {
    background: var(--receipt-bg-color, #f1f5f9);
    color: var(--receipt-text-color, #475569);
    border: 1px solid var(--receipt-border-color, #cbd5e1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ae-receipt-footer {
    background: #f8fafc;
    padding: 24px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #475569;
}
[data-theme="dark"] .ae-receipt-footer {
    background: var(--ae-card-bg);
    border-top-color: var(--ae-border);
    color: var(--ae-text-muted);
}
.ae-receipt-footer h4 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1rem;
}
[data-theme="dark"] .ae-receipt-footer h4 {
    color: var(--ae-text-main);
}
.ae-receipt-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}
.ae-btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0E3950;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    transition: all 0.2s;
}
.ae-btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14,57,80,0.2);
}

/* --- FACTURAS --- */
.ae-factura-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .ae-factura-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-factura-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}
[data-theme="dark"] .ae-factura-card:hover {
    border-color: var(--ae-primary);
}
.ae-factura-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ae-factura-card__num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0E3950;
}
[data-theme="dark"] .ae-factura-card__num {
    color: var(--ae-primary);
}
.ae-factura-card__body {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ae-factura-card__concept {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
[data-theme="dark"] .ae-factura-card__concept {
    color: var(--ae-text-main);
}
.ae-factura-card__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}
.ae-factura-card__info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}
.ae-factura-card__total {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: #1e293b;
    margin-top: 12px;
}
[data-theme="dark"] .ae-factura-card__total {
    color: var(--ae-text-main);
}
.ae-factura-card__total .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #10b981;
}
.ae-factura-card__footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    text-align: right;
}
[data-theme="dark"] .ae-factura-card__footer {
    border-top-color: var(--ae-border);
}
.ae-factura-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0E3950;
    transition: color 0.2s ease, transform 0.2s ease;
}
[data-theme="dark"] .ae-factura-card__btn {
    color: var(--ae-primary);
}
.ae-factura-card:hover .ae-factura-card__btn {
    color: #3b82f6;
    transform: translateX(4px);
}

/* --- ÓRDENES DE PAGO --- */
.ae-op-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .ae-op-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-op-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}
[data-theme="dark"] .ae-op-card:hover {
    border-color: var(--ae-primary);
}
.ae-op-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ae-op-card__num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0E3950;
}
[data-theme="dark"] .ae-op-card__num {
    color: var(--ae-primary);
}
.ae-op-card__body {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ae-op-card__concept {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
[data-theme="dark"] .ae-op-card__concept {
    color: var(--ae-text-main);
}
.ae-op-card__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}
.ae-op-card__info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}
.ae-op-card__total {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: #1e293b;
    margin-top: 12px;
}
[data-theme="dark"] .ae-op-card__total {
    color: var(--ae-text-main);
}
.ae-op-card__total .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #10b981;
}
.ae-op-card__footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    text-align: right;
}
[data-theme="dark"] .ae-op-card__footer {
    border-top-color: var(--ae-border);
}
.ae-op-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0E3950;
    transition: color 0.2s ease, transform 0.2s ease;
}
[data-theme="dark"] .ae-op-card__btn {
    color: var(--ae-primary);
}
.ae-op-card:hover .ae-op-card__btn {
    color: #3b82f6;
    transform: translateX(4px);
}

/* --- PROYECTOS --- */
.ae-proyecto-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .ae-proyecto-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-proyecto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}
[data-theme="dark"] .ae-proyecto-card:hover {
    border-color: var(--ae-primary);
}
.ae-proyecto-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ae-proyecto-card__num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0E3950;
}
[data-theme="dark"] .ae-proyecto-card__num {
    color: var(--ae-primary);
}
.ae-proyecto-card__body {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ae-proyecto-card__concept {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
[data-theme="dark"] .ae-proyecto-card__concept {
    color: var(--ae-text-main);
}
.ae-proyecto-card__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}
.ae-proyecto-card__info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}
.ae-proyecto-progress-box {
    margin-top: 14px;
}
.ae-proyecto-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
[data-theme="dark"] .ae-proyecto-progress-header {
    color: var(--ae-text-muted);
}
.ae-progress-container {
    height: 8px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}
[data-theme="dark"] .ae-progress-container {
    background: var(--ae-main-bg);
}
.ae-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 99px;
    transition: width 0.4s ease;
}
.ae-proyecto-card__footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    text-align: right;
}
[data-theme="dark"] .ae-proyecto-card__footer {
    border-top-color: var(--ae-border);
}
.ae-proyecto-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0E3950;
    transition: color 0.2s ease, transform 0.2s ease;
}
[data-theme="dark"] .ae-proyecto-card__btn {
    color: var(--ae-primary);
}
.ae-proyecto-card:hover .ae-proyecto-card__btn {
    color: #3b82f6;
    transform: translateX(4px);
}

/* --- SERVICIOS --- */
.ae-servicio-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .ae-servicio-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}
[data-theme="dark"] .ae-servicio-card:hover {
    border-color: var(--ae-primary);
}
.ae-servicio-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ae-servicio-card__num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0E3950;
}
[data-theme="dark"] .ae-servicio-card__num {
    color: var(--ae-primary);
}
.ae-servicio-card__body {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ae-servicio-card__concept {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
[data-theme="dark"] .ae-servicio-card__concept {
    color: var(--ae-text-main);
}
.ae-servicio-card__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}
.ae-servicio-card__info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}
.ae-servicio-details-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    display: none;
}
[data-theme="dark"] .ae-servicio-details-container {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
}
.ae-servicio-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.ae-servicio-details-item {
    font-size: 0.82rem;
    color: #475569;
}
[data-theme="dark"] .ae-servicio-details-item {
    color: var(--ae-text-muted);
}
.ae-servicio-details-item strong {
    color: #0f172a;
    display: block;
    font-size: 0.88rem;
    margin-top: 2px;
}
[data-theme="dark"] .ae-servicio-details-item strong {
    color: var(--ae-text-main);
}
.ae-servicio-details-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}
.ae-servicio-details-notes {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
}
[data-theme="dark"] .ae-servicio-details-notes {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-main);
}
.ae-servicio-card__footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
[data-theme="dark"] .ae-servicio-card__footer {
    border-top-color: var(--ae-border);
}
.ae-servicio-card__btn {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0E3950;
    cursor: pointer;
    transition: color 0.2s ease;
}
[data-theme="dark"] .ae-servicio-card__btn {
    color: var(--ae-primary);
}
.ae-servicio-card__btn:hover {
    color: #3b82f6;
}

/* Facturas específicos */
.ae-factura-card__btn--pay {
    color: #059669;
}
.ae-factura-card__btn--view {
    color: #64748b;
}
[data-theme="dark"] .ae-factura-card__btn--view {
    color: var(--ae-text-muted);
}
.ae-factura-card:hover .ae-factura-card__btn--pay {
    color: #047857;
    transform: translateX(4px);
}
.ae-factura-card:hover .ae-factura-card__btn--view {
    color: #0E3950;
    transform: translateX(4px);
}
[data-theme="dark"] .ae-factura-card:hover .ae-factura-card__btn--view {
    color: var(--ae-primary);
}

/* Órdenes de Pago específicos */
.ae-op-card__btn--pay {
    color: #d97706;
}
.ae-op-card__btn--view {
    color: #64748b;
}
[data-theme="dark"] .ae-op-card__btn--view {
    color: var(--ae-text-muted);
}
.ae-op-card:hover .ae-op-card__btn--pay {
    color: #b45309;
    transform: translateX(4px);
}
.ae-op-card:hover .ae-op-card__btn--view {
    color: #0E3950;
    transform: translateX(4px);
}
[data-theme="dark"] .ae-op-card:hover .ae-op-card__btn--view {
    color: var(--ae-primary);
}

/* Proyectos específicos */
.ae-proyecto-card__btn {
    color: #7c3aed;
}
.ae-proyecto-card:hover .ae-proyecto-card__btn {
    color: #6d28d9;
}
.ae-proyecto-card .ae-progress-bar {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

/* Servicios específicos (Tema Magenta/Pink) */
.ae-servicio-card__btn {
    color: #db2777 !important;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}
.ae-servicio-card__btn:hover {
    color: #be185d !important;
    transform: translateY(-1px);
}
[data-theme="dark"] .ae-servicio-card__btn {
    color: #db2777 !important;
}
[data-theme="dark"] .ae-servicio-card__btn:hover {
    color: #f472b6 !important;
}

/* --- BADGES & PRIORIDADES --- */
.ae-badge--success {
    background: #dcfce7 !important;
    color: #15803d !important;
}
.ae-badge--warning {
    background: #fef9c3 !important;
    color: #a16207 !important;
}
.ae-badge--danger {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}
.ae-badge--info {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

[data-theme="dark"] .ae-badge--success {
    background: rgba(22, 163, 74, 0.2) !important;
    color: #4ade80 !important;
}
[data-theme="dark"] .ae-badge--warning {
    background: rgba(202, 138, 4, 0.2) !important;
    color: #facc15 !important;
}
[data-theme="dark"] .ae-badge--danger {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #fca5a5 !important;
}
[data-theme="dark"] .ae-badge--info {
    background: rgba(2, 132, 199, 0.2) !important;
    color: #38bdf8 !important;
}

.ae-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ae-priority-badge--alta {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}
.ae-priority-badge--normal {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
.ae-priority-badge--baja {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

[data-theme="dark"] .ae-priority-badge--alta {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #fca5a5 !important;
}
[data-theme="dark"] .ae-priority-badge--normal {
    background: var(--ae-main-bg) !important;
    color: var(--ae-text-muted) !important;
    border: 1px solid var(--ae-border);
}
[data-theme="dark"] .ae-priority-badge--baja {
    background: rgba(2, 132, 199, 0.2) !important;
    color: #38bdf8 !important;
}

/* --- VISITAS GRID & CARDS --- */
.ae-visita-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.25s ease;
}
.ae-visita-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
[data-theme="dark"] .ae-visita-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-visita-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}
[data-theme="dark"] .ae-visita-card:hover {
    border-color: var(--ae-primary);
}

@media (max-width: 640px) {
    .ae-visita-card-body {
        grid-template-columns: 1fr;
    }
}

/* --- VISTA INDIVIDUAL DE FACTURA --- */
.ae-invoice-view-wrapper {
    background: #f1f5f9;
    min-height: 100vh;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}
[data-theme="dark"] .ae-invoice-view-wrapper {
    background: var(--ae-main-bg);
}
.ae-invoice-container {
    max-width: 1300px;
    margin: 0 auto;
}
.ae-invoice-toolbar {
    margin-bottom: 30px;
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
[data-theme="dark"] .ae-invoice-toolbar {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-invoice-logo {
    max-height: 45px;
    object-fit: contain;
}
.ae-invoice-logo-fallback {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0E3950;
    letter-spacing: -0.5px;
}
[data-theme="dark"] .ae-invoice-logo-fallback {
    color: var(--ae-text-main);
}
.ae-invoice-logo-fallback .ti {
    color: #f59e0b;
    margin-right: 8px;
}
.ae-toolbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}
.ae-invoice-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #64748b;
}
[data-theme="dark"] .ae-invoice-status-badge {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-muted);
}
.ae-status--pagada { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.ae-status--fallida, .ae-status--vencida { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.ae-status--importada_api, .ae-status--pendiente { background: #fffbeb; color: #b45309; border-color: #fde68a; }

[data-theme="dark"] .ae-status--pagada { background: rgba(16, 185, 129, 0.1); color: #34d399; border-color: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .ae-status--fallida, [data-theme="dark"] .ae-status--vencida { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.2); }
[data-theme="dark"] .ae-status--importada_api, [data-theme="dark"] .ae-status--pendiente { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }

.ae-invoice-layout-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    align-items: start;
}
.ae-invoice-main-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    padding: 60px;
    overflow: hidden;
    position: relative;
    border: 1px solid #f1f5f9;
}
[data-theme="dark"] .ae-invoice-main-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-card-decoration {
    height: 6px;
    background: linear-gradient(90deg, #0E3950, #10b981);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.ae-invoice-header-sec {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 30px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
[data-theme="dark"] .ae-invoice-header-sec {
    border-bottom-color: var(--ae-border);
}
.ae-invoice-title-block h1 {
    margin: 0;
    font-size: 32px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -1px;
}
[data-theme="dark"] .ae-invoice-title-block h1 {
    color: var(--ae-text-main);
}
.ae-invoice-cufe-badge {
    margin-top: 15px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
}
[data-theme="dark"] .ae-invoice-cufe-badge {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-muted);
}
.ae-invoice-number {
    color: #64748b;
    font-weight: 600;
    font-size: 28px;
}
[data-theme="dark"] .ae-invoice-number {
    color: var(--ae-text-main);
}
.ae-invoice-date {
    margin: 8px 0 0;
    font-size: 13px;
    color: #94a3b8;
}
.ae-invoice-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.ae-address-box h3 {
    margin: 0 0 16px;
    font-size: 12px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1.5px;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
[data-theme="dark"] .ae-address-box h3 {
    border-bottom-color: var(--ae-border);
}
.ae-company-name, .ae-client-name {
    margin: 0 0 6px;
    font-weight: 700;
    color: #1e293b;
    font-size: 18px;
}
[data-theme="dark"] .ae-company-name, [data-theme="dark"] .ae-client-name {
    color: var(--ae-text-main);
}
.ae-company-nit, .ae-client-nit {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}
[data-theme="dark"] .ae-company-nit, [data-theme="dark"] .ae-client-nit {
    color: var(--ae-text-muted);
}
.ae-invoice-table-container {
    margin-bottom: 50px;
    overflow-x: auto;
}
.ae-invoice-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}
.ae-invoice-table th {
    padding: 16px 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f1f5f9;
}
[data-theme="dark"] .ae-invoice-table th {
    border-bottom-color: var(--ae-border);
}
.ae-invoice-table td {
    padding: 20px 8px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}
[data-theme="dark"] .ae-invoice-table td {
    border-bottom-color: var(--ae-border);
    color: var(--ae-text-muted);
}
.ae-item-desc { margin: 0; font-weight: 600; color: #1e293b; font-size: 15px; }
[data-theme="dark"] .ae-item-desc {
    color: var(--ae-text-main);
}
.text-bold { font-weight: 700; color: #0E3950; }
[data-theme="dark"] .text-bold {
    color: var(--ae-text-main);
}
.ae-invoice-totals-wrapper {
    display: flex;
    justify-content: flex-end;
}
.ae-invoice-totals-box {
    width: 100%;
    max-width: 350px;
}
.ae-total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 15px;
}
[data-theme="dark"] .ae-total-row {
    border-bottom-color: var(--ae-border);
    color: var(--ae-text-muted);
}
.ae-total-val { font-weight: 600; color: #1e293b; }
[data-theme="dark"] .ae-total-val {
    color: var(--ae-text-main);
}
.ae-total-final {
    border-bottom: 0;
    padding-top: 20px;
    font-size: 18px;
    color: #0f172a;
    font-weight: 800;
}
[data-theme="dark"] .ae-total-final {
    color: var(--ae-text-main);
}
.ae-total-final .ae-total-val { color: #0E3950; font-size: 22px; }
[data-theme="dark"] .ae-total-final .ae-total-val {
    color: var(--ae-text-main);
}
.ae-sidebar-sticky { position: sticky; top: 30px; }
.ae-sidebar-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    padding: 30px;
    border: 1px solid #f1f5f9;
}
[data-theme="dark"] .ae-sidebar-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-sidebar-card h3 { margin: 0 0 20px; color: #0E3950; font-size: 18px; font-weight: 700; }
[data-theme="dark"] .ae-sidebar-card h3 {
    color: var(--ae-text-main);
}
.ae-amount-box {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    text-align: center;
}
[data-theme="dark"] .ae-amount-box {
    background: var(--ae-main-bg);
}
.ae-amount-label {
    margin: 0 0 8px;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.ae-amount-value {
    margin: 0;
    font-size: 32px;
    color: #0E3950;
    font-weight: 800;
    letter-spacing: -1px;
}
[data-theme="dark"] .ae-amount-value {
    color: var(--ae-text-main);
}
.ae-currency { font-size: 14px; color: #94a3b8; font-weight: 600; }
.ae-btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #0E3950;
    color: #fff;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 15px -3px rgba(14,57,80,0.25);
    transition: all 0.3s;
}
.ae-btn-pay:hover {
    background: #1e5c80;
    transform: translateY(-1px);
}
.ae-wompi-info { margin-top: 25px; text-align: center; }
.ae-wompi-logo-box img { height: 75px; }
.ae-secure-text {
    margin: 10px 0 0;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.ae-payment-success {
    text-align: center;
    padding: 10px 0;
}
.ae-success-icon {
    width: 60px;
    height: 60px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    margin: 0 auto 15px;
}
.ae-success-icon .ti { font-size: 32px; }

@media (max-width: 1024px) {
    .ae-invoice-layout-grid { grid-template-columns: 1fr; }
    .ae-sidebar-sticky { position: static; }
    .ae-invoice-main-card { padding: 40px; }
}
@media (max-width: 768px) {
    .ae-invoice-view-wrapper { padding: 20px 10px; }
    .ae-invoice-toolbar { padding: 15px; flex-direction: column; text-align: center; }
    .ae-toolbar-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
    .ae-invoice-header-sec { flex-direction: column; text-align: center; align-items: center; }
    .ae-invoice-num-block { text-align: center; }
    .ae-invoice-address-grid { grid-template-columns: 1fr; gap: 25px; }
    .ae-invoice-totals-box { max-width: 100%; }
    .ae-invoice-main-card { padding: 30px 20px; border-radius: 12px; }
}
@media (max-width: 480px) {
    .ae-invoice-title-block h1 { font-size: 24px; }
    .ae-invoice-number { font-size: 22px; }
}

/* --- VISTA INDIVIDUAL DE PROYECTO --- */
.ae-project-detail-wrapper {
    background: #f1f5f9;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}
[data-theme="dark"] .ae-project-detail-wrapper {
    background: var(--ae-main-bg);
}
.ae-project-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.ae-project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
}
@media (max-width: 768px) {
    .ae-project-detail-grid {
        grid-template-columns: 1fr !important;
    }
}
.ae-project-detail-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.ae-project-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.ae-project-detail-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}
[data-theme="dark"] .ae-project-detail-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
}
.ae-project-detail-card h3 {
    margin: 0 0 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0E3950;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="dark"] .ae-project-detail-card h3 {
    color: var(--ae-text-main);
}
.ae-project-detail-card-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}
[data-theme="dark"] .ae-project-detail-card-desc {
    color: var(--ae-text-muted);
}
.ae-project-timeline {
    position: relative;
    padding-left: 24px;
}
.ae-project-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 2px;
    background: #e2e8f0;
}
[data-theme="dark"] .ae-project-timeline-line {
    background: var(--ae-border);
}
.ae-project-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.ae-project-timeline-item {
    position: relative;
}
.ae-project-timeline-dot {
    position: absolute;
    left: -24px;
    top: 2px;
    width: 24px;
    display: flex;
    justify-content: center;
}
.ae-project-timeline-dot-inner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    position: relative;
    z-index: 2;
}
[data-theme="dark"] .ae-project-timeline-dot-inner {
    border-color: var(--ae-card-bg);
}
.ae-project-timeline-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
[data-theme="dark"] .ae-project-timeline-card {
    border-color: var(--ae-border);
}
.ae-project-timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.ae-project-timeline-card-title {
    margin: 0;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}
[data-theme="dark"] .ae-project-timeline-card-title {
    color: var(--ae-text-main);
}
.ae-project-timeline-card-date {
    font-size: 0.75rem;
    color: #64748b;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
[data-theme="dark"] .ae-project-timeline-card-date {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-muted);
}
.ae-project-timeline-card-notes {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}
[data-theme="dark"] .ae-project-timeline-card-notes {
    color: var(--ae-text-muted);
}
.ae-project-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}
.ae-project-comment-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ae-project-comment-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    padding: 0 8px;
}
.ae-project-comment-bubble {
    padding: 16px 20px;
    max-width: 85%;
    font-size: 0.88rem;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.ae-project-comment-form-box {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
[data-theme="dark"] .ae-project-comment-form-box {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
}
.ae-project-comment-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
[data-theme="dark"] .ae-project-comment-form-label {
    color: var(--ae-text-main);
}
.ae-project-comment-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    resize: vertical;
    transition: all 0.3s;
    background: #ffffff;
}
[data-theme="dark"] .ae-project-comment-textarea {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-main);
}
.ae-project-comment-textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.ae-project-progress-circle-box {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}
.ae-project-progress-circle-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ae-project-progress-pct {
    font-size: 2rem;
    font-weight: 800;
    color: #0E3950;
    line-height: 1;
}
[data-theme="dark"] .ae-project-progress-pct {
    color: var(--ae-text-main);
}
.ae-project-dates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ae-project-date-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ae-project-date-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ae-project-date-icon-box--start {
    background: #f0fdfa;
    color: #0d9488;
}
[data-theme="dark"] .ae-project-date-icon-box--start {
    background: rgba(13, 148, 136, 0.1);
    color: #2dd4bf;
}
.ae-project-date-icon-box--end {
    background: #fff1f2;
    color: #e11d48;
}
[data-theme="dark"] .ae-project-date-icon-box--end {
    background: rgba(225, 29, 72, 0.1);
    color: #fb7185;
}
.ae-project-date-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}
.ae-project-date-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}
[data-theme="dark"] .ae-project-date-value {
    color: var(--ae-text-main);
}

/* --- TOOLBAR MODERN UNIFICADO --- */
.ae-support-toolbar-modern {
    margin-bottom: 32px;
    background: #ffffff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
}
[data-theme="dark"] .ae-support-toolbar-modern {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
    box-shadow: none;
}
.ae-toolbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.ae-toolbar-title-box h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0E3950;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="dark"] .ae-toolbar-title-box h1 {
    color: var(--ae-text-main);
}
.ae-toolbar-title-box p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}
[data-theme="dark"] .ae-toolbar-title-box p {
    color: var(--ae-text-muted);
}
.ae-toolbar-actions-container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}
.ae-btn-back {
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 600;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
[data-theme="dark"] .ae-btn-back {
    background: var(--ae-main-bg);
    color: var(--ae-text-muted);
    border-color: var(--ae-border);
}
.ae-btn-back:hover {
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
}
[data-theme="dark"] .ae-btn-back:hover {
    background: var(--ae-border);
    color: var(--ae-text-main);
}

/* ==========================================================================
   NUEVAS CLASES Y AJUSTES SAAS (PORTAL CLIENTES)
   ========================================================================== */

/* Contenedor de Módulo */
.ae-module-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
}

/* Badges de Estados Generales */
.ae-badge--success {
    background: #dcfce7;
    color: #166534;
}
[data-theme="dark"] .ae-badge--success {
    background: rgba(22, 101, 52, 0.2);
    color: #4ade80;
}

.ae-badge--danger {
    background: #fee2e2;
    color: #991b1b;
}
[data-theme="dark"] .ae-badge--danger {
    background: rgba(153, 27, 27, 0.2);
    color: #f87171;
}

.ae-badge--warning {
    background: #fef3c7;
    color: #92400e;
}
[data-theme="dark"] .ae-badge--warning {
    background: rgba(146, 64, 14, 0.2);
    color: #fbbf24;
}

.ae-badge--info {
    background: #e0f2fe;
    color: #0369a1;
}
[data-theme="dark"] .ae-badge--info {
    background: rgba(3, 105, 161, 0.2);
    color: #38bdf8;
}

.ae-badge--neutral {
    background: #f1f5f9;
    color: #475569;
}
[data-theme="dark"] .ae-badge--neutral {
    background: rgba(71, 85, 105, 0.2);
    color: #cbd5e1;
}

/* Badges de Prioridad (Proyectos) */
.ae-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ae-priority-badge--alta {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}
[data-theme="dark"] .ae-priority-badge--alta {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.ae-priority-badge--normal {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #86efac;
}
[data-theme="dark"] .ae-priority-badge--normal {
    background: rgba(22, 163, 74, 0.1);
    color: #4ade80;
    border-color: rgba(22, 163, 74, 0.3);
}

.ae-priority-badge--baja {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #7dd3fc;
}
[data-theme="dark"] .ae-priority-badge--baja {
    background: rgba(2, 132, 199, 0.1);
    color: #38bdf8;
    border-color: rgba(2, 132, 199, 0.3);
}

/* Visitas Técnicas Grid y Cards */
.ae-visita-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ae-visita-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
[data-theme="dark"] .ae-visita-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
    box-shadow: none;
}
.ae-visita-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.ae-visita-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
[data-theme="dark"] .ae-visita-card-header {
    border-bottom-color: var(--ae-border);
}

.ae-visita-date-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ae-visita-calendar-icon {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0E3950;
}
[data-theme="dark"] .ae-visita-calendar-icon {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-main);
}
.ae-visita-calendar-icon span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    line-height: 1;
    margin-top: -2px;
}
.ae-visita-calendar-icon span:last-child {
    font-size: 1.35rem;
    line-height: 1;
}

.ae-visita-date-info h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 700;
}
[data-theme="dark"] .ae-visita-date-info h4 {
    color: var(--ae-text-main);
}
.ae-visita-date-info p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}
[data-theme="dark"] .ae-visita-date-info p {
    color: var(--ae-text-muted);
}

.ae-visita-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .ae-visita-card-body {
        grid-template-columns: 1fr;
    }
}

.ae-visita-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ae-visita-info-item > .ti {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
    margin-top: 2px;
}
.ae-visita-info-item h5 {
    margin: 0 0 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.ae-visita-info-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 600;
}
[data-theme="dark"] .ae-visita-info-item p {
    color: var(--ae-text-main);
}

.ae-visita-info-item--full {
    grid-column: span 2;
}
@media (max-width: 640px) {
    .ae-visita-info-item--full {
        grid-column: span 1;
    }
}

.ae-visita-observaciones-box {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-left: 4px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}
[data-theme="dark"] .ae-visita-observaciones-box {
    background: var(--ae-main-bg);
    border-left-color: var(--ae-border);
    color: var(--ae-text-muted);
}

.ae-visita-acciones-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}
[data-theme="dark"] .ae-visita-acciones-box {
    border-top-color: var(--ae-border);
}
.ae-visita-acciones-box strong {
    font-size: 0.9rem;
    color: #1e293b;
}
[data-theme="dark"] .ae-visita-acciones-box strong {
    color: var(--ae-text-main);
}
.ae-visita-acciones-list {
    margin: 10px 0 15px;
    padding-left: 0;
    list-style-type: none;
}
.ae-visita-acciones-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}
[data-theme="dark"] .ae-visita-acciones-list li {
    color: var(--ae-text-muted);
}
.ae-visita-acciones-list li .ti {
    color: #10b981;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Empty States */
.ae-empty-state {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    color: #64748b;
    margin-bottom: 32px;
}
[data-theme="dark"] .ae-empty-state {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-muted);
}
.ae-empty-state .ti {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.ae-empty-state p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}
[data-theme="dark"] .ae-empty-state p {
    color: var(--ae-text-main);
}

.ae-empty-state .ti.ae-empty-icon-pink { color: #db2777; }
.ae-empty-state .ti.ae-empty-icon-blue { color: #3b82f6; }
.ae-empty-state .ti.ae-empty-icon-green { color: #059669; }
.ae-empty-state .ti.ae-empty-icon-purple { color: #7c3aed; }
.ae-empty-state .ti.ae-empty-icon-orange { color: #d97706; }

/* Empty Concept Card placeholders */
.ae-cotizacion-card__concept--empty,
.ae-op-card__concept--empty {
    font-style: italic;
    color: #94a3b8 !important;
}
[data-theme="dark"] .ae-cotizacion-card__concept--empty,
[data-theme="dark"] .ae-op-card__concept--empty {
    color: var(--ae-text-muted) !important;
}

/* Servicios Styles */
.ae-servicio-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
[data-theme="dark"] .ae-servicio-card {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
    box-shadow: none;
}
.ae-servicio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.ae-servicio-card__body {
    padding: 24px;
    flex: 1;
}
.ae-servicio-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.ae-servicio-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0E3950;
    line-height: 1.3;
    flex: 1;
}
[data-theme="dark"] .ae-servicio-card__title {
    color: var(--ae-text-main);
}
.ae-servicio-card__meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}
.ae-servicio-card__meta-item span {
    font-size: 0.8rem;
    color: #64748b;
}
[data-theme="dark"] .ae-servicio-card__meta-item span {
    color: var(--ae-text-muted);
}
.ae-servicio-card__meta-item span strong {
    color: #1e293b;
}
[data-theme="dark"] .ae-servicio-card__meta-item span strong {
    color: var(--ae-text-main);
}
.ae-servicio-card__meta-item .ti {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #94a3b8;
    vertical-align: middle;
    margin-right: 4px;
}

/* Alert Expiry Badges */
.ae-alerta-vencimiento {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ae-alerta-vencimiento .ti {
    font-size: 12px;
    width: 12px;
    height: 12px;
}
.ae-alerta-vencimiento--danger {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
[data-theme="dark"] .ae-alerta-vencimiento--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
.ae-alerta-vencimiento--warning {
    color: #d97706;
    background: rgba(217, 119, 6, 0.08);
}
[data-theme="dark"] .ae-alerta-vencimiento--warning {
    background: rgba(217, 119, 6, 0.15);
    color: #fbbf24;
}
.ae-alerta-vencimiento--success {
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
}
[data-theme="dark"] .ae-alerta-vencimiento--success {
    background: rgba(5, 150, 105, 0.15);
    color: #34d399;
}

/* Detalles expandibles de servicio */
.ae-servicio-details-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
    display: none; /* Controlado por js */
}
[data-theme="dark"] .ae-servicio-details-box {
    border-top-color: var(--ae-border);
}
.ae-servicio-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.ae-servicio-details-col {
    display: flex;
    flex-direction: column;
}
.ae-servicio-details-col--full {
    grid-column: span 2;
}
.ae-servicio-details-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.ae-servicio-details-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}
[data-theme="dark"] .ae-servicio-details-val {
    color: var(--ae-text-main);
}
.ae-servicio-details-val a {
    color: #db2777;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
}
.ae-servicio-details-val a:hover {
    text-decoration: underline;
}
.ae-servicio-details-notes {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}
[data-theme="dark"] .ae-servicio-details-notes {
    background: var(--ae-main-bg);
    border-color: var(--ae-border);
    color: var(--ae-text-muted);
}

.ae-servicio-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
[data-theme="dark"] .ae-servicio-card__footer {
    background: rgba(0, 0, 0, 0.1);
    border-top-color: var(--ae-border);
}
.ae-servicio-card__btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.ae-servicio-card__btn:hover {
    color: #0E3950;
}
[data-theme="dark"] .ae-servicio-card__btn:hover {
    color: var(--ae-text-main);
}

/* Wompi / Confirmacion pago styles */
.ae-receipt-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    max-width: 800px;
    margin: 0 auto;
}
[data-theme="dark"] .ae-receipt-container {
    background: var(--ae-card-bg);
    border-color: var(--ae-border);
    box-shadow: none;
}

.ae-receipt-container--status-approved {
    border-left: 6px solid #059669;
}
.ae-receipt-container--status-declined {
    border-left: 6px solid #dc2626;
}
.ae-receipt-container--status-pending {
    border-left: 6px solid #d97706;
}

.ae-receipt-header {
    text-align: center;
    margin-bottom: 32px;
}
.ae-receipt-header .ti {
    font-size: 56px;
    margin-bottom: 16px;
}
.ae-receipt-header--approved .ti { color: #059669; }
.ae-receipt-header--declined .ti { color: #dc2626; }
.ae-receipt-header--pending .ti { color: #d97706; }

.ae-receipt-header h2 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0E3950;
}
[data-theme="dark"] .ae-receipt-header h2 {
    color: var(--ae-text-main);
}
.ae-receipt-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}
[data-theme="dark"] .ae-receipt-header p {
    color: var(--ae-text-muted);
}

.ae-receipt-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 32px 0;
}
[data-theme="dark"] .ae-receipt-body {
    border-top-color: var(--ae-border);
    border-bottom-color: var(--ae-border);
}
@media (max-width: 640px) {
    .ae-receipt-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.ae-receipt-image {
    display: flex;
    justify-content: center;
}
.ae-receipt-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.ae-receipt-data {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ae-receipt-tx-id {
    font-family: monospace;
    font-size: 0.9rem;
}

.ae-receipt-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0E3950;
}
[data-theme="dark"] .ae-receipt-total {
    color: var(--ae-text-main);
}

.ae-receipt-footer {
    text-align: center;
    margin-top: 32px;
}
.ae-receipt-footer-heading {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #0E3950;
}
[data-theme="dark"] .ae-receipt-footer-heading {
    color: var(--ae-text-main);
}
.ae-receipt-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}
[data-theme="dark"] .ae-receipt-footer p {
    color: var(--ae-text-muted);
}
.ae-receipt-footer a {
    color: #db2777;
    text-decoration: none;
    font-weight: 600;
}
.ae-receipt-footer a:hover {
    text-decoration: underline;
}

/* Icon color utilities */
.ae-icon-primary { color: #0E3950 !important; }
.ae-icon-pink { color: #db2777 !important; }
.ae-icon-blue { color: #3b82f6 !important; }
.ae-icon-green { color: #059669 !important; }
.ae-icon-purple { color: #7c3aed !important; }
.ae-icon-orange { color: #d97706 !important; }
.ae-icon-sky { color: #0ea5e9 !important; }
.ae-icon-gray { color: #64748b !important; }
.ae-icon-red { color: #ef4444 !important; }

/* Button utility classes */
.ae-btn-renewal {
    background: #db2777;
    color: white !important;
    border: 1px solid #db2777;
    box-shadow: 0 4px 12px rgba(219,39,119,0.3);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    transition: all 0.2s;
}
.ae-btn-renewal:hover {
    background: #c2185b;
    border-color: #c2185b;
    box-shadow: 0 6px 16px rgba(219,39,119,0.4);
    transform: translateY(-1px);
}

.ae-btn-reunion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 4px;
    background: #0E3950;
    color: #fff !important;
    transition: background 0.2s, transform 0.2s;
}
.ae-btn-reunion:hover {
    background: #1e5c80;
    transform: translateY(-1px);
}
[data-theme="dark"] .ae-btn-reunion {
    background: var(--ae-primary);
}
[data-theme="dark"] .ae-btn-reunion:hover {
    background: #1e5c80;
}

/* Visita Technical Modifiers */
.ae-visita-card--history {
    opacity: 0.85;
}
.ae-visita-status-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-right: 8px;
}
.ae-visita-acciones-box-notes {
    margin-top: 10px;
    line-height: 1.6;
}
.ae-visita-observaciones-box--canceled {
    border-left-color: #ef4444 !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
}
[data-theme="dark"] .ae-visita-observaciones-box--canceled {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
}

/* Profile Form Helpers */
.ae-error-loading-profile {
    padding: 48px;
    text-align: center;
    color: #ef4444;
    font-weight: 600;
}
.ae-alert-success-profile {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #065f46;
    font-weight: 500;
}
[data-theme="dark"] .ae-alert-success-profile {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}
.ae-alert-error-profile {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #991b1b;
    font-weight: 500;
}
[data-theme="dark"] .ae-alert-error-profile {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}
.ae-alert-success-profile .ti,
.ae-alert-error-profile .ti {
    vertical-align: middle;
    margin-right: 4px;
}
.ae-honeypot {
    height: 0;
    overflow: hidden;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ae-profile-submit-box {
    margin-top: 32px;
}

.ae-pay-amount-input-wrapper {
    position: relative;
}

/* Wompi Receipt Status Custom Properties mapping */
.ae-receipt-container--status-approved {
    border-left: 6px solid #059669;
    --receipt-border-color: #059669;
    --receipt-bg-color: #d1fae5;
    --receipt-text-color: #065f46;
}
.ae-receipt-container--status-declined {
    border-left: 6px solid #dc2626;
    --receipt-border-color: #dc2626;
    --receipt-bg-color: #fee2e2;
    --receipt-text-color: #991b1b;
}
.ae-receipt-container--status-pending {
    border-left: 6px solid #d97706;
    --receipt-border-color: #d97706;
    --receipt-bg-color: #fef3c7;
    --receipt-text-color: #92400e;
}

/* ═══════════════════════════════════════════════════════════
   FEED DE NOTIFICACIONES Y TAREAS (NUEVO)
   ═══════════════════════════════════════════════════════════ */
.ae-notification-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.ae-notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    transition: all 0.2s ease;
}

.ae-notif-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(14, 57, 80, 0.03);
    transform: translateY(-1px);
}

/* Modificadores de tipo */
.ae-notif-row--danger {
    border-left-color: #ef4444;
    background: #fef2f2;
    border-color: #fee2e2;
}
.ae-notif-row--danger:hover {
    border-color: #fca5a5;
}

.ae-notif-row--warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
    border-color: #fef3c7;
}
.ae-notif-row--warning:hover {
    border-color: #fde68a;
}

.ae-notif-row--info {
    border-left-color: #3b82f6;
    background: #eff6ff;
    border-color: #dbeafe;
}
.ae-notif-row--info:hover {
    border-color: #bfdbfe;
}

.ae-notif-row--purple {
    border-left-color: #8b5cf6;
    background: #faf5ff;
    border-color: #f3e8ff;
}
.ae-notif-row--purple:hover {
    border-color: #e9d5ff;
}

/* Icono de notificación */
.ae-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.ae-notif-row--danger .ae-notif-icon { color: #ef4444; }
.ae-notif-row--warning .ae-notif-icon { color: #f59e0b; }
.ae-notif-row--info .ae-notif-icon { color: #3b82f6; }
.ae-notif-row--purple .ae-notif-icon { color: #8b5cf6; }

.ae-notif-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Contenido */
.ae-notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ae-notif-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.ae-notif-desc {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botones de acción */
.ae-notif-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ae-notif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ae-notif-btn--primary {
    background: #0E3950;
    color: #ffffff;
}
.ae-notif-btn--primary:hover {
    background: #1a5c80;
    transform: translateY(-1px);
}

.ae-notif-btn--danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}
.ae-notif-btn--danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.ae-notif-btn--outline {
    background: transparent;
    border-color: rgba(14, 57, 80, 0.2);
    color: #0E3950;
}
.ae-notif-btn--outline:hover {
    background: rgba(14, 57, 80, 0.05);
    border-color: #0E3950;
}

/* Responsive para el feed */
@media (max-width: 640px) {
    .ae-notif-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
    .ae-notif-icon {
        display: none;
    }
    .ae-notif-desc {
        white-space: normal;
    }
    .ae-notif-actions {
        justify-content: flex-end;
        width: 100%;
    }
    .ae-notif-btn {
        flex: 1;
        text-align: center;
    }
}



/* ═══════════════════════════════════════════════════════════
   CLASES ADICIONALES PARA MÁXIMA CACHÉ Y LIMPIEZA
   ═══════════════════════════════════════════════════════════ */

/* Bienvenida */
.ae-panel-welcome-text h2 {
    margin-bottom: 5px;
}
.ae-panel-welcome-text p {
    margin: 0;
    opacity: 0.9;
}

/* Modo Administrador - Simulador de Cliente */
.ae-admin-simulator-bar {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.ae-admin-simulator-info span.dashicons {
    color: #d97706;
    margin-right: 5px;
    vertical-align: middle;
}
.ae-admin-simulator-info strong {
    color: #b45309;
    vertical-align: middle;
}
.ae-admin-simulator-info p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #d97706;
}
.ae-admin-simulator-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ae-admin-simulator-form button {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
}

/* Target Herramientas Dinámicas */
.ae-herramientas-dinamicas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Sidebar: Widget AE Puntos */
.ae-gami-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    color: #0E3950;
    box-shadow: 0 4px 14px rgba(14, 57, 80, 0.03);
}
.ae-gami-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ae-gami-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #64748b;
    margin-bottom: 4px;
}
.ae-gami-sidebar-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: #0E3950;
}
.ae-gami-sidebar-level {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-top: 3px;
}
.ae-gami-sidebar-pending {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    color: #0E3950;
}
.ae-gami-sidebar-pending-label {
    font-size: 10px;
    color: #64748b;
    margin-bottom: 2px;
}
.ae-gami-sidebar-pending-val {
    font-size: 18px;
    font-weight: 800;
    color: #0E3950;
}
.ae-gami-sidebar-progress-bg {
    background: #f1f5f9;
    border-radius: 50px;
    height: 7px;
    margin: 14px 0 5px;
    overflow: hidden;
}
.ae-gami-sidebar-progress-fill {
    background: #ECAD20;
    height: 100%;
    border-radius: 50px;
    transition: width .8s ease;
}
.ae-gami-sidebar-progress-info {
    font-size: 11px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}
.ae-gami-sidebar-max {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}
.ae-gami-sidebar-btn {
    margin-top: 14px;
    width: 100%;
    padding: 9px;
    background: #f8fafc;
    color: #0E3950;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.ae-gami-sidebar-btn:hover {
    background: #f1f5f9;
}

/* Sidebar: Actividad Reciente */
.ae-recent-activity-widget {
    margin-top: 16px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ae-recent-activity-title {
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
}
.ae-recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ae-recent-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #F1F5F9;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.ae-recent-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ae-recent-activity-item:hover {
    opacity: 0.8;
}
.ae-recent-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ae-recent-activity-icon .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}
.ae-recent-activity-details {
    flex: 1;
    min-width: 0;
}
.ae-recent-activity-name {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ae-recent-activity-meta {
    margin: 0;
    font-size: 0.73rem;
    color: #64748B;
}
.ae-recent-activity-time {
    font-size: 0.7rem;
    color: #94A3B8;
    flex-shrink: 0;
}

/* Sidebar: Base de conocimiento */
.ae-kb-sidebar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}
.ae-kb-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.ae-kb-sidebar-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ae-kb-sidebar-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ae-kb-sidebar-icon .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #2563eb;
}
.ae-kb-sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}
.ae-kb-sidebar-viewall {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}
.ae-kb-sidebar-list {
    display: flex;
    flex-direction: column;
}
.ae-kb-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s;
}
.ae-kb-sidebar-item:last-child {
    border-bottom: none;
}
.ae-kb-sidebar-item:hover {
    background: #f8fafc;
}
.ae-kb-sidebar-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2563eb;
    flex-shrink: 0;
    margin-top: 1px;
}
.ae-kb-sidebar-text {
    font-size: 0.82rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ═══════════════════════════════════════════════════════════
   WIDGET DE BASE DE CONOCIMIENTOS DEL DASHBOARD PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.ae-kb-dashboard-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(14, 57, 80, 0.02), 0 1px 3px rgba(14, 57, 80, 0.01);
    transition: all 0.25s ease;
}

.ae-kb-dashboard-section:hover {
    box-shadow: 0 10px 30px rgba(14, 57, 80, 0.05);
    border-color: rgba(14, 57, 80, 0.12);
}

.ae-kb-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.ae-kb-dashboard-title-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ae-kb-dashboard-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ae-kb-dashboard-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ae-kb-dashboard-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0E3950;
    margin: 0 0 2px;
}

.ae-kb-dashboard-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.ae-kb-dashboard-viewall {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 6px 12px;
    background: #f1f7fe;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ae-kb-dashboard-viewall:hover {
    background: #2563eb;
    color: #ffffff !important;
}

/* Buscador integrado */
.ae-kb-dashboard-search {
    margin-bottom: 24px;
}

.ae-kb-dashboard-search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.ae-kb-dashboard-search-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 18px;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.ae-kb-dashboard-search-input {
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px 100px 12px 46px !important;
    font-size: 0.88rem !important;
    color: #0f172a !important;
    transition: all 0.25s ease !important;
    height: auto !important;
}

.ae-kb-dashboard-search-input:focus {
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

.ae-kb-dashboard-search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    background: #0E3950;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.ae-kb-dashboard-search-btn:hover {
    background: #1a5c80;
}

/* Rejilla de Cards */
.ae-kb-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.ae-kb-dashboard-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.ae-kb-dashboard-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(14, 57, 80, 0.05);
}

.ae-kb-dashboard-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.ae-kb-dashboard-card-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ae-kb-dashboard-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ae-kb-dashboard-card-title a {
    color: #0f172a;
    text-decoration: none !important;
    transition: color 0.15s;
}

.ae-kb-dashboard-card-title a:hover {
    color: #2563eb;
}

.ae-kb-dashboard-card-excerpt {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ae-kb-dashboard-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    margin-top: auto;
}

.ae-kb-dashboard-card-date {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ae-kb-dashboard-card-date .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.ae-kb-dashboard-card-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none !important;
    transition: transform 0.15s;
}

.ae-kb-dashboard-card-link:hover {
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .ae-kb-dashboard-section {
        padding: 18px 20px;
    }
    .ae-kb-dashboard-search-input {
        padding-right: 80px !important;
    }
    .ae-kb-dashboard-search-btn {
        padding: 0 10px;
    }
}

/* ═══════════════════════════════════════════════════════════
   GRÁFICO ACELERÓMETRO (GAUGE) DE PUNTOS
   ═══════════════════════════════════════════════════════════ */
.ae-gami-gauge-container {
    position: relative;
    width: 140px;
    height: 105px;
    margin: 12px auto 8px;
    text-align: center;
}

.ae-gami-gauge-svg {
    display: block;
    width: 140px;
    height: 105px;
}

.ae-gami-gauge-text {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.ae-gami-gauge-value {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0E3950;
    letter-spacing: -0.5px;
}

.ae-gami-gauge-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 1px;
    letter-spacing: 0.5px;
}

.ae-gami-gauge-limits {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
}

.ae-gami-gauge-limit-min {
    margin-left: 10px;
}

.ae-gami-gauge-limit-max {
    margin-right: 10px;
}

/* Modificaciones para integrar en la barra lateral */
.ae-gami-sidebar-widget .ae-gami-gauge-container {
    margin-top: 18px;
    margin-bottom: 4px;
}

/* Modificaciones para integrar en la pestaña completa */
.ae-gami-header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.ae-gami-header-info {
    flex: 1;
    min-width: 250px;
}

.ae-gami-header-gauge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 28px;
    box-shadow: 0 4px 14px rgba(14, 57, 80, 0.02);
    min-width: 200px;
}

/* ═══════════════════════════════════════════════════════════
   DISEÑO AVANZADO - SERVICIOS IA TAB
   ═══════════════════════════════════════════════════════════ */

/* Banner de Promoción SOFÍA */
.ae-sofia-promo-card {
    background: linear-gradient(135deg, #0E3950, #1e5c80, #1b73a3);
    background-size: 200% 200%;
    animation: aeGradientMove 10s ease infinite;
    border-radius: 20px;
    padding: 30px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px -5px rgba(14, 57, 80, 0.25);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ae-sofia-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes aeGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ae-sofia-promo-left {
    flex: 1;
    min-width: 280px;
    z-index: 1;
}

.ae-sofia-promo-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.ae-sofia-promo-badge span {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: aeLiveDot 1.5s infinite;
}

@keyframes aeLiveDot {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.ae-sofia-promo-left h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.ae-sofia-promo-left p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.ae-sofia-promo-right {
    z-index: 1;
    flex-shrink: 0;
}

.ae-sofia-promo-btn {
    background: #ffffff;
    color: #0E3950 !important;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ae-sofia-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0,0,0,0.15);
    background: #f8fafc;
}

/* Modificadores avanzados para Cards */
.ae-ia-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ae-tool--design .ae-ia-tag { background: #fdf2f8; color: #db2777; }
.ae-tool--clinical .ae-ia-tag { background: #eff6ff; color: #2563eb; }
.ae-tool--seo .ae-ia-tag { background: #ecfdf5; color: #059669; }

/* Bordes y hovers de tarjetas específicos */
.ae-tool--design:hover { border-top-color: #ec4899; }
.ae-tool--clinical:hover { border-top-color: #3b82f6; }
.ae-tool--seo:hover { border-top-color: #10b981; }

.ae-tool--design:hover .ae-premium-tool-icon-wrapper { background: #ec4899; color: #ffffff; }
.ae-tool--clinical:hover .ae-premium-tool-icon-wrapper { background: #3b82f6; color: #ffffff; }
.ae-tool--seo:hover .ae-premium-tool-icon-wrapper { background: #10b981; color: #ffffff; }

/* Secciones secundarias */
.ae-ia-section-divider {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 35px 0 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ae-ia-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Roadmap Grid */
.ae-ia-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.ae-ia-experimental-card {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
}

.ae-ia-experimental-card:hover {
    background: #ffffff;
    border-color: #0E3950;
    box-shadow: 0 8px 20px rgba(14, 57, 80, 0.05);
}

.ae-ia-experimental-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ae-ia-experimental-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0F172A;
    margin: 0;
}

.ae-ia-experimental-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.ae-ia-experimental-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 16px;
}

/* Área interactiva de autodiagnóstico express */
.ae-ia-interactive-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.ae-ia-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.78rem;
    outline: none;
    color: #334155;
}

.ae-ia-input::placeholder {
    color: #cbd5e1;
}

.ae-ia-interactive-btn {
    background: #0e3950;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.ae-ia-interactive-btn:hover {
    background: #1b5c80;
}

/* Responsividad */
@media (max-width: 768px) {
    .ae-sofia-promo-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 20px;
    }
    
    .ae-sofia-promo-btn {
        width: 100%;
        justify-content: center;
    }
}



/* ==========================================================================
   MODERN ENTERPRISE CLIENT PORTAL - 2026 EDITION
   Accion Eficaz Identity: Deep Petroleum Navy (#0E3950) & Warm Gold (#ECAD20)
   ========================================================================== */

/* ── 1. HEADER DEL CLIENTE ── */
.ae-client-header-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 18px 24px !important;
    box-shadow: 0 4px 20px -2px rgba(14, 57, 80, 0.05), 0 1px 3px rgba(14, 57, 80, 0.02) !important;
    border: 1px solid rgba(14, 57, 80, 0.09) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ae-client-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0E3950 0%, #ECAD20 50%, #0E3950 100%);
    opacity: 0.9;
}

.ae-client-header-card:hover {
    box-shadow: 0 12px 30px -4px rgba(14, 57, 80, 0.08) !important;
    border-color: rgba(236, 173, 32, 0.3) !important;
}

.ae-client-header-avatar {
    width: 52px !important;
    height: 52px !important;
    background: linear-gradient(135deg, #0E3950 0%, #082637 100%) !important;
    border: 2px solid rgba(236, 173, 32, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(14, 57, 80, 0.22) !important;
    transition: transform 0.2s ease !important;
}

.ae-client-header-avatar:hover {
    transform: scale(1.05);
}

.ae-client-header-avatar .dashicons {
    font-size: 26px !important;
    width: 26px !important;
    height: 26px !important;
    color: #ECAD20 !important;
}

.ae-client-header-identity h3 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0E3950 !important;
    letter-spacing: -0.02em !important;
}

.ae-client-header-identity p {
    font-size: 0.85rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.ae-badge--status-activo {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 999px !important;
    padding: 3px 9px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
}

.ae-badge--status-mora {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    border-radius: 999px !important;
    padding: 3px 9px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
}

.ae-badge--type {
    background: rgba(14, 57, 80, 0.05) !important;
    color: #0E3950 !important;
    border: 1px solid rgba(14, 57, 80, 0.15) !important;
    border-radius: 999px !important;
    padding: 3px 9px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
}

.ae-btn-edit-profile {
    background: #0E3950 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border: 1px solid rgba(236, 173, 32, 0.2) !important;
    box-shadow: 0 3px 10px rgba(14, 57, 80, 0.15) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ae-btn-edit-profile:hover {
    background: #0A2B3D !important;
    border-color: #ECAD20 !important;
    color: #ECAD20 !important;
    box-shadow: 0 4px 14px rgba(14, 57, 80, 0.25) !important;
    transform: translateY(-1px) !important;
}

.ae-service-tag {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
    border-radius: 999px !important;
    padding: 3px 10px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
}

/* ── 2. PESTAÑAS DEL PORTAL (SEGMENTED CONTROL) ── */
.ae-portal-tabs-container {
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 4px !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
}

.ae-portal-tab-btn {
    border-radius: 7px !important;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #64748B !important;
    transition: all 0.15s ease !important;
}

.ae-portal-tab-btn:hover {
    color: #0F172A !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

.ae-portal-tab-btn.active {
    background: #FFFFFF !important;
    color: #0E3950 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    position: relative !important;
}

.ae-portal-tab-btn.active::after {
    display: none !important;
}

/* ── 3. FEED DE NOTIFICACIONES Y ALERTA ACCIONABLE ── */
.ae-attention-section {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ae-attention-header {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    letter-spacing: -0.01em !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ae-notif-row {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
}

.ae-notif-row:hover {
    border-color: #CBD5E1 !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    transform: none !important;
}

.ae-notif-row--danger {
    border-left: 3px solid #EF4444 !important;
}

.ae-notif-row--warning,
.ae-notif-row--gold {
    border-left: 3px solid #D97706 !important;
}

.ae-notif-row--info,
.ae-notif-row--blue {
    border-left: 3px solid #0E3950 !important;
}

.ae-notif-row--purple {
    border-left: 3px solid #6366F1 !important;
}

.ae-notif-title {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #0F172A !important;
}

.ae-notif-desc {
    font-size: 0.8rem !important;
    color: #64748B !important;
}

.ae-notif-btn--primary {
    background: #0E3950 !important;
    color: #FFFFFF !important;
    border-radius: 7px !important;
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease !important;
    white-space: nowrap !important;
}

.ae-notif-btn--primary:hover {
    background: #164E6B !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ── 4. TARJETAS KPI (DASHBOARD GRID) ── */
.ae-enlaces-section {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    border: none !important;
    box-shadow: none !important;
}

.ae-enlaces-header {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #64748B !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 12px !important;
}

.ae-dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 14px !important;
}

.ae-dash-card {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    text-decoration: none !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease !important;
}

.ae-dash-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
    border-color: #CBD5E1 !important;
}

.ae-dash-card__header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.ae-dash-card__icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0E3950 !important;
    flex-shrink: 0 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.ae-dash-card:hover .ae-dash-card__icon {
    transform: none !important;
    background: #F1F5F9 !important;
}

.ae-dash-card__icon .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.ae-dash-card__title {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #1E293B !important;
    margin: 0 !important;
}

.ae-dash-card__stats {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
}

.ae-dash-card__stat-val {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
}

.ae-dash-card__stat-label {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #94A3B8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-top: 3px !important;
}

.ae-dash-card__pending {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ae-dash-card__pending--active {
    background: #FEF3C7 !important;
    color: #92400E !important;
    border: none !important;
}

.ae-dash-card__pending--zero {
    background: #F1F5F9 !important;
    color: #64748B !important;
    border: none !important;
}

/* Tarjeta Destacada de Pagos en Línea */
.ae-dash-card--pay {
    background: #0E3950 !important;
    border: 1px solid #0E3950 !important;
    box-shadow: 0 1px 3px rgba(14, 57, 80, 0.12) !important;
}

.ae-dash-card--pay:hover {
    box-shadow: 0 4px 12px rgba(14, 57, 80, 0.18) !important;
    border-color: #164E6B !important;
}

.ae-dash-card--pay .ae-dash-card__title {
    color: #FFFFFF !important;
}

.ae-dash-card--pay .ae-dash-card__icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ECAD20 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.ae-dash-card--pay .ae-dash-card__stat-val {
    color: #FFFFFF !important;
}

.ae-dash-card--pay .ae-dash-card__stat-label {
    color: rgba(255, 255, 255, 0.65) !important;
}

.ae-dash-card--pay .ae-dash-card__pending {
    background: #ECAD20 !important;
    color: #0E3950 !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

/* ── 5. WIDGET DE ANALÍTICA DE RIESGOS MODERNO ── */
.ae-gami-sidebar-widget {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    text-align: center !important;
    margin-top: 16px !important;
    transition: border-color 0.15s ease !important;
}

.ae-gami-sidebar-widget:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ae-gami-sidebar-btn {
    background: #F8FAFC !important;
    color: #334155 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    margin-top: 12px !important;
}

.ae-gami-sidebar-btn:hover {
    background: #F1F5F9 !important;
    color: #0E3950 !important;
    border-color: #CBD5E1 !important;
    box-shadow: none !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NUEVO HERO HEADER EJECUTIVO UNIFICADO (Ultra-Clean, Light & Modern)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.ae-executive-hero {
    background: #FFFFFF !important;
    border-radius: 14px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    transition: border-color 0.2s ease !important;
}

.ae-executive-hero::before {
    display: none !important;
}

.ae-executive-hero:hover {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    border-color: #CBD5E1 !important;
}

/* Fila Principal */
.ae-executive-hero-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 22px 28px 18px 28px !important;
    gap: 24px !important;
}

/* Identidad (Avatar + Textos) */
.ae-executive-identity {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.ae-executive-avatar-box {
    position: relative !important;
    flex-shrink: 0 !important;
}

.ae-executive-avatar {
    width: 52px !important;
    height: 52px !important;
    background: linear-gradient(135deg, #0E3950 0%, #164E63 100%) !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ECAD20 !important;
    box-shadow: 0 4px 14px rgba(14, 57, 80, 0.2) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    transition: transform 0.2s ease !important;
}

.ae-executive-avatar:hover {
    transform: scale(1.04);
}

.ae-executive-avatar .dashicons {
    font-size: 26px !important;
    width: 26px !important;
    height: 26px !important;
    color: #ECAD20 !important;
}

.ae-executive-status-dot {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 14px !important;
    height: 14px !important;
    background: #10B981 !important;
    border: 2.5px solid #FFFFFF !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

.ae-executive-info {
    min-width: 0 !important;
    flex: 1 !important;
}

.ae-executive-headline {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.ae-executive-name {
    margin: 0 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0E3950 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.25 !important;
}

.ae-executive-badges {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.ae-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    line-height: 1 !important;
}

.ae-hero-badge--activo {
    background: #ECFDF5 !important;
    color: #059669 !important;
    border: 1px solid #A7F3D0 !important;
}

.ae-hero-badge--mora {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
    border: 1px solid #FECACA !important;
}

.ae-hero-badge--tier {
    background: #F8FAFC !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
}

.ae-badge-pulse {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10B981 !important;
    animation: aePulse 2s infinite !important;
}

@keyframes aePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Fila de Metadatos */
.ae-executive-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 6px !important;
    font-size: 0.83rem !important;
    color: #64748B !important;
}

.ae-meta-chunk {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.ae-meta-chunk .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #94A3B8 !important;
    flex-shrink: 0 !important;
}

.ae-meta-company strong {
    color: #0E3950 !important;
    font-weight: 700 !important;
}

.ae-meta-divider {
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: #CBD5E1 !important;
}

/* Columna Derecha (Acciones y Servicios) */
.ae-executive-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.ae-executive-btn-profile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    background: #0E3950 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 2px 8px rgba(14, 57, 80, 0.16) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ae-executive-btn-profile:hover {
    background: #164E63 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(14, 57, 80, 0.24) !important;
}

.ae-executive-btn-profile .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.ae-executive-services {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: flex-end !important;
}

.ae-executive-service-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
    border-radius: 20px !important;
    padding: 3px 10px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.ae-executive-service-tag:hover {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0E3950 !important;
}

.ae-service-indicator {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #0284C7 !important;
}

.ae-service-more {
    color: #94A3B8 !important;
    background: #F1F5F9 !important;
}

/* â”€â”€ BARRA INFERIOR DE ALERTAS Y ACCIONES SMART â”€â”€ */
.ae-executive-strip {
    background: #F8FAFC !important;
    border-top: 1px solid #F1F5F9 !important;
    padding: 10px 28px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}

.ae-strip-intro {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.ae-strip-sparkle {
    color: #ECAD20 !important;
    font-size: 12px !important;
}

.ae-strip-chips {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.ae-smart-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.ae-smart-chip--danger {
    background: #FEF2F2 !important;
    color: #991B1B !important;
    border: 1px solid #FECACA !important;
}

.ae-smart-chip--danger:hover {
    background: #FEE2E2 !important;
    border-color: #F87171 !important;
    color: #7F1D1D !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.15) !important;
}

.ae-smart-chip--warning {
    background: #FFFBEB !important;
    color: #92400E !important;
    border: 1px solid #FDE68A !important;
}

.ae-smart-chip--warning:hover {
    background: #FEF3C7 !important;
    border-color: #FBBF24 !important;
    color: #78350F !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.15) !important;
}

.ae-smart-chip--info {
    background: #F0F9FF !important;
    color: #075985 !important;
    border: 1px solid #BAE6FD !important;
}

.ae-smart-chip--info:hover {
    background: #E0F2FE !important;
    border-color: #38BDF8 !important;
    color: #0369A1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.15) !important;
}

.ae-smart-chip--amber {
    background: #FFF7ED !important;
    color: #9A3412 !important;
    border: 1px solid #FFEDD5 !important;
}

.ae-smart-chip--amber:hover {
    background: #FFEDD5 !important;
    border-color: #FB923C !important;
    color: #7C2D12 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.15) !important;
}

.ae-smart-chip-icon {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
    line-height: 13px !important;
}

.ae-smart-chip-arrow {
    font-size: 11px !important;
    opacity: 0.6 !important;
    transition: transform 0.2s ease !important;
}

.ae-smart-chip:hover .ae-smart-chip-arrow {
    transform: translateX(3px) !important;
    opacity: 1 !important;
}

.ae-strip-all-clear {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #059669 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}

.ae-strip-all-clear .dashicons {
    color: #10B981 !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* Responsive */
@media (max-width: 860px) {
    .ae-executive-hero-main {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 18px 20px 14px 20px !important;
        gap: 16px !important;
    }
    .ae-executive-actions {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .ae-executive-strip {
        padding: 10px 20px !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MÃ“DULO MI PERFIL CORPORATIVO (/mi-perfil/) â€” ESTILOS ULTRA-PREMIUM
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.ae-profile-page-wrapper {
    max-width: 1200px !important;
    margin: 20px auto 60px auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Barra Superior y Breadcrumb */
.ae-profile-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.ae-profile-btn-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
    text-decoration: none !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ae-profile-btn-back:hover {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #0E3950 !important;
    transform: translateX(-2px) !important;
}

.ae-profile-breadcrumbs {
    font-size: 0.82rem !important;
    color: #94A3B8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.ae-profile-breadcrumbs .ae-sep {
    color: #CBD5E1 !important;
}

.ae-profile-breadcrumbs strong {
    color: #0E3950 !important;
}

/* Alerts */
.ae-profile-alert {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
    font-size: 0.88rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.ae-profile-alert .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

.ae-profile-alert--success {
    background: #ECFDF5 !important;
    border: 1px solid #A7F3D0 !important;
    color: #065F46 !important;
}

.ae-profile-alert--success .dashicons {
    color: #10B981 !important;
}

.ae-profile-alert--danger {
    background: #FEF2F2 !important;
    border: 1px solid #FECACA !important;
    color: #991B1B !important;
}

.ae-profile-alert--danger .dashicons {
    color: #EF4444 !important;
}

/* Hero Card del Perfil */
.ae-profile-hero-card {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 10px 30px -8px rgba(14, 57, 80, 0.06) !important;
    padding: 24px 30px !important;
    margin-bottom: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.ae-profile-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #0E3950 0%, #0284C7 45%, #ECAD20 80%, #0E3950 100%);
}

.ae-profile-hero-main {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.ae-profile-hero-avatar-box {
    position: relative !important;
    flex-shrink: 0 !important;
}

.ae-profile-hero-avatar {
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #0E3950 0%, #164E63 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ECAD20 !important;
    box-shadow: 0 4px 16px rgba(14, 57, 80, 0.22) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
}

.ae-profile-hero-avatar .dashicons {
    font-size: 32px !important;
    width: 32px !important;
    height: 32px !important;
    color: #ECAD20 !important;
}

.ae-profile-hero-dot {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    background: #10B981 !important;
    border: 3px solid #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

.ae-profile-hero-info {
    min-width: 0 !important;
    flex: 1 !important;
}

.ae-profile-hero-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.ae-profile-hero-name {
    margin: 0 !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #0E3950 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.2 !important;
}

.ae-profile-hero-badges {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.ae-profile-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    line-height: 1 !important;
}

.ae-profile-pill .dashicons {
    font-size: 11px !important;
    width: 11px !important;
    height: 11px !important;
}

.ae-pill--activo {
    background: #ECFDF5 !important;
    color: #059669 !important;
    border: 1px solid #A7F3D0 !important;
}

.ae-pill--mora {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
    border: 1px solid #FECACA !important;
}

.ae-pill--tier {
    background: #F8FAFC !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
}

.ae-pill--verified {
    background: #EFF6FF !important;
    color: #1D4ED8 !important;
    border: 1px solid #BFDBFE !important;
}

.ae-pill-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10B981 !important;
}

.ae-profile-hero-subline {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
    font-size: 0.83rem !important;
    color: #64748B !important;
}

.ae-profile-hero-subline span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ae-profile-hero-subline .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #94A3B8 !important;
}

.ae-dot-sep {
    color: #CBD5E1 !important;
}

.ae-profile-hero-stats {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    padding: 12px 20px !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
}

.ae-hero-stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.ae-stat-number {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0E3950 !important;
    line-height: 1.1 !important;
}

.ae-stat-label {
    font-size: 0.72rem !important;
    color: #64748B !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.ae-hero-stat-divider {
    width: 1px !important;
    height: 32px !important;
    background: #E2E8F0 !important;
}

/* Layout AsimÃ©trico 2 Columnas */
.ae-profile-layout-grid {
    display: grid !important;
    grid-template-columns: 1.55fr 1fr !important;
    gap: 26px !important;
    align-items: start !important;
}

/* Cards Base */
.ae-profile-card {
    background: #FFFFFF !important;
    border-radius: 18px !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 4px 20px -2px rgba(14, 57, 80, 0.04) !important;
    padding: 26px 28px !important;
    box-sizing: border-box !important;
}

.ae-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 22px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    padding-bottom: 16px !important;
}

.ae-card-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.ae-card-icon-wrap .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

.ae-icon-contact {
    background: #EFF6FF !important;
    color: #1D4ED8 !important;
    border: 1px solid #DBEAFE !important;
}

.ae-icon-security {
    background: #FEF3C7 !important;
    color: #B45309 !important;
    border: 1px solid #FDE68A !important;
}

.ae-icon-official {
    background: #ECFDF5 !important;
    color: #047857 !important;
    border: 1px solid #A7F3D0 !important;
}

.ae-icon-services {
    background: #F3E8FF !important;
    color: #7E22CE !important;
    border: 1px solid #E9D5FF !important;
}

.ae-card-title {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0E3950 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
}

.ae-card-desc {
    margin: 3px 0 0 !important;
    font-size: 0.8rem !important;
    color: #64748B !important;
}

/* Formularios */
.ae-form-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.ae-form-field {
    margin-bottom: 14px !important;
}

.ae-form-field label {
    display: block !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
}

.ae-req {
    color: #EF4444 !important;
}

.ae-input-icon-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.ae-input-icon-wrap .dashicons {
    position: absolute !important;
    left: 12px !important;
    color: #94A3B8 !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    pointer-events: none !important;
}

.ae-input-icon-wrap input,
.ae-password-wrapper input {
    width: 100% !important;
    padding: 10px 14px 10px 38px !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    color: #1E293B !important;
    background: #FFFFFF !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.ae-form-field textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    color: #1E293B !important;
    background: #FFFFFF !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    resize: vertical !important;
}

.ae-input-icon-wrap input:focus,
.ae-password-wrapper input:focus,
.ae-form-field textarea:focus {
    outline: none !important;
    border-color: #0E3950 !important;
    box-shadow: 0 0 0 3px rgba(14, 57, 80, 0.08) !important;
}

/* Password Wrapper */
.ae-password-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.ae-input-lead-icon {
    position: absolute !important;
    left: 12px !important;
    color: #94A3B8 !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    pointer-events: none !important;
}

.ae-pwd-toggle {
    position: absolute !important;
    right: 10px !important;
    background: transparent !important;
    border: none !important;
    color: #64748B !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s ease !important;
}

.ae-pwd-toggle:hover {
    color: #0E3950 !important;
}

.ae-pwd-toggle .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.ae-security-tips {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    color: #64748B !important;
    margin: 8px 0 16px 0 !important;
}

.ae-security-tips .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: #0284C7 !important;
    flex-shrink: 0 !important;
}

/* Botones de Guardar */
.ae-card-footer-actions {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 18px !important;
    border-top: 1px solid #F1F5F9 !important;
    padding-top: 16px !important;
}

.ae-btn-submit-profile,
.ae-btn-submit-security {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    letter-spacing: 0.01em !important;
}

.ae-btn-submit-profile {
    background: linear-gradient(135deg, #0E3950 0%, #164E63 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(14, 57, 80, 0.22) !important;
}

.ae-btn-submit-profile:hover {
    background: #0A2B3D !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(14, 57, 80, 0.3) !important;
}

.ae-btn-submit-security {
    background: #FFFFFF !important;
    color: #0E3950 !important;
    border: 1.5px solid #0E3950 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.ae-btn-submit-security:hover {
    background: #0E3950 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(14, 57, 80, 0.2) !important;
}

/* Ficha TÃ©cnica de Registro Corporativo (Columna Derecha) */
.ae-card-official {
    background: #FFFFFF !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
}

.ae-official-specs-list {
    display: flex !important;
    flex-direction: column !important;
}

.ae-spec-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #F1F5F9 !important;
    font-size: 0.84rem !important;
    gap: 12px !important;
}

.ae-spec-row:last-child {
    border-bottom: none !important;
}

.ae-spec-label {
    color: #64748B !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
}

.ae-spec-value-box {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: right !important;
}

.ae-spec-value {
    color: #0E3950 !important;
    font-weight: 600 !important;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    letter-spacing: 0.02em !important;
}

.ae-official-pill {
    background: #ECFDF5 !important;
    color: #059669 !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    border: 1px solid #A7F3D0 !important;
    text-transform: uppercase !important;
}

.ae-spec-tag {
    background: #F1F5F9 !important;
    color: #475569 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border: 1px solid #E2E8F0 !important;
}

.ae-tag--activo {
    background: #ECFDF5 !important;
    color: #059669 !important;
    border-color: #A7F3D0 !important;
}

.ae-tag--mora {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
    border-color: #FECACA !important;
}

.ae-official-notice {
    margin-top: 18px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    display: flex !important;
    gap: 12px !important;
}

.ae-notice-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #EEF2F6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748B !important;
    flex-shrink: 0 !important;
}

.ae-notice-icon .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.ae-notice-text p {
    margin: 0 0 10px 0 !important;
    font-size: 0.78rem !important;
    color: #64748B !important;
    line-height: 1.4 !important;
}

.ae-btn-notice-support {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #0284C7 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.ae-btn-notice-support:hover {
    color: #0369A1 !important;
    text-decoration: underline !important;
}

/* Mini lista de servicios */
.ae-services-mini-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.ae-service-mini-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: #F8FAFC !important;
    border: 1px solid #F1F5F9 !important;
}

.ae-service-mini-item .ae-service-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #10B981 !important;
    flex-shrink: 0 !important;
}

.ae-service-mini-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.ae-service-mini-info strong {
    font-size: 0.82rem !important;
    color: #0E3950 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ae-service-mini-info span {
    font-size: 0.72rem !important;
    color: #94A3B8 !important;
}

.ae-service-status-badge {
    background: #ECFDF5 !important;
    color: #059669 !important;
    border: 1px solid #A7F3D0 !important;
    padding: 2px 7px !important;
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.ae-link-all-services {
    color: #0284C7 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.ae-link-all-services:hover {
    color: #0369A1 !important;
    text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 900px) {
    .ae-profile-layout-grid {
        grid-template-columns: 1fr !important;
    }
    .ae-profile-hero-card {
        padding: 20px !important;
    }
    .ae-profile-hero-stats {
        width: 100% !important;
        justify-content: space-around !important;
    }
    .ae-form-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   LISTADOS MODERNOS (FACTURAS, COTIZACIONES, SERVICIOS, ÓRDENES DE PAGO)
   Estilo Stripe / Linear: Tabla Limpia en Desktop + Tarjetas Compactas en Móvil
   ========================================================================== */

/* 1. Cabecera / Toolbar del Módulo */
.ae-support-toolbar-modern {
    margin-bottom: 20px !important;
    background: #FFFFFF !important;
    padding: 18px 22px !important;
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ae-toolbar-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.ae-toolbar-title-box {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.ae-toolbar-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0E3950 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 20px !important;
}

.ae-toolbar-title-box h1 {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
}

.ae-toolbar-title-box p {
    margin: 2px 0 0 !important;
    font-size: 0.82rem !important;
    color: #64748B !important;
}

.ae-btn-back {
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    background: #F8FAFC !important;
    color: #334155 !important;
    border: 1px solid #E2E8F0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.ae-btn-back:hover {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

/* 2. Barra de Controles: Filtros + Buscador */
.ae-controls-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin-bottom: 16px !important;
}

.ae-controls-bar .ae-filter-container {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    background: #F1F5F9 !important;
    padding: 4px !important;
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    margin-bottom: 0 !important;
}

.ae-controls-bar .ae-filter-chip {
    background: transparent !important;
    border: none !important;
    border-radius: 7px !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: #64748B !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}

.ae-controls-bar .ae-filter-chip:hover {
    color: #0F172A !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

.ae-controls-bar .ae-filter-chip.active {
    background: #FFFFFF !important;
    color: #0E3950 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.ae-controls-bar .ae-filter-badge {
    background: #E2E8F0 !important;
    color: #475569 !important;
    padding: 1px 6px !important;
    border-radius: 5px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    min-width: 18px !important;
    text-align: center !important;
}

.ae-controls-bar .ae-filter-chip.active .ae-filter-badge {
    background: #0E3950 !important;
    color: #FFFFFF !important;
}

/* Buscador Rápido */
.ae-list-search {
    position: relative !important;
    min-width: 250px !important;
    flex: 0 1 300px !important;
}

.ae-list-search__icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94A3B8 !important;
    font-size: 15px !important;
    pointer-events: none !important;
}

.ae-list-search__input {
    width: 100% !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 9px !important;
    padding: 8px 12px 8px 34px !important;
    font-size: 0.82rem !important;
    color: #0F172A !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

.ae-list-search__input::placeholder {
    color: #94A3B8 !important;
}

.ae-list-search__input:focus {
    border-color: #0E3950 !important;
    box-shadow: 0 0 0 3px rgba(14, 57, 80, 0.08) !important;
}

/* 3. Contenedor de Lista Tipo Tabla (Desktop) */
.ae-modern-list-wrapper {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    overflow: hidden !important;
}

.ae-modern-list-wrapper .ae-list-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Columnas Grid compartidas entre Thead y Filas */
.ae-list-cols--facturas,
.ae-list-cols--cotizaciones,
.ae-list-cols--ordenes {
    display: grid !important;
    grid-template-columns: minmax(165px, 1.2fr) minmax(200px, 2.1fr) minmax(135px, 1.1fr) minmax(115px, 0.9fr) minmax(130px, 1.1fr) minmax(115px, 0.9fr) !important;
    align-items: center !important;
    gap: 16px !important;
}

.ae-list-cols--servicios {
    display: grid !important;
    grid-template-columns: minmax(210px, 2.2fr) minmax(150px, 1.2fr) minmax(140px, 1.1fr) minmax(110px, 0.8fr) minmax(130px, 1fr) minmax(145px, 1.1fr) !important;
    align-items: center !important;
    gap: 16px !important;
}

.ae-list-cols--tickets {
    display: grid !important;
    grid-template-columns: 195px minmax(180px, 1fr) 100px 115px 105px !important;
    align-items: center !important;
    gap: 16px !important;
}

.ae-list-cols--notificaciones {
    display: grid !important;
    grid-template-columns: minmax(200px, 1.4fr) minmax(240px, 2.4fr) 135px 105px 145px !important;
    align-items: center !important;
    gap: 16px !important;
}

/* Reset del contenedor de notificaciones legacy */
.ae-notif-full-container {
    max-width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ae-modern-list-wrapper .ae-notif-item.ae-notif-unread {
    background: #F8FAFC !important;
    border-left: none !important;
}

.ae-modern-list-wrapper .ae-notif-item.ae-notif-unread .ae-cell-doc-icon {
    background: #F0F9FF !important;
    border-color: #BAE6FD !important;
    color: #0284C7 !important;
}

.ae-modern-list-wrapper .ae-notif-item__body {
    font-size: 0.82rem !important;
    color: #475569 !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.ae-modern-list-wrapper .ae-notif-item__body p {
    margin: 0 !important;
}

.ae-col-right {
    text-align: right !important;
    justify-content: flex-end !important;
}

/* Encabezado de Tabla */
.ae-list-thead {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding: 11px 20px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748B !important;
}

/* Filas de Tabla (Resetea estilos antiguos de tarjeta en Desktop) */
.ae-modern-list-wrapper .ae-list-row {
    background: #FFFFFF !important;
    border: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
    border-radius: 0 !important;
    padding: 14px 20px !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: background-color 0.12s ease !important;
}

.ae-modern-list-wrapper .ae-list-row:last-child {
    border-bottom: none !important;
}

.ae-modern-list-wrapper .ae-list-row:hover {
    background: #F8FAFC !important;
    transform: none !important;
    box-shadow: none !important;
}

.ae-modern-list-wrapper .ae-list-row.is-expanded {
    background: #FBFDFF !important;
}

/* Celdas Internas (Prevención estricta de desbordamiento entre columnas) */
.ae-cell {
    min-width: 0 !important;
    overflow: hidden !important;
}

.ae-cell--id {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
}

.ae-cell--id > div {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
}

.ae-cell-doc-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 16px !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

.ae-list-row:hover .ae-cell-doc-icon {
    background: #FFFFFF !important;
    color: #0E3950 !important;
    border-color: #CBD5E1 !important;
}

.ae-cell-primary-num {
    display: block !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ae-cell-mobile-sub {
    display: none !important;
    font-size: 0.73rem !important;
    color: #64748B !important;
}

.ae-cell-title {
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    color: #1E293B !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.35 !important;
}

.ae-cell-title.is-muted {
    color: #94A3B8 !important;
    font-weight: 400 !important;
    font-style: italic !important;
}

.ae-cell-sub {
    font-size: 0.74rem !important;
    color: #64748B !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 1px !important;
}

.ae-cell-date-line {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.8rem !important;
    color: #334155 !important;
    font-variant-numeric: tabular-nums !important;
}

.ae-cell-date-line .ti {
    color: #94A3B8 !important;
    font-size: 14px !important;
}

.ae-cell-date-sub {
    font-size: 0.72rem !important;
    color: #64748B !important;
    margin-top: 2px !important;
    font-variant-numeric: tabular-nums !important;
}

.ae-cell-date-sub.is-due {
    color: #DC2626 !important;
    font-weight: 500 !important;
}

/* Badges de Estado Estilo Linear/Stripe */
.ae-modern-list-wrapper .ae-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    font-size: 0.73rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.ae-badge__dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: currentColor !important;
    flex-shrink: 0 !important;
}

.ae-modern-list-wrapper .ae-badge--success {
    background: #ECFDF5 !important;
    color: #059669 !important;
    border: 1px solid #A7F3D0 !important;
}

.ae-modern-list-wrapper .ae-badge--warning {
    background: #FFFBEB !important;
    color: #B45309 !important;
    border: 1px solid #FDE68A !important;
}

.ae-modern-list-wrapper .ae-badge--danger {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
    border: 1px solid #FECACA !important;
}

.ae-modern-list-wrapper .ae-badge--info {
    background: #F0F9FF !important;
    color: #0284C7 !important;
    border: 1px solid #BAE6FD !important;
}

.ae-modern-list-wrapper .ae-badge--neutral {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
}

/* Montos Tabulares */
.ae-cell--amount {
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
}

.ae-amount-val {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}

.ae-amount-curr {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #94A3B8 !important;
    margin-left: 2px !important;
}

.ae-amount-empty {
    color: #94A3B8 !important;
    font-size: 0.85rem !important;
}

/* Botones de Acción por Fila */
.ae-row-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 6px 12px !important;
    border-radius: 7px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
}

.ae-row-btn--primary {
    background: #0E3950 !important;
    color: #FFFFFF !important;
    border: 1px solid #0E3950 !important;
}

.ae-list-row:hover .ae-row-btn--primary,
.ae-row-btn--primary:hover {
    background: #164E6B !important;
    border-color: #164E6B !important;
    color: #FFFFFF !important;
}

.ae-row-btn--ghost {
    background: #FFFFFF !important;
    color: #334155 !important;
    border: 1px solid #E2E8F0 !important;
}

.ae-list-row:hover .ae-row-btn--ghost,
.ae-row-btn--ghost:hover {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

/* Cajón Expandible de Servicios (Ocupa todo el ancho de la fila) */
.ae-modern-list-wrapper .ae-servicio-details-box {
    grid-column: 1 / -1 !important;
    margin-top: 12px !important;
    padding: 16px 18px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
}

.ae-modern-list-wrapper .ae-servicio-details-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
}

.ae-modern-list-wrapper .ae-servicio-details-val a {
    color: #0E3950 !important;
    font-weight: 600 !important;
}

.ae-modern-list-wrapper .ae-servicio-details-notes {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
    color: #475569 !important;
}

/* Estado vacío de búsqueda / filtro */
.ae-filter-empty-state,
.ae-empty-state {
    padding: 40px 24px !important;
    text-align: center !important;
    color: #64748B !important;
    background: #FFFFFF !important;
    border-radius: 12px !important;
}

.ae-empty-state {
    border: 1px dashed #CBD5E1 !important;
}

.ae-filter-empty-state .ti,
.ae-empty-state .ti {
    font-size: 32px !important;
    color: #94A3B8 !important;
    display: block !important;
    margin: 0 auto 10px !important;
}

.ae-filter-empty-state p,
.ae-empty-state p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
}

/* 4. Modo Oscuro ([data-theme="dark"]) */
[data-theme="dark"] .ae-support-toolbar-modern,
[data-theme="dark"] .ae-modern-list-wrapper,
[data-theme="dark"] .ae-modern-list-wrapper .ae-list-row,
[data-theme="dark"] .ae-list-search__input,
[data-theme="dark"] .ae-filter-empty-state {
    background: #1E293B !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .ae-list-thead,
[data-theme="dark"] .ae-modern-list-wrapper .ae-list-row:hover,
[data-theme="dark"] .ae-toolbar-icon,
[data-theme="dark"] .ae-cell-doc-icon,
[data-theme="dark"] .ae-btn-back,
[data-theme="dark"] .ae-row-btn--ghost,
[data-theme="dark"] .ae-controls-bar .ae-filter-container,
[data-theme="dark"] .ae-modern-list-wrapper .ae-servicio-details-box {
    background: #0F172A !important;
    border-color: #334155 !important;
    color: #E2E8F0 !important;
}

[data-theme="dark"] .ae-toolbar-title-box h1,
[data-theme="dark"] .ae-cell-primary-num,
[data-theme="dark"] .ae-cell-title,
[data-theme="dark"] .ae-amount-val,
[data-theme="dark"] .ae-list-search__input {
    color: #F8FAFC !important;
}

[data-theme="dark"] .ae-controls-bar .ae-filter-chip.active {
    background: #1E293B !important;
    color: #F8FAFC !important;
}

/* 5. Diseño Responsive: Tarjetas Compactas en Tablet / Móvil (<= 860px) */
@media (max-width: 860px) {
    .ae-controls-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .ae-controls-bar .ae-filter-container {
        width: 100% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding: 4px !important;
    }

    .ae-list-search {
        width: 100% !important;
        flex: 1 1 auto !important;
    }

    .ae-list-thead {
        display: none !important;
    }

    .ae-modern-list-wrapper {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .ae-modern-list-wrapper .ae-list-grid {
        gap: 12px !important;
    }

    .ae-modern-list-wrapper .ae-list-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        background: #FFFFFF !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 12px !important;
        padding: 16px !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
        position: relative !important;
    }

    /* En móvil: Cabecera con ID a la izquierda y Estado en la esquina superior derecha */
    .ae-cell--id {
        padding-right: 105px !important;
    }

    .ae-cell-mobile-sub {
        display: block !important;
    }

    .ae-cell--status {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
    }

    .ae-cell--concept {
        padding-top: 2px !important;
    }

    .ae-cell--concept .ae-cell-sub {
        display: none !important;
    }

    .ae-cell--dates {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding-top: 4px !important;
    }

    .ae-cell-date-sub {
        margin-top: 0 !important;
    }

    /* Footer de la tarjeta móvil: Total/Prioridad/Fecha a la izquierda, botón de acción a la derecha */
    .ae-cell--amount,
    .ae-list-cols--tickets .ae-cell--priority,
    .ae-list-cols--notificaciones .ae-cell--dates {
        border-top: 1px solid #F1F5F9 !important;
        padding-top: 12px !important;
        margin-top: 2px !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        min-height: 32px !important;
    }

    .ae-cell--action {
        margin-top: -40px !important;
        align-self: flex-end !important;
    }
}

@media (max-width: 480px) {
    .ae-support-toolbar-modern {
        padding: 14px 16px !important;
    }

    .ae-toolbar-actions-container {
        width: 100% !important;
        justify-content: stretch !important;
    }

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

/* ==========================================================================
   UNIFICACIÓN VISUAL DE PESTAÑAS DEL DASHBOARD
   (Resumen General · Servicios IA · Asistente SOFÍA · Cuenta Desactivada)
   ========================================================================== */

/* ── 1. RESUMEN GENERAL: Todo al día, Base de Conocimientos y Slider ── */
.ae-all-clear-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-left: 3px solid #10B981 !important;
    border-radius: 12px !important;
    padding: 20px 22px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ae-all-clear-card__inner {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
}

.ae-all-clear-card__icon {
    width: 40px !important;
    height: 40px !important;
    background: #ECFDF5 !important;
    border: 1px solid #A7F3D0 !important;
    color: #059669 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

.ae-all-clear-card__icon .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    color: #059669 !important;
}

.ae-all-clear-card__title {
    margin: 0 0 2px !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}

.ae-all-clear-card__desc {
    margin: 0 !important;
    font-size: 0.84rem !important;
    color: #64748B !important;
}

.ae-all-clear-cta {
    padding: 7px 14px !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}

.ae-all-clear-cta--primary {
    background: #0E3950 !important;
    color: #FFFFFF !important;
    border: 1px solid #0E3950 !important;
}

.ae-all-clear-cta--primary:hover {
    background: #164E6B !important;
    border-color: #164E6B !important;
    color: #FFFFFF !important;
    transform: none !important;
}

.ae-all-clear-cta--secondary {
    background: #F8FAFC !important;
    color: #334155 !important;
    border: 1px solid #E2E8F0 !important;
}

.ae-all-clear-cta--secondary:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

/* Base de Conocimientos en Dashboard */
.ae-kb-dashboard-section {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 20px 22px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ae-kb-dashboard-section:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ae-kb-dashboard-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 9px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0E3950 !important;
}

.ae-kb-dashboard-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}

.ae-kb-dashboard-viewall {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 7px !important;
    padding: 6px 12px !important;
}

.ae-kb-dashboard-viewall:hover {
    background: #F1F5F9 !important;
    color: #0E3950 !important;
    border-color: #CBD5E1 !important;
}

.ae-kb-dashboard-search-input {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 9px !important;
    padding: 10px 95px 10px 42px !important;
    font-size: 0.84rem !important;
}

.ae-kb-dashboard-search-input:focus {
    border-color: #0E3950 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(14, 57, 80, 0.08) !important;
}

.ae-kb-dashboard-search-btn {
    border-radius: 7px !important;
    background: #0E3950 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
}

.ae-kb-dashboard-card {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 16px 18px !important;
    box-shadow: none !important;
}

.ae-kb-dashboard-card:hover {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.ae-kb-dashboard-card-icon {
    color: #0E3950 !important;
}

.ae-kb-dashboard-card-link {
    color: #0E3950 !important;
    font-weight: 600 !important;
}

/* Slider lateral limpio */
.ae-guest-slider-container {
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    min-height: 210px !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

/* ── 2. PESTAÑA SERVICIOS IA ── */
#ae-panel-servicios-ia-tab {
    padding: 4px 0 20px !important;
}

.ae-sofia-promo-card {
    background: #FFFFFF !important;
    background-image: none !important;
    animation: none !important;
    border-radius: 12px !important;
    padding: 22px 26px !important;
    color: #0F172A !important;
    border: 1px solid #E2E8F0 !important;
    border-left: 4px solid #0E3950 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    margin-bottom: 24px !important;
}

.ae-sofia-promo-card::before {
    display: none !important;
}

.ae-sofia-promo-badge {
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    color: #0E3950 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    margin-bottom: 10px !important;
}

.ae-sofia-promo-badge span {
    background: #10B981 !important;
    animation: none !important;
}

.ae-sofia-promo-left h2 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 6px !important;
}

.ae-sofia-promo-left p {
    font-size: 0.85rem !important;
    color: #64748B !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.ae-sofia-promo-btn {
    background: #0E3950 !important;
    color: #FFFFFF !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease !important;
}

.ae-sofia-promo-btn:hover {
    background: #164E6B !important;
    color: #FFFFFF !important;
    transform: none !important;
    box-shadow: none !important;
}

.ae-ia-section-divider {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748B !important;
    margin: 24px 0 14px !important;
}

.ae-premium-tool-card {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid #E2E8F0 !important;
    border-top: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease !important;
}

.ae-premium-tool-card:hover {
    transform: translateY(-1px) !important;
    border-color: #CBD5E1 !important;
    border-top-color: #CBD5E1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

.ae-premium-tool-icon-wrapper,
.ae-tool--design .ae-premium-tool-icon-wrapper,
.ae-tool--clinical .ae-premium-tool-icon-wrapper,
.ae-tool--seo .ae-premium-tool-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    border-radius: 9px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0E3950 !important;
    margin-bottom: 14px !important;
}

.ae-premium-tool-card:hover .ae-premium-tool-icon-wrapper,
.ae-tool--design:hover .ae-premium-tool-icon-wrapper,
.ae-tool--clinical:hover .ae-premium-tool-icon-wrapper,
.ae-tool--seo:hover .ae-premium-tool-icon-wrapper {
    transform: none !important;
    background: #F1F5F9 !important;
    color: #0E3950 !important;
    border-color: #CBD5E1 !important;
}

.ae-ia-tag,
.ae-tool--design .ae-ia-tag,
.ae-tool--clinical .ae-ia-tag,
.ae-tool--seo .ae-ia-tag {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    top: 18px !important;
    right: 18px !important;
}

.ae-premium-tool-content h4 {
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin: 0 0 6px !important;
}

.ae-premium-tool-content p {
    font-size: 0.82rem !important;
    color: #64748B !important;
    line-height: 1.45 !important;
    margin: 0 0 16px !important;
}

.ae-tool-btn,
.ae-tool--design .ae-tool-btn,
.ae-tool--clinical .ae-tool-btn,
.ae-tool--seo .ae-tool-btn {
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    background: #0E3950 !important;
    color: #FFFFFF !important;
    border: 1px solid #0E3950 !important;
}

.ae-tool-btn:hover {
    background: #164E6B !important;
    border-color: #164E6B !important;
    transform: none !important;
}

.ae-tool-btn--locked {
    background: #F8FAFC !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0 !important;
}

.ae-tool-btn--locked:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

/* Tarjetas de Diagnóstico y Predictivo (Sólidas y Limpias) */
.ae-ia-experimental-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 20px 22px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ae-ia-experimental-card:hover {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.ae-ia-experimental-title {
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}

.ae-ia-experimental-badge {
    border-radius: 6px !important;
    padding: 3px 9px !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
}

.ae-ia-interactive-box {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 9px !important;
    padding: 6px 6px 6px 12px !important;
}

.ae-ia-interactive-box:focus-within {
    background: #FFFFFF !important;
    border-color: #0E3950 !important;
    box-shadow: 0 0 0 3px rgba(14, 57, 80, 0.08) !important;
}

.ae-ia-input {
    font-size: 0.84rem !important;
    color: #0F172A !important;
}

.ae-ia-interactive-btn {
    background: #0E3950 !important;
    color: #FFFFFF !important;
    border-radius: 7px !important;
    padding: 7px 14px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
}

.ae-ia-interactive-btn:hover {
    background: #164E6B !important;
}

/* ── 3. PESTAÑA ASISTENTE SOFÍA ── */
.ae-sofia-workspace-container {
    max-width: 100% !important;
    margin: 0 !important;
}

.ae-sofia-header {
    background: #FFFFFF !important;
    color: #0F172A !important;
    padding: 18px 22px !important;
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    margin-bottom: 18px !important;
    gap: 14px !important;
}

.ae-sofia-header::after,
.ae-sofia-avatar-glow {
    display: none !important;
}

.ae-sofia-avatar-wrapper {
    width: 42px !important;
    height: 42px !important;
}

.ae-sofia-avatar-svg-box {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: none !important;
}

.ae-sofia-status-indicator {
    width: 10px !important;
    height: 10px !important;
    border: 2px solid #FFFFFF !important;
    background: #10B981 !important;
    bottom: -2px !important;
    right: -2px !important;
}

.ae-sofia-header-details h3 {
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.02em !important;
}

.ae-sofia-header-details p {
    font-size: 0.82rem !important;
    color: #64748B !important;
}

.ae-sofia-header .ae-chat-badge-copilot {
    background: #F1F5F9 !important;
    color: #0E3950 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
}

.ae-sofia-chat-container {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ae-sofia-sidebar-card {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ae-sofia-sidebar-card h5 {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin: 0 0 6px !important;
}

.ae-sofia-sidebar-text {
    font-size: 0.8rem !important;
    color: #64748B !important;
    margin: 0 0 12px !important;
}

.ae-sofia-prompt-btn {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}

.ae-sofia-prompt-btn:hover {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0E3950 !important;
    transform: none !important;
}

.ae-sofia-capabilities-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.ae-sofia-capabilities-list li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.8rem !important;
    color: #475569 !important;
}

.ae-sofia-capabilities-list li .dashicons {
    color: #10B981 !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* ── 4. VISTA DE CUENTA DESACTIVADA (SERVICIOS FINALIZADOS) ── */
.ae-deactivated-portal-wrap {
    max-width: 780px !important;
    margin: 24px auto 60px auto !important;
    padding: 0 !important;
}

.ae-deactivated-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
}

.ae-deactivated-card__top {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding: 20px 26px !important;
}

.ae-deactivated-card__identity {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.ae-deactivated-card__avatar {
    width: 46px !important;
    height: 46px !important;
    border-radius: 11px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #64748B !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.ae-deactivated-card__avatar .dashicons {
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
}

.ae-deactivated-card__headline {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.ae-deactivated-card__headline h2 {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.02em !important;
}

.ae-deactivated-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #FEF3C7 !important;
    color: #92400E !important;
    border: 1px solid #FDE68A !important;
    border-radius: 6px !important;
    padding: 3px 9px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.ae-deactivated-badge__dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #D97706 !important;
}

.ae-deactivated-card__meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 4px !important;
    font-size: 0.8rem !important;
    color: #64748B !important;
}

.ae-deactivated-card__meta strong {
    color: #334155 !important;
    font-weight: 600 !important;
}

.ae-meta-sep {
    color: #CBD5E1 !important;
}

.ae-deactivated-card__body {
    padding: 36px 32px !important;
    text-align: center !important;
}

.ae-deactivated-card__icon-box {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0E3950 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 18px auto !important;
}

.ae-deactivated-card__title {
    margin: 0 0 10px 0 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.02em !important;
}

.ae-deactivated-card__desc {
    max-width: 560px !important;
    margin: 0 auto 20px auto !important;
    font-size: 0.92rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
}

.ae-deactivated-card__highlight {
    max-width: 560px !important;
    margin: 0 auto 26px auto !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-left: 3px solid #0E3950 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
    font-size: 0.84rem !important;
    color: #334155 !important;
    line-height: 1.55 !important;
}

.ae-deactivated-card__highlight .dashicons {
    color: #0E3950 !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.ae-deactivated-card__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.ae-deactivated-btn-wa {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    background: #0E3950 !important;
    color: #FFFFFF !important;
    border: 1px solid #0E3950 !important;
    border-radius: 9px !important;
    padding: 11px 22px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
}

.ae-deactivated-btn-wa svg {
    fill: #25D366 !important;
    flex-shrink: 0 !important;
}

.ae-deactivated-btn-wa:hover {
    background: #164E6B !important;
    border-color: #164E6B !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
}

.ae-deactivated-btn-logout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #FFFFFF !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 9px !important;
    padding: 11px 18px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.ae-deactivated-btn-logout:hover {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

@media (max-width: 640px) {
    .ae-deactivated-card__body {
        padding: 26px 20px !important;
    }
    .ae-deactivated-btn-wa,
    .ae-deactivated-btn-logout {
        width: 100% !important;
    }
}

