/* TAKEOFF Engine — Premium Vanilla Design System — Light Clean Edition */
/* Creado: 2026-05-20 | Refactored to Light Theme: 2026-05-21 */

:root, [data-theme="light"] {
    /* Light Clean Theme (Stripe/Linear style) */
    --bg-color: #f8fafc;
    --surface-color: rgba(255, 255, 255, 0.85);
    --surface-border: rgba(0, 0, 0, 0.08);
    --primary-color: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.25);
    --secondary-color: #7C3AED;
    --secondary-glow: rgba(124, 58, 237, 0.25);
    --accent-color: #ec4899;
    --accent-glow: rgba(236, 72, 153, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --error-color: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.08);
    --success-color: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);

    /* Glow layers (more subtle for light mode) */
    --glow-top: rgba(79, 70, 229, 0.1);
    --glow-bottom: rgba(124, 58, 237, 0.1);
    --glow-center: rgba(236, 72, 153, 0.08);
    --glow-bg-transparent: rgba(248, 250, 252, 0);
}

[data-theme="dark"] {
    /* Dark Electric Theme */
    --bg-color: #0b0f19;
    --surface-color: rgba(15, 23, 42, 0.65);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary-color: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.25);
    --secondary-color: #7C3AED;
    --secondary-glow: rgba(124, 58, 237, 0.25);
    --accent-color: #EC4899;
    --accent-glow: rgba(236, 72, 153, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --error-color: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.08);
    --success-color: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);

    /* Glow layers */
    --glow-top: rgba(0, 242, 254, 0.15);
    --glow-bottom: rgba(124, 58, 237, 0.15);
    --glow-center: rgba(236, 72, 153, 0.1);
    --glow-bg-transparent: rgba(11, 15, 25, 0);
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Background Glowing Mesh Layers */
.glow-layer {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(140px); /* Aumentado para mayor suavidad */
}

.glow-top-left {
    top: -20vh;
    left: -20vw;
    width: 65vw;
    height: 65vh;
    background: radial-gradient(circle, var(--glow-top) 0%, var(--glow-bg-transparent) 70%);
    animation: orbit-1 25s infinite ease-in-out;
}

.glow-bottom-right {
    bottom: -20vh;
    right: -20vw;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, var(--glow-bottom) 0%, var(--glow-bg-transparent) 70%);
    animation: orbit-2 30s infinite ease-in-out;
}

.glow-center {
    top: 25vh;
    left: 30vw;
    width: 45vw;
    height: 45vh;
    background: radial-gradient(circle, var(--glow-center) 0%, var(--glow-bg-transparent) 80%);
    opacity: 0.4;
    animation: orbit-3 35s infinite ease-in-out;
}

/* Keyframes de Órbita Orgánica Cinética (Calm Design) */
@keyframes orbit-1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(4vw, 5vh) scale(1.08); }
    66% { transform: translate(-3vw, 3vh) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbit-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5vw, -4vh) scale(1.12); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbit-3 {
    0% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(3vw, -6vh) scale(0.92); }
    80% { transform: translate(-2vw, 4vh) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Typography and Badges */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--primary-color) 80%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.5rem;
    font-weight: 300;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(79, 70, 229, 0.18);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.06);
}

.section-badge {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Theme Toggle Button */
#theme-toggle {
    position: relative;
    overflow: hidden;
}
#theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.65rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--surface-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--error-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    color: #ff6b6b;
}

/* Main Layout & Wizard */
.main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1rem 3rem;
    }
}

.wizard-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

/* Step Indicator Bar */
.step-indicator-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: default;
    transition: var(--transition-smooth);
    opacity: 0.4;
}

