/* ============================================================
   Cartera Electrónica — La Marina
   Palette: #006952 | #004f3e | #f71963 | Montserrat/Inter
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────── */
.cw-hero {
    background: linear-gradient(135deg, #004f3e 0%, #006952 60%, #00856a 100%);
    padding: 64px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cw-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.cw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.cw-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.15;
}
.cw-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Section ────────────────────────────────────────────── */
.cw-section { background: #f5f7f6; padding: 48px 0 64px; min-height: 60vh; }
.cw-container { max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* ── Form card ──────────────────────────────────────────── */
.cw-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(0,105,82,0.11);
    border: 1px solid rgba(0,105,82,0.08);
    overflow: hidden;
    animation: cw-fadeUp 0.5s ease both;
    margin-bottom: 28px;
}
.cw-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid #e8f0ed;
    background: linear-gradient(90deg, rgba(0,105,82,0.04) 0%, transparent 100%);
}
.cw-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #006952, #00856a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(0,105,82,0.28);
}
.cw-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 3px;
}
.cw-card-desc { font-family: 'Inter', sans-serif; font-size: 0.84rem; color: #6b7a75; margin: 0; }
.cw-card-body { padding: 28px; }

/* ── Field ──────────────────────────────────────────────── */
.cw-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.cw-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #336853;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.cw-label i { margin-right: 5px; }
.cw-input-wrap { position: relative; display: flex; align-items: center; }
.cw-input-icon {
    position: absolute;
    left: 14px;
    color: #8aa89f;
    font-size: 1rem;
    pointer-events: none;
}
.cw-input {
    width: 100%;
    height: 52px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #cdd8d4;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    background: #fafcfb;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    letter-spacing: 0.06em;
}
.cw-input:focus {
    border-color: #006952;
    box-shadow: 0 0 0 3px rgba(0,105,82,0.12);
    background: #fff;
}
.cw-input::placeholder { color: #a0b5ad; letter-spacing: 0; }
.cw-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #8aa89f;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Submit button ──────────────────────────────────────── */
.cw-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, #006952, #00856a);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 15px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 18px rgba(0,105,82,0.30);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.cw-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0,105,82,0.38);
}
.cw-btn:active { transform: translateY(0); }
.cw-btn:disabled { opacity: 0.72; cursor: not-allowed; transform: none; }

/* ── Info steps ─────────────────────────────────────────── */
.cw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    animation: cw-fadeUp 0.5s 0.1s ease both;
}
.cw-step {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4edea;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,105,82,0.06);
}
.cw-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,105,82,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #006952;
    font-size: 1.1rem;
    margin: 0 auto 10px;
}
.cw-step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8aa89f;
    margin: 0 0 4px;
}
.cw-step-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #4a6459;
    line-height: 1.4;
    margin: 0;
}

/* ── Privacy note ───────────────────────────────────────── */
.cw-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #e8f5f0;
    border: 1px solid rgba(0,105,82,0.15);
    border-radius: 10px;
    padding: 13px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #4a6459;
    line-height: 1.5;
    margin-top: 16px;
    animation: cw-fadeUp 0.5s 0.15s ease both;
}
.cw-privacy i { color: #006952; font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }

/* ── Back ────────────────────────────────────────────────── */
.cw-back { text-align: center; margin-top: 36px; }
.cw-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #006952;
    text-decoration: none;
    padding: 10px 20px;
    border: 1.5px solid rgba(0,105,82,0.25);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cw-back-link:hover {
    background: rgba(0,105,82,0.06);
    border-color: #006952;
    transform: translateX(-3px);
    color: #006952;
    text-decoration: none;
}

/* ── SweetAlert2 overrides ──────────────────────────────── */
.swal2-popup.cw-swal {
    border-radius: 18px !important;
    font-family: 'Inter', sans-serif !important;
    padding: 32px 28px 28px !important;
}
.cw-swal .swal2-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
}
.cw-swal .swal2-input {
    border: 1.5px solid #cdd8d4 !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.3rem !important;
    letter-spacing: 0.22em !important;
    text-align: center !important;
    color: #006952 !important;
    font-weight: 700 !important;
    height: 56px !important;
    box-shadow: none !important;
}
.cw-swal .swal2-input:focus {
    border-color: #006952 !important;
    box-shadow: 0 0 0 3px rgba(0,105,82,0.12) !important;
}
.cw-swal .swal2-confirm {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 11px 26px !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #006952, #00856a) !important;
    box-shadow: 0 4px 14px rgba(0,105,82,0.28) !important;
}
.cw-swal .swal2-cancel {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    padding: 11px 26px !important;
    border-radius: 9px !important;
    background: #f0f4f2 !important;
    color: #4a6459 !important;
    box-shadow: none !important;
}

/* Balance result popup */
.cw-balance-popup {
    border-radius: 18px !important;
    font-family: 'Inter', sans-serif !important;
    padding: 36px 28px 28px !important;
}
.cw-balance-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #006952;
    line-height: 1;
    margin: 8px 0 4px;
}
.cw-balance-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #6b7a75;
    margin: 0;
}
.cw-balance-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006952, #00856a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(0,105,82,0.28);
    font-size: 1.8rem;
    color: #fff;
}

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes cw-fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .cw-steps { grid-template-columns: 1fr; }
    .cw-card-header, .cw-card-body { padding: 18px; }
    .cw-hero { padding: 44px 0 36px; }
}
