/* White Fox · página CMS #1 "Cómo comprar" (plantilla templates/cms/page-1.tpl).
   Se carga solo en esa página. Clases con prefijo wfb-. Computadora = 992 px o más; celular/tablet = menos. */

/* Contenedor: 1040 px centrado en computadora y 20 px de margen en celular (las migas quedan dentro, alineadas). */
body#cms.cms-id-1 #wrapper > .container {
    width: 100%;
    max-width: 1080px;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

.wfb {
    --wfb-navy: #1E2A3A;
    --wfb-gold: #B3956A;
    --wfb-cream: #F9F4F0;
    --wfb-gray: #5E6672;
    --wfb-line: rgba(30, 42, 58, .16);
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: 24px 0 72px;
    font-family: 'PT Serif', serif;
    color: var(--wfb-navy);
}
.wfb *, .wfb *::before, .wfb *::after { box-sizing: border-box; }
#wrapper .wfb p, #wrapper .wfb ol, #wrapper .wfb ul, #wrapper .wfb h1, #wrapper .wfb h2 { margin: 0; padding: 0; }
#wrapper .wfb ol, #wrapper .wfb ul { list-style: none; }
.wfb .wfb-ico { flex: none; color: var(--wfb-gold); }

/* ---------- Encabezado (centrado) ---------- */
.wfb__head { text-align: center; }
#wrapper .wfb .wfb__title { font-family: inherit; font-size: 44px; font-weight: 500; line-height: 1.15; letter-spacing: 0; text-transform: none; color: var(--wfb-navy); }
#wrapper .wfb .wfb__intro { max-width: 100%; margin: 16px auto 0; font-size: 18px; line-height: 1.6; color: var(--wfb-gray); text-wrap: balance; }
#wrapper .wfb .wfb-h2 { font-family: inherit; font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: 0; text-transform: none; text-align: center; color: var(--wfb-navy); }

/* ---------- Pasos (cards) ---------- */
#wrapper .wfb .wfb-steps { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; row-gap: 16px; align-items: stretch; margin-top: 44px; }
.wfb-step {
    display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 24px;
    background: #fff; border: 1px solid var(--wfb-line); text-align: left;
}
.wfb-step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.wfb-step__n {
    display: grid; place-items: center; flex: none;
    width: 28px; height: 28px; margin: 0; padding: 0; box-sizing: border-box; border: 1px solid var(--wfb-gold); border-radius: 50%;
    background: #fff; color: var(--wfb-navy); font-size: 13.5px; line-height: 1; text-align: center; text-indent: 0;
    font-variant-numeric: lining-nums tabular-nums;
}
.wfb-step__title { display: block; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--wfb-navy); }
.wfb-step__detail { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--wfb-gray); }
.wfb-arrow { display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; color: var(--wfb-gold); }

/* Nota de transferencia (centrada) */
#wrapper .wfb .wfb-note {
    display: flex; align-items: flex-start; justify-content: center; gap: 10px;
    max-width: 680px; margin: 32px auto 0; font-size: 15px; line-height: 1.65; color: var(--wfb-gray); text-align: center;
}
.wfb-note svg { flex: none; margin-top: 2px; color: var(--wfb-gold); }

/* ---------- Antes de confirmar tu compra ---------- */
.wfb-check { margin-top: 72px; padding: 40px 48px; background: var(--wfb-cream); }
#wrapper .wfb .wfb-check__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; margin-top: 28px; }
.wfb-check__item { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 0; font-size: 17px; line-height: 1.4; color: var(--wfb-navy); text-align: center; }
.wfb-check__item svg { flex: none; color: var(--wfb-gold); }

/* ---------- Información útil ---------- */
.wfb-info { margin-top: 72px; }
#wrapper .wfb .wfb-info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.wfb-info__grid > li { display: flex; margin: 0; padding: 0; min-width: 0; }
#wrapper .wfb a.wfb-link {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%;
    padding: 24px; background: #fff; border: 1px solid var(--wfb-line); color: var(--wfb-navy);
    text-align: left; text-decoration: none; transition: border-color .15s ease;
}
#wrapper .wfb a.wfb-link:hover { border-color: rgba(30, 42, 58, .55); color: var(--wfb-navy); text-decoration: none; }
#wrapper .wfb a.wfb-link:focus-visible { outline: 2px solid var(--wfb-navy); outline-offset: 2px; }
.wfb-link__text { display: block; margin-top: 18px; flex: 1 1 auto; }
.wfb-link__title { display: block; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--wfb-navy); }
.wfb-link__detail { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--wfb-gray); }
.wfb-link__go { align-self: flex-end; flex: none; margin-top: 18px; color: var(--wfb-navy); }

/* ---------- Celular y tablet ---------- */
@media (max-width: 991px) {
    .wfb { padding: 16px 0 56px; }
    #wrapper .wfb .wfb__title { font-size: 30px; }
    #wrapper .wfb .wfb__intro { margin-top: 12px; font-size: 16px; }
    #wrapper .wfb .wfb-h2 { font-size: 24px; }

    #wrapper .wfb .wfb-steps { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
    .wfb-arrow { display: none; }
    .wfb-step { padding: 16px 14px; }
    .wfb-step__top { margin-bottom: 14px; }
    .wfb-step__n { width: 24px; height: 24px; font-size: 12.5px; padding-top: 2px; }
    .wfb .wfb-step .wfb-ico { width: 20px; height: 20px; }
    .wfb-step__title { font-size: 15px; }
    .wfb-step__detail { margin-top: 4px; font-size: 13.5px; line-height: 1.5; }

    #wrapper .wfb .wfb-note { margin-top: 24px; font-size: 14px; }

    /* El bloque crema va de borde a borde de la pantalla (el contenedor tiene 20 px de margen). */
    .wfb-check { margin: 48px -20px 0; padding: 36px 20px; }
    #wrapper .wfb .wfb-check__list { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; max-width: 100%; gap: 16px; margin: 22px auto 0; }
    .wfb-check__item { justify-content: flex-start; font-size: 16px; text-align: left; }

    .wfb-info { margin-top: 48px; }
    /* Información útil: slider de celular, una tarjeta y el borde de la siguiente, con puntitos. */
    .wfb-slider { margin: 24px -20px 0; }
    #wrapper .wfb .wfb-info__grid { display: flex; gap: 12px; margin-top: 0; padding: 0 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 20px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
    #wrapper .wfb .wfb-info__grid::-webkit-scrollbar { display: none; }
    .wfb-info__grid > li { flex: 0 0 calc(100% - 4px); scroll-snap-align: start; scroll-snap-stop: always; }
    .wfb .wf-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
}

/* Puntitos de los sliders (los arma wf-slider.js); solo se ven en celular. */
@media (min-width: 992px) { .wfb .wf-dots { display: none; } }
.wfb .wf-dot { width: 7px; height: 7px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(30, 42, 58, .22); cursor: pointer; }
.wfb .wf-dot.is-active { background: var(--wfb-navy); }