.step-indicator.active {
    opacity: 1;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.step-indicator.active .step-num {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
}

.step-indicator.completed .step-num {
    border-color: var(--success-color);
    background: var(--success-color);
    color: #fff;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.step-indicator.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0 15px;
    margin-bottom: 20px;
}

.step-indicator.completed + .step-line {
    background: var(--success-color);
}

/* Glassmorphism Panel styles */
.glass-panel {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    /* Transición elástica física de resorte */
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
                border-color 0.3s;
}

.glass-panel:hover {
    transform: translateY(-5px); /* Efecto flotante físico */
    border-color: rgba(79, 70, 229, 0.3); /* Resaltado sutil índigo */
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Wizard transitions */
.wizard-step {
    animation: fadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Controls & Styling */
.auth-form, .agent-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 750px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

.flex-1 {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
}

input, select, textarea {
    width: 100%;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-smooth);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-wrapper input, .input-wrapper select {
    padding-left: 48px;
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface-color);
    box-shadow: 0 0 0 3px var(--primary-glow), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Tag Inputs (Array visual fallback helper) */
.tag-input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
    line-height: 1.4;
}

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

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

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

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

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

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

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

/* Buttons System */
button {
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-glow {
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

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

.btn-primary:disabled {
    background: var(--text-muted);
    color: var(--text-secondary);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.btn-outline:hover:not(:disabled) {
    background: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 1.5rem;
}

/* Step 2: Industry Grid UI */
.rubro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

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

.rubro-tile {
    position: relative;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.rubro-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, var(--primary-glow) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.rubro-tile:hover {
    background: rgba(79, 70, 229, 0.03);
    border-color: rgba(79, 70, 229, 0.25);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
}

.rubro-tile:hover .rubro-glow {
    opacity: 1;
}

.rubro-tile.selected {
    background: rgba(79, 70, 229, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.12);
}

.rubro-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.rubro-tile:hover .rubro-icon, .rubro-tile.selected .rubro-icon {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.rubro-icon svg {
    width: 22px;
    height: 22px;
}

.rubro-tile h3 {
    font-size: 1.15rem;
}

.rubro-tile p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Step 3: Dynamic Config Area */
.dynamic-questions-section {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.section-title-wrapper {
    margin-bottom: 1.5rem;
}

.section-title-wrapper h2 {
    font-size: 1.35rem;
    margin-top: 2px;
}

.questions-container-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.compliance-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(236, 72, 153, 0.15);
    padding: 1.75rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compliance-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compliance-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.compliance-status-dot.active {
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
}

.compliance-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.02);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Errors & Alerts */
.error-msg, .success-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1.5rem;
    animation: fadeInUp 0.4s ease;
}

.error-msg {
    color: var(--error-color);
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.success-msg {
    color: var(--success-color);
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Step 4: Active Control Cockpit Area */
.cockpit-step {
    max-width: 100% !important;
    width: 100% !important;
}

.cockpit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .cockpit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.cockpit-agent-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cockpit-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 2px solid var(--primary-color);
    animation: ringPulse 2s infinite ease-out;
}

@keyframes ringPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { opacity: 0.3; }
    100% { transform: scale(1.15); opacity: 0; }
}

.avatar-letter {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    font-size: 1.35rem;
}

.cockpit-meta h2 {
    font-size: 1.35rem;
}

.cockpit-meta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cockpit-stats {
    display: flex;
    gap: 10px;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--surface-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.stat-dot.green {
    background-color: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

/* Double Column Cockpit Grid */
.cockpit-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

@media (max-width: 1100px) {
    .cockpit-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.cockpit-column {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    min-width: 0; /* CRITICAL: allows grid columns to shrink below minimum content size of their children! */
}

.cockpit-column.glass-panel {
    padding: 2rem 1.5rem !important; /* Optimized padding to give content room on mid-sized screens */
}

/* Tab Switching Layout */
.cockpit-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: 2rem;
    overflow-x: auto; /* Premium horizontal scroll if space is tight */
    scrollbar-width: none; /* Hide default scrollbar on Firefox */
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.cockpit-tabs-header::-webkit-scrollbar {
    display: none; /* Hide default scrollbar on Chrome/Safari */
}

.cockpit-tab {
    flex: 1;
    min-width: max-content; /* CRITICAL: prevents tab text from wrapping or squeezing */
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.cockpit-tab:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
}

.cockpit-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}

.cockpit-tab-content {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-intro {
    margin-bottom: 2rem;
}

.tab-intro h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.tab-intro p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.training-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* live progress extraction monitor styling */
.processing-monitor {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monitor-header h4 {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.monitor-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px var(--primary-glow);
}

.monitor-logs {
    height: 120px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.log-item {
    color: var(--text-secondary);
}

.log-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.log-item.success {
    color: var(--success-color);
}

/* Tab 2: Premium Dropzone UI */
.dropzone {
    position: relative;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: rgba(0, 0, 0, 0.01);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.03);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.06);
}

.dropzone-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.dropzone:hover .dropzone-glow {
    opacity: 0.5;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.dropzone-icon {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
}

.dropzone-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropzone-formats {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Uploaded Files Table */
.uploaded-files-section {
    margin-top: 2rem;
    animation: fadeInUp 0.4s ease;
}

.uploaded-files-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.uploaded-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 1.15rem;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-status-pill {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Tab 3: Cuestionario Estratégico */
.strategic-survey-box {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.survey-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#survey-progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.survey-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
}

.survey-progress-fill {
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 6px var(--primary-glow);
    border-radius: 10px;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.survey-card-container {
    perspective: 1000px;
    min-height: 190px;
}

.survey-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backface-visibility: hidden;
    animation: cardSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(20px) rotateY(2deg); }
    to { opacity: 1; transform: translateX(0) rotateY(0); }
}

.survey-card h4 {
    font-size: 1.05rem;
    line-height: 1.45;
}

.survey-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--surface-border);
    padding-top: 1.25rem;
}

.survey-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 3rem 1rem;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    font-size: 3rem;
}

.survey-success h3 {
    font-size: 1.5rem;
}

.survey-success p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 480px;
}

/* Sandbox Chat Widget Styling */
.sandbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.sandbox-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    animation: pulseGlow 1.8s infinite alternate;
}

@keyframes pulseGlow {
    from { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 5px var(--primary-glow); }
    to { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--primary-color); }
}

.sandbox-indicator h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.btn-reset-chat {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-reset-chat:hover {
    color: var(--text-primary);
    transform: rotate(180deg);
}

/* Chat Screen */
.chat-container {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 14px;
    border: 1px solid var(--surface-border);
    height: 480px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chat-history {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Message Bubble UI Styling */
.message {
    display: flex;
    max-width: 82%;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    animation: chatMessageAppear 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes chatMessageAppear {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #fff;
    border-bottom-right-radius: 3px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.message.bot {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    border-bottom-left-radius: 3px;
}

.message.system {
    align-self: center;
    max-width: 90%;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.system-icon {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Chat suggestion chips */
.chat-suggestions-wrapper {
    padding: 0 1rem;
    margin-bottom: 6px;
    overflow-x: auto;
}

.chat-suggestions {
    display: flex;
    gap: 8px;
    padding-bottom: 6px;
    width: max-content;
}

.chip {
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--primary-color);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.chip:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Chat Send Input Panel */
.chat-input-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--surface-border);
    padding: 10px 14px;
}

.chat-input-box input {
    flex: 1;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 4px;
    font-size: 0.9rem;
}

.chat-input-box input:focus {
    background: transparent;
    border: none;
    box-shadow: none;
}

.btn-send-chat {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

.btn-send-chat:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.btn-send-chat svg {
    width: 16px;
    height: 16px;
}

/* Typing Indicator Animation */
.typing-bubble {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 18px;
    border-radius: 14px;
    border-bottom-left-radius: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Dynamic survey options styling */
.survey-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    animation: fadeInUp 0.4s ease;
}

.survey-option-chip {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    max-width: 100%;
    line-height: 1.3;
}

.survey-option-chip:hover {
    background: rgba(79, 70, 229, 0.06);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.survey-option-chip.selected {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* --- BANT SCORE BADGES & SIGNAL INDICATORS --- */
.bant-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    transition: var(--transition-smooth);
    animation: fadeInUp 0.4s ease;
}

.bant-hot {
    background: linear-gradient(135deg, #ff4b5c 0%, #ff6b8b 100%) !important;
    box-shadow: 0 0 12px rgba(255, 75, 92, 0.5) !important;
    border: 1px solid rgba(255, 75, 92, 0.4);
}

.bant-warm {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.bant-cold {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4) !important;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.bant-signals-row {
    animation: fadeInDown 0.3s ease;
}

.bant-signal-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.bant-signal-tag.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
    text-shadow: 0 0 2px rgba(16, 185, 129, 0.5);
    font-weight: 500;
}

/* --- CRM CONTACTS TABLE & FILTERS --- */
.btn-filter {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.btn-filter:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.btn-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
    font-weight: 600;
}

.contacts-table th, .contacts-table td,
.campaigns-table th, .campaigns-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contacts-table tbody tr,
.campaigns-table tbody tr {
    transition: var(--transition-smooth);
}

.contacts-table tbody tr:hover,
.campaigns-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Responsive visibility helper */
@media (max-width: 600px) {
    .hide-mobile {
        display: none !important;
    }
}

/* --- MODAL SYSTEM --- */
.modal-overlay {
    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* --- STRIPE PAYWALL MODAL STYLES --- */
.stripe-plan-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stripe-plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.4) !important;
    background: rgba(79, 70, 229, 0.01) !important;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.05) !important;
}

.stripe-plan-card.selected {
    border-color: var(--primary-color) !important;
    background: rgba(79, 70, 229, 0.03) !important;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.12) !important;
    transform: scale(1.02);
}

#btn-submit-stripe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

#btn-submit-stripe:active {
    transform: translateY(0);
}

/* Success transition animations */
.pulseSuccess {
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   DYNAMIC VISUAL AUTOMATION PIPELINE & RESPONSIVE REFACTOR (Otra Liga)
   ========================================================================= */

/* Animación eléctrica fluida de luz para tramos SVG */
@keyframes strokePulse {
    to {
        stroke-dashoffset: -80;
    }
}

.active-pulse-line {
    animation: strokePulse 1.6s linear infinite !important;
}

/* Pulsación elástica física del Cerebro AI */
@keyframes brainPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 25px rgba(79, 70, 229, 0.5), 0 0 40px rgba(124, 58, 237, 0.3);
        background: rgba(79, 70, 229, 0.08) !important;
        border-color: var(--primary-color) !important;
    }
}

.active-pulse-brain .node-icon {
    animation: brainPulse 2s infinite ease-in-out !important;
}

/* Estilos de transición y hover interactivo para los nodos del Pipeline */
.pipeline-node {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pipeline-node.active .node-icon {
    border-color: var(--primary-color) !important;
    background: rgba(79, 70, 229, 0.05) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3) !important;
    transform: scale(1.18);
}

/* Ajustes Responsive y Encuadre Móvil Milimétrico */
@media (max-width: 768px) {
    .glass-panel {
        padding: 1.5rem !important; /* Padding reducido para evitar estrujamiento */
        border-radius: 20px !important;
    }
}

@media (max-width: 580px) {
    /* Ocultar etiquetas de pasos en móvil para prevenir desbordes horizontales */
    .step-label {
        display: none !important;
    }
    
    .step-indicator {
        width: 32px !important;
        height: 32px !important;
    }
    
    .step-num {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    
    .step-line {
        margin: 0 8px 16px !important;
    }
    
    /* Pestañas de Cabina con scroll horizontal suave y táctil */
    .cockpit-tabs-header {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 6px !important;
        border-bottom: 1px solid var(--surface-border) !important;
    }
    
    .cockpit-tab {
        flex: 0 0 auto !important;
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .glass-panel {
        padding: 1.25rem !important; /* Padding ideal móvil */
        border-radius: 16px !important;
    }
    
    h1 {
        font-size: 1.85rem !important;
    }
    
    .logo {
        font-size: 1.35rem !important;
    }
}

/* ==========================================================================
   ESTILOS ADICIONALES: CREADOR PERSONALIZADO & APRENDIZAJE ACTIVO
   ========================================================================= */

/* Tarjeta especial del Extractor IA */
.rubro-tile.custom-ai-extractor {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    position: relative;
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.08) !important;
}

.rubro-tile.custom-ai-extractor:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 10px 35px rgba(56, 189, 248, 0.2) !important;
    transform: translateY(-5px);
}

.custom-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(90deg, #38bdf8 0%, #4f46e5 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

/* Dropzone circular premium */
.circular-dropzone:hover, .circular-dropzone.dragover {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: #38bdf8 !important;
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

/* Consola de terminal para extracción */
.custom-onboarding-terminal {
    background: #090d16 !important;
    border: 1px solid #1e293b !important;
}

.terminal-body {
    scrollbar-width: thin;
    scrollbar-color: #1e293b #090d16;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #090d16;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}

/* Botón de corrección en burbujas del chat */
.btn-teach-correction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 6px;
    margin-left: 8px;
    transition: all 0.2s ease;
    opacity: 0.75;
}

.btn-teach-correction:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    opacity: 1;
    transform: scale(1.02);
}

/* Drawer animado para aprendizaje activo */
.teach-drawer.hidden {
    transform: translateY(100%) !important;
    opacity: 0;
    pointer-events: none;
}

.teach-drawer:not(.hidden) {
    transform: translateY(0) !important;
    opacity: 1;
    pointer-events: auto;
}

/* --- ADMIN PANEL STYLES --- */
.stat-card {
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.4) !important;
}

#admin-users-table-body tr {
    transition: var(--transition-smooth);
}

#admin-users-table-body tr:hover,
#admin-pending-payments-body tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

