/* Fondo general con degradado */
body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f7f7fa 60%, #f3e8ff 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    max-width: 540px;
    margin: 48px auto;
    background: rgba(255,255,255,0.92);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12), 0 1.5px 6px rgba(44, 62, 80, 0.06);
    padding: 40px 36px 48px 36px;
    text-align: center;
    border: 1.5px solid #e0e7ff;
}

h1 {
    color: #3b2f8f;
    font-size: 2.4em;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #3b82f6 0%, #a78bfa 100%);
    -webkit-text-fill-color: transparent;
}

.explicacion {
    color: #555;
    font-size: 1em;
    margin-bottom: 28px;
    line-height: 1.6;
}

#drop-area {
    border: 2.5px dashed #6366f1;
    border-radius: 18px;
    padding: 38px 12px;
    background: rgba(224, 231, 255, 0.35);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    margin-bottom: 10px;
    position: relative;
}

#drop-area.highlight {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 0 4px #bbf7d0;
}

#fileElem {
    display: none;
}

#fileLabel {
    display: block;
    color: #6366f1;
    cursor: pointer;
    margin-bottom: 14px;
    font-size: 1.1em;
    font-weight: 600;
    padding: 18px 0;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    background: rgba(99, 102, 241, 0.07);
}

#fileLabel:hover {
    background: #6366f1;
    color: #fff;
}

#file-info {
    margin: 14px 0 0 0;
    color: #059669;
    font-weight: 500;
    font-size: 1.05em;
    letter-spacing: 0.01em;
}

#progress-bar {
    width: 100%;
    margin: 18px 0;
    height: 20px;
    border-radius: 8px;
    background: #e0e7ff;
    accent-color: #6366f1;
}

#procesar-btn {
    background: linear-gradient(90deg, #22c55e 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 38px;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

#procesar-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #16a34a 0%, #2563eb 100%);
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.10);
}

#procesar-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
    opacity: 0.7;
}

#upload-status {
    margin-top: 14px;
    color: #d9534f;
    font-size: 1em;
    font-weight: 500;
}

@media (max-width: 600px) {
    .container {
        padding: 22px 8px 32px 8px;
    }
    #drop-area {
        padding: 22px 4px;
    }
}


.header-portal {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    border-bottom: 1.5px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
}

.header-content {
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    background: linear-gradient(90deg, #3b82f6 0%, #a78bfa 100%);
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-signature svg {
    display: block;
    width: 28px;
    height: 28px;
}

.header-title {
    font-size: 2em;
    font-weight: 800;
    background: linear-gradient(90deg, #3b82f6 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0;
    letter-spacing: -1px;
}


/* Footer moderno */
.footer-portal {
    backdrop-filter: blur(4px);
    border-top: 1.5px solid #e5e7eb;
    margin-top: 80px;
    width: 100%;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 24px;
    text-align: center;
}

.footer-text {
    color: #6b7280;
    font-size: 1.1em;
    font-weight: 500;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fee2e2;
    color: #b91c1c;
    border: 1.5px solid #ef4444;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 32px auto;
    max-width: 480px;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}

.error-icon {
    flex-shrink: 0;
}