/* Estilos para Sistema de Certificados QAS */

/* Hero Section Pequena */
.hero-section-small {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-image: url('../../assets/image/16=consultoriaqas.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-section-small .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 125, 50, 0.8);
}

.hero-section-small .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-section-small .main-heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section-small .description {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.95;
}

/* Validation Section */
.validation-section {
    padding: var(--section-spacing) 0;
    background: var(--background-light);
}

.validation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Form Container */
.validation-form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Form Styles */
.validation-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    background: white;
}

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

.input-group input:invalid {
    border-color: var(--error-color);
}

.input-help {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.btn-validate {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-validate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.btn-validate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Result Container */
.result-container {
    margin-top: 1.5rem;
}

.result-card {
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid;
    margin-bottom: 1rem;
}

.result-card.success {
    background: #f0f9f0;
    border-color: var(--success-color);
    color: #1b5e20;
}

.result-card.error {
    background: #fef5f5;
    border-color: var(--error-color);
    color: #c62828;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-header i {
    font-size: 1.5rem;
}

.result-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.result-details {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--text-medium);
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-card ol {
    color: var(--text-light);
    line-height: 1.6;
    padding-left: 1.5rem;
}

.info-card ol li {
    margin-bottom: 0.5rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    margin-top: 0.5rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section-small .main-heading {
        font-size: 2rem;
    }
    
    .hero-section-small .description {
        font-size: 1rem;
    }
    
    .validation-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .validation-form-container {
        padding: 2rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .validation-form-container {
        padding: 1.5rem;
    }
    
    .form-header {
        margin-bottom: 2rem;
    }
    
    .form-header i {
        font-size: 2.5rem;
    }
    
    .btn-validate {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Print Styles */
@media print {
    .validation-form-container,
    .info-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn-validate,
    .btn-outline {
        display: none;
    }
    
    .hero-section-small {
        background: none;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section-small .overlay {
        display: none;
    }
}

