/* Firmador PDF — Developers Ecuador */
.firmador-page {
    --firmador-primary: #5b4fd6;
    --firmador-primary-dark: #4338ca;
    --firmador-accent: #0d9488;
    --firmador-surface: #ffffff;
    --firmador-muted: #64748b;
    --firmador-border: #e2e8f0;
    --firmador-radius: 20px;
    padding-bottom: 48px;
}

.firmador-hero {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 45%, #0d9488 100%);
    color: #fff;
    padding: 118px 0 48px;
    text-align: center;
}

.firmador-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.firmador-hero p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.firmador-wrap {
    max-width: 720px;
    margin: -32px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.firmador-card {
    background: var(--firmador-surface);
    border-radius: var(--firmador-radius);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid var(--firmador-border);
}

.firmador-drops {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

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

.firmador-drop {
    border: 2px dashed #c7d2fe;
    border-radius: 16px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.firmador-drop:hover,
.firmador-drop:focus-within {
    border-color: var(--firmador-primary);
    background: #fafbff;
}

.firmador-drop.is-dragover {
    border-color: var(--firmador-accent);
    background: #f0fdfa;
    transform: scale(1.01);
}

.firmador-drop-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1;
}

.firmador-drop-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 6px;
}

.firmador-drop-hint {
    font-size: 0.85rem;
    color: var(--firmador-muted);
    line-height: 1.45;
}

.firmador-drop-file {
    font-size: 0.8rem;
    color: var(--firmador-primary-dark);
    font-weight: 600;
    margin-top: 10px;
    word-break: break-all;
    max-width: 100%;
}

.firmador-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.firmador-field {
    margin-bottom: 20px;
}

.firmador-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.firmador-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.firmador-password-wrap input {
    width: 100%;
    padding: 14px 52px 14px 16px;
    border: 2px solid var(--firmador-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.firmador-password-wrap input:focus {
    outline: none;
    border-color: var(--firmador-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.firmador-toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #f1f5f9;
    color: #475569;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.firmador-toggle-pw:hover {
    background: #e2e8f0;
}

.firmador-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--firmador-primary-dark) 0%, var(--firmador-primary) 50%, var(--firmador-accent) 100%);
    box-shadow: 0 8px 24px rgba(67, 56, 202, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    margin-top: 8px;
}

.firmador-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(67, 56, 202, 0.4);
}

.firmador-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.firmador-progress-wrap {
    margin-top: 20px;
    display: none;
}

.firmador-progress-wrap.is-visible {
    display: block;
}

.firmador-progress-label {
    font-size: 0.8rem;
    color: var(--firmador-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.firmador-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--firmador-primary);
    border-radius: 50%;
    animation: firmador-spin 0.7s linear infinite;
}

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

.firmador-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.firmador-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #0d9488);
    border-radius: 999px;
    transition: width 0.15s ease-out;
}

.firmador-progress-fill.is-indeterminate {
    width: 35% !important;
    animation: firmador-indet 1.2s ease-in-out infinite;
}

@keyframes firmador-indet {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.firmador-msg {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
}

.firmador-msg.is-error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.firmador-msg.is-success {
    display: block;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.firmador-donate {
    margin-top: 36px;
    padding: 24px;
    border-radius: var(--firmador-radius);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fff 100%);
    border: 1px solid #fde68a;
    text-align: center;
}

.firmador-donate h2 {
    font-size: 1.2rem;
    color: #92400e;
    margin-bottom: 10px;
    font-weight: 700;
}

.firmador-donate p {
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.firmador-donate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.firmador-btn-paypal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: #0070ba;
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(0, 112, 186, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.firmador-btn-paypal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.45);
}

.firmador-legal {
    margin-top: 28px;
    padding: 16px 18px;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--firmador-muted);
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid var(--firmador-border);
}

.firmador-legal strong {
    color: #475569;
}
