@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* ── Reset dentro del cotizador ── */
.ccf-wrap, .ccf-wrap * { box-sizing: border-box; }
.ccf-wrap {
    font-family: 'Poppins', sans-serif;
    color: #1a2b3c;
    max-width: 920px;
    margin: 0 auto;
}

/* ── Steps ── */
.ccf-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}
.ccf-stp {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    font-weight: 500;
    color: #9aacbb;
    transition: color .3s;
}
.ccf-stp.active { color: #003968; }
.ccf-stp.done   { color: #1a6b3c; }
.ccf-snum {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #ddd8ce;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .71rem;
    font-weight: 700;
    background: #fff;
    transition: all .3s;
    flex-shrink: 0;
}
.ccf-stp.active .ccf-snum { border-color: #003968; background: #003968; color: #fff; }
.ccf-stp.done   .ccf-snum { border-color: #1a6b3c; background: #1a6b3c; color: #fff; }
.ccf-sline {
    width: 44px;
    height: 2px;
    background: #ddd8ce;
    margin: 0 4px;
    transition: background .3s;
}
.ccf-sline.done { background: #1a6b3c; }

/* ── Layout paso 1 ── */
.ccf-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 18px;
    align-items: start;
}
@media (max-width: 640px) {
    .ccf-layout { grid-template-columns: 1fr; }
}

/* ── Card izquierda ── */
.ccf-card-form {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ddd8ce;
    box-shadow: 0 4px 22px rgba(0,57,104,.09);
    overflow: hidden;
}
.ccf-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 24px 14px;
    border-bottom: 1px solid #ede9e1;
}
.ccf-card-icon {
    width: 34px;
    height: 34px;
    background: #f5f2ec;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ccf-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: #003968;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ccf-card-head h2 {
    font-size: .94rem;
    font-weight: 600;
    color: #003968;
    margin: 0;
}
.ccf-card-body { padding: 22px 24px 24px; }

/* ── Campos ── */
.ccf-lbl {
    display: block;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7a7468;
    margin-bottom: 8px;
}
.ccf-fld { margin-bottom: 18px; }

/* Input monto con prefijo Q */
.ccf-input-wrap {
    display: flex;
    border: 1.5px solid #ddd8ce;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.ccf-input-wrap:focus-within {
    border-color: #003968;
    box-shadow: 0 0 0 3px rgba(0,57,104,.08);
}
.ccf-prefix {
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f2ec;
    border-right: 1.5px solid #ddd8ce;
    font-weight: 700;
    font-size: .88rem;
    color: #003968;
    flex-shrink: 0;
}
.ccf-amount {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 13px;
    height: 48px;
    font-size: .98rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #1a2b3c;
    background: transparent;
}
.ccf-amount::placeholder { color: #c5bfba; font-weight: 300; }
.ccf-amount::-webkit-outer-spin-button,
.ccf-amount::-webkit-inner-spin-button { -webkit-appearance: none; }
.ccf-hint { font-size: .7rem; color: #7a7468; margin-top: 4px; }

/* Garantías tipo tarjeta */
.ccf-gg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.ccf-go { position: relative; cursor: pointer; }
.ccf-go input { position: absolute; opacity: 0; width: 0; height: 0; }
.ccf-gf {
    display: block;
    border: 1.5px solid #ddd8ce;
    border-radius: 11px;
    padding: 14px 9px 12px;
    text-align: center;
    background: #f5f2ec;
    transition: all .2s;
    cursor: pointer;
    user-select: none;
}
.ccf-go:hover .ccf-gf { border-color: #003968; background: #fff; }
.ccf-go input:checked ~ .ccf-gf {
    border-color: #003968;
    background: #003968;
    box-shadow: 0 5px 18px rgba(0,57,104,.24);
}
.ccf-go input:checked ~ .ccf-gf .ccf-gico svg { stroke: rgba(255,255,255,.85); }
.ccf-go input:checked ~ .ccf-gf .ccf-gnom { color: #fff; }
.ccf-go input:checked ~ .ccf-gf .ccf-gtasa { color: #F0B429; }
.ccf-gico {
    width: 30px;
    height: 30px;
    margin: 0 auto 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ccf-gico svg {
    width: 20px;
    height: 20px;
    stroke: #003968;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .2s;
}
.ccf-gnom { font-size: .83rem; font-weight: 600; color: #003968; transition: color .2s; }
.ccf-gtasa { font-size: .68rem; color: #7a7468; margin-top: 2px; transition: color .2s; }

/* Slider plazo */
.ccf-slider-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 11px;
}
.ccf-slider-val {
    font-size: 1.55rem;
    font-weight: 700;
    color: #003968;
    line-height: 1;
    letter-spacing: -.03em;
}
.ccf-slider-unit { font-size: .76rem; color: #7a7468; margin-left: 3px; }
input.ccf-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #ede9e1;
    outline: none;
    cursor: pointer;
}
input.ccf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #003968;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,57,104,.18);
    transition: transform .14s;
}
input.ccf-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
input.ccf-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #003968;
    cursor: pointer;
}
.ccf-slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: .69rem;
    color: #7a7468;
}

/* Botón solicitar */
.ccf-btn-sol {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-family: 'Poppins', sans-serif;
    font-size: .91rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
}
.ccf-btn-sol.show { display: flex; }
.ccf-btn-sol:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(5,150,105,.28); }
.ccf-btn-sol svg {
    width: 15px; height: 15px;
    fill: none; stroke: #fff;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .2s;
}
.ccf-btn-sol:hover svg { transform: translateX(3px); }

/* Botón volver */
.ccf-btn-back {
    background: transparent;
    border: 1.5px solid #ddd8ce;
    color: #7a7468;
    border-radius: 10px;
    padding: 10px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 13px;
}
.ccf-btn-back:hover { border-color: #003968; color: #003968; background: #f4f7fb; }

/* Botón enviar */
.ccf-btn-send {
    width: 100%;
    padding: 14px;
    background: #003968;
    color: #fff;
    border: none;
    border-radius: 11px;
    font-family: 'Poppins', sans-serif;
    font-size: .91rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 7px;
}
.ccf-btn-send:hover { background: #00508f; }
.ccf-btn-send:disabled { opacity: .5; cursor: not-allowed; }

/* Error */
.ccf-err {
    background: #fff0ef;
    border: 1px solid #f5c3bf;
    border-radius: 8px;
    color: #a0271a;
    padding: 10px 13px;
    font-size: .78rem;
    margin-top: 9px;
    display: none;
}
.ccf-err.on { display: block; }

/* ── Panel resultado (azul oscuro) ── */
.ccf-result-panel {
    background: #003968;
    border-radius: 18px;
    box-shadow: 0 10px 42px rgba(0,57,104,.24);
    overflow: hidden;
    position: sticky;
    top: 22px;
}
.ccf-result-inner {
    padding: 26px 22px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Estado vacío */
.ccf-result-empty { text-align: center; padding: 8px 0; }
.ccf-result-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.12);
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
}
.ccf-result-icon svg {
    width: 21px; height: 21px;
    opacity: .26;
    fill: none; stroke: #fff;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.ccf-result-empty p { color: rgba(255,255,255,.3); font-size: .82rem; font-weight: 300; line-height: 1.8; }

/* Estado con datos */
.ccf-result-data { display: none; }
.ccf-result-data.on { display: block; animation: ccfFadeUp .38s ease both; }
@keyframes ccfFadeUp { from { opacity:0; transform:translateY(11px); } to { opacity:1; transform:none; } }

.ccf-result-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(240,180,41,.12);
    border: 1px solid rgba(240,180,41,.25);
    border-radius: 100px;
    padding: 2px 11px;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #F0B429;
    margin-bottom: 14px;
}
.ccf-result-dot { width: 5px; height: 5px; border-radius: 50%; background: #F0B429; }
.ccf-result-lbl { font-size: .65rem; font-weight: 500; color: rgba(255,255,255,.45); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 3px; }
.ccf-result-cuota { font-size: 2.5rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.03em; margin-bottom: 3px; }
.ccf-result-cur { font-size: 1.15rem; font-weight: 300; opacity: .6; margin-right: 2px; }
.ccf-result-annual { font-size: .71rem; color: rgba(255,255,255,.33); font-weight: 300; margin-bottom: 18px; }
.ccf-result-divider { height: 1px; background: rgba(255,255,255,.09); margin-bottom: 14px; }
.ccf-result-rows { display: flex; flex-direction: column; gap: 8px; }
.ccf-result-row { display: flex; justify-content: space-between; align-items: center; }
.ccf-result-rk { font-size: .73rem; color: rgba(255,255,255,.38); font-weight: 300; }
.ccf-result-rv { font-size: .83rem; color: #fff; font-weight: 500; }
.ccf-result-rv.accent { color: #F0B429; font-weight: 600; }

/* Barra capital/intereses */
.ccf-bar-wrap { background: rgba(0,0,0,.18); padding: 13px 22px 14px; display: none; }
.ccf-bar-wrap.on { display: block; }
.ccf-bar-labels { display: flex; justify-content: space-between; font-size: .66rem; color: rgba(255,255,255,.32); margin-bottom: 6px; }
.ccf-bar-track { height: 4px; background: rgba(255,255,255,.08); border-radius: 100px; overflow: hidden; }
.ccf-bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, #C8960A, #F0B429); width: 0%; transition: width .8s cubic-bezier(.4,0,.2,1); }

/* ── Paso 2 — datos personales ── */
.ccf-step2-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ddd8ce;
    box-shadow: 0 4px 22px rgba(0,57,104,.09);
    overflow: hidden;
}
.ccf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ccf-input {
    width: 100%;
    border: 1.5px solid #ddd8ce;
    border-radius: 10px;
    padding: 0 13px;
    height: 48px;
    font-size: .91rem;
    font-family: 'Poppins', sans-serif;
    color: #1a2b3c;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ccf-input:focus { border-color: #003968; box-shadow: 0 0 0 3px rgba(0,57,104,.08); }

/* ── Pantalla de éxito ── */
.ccf-success {
    text-align: center;
    padding: 44px 26px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ddd8ce;
    box-shadow: 0 4px 22px rgba(0,57,104,.09);
    display: none;
}
.ccf-success.on { display: block; animation: ccfFadeUp .45s ease both; }
.ccf-success-ico {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, #059669, #047857);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
}
.ccf-success-ico svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ccf-success h3 { font-size: 1.45rem; font-weight: 700; color: #003968; margin: 0 0 9px; }
.ccf-success p { font-size: .87rem; color: #7a7468; font-weight: 300; line-height: 1.8; max-width: 380px; margin: 0 auto; }


/* v2.7.1 step layout updates */
.ccf-3col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width: 1024px){.ccf-3col{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 640px){.ccf-3col{grid-template-columns:1fr;}}
.ccf-step-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px}
.ccf-btn-primary,.ccf-btn-secondary,.ccf-btn-send,.ccf-btn-next,.ccf-btn-back,.ccf-btn-back2,.ccf-btn-sol{
    background:#003968 !important;
    border-color:#003968 !important;
    color:#fff !important;
}
.ccf-btn-secondary{opacity:.95}
.ccf-btn-back,.ccf-btn-back2{display:inline-flex;align-items:center;gap:8px}
.ccf-lbl{
    text-transform:none !important;
    letter-spacing:normal !important;
    font-size:14px !important;
    font-weight:500 !important;
}
.ccf-input, .ccf-input::placeholder, .ccf-amount, .ccf-slider-val{font-size:15px !important}
.ccf-privacy-row{margin-top:8px}
.ccf-check-row{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:#333}
.ccf-check-row a{color:#003968;text-decoration:underline}


/* v2.7.2 button and form refinements */
.ccf-btn-sol{
    background:#E43525 !important;
    border-color:#E43525 !important;
    color:#fff !important;
}
.ccf-btn-next{
    background:#E43525 !important;
    border-color:#E43525 !important;
    color:#fff !important;
}
.ccf-btn-back2,
.ccf-btn-send{
    background:#E43525 !important;
    border-color:#E43525 !important;
    color:#fff !important;
}
.ccf-btn-sol,
.ccf-btn-next,
.ccf-btn-back2,
.ccf-btn-send{
    border-radius:8px !important;
    padding:14px 22px !important;
    font-size:16px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
    box-shadow:none !important;
}
.ccf-input,
.ccf-input input,
.ccf-input select,
.ccf-input textarea,
.ccf-amount,
.ccf-card-body input,
.ccf-card-body select,
.ccf-card-body textarea{
    font-weight:400 !important;
}
.ccf-lbl,
.ccf-card-body label{
    font-weight:400 !important;
}
.ccf-lbl .req,
.ccf-required,
.ccf-lbl-required,
.ccf-card-body label .required{
    color:#E43525 !important;
}
.ccf-lbl{
    font-size:14px !important;
}
.ccf-card-body input::placeholder,
.ccf-card-body textarea::placeholder{
    font-weight:400 !important;
}
.ccf-step2-card label,
.ccf-fld label{
    font-weight:400 !important;
}
.ccf-step2-card label::after,
.ccf-fld label::after{
    color:#E43525;
}
.ccf-success{
    border:none !important;
    box-shadow:none !important;
    background:transparent !important;
    padding:24px 0 !important;
}
.ccf-success.on{
    display:block !important;
}
.ccf-success-cta{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:18px;
    background:#E43525;
    color:#fff !important;
    text-decoration:none;
    padding:14px 22px;
    border-radius:8px;
    font-size:16px;
    font-weight:600;
    line-height:1.2;
}
.ccf-success-cta:hover{
    color:#fff !important;
    opacity:.95;
}
.ccf-success-cta-icon{
    font-size:18px;
    line-height:1;
}


/* v2.7.3 UI refinements */
.ccf-step2-card .ccf-input,
.ccf-step2-card input,
.ccf-step2-card select,
.ccf-step2-card textarea{
    border:1.5px solid #003968 !important;
    border-radius:12px !important;
    box-shadow:none !important;
    background:#fff !important;
}
.ccf-step2-card .ccf-input:focus,
.ccf-step2-card input:focus,
.ccf-step2-card select:focus,
.ccf-step2-card textarea:focus{
    border-color:#003968 !important;
    outline:none !important;
    box-shadow:0 0 0 2px rgba(0,57,104,.12) !important;
}
.ccf-step-actions{
    margin-top:22px !important;
    gap:16px !important;
}
.ccf-step-actions .ccf-btn-back,
.ccf-step-actions .ccf-btn-next,
.ccf-step-actions .ccf-btn-back2,
.ccf-step-actions .ccf-btn-send{
    min-width:170px !important;
    justify-content:center !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:10px !important;
    border-radius:10px !important;
    padding:12px 22px !important;
    font-size:15px !important;
    font-weight:600 !important;
}
.ccf-btn-back,
.ccf-btn-back2{
    background:#003968 !important;
    border-color:#003968 !important;
    color:#fff !important;
}
.ccf-btn-next{
    background:#E43525 !important;
    border-color:#E43525 !important;
    color:#fff !important;
}
.ccf-btn-send{
    background:#E43525 !important;
    border-color:#E43525 !important;
    color:#fff !important;
}
.ccf-btn-ico{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    line-height:1;
}
.ccf-step2-card select{
    appearance:auto;
    -webkit-appearance:menulist;
    -moz-appearance:menulist;
}


/* v2.7.4 final button/spacing tweaks */
.ccf-step-actions{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:18px !important;
    flex-wrap:nowrap !important;
}
.ccf-step-actions .ccf-btn-back,
.ccf-step-actions .ccf-btn-next,
.ccf-step-actions .ccf-btn-back2,
.ccf-step-actions .ccf-btn-send{
    min-width:220px !important;
    width:auto !important;
    max-width:48% !important;
    flex:0 1 auto !important;
    justify-content:center !important;
}

.ccf-btn-sol{
    min-height:56px !important;
    font-size:17px !important;
    padding:14px 26px !important;
}

.ccf-btn-next,
.ccf-btn-send{
    min-height:56px !important;
    font-size:17px !important;
    padding:14px 26px !important;
}

.ccf-btn-back,
.ccf-btn-back2{
    min-height:56px !important;
    font-size:16px !important;
    padding:14px 24px !important;
}

@media (max-width: 767px){
    .ccf-step2-card .ccf-card-body{
        padding:18px 16px !important;
    }
    .ccf-3col,
    .ccf-2col{
        gap:12px !important;
    }
    .ccf-fld{
        margin-bottom:2px !important;
    }
    .ccf-step-actions{
        flex-direction:column !important;
        align-items:stretch !important;
        gap:12px !important;
    }
    .ccf-step-actions .ccf-btn-back,
    .ccf-step-actions .ccf-btn-next,
    .ccf-step-actions .ccf-btn-back2,
    .ccf-step-actions .ccf-btn-send{
        width:100% !important;
        max-width:100% !important;
        min-width:100% !important;
        flex:1 1 100% !important;
    }
}

.ccf-stp.done .ccf-snum,
.ccf-stp.done span:first-child{
    background:#E43525 !important;
    border-color:#E43525 !important;
    color:#fff !important;
}
.ccf-sline.done{
    background:#E43525 !important;
}


/* v2.7.5 tweaks */
.ccf-step2-card .ccf-input,
.ccf-step2-card input,
.ccf-step2-card select,
.ccf-step2-card textarea,
.ccf-input-wrap,
.ccf-amount{
    border-color:#c8c8c8 !important;
}
.ccf-step2-card .ccf-input:focus,
.ccf-step2-card input:focus,
.ccf-step2-card select:focus,
.ccf-step2-card textarea:focus{
    border-color:#c8c8c8 !important;
    box-shadow:0 0 0 2px rgba(0,57,104,.08) !important;
}
.ccf-btn-sol,
.ccf-btn-next,
.ccf-btn-send,
.ccf-btn-back,
.ccf-btn-back2,
.ccf-success-cta{
    border-radius:35px !important;
}
.ccf-steps{
    align-items:flex-start !important;
}
.ccf-stp{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:6px !important;
    text-align:center !important;
    min-width:150px !important;
}
.ccf-stp .ccf-snum{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:28px !important;
    height:28px !important;
    font-size:14px !important;
    line-height:1 !important;
    margin:0 auto !important;
}
.ccf-stp span:last-child{
    font-size:14px !important;
    line-height:1.2 !important;
    display:block !important;
}
.ccf-stp.done .ccf-snum,
.ccf-stp.done span:first-child,
.ccf-sline.done{
    background:#E43525 !important;
    border-color:#E43525 !important;
    color:#fff !important;
}
.ccf-sline{
    margin-top:14px !important;
}
.ccf-err{
    order:-1;
    margin-bottom:12px !important;
}
@media (max-width: 767px){
    .ccf-stp{
        min-width:90px !important;
        gap:5px !important;
    }
    .ccf-stp .ccf-snum{
        width:26px !important;
        height:26px !important;
        font-size:14px !important;
    }
    .ccf-stp span:last-child{
        font-size:14px !important;
    }
}


/* v2.7.6 validation and final polish */
.ccf-inp-purpose{
  min-height:130px !important;
  resize:vertical !important;
}
.ccf-error-field{
  border-color:#E43525 !important;
  box-shadow:0 0 0 2px rgba(228,53,37,.12) !important;
}
.ccf-error-label,
.ccf-error-label .ccf-required{
  color:#E43525 !important;
}
.ccf-stp.done,
.ccf-stp.done span,
.ccf-stp.done span:last-child{
  color:#E43525 !important;
}
.ccf-stp.done .ccf-snum{
  color:#fff !important;
}


/* v2.7.8 precise rounded buttons */
.ccf-step-actions .ccf-btn-back,
.ccf-step-actions .ccf-btn-next,
.ccf-step-actions .ccf-btn-back2,
.ccf-step-actions .ccf-btn-send,
.ccf-success-cta{
  border-radius:35px !important;
}


/* v2.7.9 result panel and success CTA tweaks */
.ccf-success-cta{
    display:inline-flex;
    align-items:center;
    gap:10px;
}
.ccf-success-cta .ccf-success-cta-icon{
    order:2;
}

.ccf-result-panel{
    background:#f2f3f5 !important;
    color:#4f5965 !important;
    box-shadow:none !important;
}
.ccf-result-inner{
    background:#f2f3f5 !important;
    color:#4f5965 !important;
}
.ccf-result-pill{
    background:#e9ecef !important;
    color:#4f5965 !important;
}
.ccf-result-pill-lbl,
.ccf-result-lbl,
.ccf-result-annual,
.ccf-result-rk,
.ccf-result-rv,
.ccf-result-row,
.ccf-result-empty p,
.ccf-result-cur,
.ccf-result-cuota-val{
    color:#4f5965 !important;
}
.ccf-result-cuota{
    color:#4f5965 !important;
}
.ccf-result-dot{
    background:#4f5965 !important;
}
.ccf-result-divider{
    background:#d9dde3 !important;
}
.ccf-bar-wrap,
.ccf-result-progress,
.ccf-result-progressbar,
.ccf-result-bottom,
.ccf-progress-wrap{
    display:none !important;
}


/* Mobile-only result step */
.ccf-mobile-only,
.ccf-mobile-result-step{display:none}
.ccf-result-panel-mobile{width:100%;max-width:none}
.ccf-result-panel-mobile .ccf-result-inner{min-height:auto}
.ccf-mobile-step-actions{margin-top:18px}
.ccf-mobile-result-step .ccf-result-panel{margin-bottom:0}
.ccf-stp.done{color:#ef3b2d !important}
.ccf-stp.done .ccf-snum{border-color:#ef3b2d !important;background:#ef3b2d !important;color:#fff !important}
.ccf-sline.done{background:#ef3b2d !important}

@media (max-width: 767px){
    .ccf-mobile-only{display:flex}
    .ccf-paso1 .ccf-result-panel{display:none}
    .ccf-mobile-result-step .ccf-result-panel{display:block}
}
@media (min-width: 768px){
    .ccf-mobile-only,
    .ccf-mobile-result-step{display:none !important}
}


/* === MOBILE STEP 2 BUTTONS EXACT STYLE (CREDITOS) === */
@media (max-width: 767px) {

  .ccf-mobile-result-step .ccf-step-actions,
  .ccf-mobile-result-step .ccf-form-actions,
  .ccf-mobile-result-step .ccf-actions-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
  }

  .ccf-mobile-result-step .ccf-prev-btn,
  .ccf-mobile-result-step .ccf-next-btn,
  .ccf-mobile-result-step .ccf-submit-btn {
    width: 100% !important;
    height: 52px;
    border-radius: 35px !important;
    font-size: 15px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ccf-mobile-result-step .ccf-prev-btn {
    background: #174A75 !important;
    color: #fff !important;
  }

  .ccf-mobile-result-step .ccf-next-btn,
  .ccf-mobile-result-step .ccf-submit-btn {
    background: #E63323 !important;
    color: #fff !important;
  }
}



/* === CREDITOS: PASO 2 MOVIL BOTONES EXACTOS COMO PASO 3 === */
@media (max-width: 767px) {
  .ccf-mobile-result-step .ccf-mobile-step-actions,
  .ccf-mobile-result-step .ccf-step-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 18px !important;
    width: 100% !important;
  }

  .ccf-mobile-result-step .ccf-btn-result-back,
  .ccf-mobile-result-step .ccf-btn-result-next {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 0 22px !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
  }

  .ccf-mobile-result-step .ccf-btn-result-back {
    background: #114D7F !important;
    color: #ffffff !important;
  }

  .ccf-mobile-result-step .ccf-btn-result-next {
    background: #EE3524 !important;
    color: #ffffff !important;
  }

  .ccf-mobile-result-step .ccf-btn-result-back .ccf-btn-ico,
  .ccf-mobile-result-step .ccf-btn-result-next .ccf-btn-ico {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .ccf-mobile-result-step .ccf-btn-result-back:hover,
  .ccf-mobile-result-step .ccf-btn-result-next:hover,
  .ccf-mobile-result-step .ccf-btn-result-back:focus,
  .ccf-mobile-result-step .ccf-btn-result-next:focus,
  .ccf-mobile-result-step .ccf-btn-result-back:active,
  .ccf-mobile-result-step .ccf-btn-result-next:active {
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
    filter: none !important;
  }
}


/* === APPLY SAME BUTTON STYLE TO STEP 3 & 4 (MOBILE) === */
@media (max-width: 767px){
  .ccf-paso3 .ccf-step-actions,
  .ccf-paso4 .ccf-step-actions{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    margin-top:18px !important;
  }

  .ccf-paso3 .ccf-btn-back,
  .ccf-paso3 .ccf-btn-next,
  .ccf-paso4 .ccf-btn-back,
  .ccf-paso4 .ccf-btn-next{
    width:100% !important;
    height:48px !important;
    border-radius:999px !important;
    border:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-weight:600 !important;
  }

  .ccf-paso3 .ccf-btn-back,
  .ccf-paso4 .ccf-btn-back{
    background:#114D7F !important;
    color:#fff !important;
  }

  .ccf-paso3 .ccf-btn-next,
  .ccf-paso4 .ccf-btn-next{
    background:#EE3524 !important;
    color:#fff !important;
  }
}


/* === FIX HEIGHT + SPACING STEP 3 & 4 (MATCH STEP 2) === */
@media (max-width:767px){

  .ccf-paso3 .ccf-step-actions,
  .ccf-paso4 .ccf-step-actions{
    gap:10px !important;
    margin-top:14px !important;
  }

  .ccf-paso3 .ccf-btn-back,
  .ccf-paso3 .ccf-btn-next,
  .ccf-paso4 .ccf-btn-back,
  .ccf-paso4 .ccf-btn-next{
    height:44px !important;
    min-height:44px !important;
    border-radius:999px !important;
    font-size:14px !important;
  }

}


/* === ALIGN STEP 3 & 4 SPACING EXACT TO STEP 2 + COLOR FIX === */
@media (max-width:767px){

  /* Igualar spacing exacto */
  .ccf-paso3 .ccf-step-actions,
  .ccf-paso4 .ccf-step-actions{
    gap:8px !important;
    margin-top:12px !important;
  }

  /* Reducir margen interno de botones */
  .ccf-paso3 .ccf-btn-back,
  .ccf-paso3 .ccf-btn-next,
  .ccf-paso4 .ccf-btn-back,
  .ccf-paso4 .ccf-btn-next{
    margin:0 !important;
  }

  /* Color exacto botón regresar paso 2 */
  .ccf-mobile-result-step .ccf-btn-result-back{
    background:#0D4370 !important;
  }

}



/* === CREDITOS MOBILE: make step 3 and 4 buttons match step 2 exactly === */
@media (max-width:767px){
  .ccf-paso2 .ccf-step-actions,
  .ccf-paso3 .ccf-step-actions{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    margin-top:12px !important;
    width:100% !important;
  }

  .ccf-paso2 .ccf-btn-back,
  .ccf-paso2 .ccf-btn-next,
  .ccf-paso3 .ccf-btn-back2,
  .ccf-paso3 .ccf-btn-send{
    -webkit-appearance:none !important;
    appearance:none !important;
    width:100% !important;
    min-width:100% !important;
    height:44px !important;
    min-height:44px !important;
    border:0 !important;
    border-radius:999px !important;
    padding:0 20px !important;
    margin:0 !important;
    box-shadow:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    font-family:'Poppins',sans-serif !important;
    font-size:14px !important;
    line-height:1 !important;
    font-weight:600 !important;
    text-decoration:none !important;
    text-align:center !important;
  }

  .ccf-paso2 .ccf-btn-back,
  .ccf-paso3 .ccf-btn-back2{
    background:#0D4370 !important;
    color:#fff !important;
  }

  .ccf-paso2 .ccf-btn-next,
  .ccf-paso3 .ccf-btn-send{
    background:#EE3524 !important;
    color:#fff !important;
  }

  .ccf-paso2 .ccf-btn-back .ccf-btn-ico,
  .ccf-paso2 .ccf-btn-next .ccf-btn-ico,
  .ccf-paso3 .ccf-btn-back2 .ccf-btn-ico,
  .ccf-paso3 .ccf-btn-send .ccf-btn-ico{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:14px !important;
    line-height:1 !important;
    margin:0 !important;
  }
}



/* === GLOBAL CTA BUTTON SYSTEM - CREDITOS Y AHORRO === */
:root{
  --ccf-btn-back-bg:#0D4370;
  --ccf-btn-next-bg:#EE3524;
  --ccf-btn-text:#FFFFFF;
  --ccf-btn-height:48px;
  --ccf-btn-radius:999px;
  --ccf-btn-pad-x:22px;
  --ccf-btn-gap:8px;
  --ccf-actions-gap:8px;
  --ccf-actions-margin-top:18px;
}

.ccf-step-actions,
.ccf-mobile-step-actions,
.ccf-form-actions,
.ccf-actions-row{
  gap:var(--ccf-actions-gap) !important;
  margin-top:var(--ccf-actions-margin-top) !important;
}

.ccf-btn-result-back,
.ccf-btn-back,
.ccf-btn-back2,
.ccf-btn-result-next,
.ccf-btn-next,
.ccf-btn-send,
.ccf-btn-sol{
  -webkit-appearance:none !important;
  appearance:none !important;
  min-height:var(--ccf-btn-height) !important;
  height:var(--ccf-btn-height) !important;
  padding:0 var(--ccf-btn-pad-x) !important;
  border:0 !important;
  border-radius:var(--ccf-btn-radius) !important;
  box-shadow:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:var(--ccf-btn-gap) !important;
  font-family:'Poppins',sans-serif !important;
  font-size:14px !important;
  line-height:1 !important;
  font-weight:600 !important;
  text-decoration:none !important;
  text-align:center !important;
  margin:0 !important;
}

.ccf-btn-result-back,
.ccf-btn-back,
.ccf-btn-back2{
  background:var(--ccf-btn-back-bg) !important;
  color:var(--ccf-btn-text) !important;
}

.ccf-btn-result-next,
.ccf-btn-next,
.ccf-btn-send,
.ccf-btn-sol{
  background:var(--ccf-btn-next-bg) !important;
  color:var(--ccf-btn-text) !important;
}

.ccf-btn-result-back .ccf-btn-ico,
.ccf-btn-back .ccf-btn-ico,
.ccf-btn-back2 .ccf-btn-ico,
.ccf-btn-result-next .ccf-btn-ico,
.ccf-btn-next .ccf-btn-ico,
.ccf-btn-send .ccf-btn-ico,
.ccf-btn-sol .ccf-btn-ico{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:14px !important;
  line-height:1 !important;
  margin:0 !important;
}

@media (max-width:767px){
  .ccf-step-actions,
  .ccf-mobile-step-actions,
  .ccf-form-actions,
  .ccf-actions-row{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    gap:var(--ccf-actions-gap) !important;
    margin-top:12px !important;
  }

  .ccf-btn-result-back,
  .ccf-btn-back,
  .ccf-btn-back2,
  .ccf-btn-result-next,
  .ccf-btn-next,
  .ccf-btn-send,
  .ccf-btn-sol{
    width:100% !important;
    min-width:100% !important;
  }
}



/* === FORCE EXACT MOBILE BUTTON SPACING === */
@media (max-width:767px){
  .ccf-step-actions.ccf-mobile-step-actions,
  .ccf-mobile-step-actions,
  .ccf-step-actions{
    row-gap:8px !important;
    column-gap:0 !important;
    gap:8px !important;
  }

  .ccf-step-actions.ccf-mobile-step-actions > *,
  .ccf-mobile-step-actions > *,
  .ccf-step-actions > *{
    margin-top:0 !important;
    margin-bottom:0 !important;
  }
}



/* === FINAL MOBILE BUTTON RULES: CREDITOS 1-4 / AHORRO 1-3 === */
@media (max-width:767px){
  .ccf-step-actions,
  .ccf-mobile-step-actions,
  .ccf-form-actions,
  .ccf-actions-row{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    gap:15px !important;
    row-gap:15px !important;
    column-gap:0 !important;
    margin-top:15px !important;
  }

  .ccf-step-actions > *,
  .ccf-mobile-step-actions > *,
  .ccf-form-actions > *,
  .ccf-actions-row > *{
    margin:0 !important;
  }

  .ccf-btn-result-back,
  .ccf-btn-back,
  .ccf-btn-back2,
  .ccf-btn-result-next,
  .ccf-btn-next,
  .ccf-btn-send,
  .ccf-btn-sol,
  .ccf-submit-btn,
  .ccf-prev-btn,
  .ccf-next-btn,
  .ccf-step-actions button,
  .ccf-mobile-step-actions button,
  .ccf-form-actions button,
  .ccf-actions-row button{
    -webkit-appearance:none !important;
    appearance:none !important;
    width:100% !important;
    min-width:100% !important;
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    padding:0 22px !important;
    border:0 !important;
    border-radius:999px !important;
    box-shadow:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    margin:0 !important;
  }
}
