/*
 * Estilos para Landing Page de IA para Empresas
 * Maindsoft - Diciembre 2025
 */

/* ===== HERO ===== */
.ia-hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(204, 45, 45, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

.ia-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ia-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.ia-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.ia-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 32px;
}

.ia-hero-subtitle strong {
    color: #FF6B6B;
}

.ia-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-ia {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-ia:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204, 45, 45, 0.3);
}

.btn-secondary-ia {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-ia:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary-ia.large,
.btn-secondary-ia.large {
    padding: 20px 40px;
    font-size: 18px;
}

/* ===== SECTIONS ===== */
.ia-section {
    padding: 100px 0;
}

.ia-section-alt {
    background: var(--gray-50);
}

.ia-section-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.ia-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.ia-section-header.light h2,
.ia-section-header.light p {
    color: #fff;
}

.ia-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(204, 45, 45, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.ia-tag.light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ia-section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.ia-section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ===== PAIN GRID ===== */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.pain-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.pain-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.pain-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.pain-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* ===== SOLUTION GRID ===== */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

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

.solution-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.solution-icon {
    width: 64px;
    height: 64px;
    background: rgba(204, 45, 45, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.solution-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.solution-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.solution-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ===== SPLIT SECTIONS ===== */
.ia-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ia-split.reverse {
    direction: rtl;
}

.ia-split.reverse > * {
    direction: ltr;
}

@media (max-width: 900px) {
    .ia-split {
        grid-template-columns: 1fr;
    }
    .ia-split.reverse {
        direction: ltr;
    }
}

.ia-split-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ia-split-content p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

.ia-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ia-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
}

.ia-benefits li i {
    color: #22C55E;
    font-size: 1.125rem;
    margin-top: 2px;
}

/* ===== DEMO CARDS ===== */
.demo-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.demo-header i {
    color: var(--primary);
    font-size: 1.25rem;
}

.demo-body {
    padding: 24px;
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(204, 45, 45, 0.02);
}

.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(204, 45, 45, 0.05);
}

.upload-zone i {
    font-size: 2.5rem;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.upload-zone p {
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-zone span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.demo-divider {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 20px 0;
    position: relative;
}

.demo-divider::before,
.demo-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--gray-200);
}

.demo-divider::before { left: 0; }
.demo-divider::after { right: 0; }

.demo-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.demo-body textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204, 45, 45, 0.1);
}

.btn-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-demo:hover {
    background: var(--primary-light);
}

.btn-demo:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

.btn-demo-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 500;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-demo-secondary:hover {
    background: var(--gray-200);
}

.demo-result {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.demo-result h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table td {
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    font-size: 0.9375rem;
}

.result-table td:first-child {
    font-weight: 600;
    background: var(--gray-50);
    width: 40%;
}

/* ===== RPA STEPPER ===== */
.rpa-stepper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rpa-step {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.rpa-step.active {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204, 45, 45, 0.1);
}

.rpa-step.completed {
    background: #F0FDF4;
    border-color: #22C55E;
}

.rpa-step.completed .step-indicator {
    background: #22C55E;
    color: #fff;
}

.rpa-step.completed .step-indicator i::before {
    content: "\F26B";
}

.step-indicator {
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rpa-step.active .step-indicator {
    background: var(--primary);
    color: #fff;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.step-content strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.step-content span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===== FORM ROWS ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204, 45, 45, 0.1);
}

/* ===== COMPARISON ===== */
.comparison-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.comparison-card {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 2px solid var(--gray-200);
}

.comparison-card.old {
    border-color: var(--gray-300);
}

.comparison-card.new {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(204, 45, 45, 0.1);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.comparison-header i {
    font-size: 1.75rem;
}

.comparison-card.old .comparison-header i {
    color: var(--gray-500);
}

.comparison-card.new .comparison-header i {
    color: var(--primary);
}

.comparison-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9375rem;
}

.comparison-card.old li i {
    color: var(--gray-400);
}

.comparison-card.new li i {
    color: #22C55E;
}

.comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-300);
}

/* ===== AGENTS GRID ===== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.agent-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.agent-icon {
    width: 64px;
    height: 64px;
    background: rgba(204, 45, 45, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.agent-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.agent-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.agent-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* ===== AGENT DEMO ===== */
.agent-demo-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .agent-demo-container {
        grid-template-columns: 1fr;
    }
}

.agent-data-panel,
.agent-chat-panel {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.panel-header i {
    color: var(--primary);
}

.panel-header select {
    margin-left: auto;
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
}

.panel-body {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.panel-body pre {
    font-size: 0.75rem;
    color: var(--gray-700);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gray-900);
    color: #fff;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), #FF6B6B);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-info strong {
    display: block;
    font-size: 1rem;
}

.chat-info span {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.chat-messages {
    padding: 20px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-content {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.chat-message.assistant .message-content {
    background: var(--gray-100);
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-content {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-content ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 6px;
}

.chat-input-form {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.chat-input-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9375rem;
}

.chat-input-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input-form button {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-form button:hover {
    background: var(--primary-light);
}

/* ===== PROCESS TIMELINE ===== */
.process-timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
}

.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    position: relative;
    padding: 0 16px;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -30%;
    width: 60%;
    height: 2px;
    background: var(--gray-200);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.process-step .step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-step .step-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

@media (max-width: 900px) {
    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .process-step::after {
        display: none;
    }
}

/* ===== CTA SECTION ===== */
.ia-cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.ia-cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ia-cta-box h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.ia-cta-box p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.ia-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ia-cta-section .btn-primary-ia {
    background: #fff;
    color: var(--primary);
}

.ia-cta-section .btn-primary-ia:hover {
    background: var(--gray-100);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ia-cta-section .btn-secondary-ia {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== FOOTER ===== */
.ia-footer {
    background: var(--gray-900);
    color: #fff;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand img {
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-300);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-300);
    font-size: 0.9375rem;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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