.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-section, .ai-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-section {
    padding: 40px;
}

.ai-section {
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.section-header {
    background: #191a1c;
    color: white;
    padding: 20px 20px 5px 20px;
    text-align: center;
}

.section-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.section-header p {
    opacity: 0.9;
    font-size: 14px;
}

.ai-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.title {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.textarea {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.textarea::placeholder {
    color: #a0a0a0;
    font-style: italic;
}

.btn-enviar {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #242326, #010101);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-enviar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    border-left: 4px solid #667eea;
}

/* Estados de la IA */
.ai-idle {
    color: #666;
}

.ai-processing {
    color: #667eea;
}

.ai-success {
    color: #28a745;
}

/* Animaciones */
.robot-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: loading 1.4s ease-in-out infinite both;
}

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

@keyframes loading {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

.progress-steps {
    margin: 30px 0;
    text-align: left;
    width: 100%;
    max-width: 400px;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.3;
    transition: all 0.5s ease;
}

.step.active {
    opacity: 1;
    color: #667eea;
}

.step.completed {
    opacity: 1;
    color: #28a745;
}

.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid currentColor;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.detected-fields {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    width: 100%;
    max-width: 400px;
}

.field-item {
    display: flex;
    margin-bottom: 12px;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.field-item:nth-child(1) { animation-delay: 0.1s; }
.field-item:nth-child(2) { animation-delay: 0.2s; }
.field-item:nth-child(3) { animation-delay: 0.3s; }
.field-item:nth-child(4) { animation-delay: 0.4s; }

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

.field-label {
    font-weight: 600;
    color: #667eea;
    min-width: 80px;
    margin-right: 10px;
}

.field-value {
    color: #333;
    flex: 1;
}

.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-section, .ai-section {
        padding: 20px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .sidebar-banner.home {
        padding: 0px !important;
    }

    .sidebar-banner.home .banner-inner{
        width: 100%;
        left: 0px;
        right: 0px;
    }

    .ai-content{
        padding: 5px;
    }
}

.sidebar-banner.home {
    padding: 50px;
}

.sidebar-banner.home .banner-inner{
    position: relative;
}

.sidebar-banner.home .banner-inner h3{
    font-size: 24px;
}

.sidebar-banner.home #aiContent h3{
    color: #75DAB4;
}