* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 900px;

    .logos-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }

    .logo-unap {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .logo-oti {
        max-width: 100%;
        height: auto;
    }

    @media (min-width: 600px) {
        .logos-container {
            flex-direction: row;
        }
        .logo-unap {
            margin-bottom: 0;
            margin-right: 20px;
        }
    }
    margin: 0 auto;
    padding: 24px;
}

header {
    text-align: center;
    background: #ffffff;
    padding: 10px 30px;
    border-radius: 10px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 2px;
    flex-wrap: wrap;
    padding: 2px 0;
    border-bottom: 1px solid #f1f5f9;
}

.logo-unap, .logo-oti {
    height: 500px;
    width: auto;
    max-width: 540px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

.logo-unap:hover, .logo-oti:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

header h1 {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

header p {
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 400;
}

.validation-form {
    background: #ffffff;
    padding: 48px;
    border-radius: 10px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.validation-form h2 {
    color: #0f172a;
    margin-bottom: 32px;
    text-align: center;
    /* font-size: 1.875rem; */
    font-weight: 600;
    letter-spacing: -0.025em;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    color: #374151;
    /* font-size: 0.875rem; */
    text-transform: uppercase;
    /* letter-spacing: 0.05em; */
}

.input-group input {
    width: 100%;
    padding: 6px 8px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    /* font-size: 1.125rem; */
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.input-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.input-group small {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
}

.btn-validate {
    width: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-validate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.btn-validate:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.info-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.info-section h3 {
    color: #0f172a;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.info-section ol {
    padding-left: 24px;
}

.info-section li {
    margin-bottom: 12px;
    color: #475569;
    line-height: 1.7;
    font-weight: 400;
}

footer {
    text-align: center;
    color: #64748b;
    padding: 32px 20px;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Estilos para la página de resultados */
.certificate-result {
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.certificate-valid {
    border-left: 6px solid #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.certificate-invalid {
    border-left: 6px solid #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.result-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.result-header h2 {
    color: #0f172a;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.result-header p {
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 400;
}

.valid-icon {
    color: #10b981;
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

.invalid-icon {
    color: #ef4444;
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.3));
}

.participant-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}

.participant-info h3 {
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.btn-back {
    display: inline-block;
    background: #64748b;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-back:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    header {
        padding: 32px 24px;
    }
    
    header h1 {
        font-size: 2.25rem;
    }
    
    .validation-form, .certificate-result {
        padding: 32px 24px;
    }
    
    .participant-info {
        padding: 32px 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .logos-container {
        gap: 40px;
        margin-bottom: 24px;
    }
    
    .logo-unap, .logo-oti {
        height: 360px;
        max-width: 550px;
    }
    
    .info-item {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    header {
        padding: 24px 16px;
    }
    
    .validation-form, .certificate-result {
        padding: 24px 16px;
    }
    
    .participant-info {
        padding: 24px 16px;
    }
    
    .logos-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .logo-unap, .logo-oti {
        height: 160px;
        max-width: 90px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .validation-form h2 {
        font-size: 1.5rem;
    }
}

/* Estilos para mensajes de error */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.error-message::before {
    content: "⚠️ ";
    margin-right: 8px;
}