.catr-modal-overlay,
.catr-download-btn {
    --catr-primary: #533afd;
    --catr-primary-hover: #3a23d6;
}

/* ============================================
   Catalog Rocket Pro — Frontend
   ============================================ */

/* Botón de descarga (shortcode) */
.catr-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--catr-primary);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.catr-download-btn:hover {
    background: var(--catr-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(83, 58, 253, 0.3);
}

.catr-download-btn:active {
    transform: translateY(0);
}

.catr-download-btn svg {
    flex-shrink: 0;
}

/* Variantes de botón */
.catr-download-btn.catr-btn-outline {
    background: transparent;
    color: var(--catr-primary);
    border: 2px solid var(--catr-primary);
}

.catr-download-btn.catr-btn-outline:hover {
    background: var(--catr-primary);
    color: #fff;
}

.catr-download-btn.catr-btn-dark {
    background: #1B2A4A;
}

.catr-download-btn.catr-btn-dark:hover {
    background: #2C3E6B;
}

/* Mensaje de éxito después de descarga */
.catr-success-message {
    text-align: center;
    padding: 40px 20px;
}

.catr-success-icon {
    width: 64px;
    height: 64px;
    background: #27ae60;
    color: #fff;
    border-radius: 0;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: catrCheckIn 0.4s ease;
}

.catr-success-message h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px;
}

.catr-success-message p {
    font-size: 14px;
    color: #555;
    margin: 0 0 4px;
}

.catr-success-sub {
    font-size: 12px !important;
    color: #999 !important;
    margin-top: 12px !important;
}

@keyframes catrCheckIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   Modal de captura de leads (Pro)
   ============================================ */
body.catr-modal-open { overflow: hidden; }

.catr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.catr-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: catrModalIn 0.25s ease;
    max-height: 92vh;
    overflow-y: auto;
}

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

.catr-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
}
.catr-modal-close:hover { color: #475569; }

.catr-modal-body { padding: 28px 26px 26px; }

.catr-modal-body h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.catr-modal-intro {
    margin: 0 0 6px;
    font-size: 14px;
    color: #64748b;
}

.catr-modal-catalog {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--catr-primary);
}
.catr-modal-catalog:empty { display: none; }

.catr-lead-form .catr-field { margin-bottom: 12px; }

.catr-lead-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.catr-lead-form .catr-req { color: #dc2626; }

.catr-lead-form input,
.catr-lead-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
}

.catr-lead-form input:focus,
.catr-lead-form textarea:focus {
    outline: none;
    border-color: var(--catr-primary);
    box-shadow: 0 0 0 3px rgba(83, 58, 253, 0.15);
}

.catr-submit-btn {
    width: 100%;
    margin-top: 6px;
    padding: 13px 20px;
    background: var(--catr-primary);
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.catr-submit-btn:hover { background: var(--catr-primary-hover); }
.catr-submit-btn:disabled { opacity: 0.6; cursor: default; }

.catr-modal-success { text-align: center; padding: 24px 10px 8px; }

/* Defaults de densidad y botón (independientes del tema) */
.catr-modal .catr-lead-form input,
.catr-modal .catr-lead-form textarea{padding:9px 12px;min-height:0;height:auto;line-height:1.35}
.catr-modal .catr-lead-form textarea{min-height:64px}
.catr-modal .catr-lead-form .catr-field{margin-bottom:10px}
.catr-submit-btn{text-align:center}
