/**
 * IA Experience Page Styles - Portal SAT iAudita
 *
 * Estilos para:
 * - Hero section de IA
 * - Casos de uso
 * - Demostraciones interactivas
 * - Cards de validación
 * - Efectos y animaciones
 *
 * @package iAudita\Portal
 * @version 0.1.0
 */

/* ========================================
   HERO SECTION - IA
   ======================================== */

/* ========================================
   HERO SECTION - IA
   ======================================== */

/* .hero-ia styles are now handled by .hero-section in components.css */


/* Terminal/Code Demo */
.code-demo {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.code-demo-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.code-demo-content {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.8;
}

.code-demo-content .status-ok {
    color: var(--color-success);
}

.code-demo-content .status-warning {
    color: var(--color-warning);
}

.code-demo-content .status-error {
    color: var(--color-danger);
}

.code-demo-badge {
    color: var(--color-white);
    background: rgba(34, 197, 94, 0.25);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    display: inline-block;
}


/* ========================================
   STATS/METRICS CARDS
   ======================================== */

.stats-card {
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
}

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

.stat-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}


/* ========================================
   VALIDATION CARDS
   ======================================== */

.validation-card {
    background: #f8fafc;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.validation-card-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1rem 1.5rem;
}

.validation-item {
    display: flex;
    align-items: start;
    padding: 0.75rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.validation-item.danger {
    border-left: 4px solid var(--color-danger);
}

.validation-item.warning {
    border-left: 4px solid var(--color-warning);
}

.validation-item.success {
    border-left: 4px solid var(--color-success);
}

.validation-icon {
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.validation-content h6 {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.25rem;
    color: var(--color-dark);
}

.validation-content .text-muted {
    font-size: 0.813rem;
}


/* ========================================
   PROCESS STEPS
   ======================================== */

.process-step {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.process-step-number {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
    margin-right: 1rem;
}

.process-step-content {
    flex: 1;
}

.process-step-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-dark);
}


/* ========================================
   PROGRESS BARS
   ======================================== */

.progress-custom {
    height: 8px;
    background-color: var(--color-gray-200);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.progress-bar-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.progress-bar-secondary {
    background: var(--color-secondary);
}

.progress-bar-success {
    background: var(--color-success);
}


/* ========================================
   CHATBOT DEMO
   ======================================== */

.chatbot-demo {
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chat-container {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message-user {
    display: flex;
    justify-content: flex-start;
}

.chat-message-bot {
    display: flex;
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.875rem;
    line-height: 1.6;
}

.chat-bubble-user {
    background: var(--color-primary);
    color: var(--color-white);
    border-bottom-left-radius: 0.25rem;
}

.chat-bubble-bot {
    background: var(--color-gray-100);
    color: var(--color-dark);
    border-bottom-right-radius: 0.25rem;
}


/* ========================================
   CTA SECTION
   ======================================== */

.cta-ia-section {
    background: var(--color-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.cta-ia-background {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.1;
    transform: translate(30%, -30%);
    font-size: 10rem;
    color: var(--color-primary);
}


/* ========================================
   HOVER EFFECTS
   ======================================== */

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: all var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

[data-animate="fade-in"] {
    animation: fadeIn 0.6s ease-out;
}

[data-animate="slide-up"] {
    animation: slideUp 0.6s ease-out;
}

[data-animate="slide-right"] {
    animation: slideRight 0.6s ease-out;
}

[data-animate="slide-left"] {
    animation: slideLeft 0.6s ease-out;
}


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

@media (max-width: 991px) {
    .hero-ia {
        padding: 4rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }

    .code-demo {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-ia {
        padding: 3rem 0;
    }

    .hero-ia h1 {
        font-size: 2rem;
    }

    .validation-item {
        flex-direction: column;
    }

    .validation-icon {
        margin-bottom: 0.5rem;
    }

    .process-step {
        flex-direction: column;
    }

    .process-step-number {
        margin-bottom: 0.75rem;
    }

    .chat-bubble {
        max-width: 100%;
    }
}