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

/* El banner y la familia van de borde a borde: el contenedor del tema no limita el ancho en esta página. */
body#cms.cms-id-4 #wrapper { overflow-x: clip; }
body#cms.cms-id-4 #wrapper > .container { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
body#cms.cms-id-4 #wrapper .breadcrumb { padding-left: 20px; padding-right: 20px; }

.wfa {
    --wfa-navy: #1E2A3A;
    --wfa-gold: #B3956A;
    --wfa-cream: #F9F4F0;
    --wfa-gray: #5E6672;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 96px;
    font-family: 'PT Serif', serif;
    color: var(--wfa-navy);
}
.wfa *, .wfa *::before, .wfa *::after { box-sizing: border-box; }
#wrapper .wfa p, #wrapper .wfa h1, #wrapper .wfa h2, #wrapper .wfa h3, #wrapper .wfa ul, #wrapper .wfa figure { margin: 0; padding: 0; }
#wrapper .wfa ul { list-style: none; }
.wfa-in { width: 100%; max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

#wrapper .wfa .wfa-h2 { font-family: inherit; font-size: 32px; font-weight: 500; line-height: 1.25; letter-spacing: 0; text-transform: none; text-align: center; color: var(--wfa-navy); }

/* ---------- 1) Apertura ---------- */
.wfa-banner { display: block; width: 100vw; margin-left: calc(50% - 50vw); }
.wfa-banner__img { display: block; width: 100%; height: 420px; object-fit: cover; }
.wfa-head { padding-top: 40px; text-align: center; }
#wrapper .wfa .wfa-title { font-family: inherit; font-size: 52px; font-weight: 500; line-height: 1.1; letter-spacing: 0; text-transform: none; color: var(--wfa-navy); }
#wrapper .wfa .wfa-lead { max-width: 100%; margin: 14px auto 0; font-size: 18px; line-height: 1.6; color: var(--wfa-gray); text-wrap: balance; }

/* ---------- 2) Nuestra historia ---------- */
.wfa-story { margin-top: 96px; }
.wfa-story__box { max-width: 640px; margin: 0 auto; text-align: center; }
.wfa-rule { display: block; width: 40px; height: 1px; margin: 18px auto 28px; background: var(--wfa-gold); }
#wrapper .wfa .wfa-story__p { font-size: 17px; line-height: 1.8; text-align: center; color: var(--wfa-navy); }
#wrapper .wfa .wfa-story__p + .wfa-story__p { margin-top: 22px; }
/* Frase destacada: mismo texto, un poco más grande y con más aire arriba y abajo. */
#wrapper .wfa .wfa-story__p.wfa-story__p--lead { margin-top: 30px; margin-bottom: 8px; font-size: 24px; font-weight: 400; font-style: normal; line-height: 1.4; color: var(--wfa-navy); }
#wrapper .wfa .wfa-story__p.wfa-story__p--lead + .wfa-story__p { margin-top: 30px; }

/* ---------- 3) Qué nos guía ---------- */
.wfa-values { margin-top: 96px; }
#wrapper .wfa .wfa-values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.wfa-value { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; text-align: center; }
.wfa .wfa-value__ico { flex: none; color: var(--wfa-gold); }
#wrapper .wfa .wfa-value__title { margin-top: 18px; font-family: inherit; font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--wfa-navy); }
#wrapper .wfa .wfa-value__text { max-width: 230px; margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--wfa-gray); }

/* ---------- 4) La familia ---------- */
.wfa-family { width: 100vw; margin: 96px 0 0 calc(50% - 50vw); padding: 80px 0; background: var(--wfa-cream); }
#wrapper .wfa .wfa-family__text { max-width: 600px; margin: 18px auto 0; font-size: 17px; line-height: 1.7; text-align: center; color: var(--wfa-gray); text-wrap: balance; }

.wfa-carousel { position: relative; width: min(960px, calc(100% - 128px)); margin: 48px auto 0; }
.wfa-stage { position: relative; }
.wfa-track {
    display: flex; gap: 32px; margin: 0; padding: 0;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.wfa-track::-webkit-scrollbar { display: none; }
.wfa-track:focus-visible { outline: 2px solid var(--wfa-navy); outline-offset: 4px; }
.wfa-slide { flex: 0 0 calc((100% - 64px) / 3); min-width: 0; margin: 0; scroll-snap-align: start; }
.wfa-photo { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #E9E1D8; }
.wfa-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
/* Velo crema para unificar el tono; no bloquea los clics. */
.wfa-photo::after { content: ''; position: absolute; inset: 0; background: rgba(249, 244, 240, .10); pointer-events: none; }
#wrapper .wfa .wfa-caption { margin-top: 14px; font-size: 15px; line-height: 1.4; text-align: center; color: var(--wfa-gray); }

/* Flechas oficiales de White Fox (las del hero tvcmsslider) */
#wrapper .wfa .wfa-arrow {
    position: absolute; top: calc(50% - 18px); z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; min-height: 0; margin: -24px 0 0; padding: 0;
    background: #fff; border: 1px solid rgba(30, 42, 58, .18); border-radius: 50%;
    box-shadow: 0 4px 14px rgba(30, 42, 58, .12);
    color: #1E2A3A; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
#wrapper .wfa .wfa-arrow--prev { left: -72px; }
#wrapper .wfa .wfa-arrow--next { right: -72px; }
#wrapper .wfa .wfa-arrow .material-icons { width: auto; height: auto; font-size: 22px; line-height: 1; color: #1E2A3A; cursor: pointer; }
#wrapper .wfa .wfa-arrow:focus-visible { outline: 2px solid var(--wfa-navy); outline-offset: 3px; }
#wrapper .wfa .wfa-arrow[disabled] { opacity: .35; cursor: default; }
@media (hover: hover) and (min-width: 992px) {
    #wrapper .wfa .wfa-arrow:not([disabled]):hover { background: #F9F4F0; border-color: rgba(30, 42, 58, .32); box-shadow: 0 5px 16px rgba(30, 42, 58, .16); }
}

/* Puntitos de 7 px (los arma wf-about.js) */
.wfa-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.wfa-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; transition: background-color .15s ease; }
.wfa-dot.is-active { background: var(--wfa-navy); }

/* ---------- 5) Cierre ---------- */
.wfa-close { margin-top: 96px; text-align: center; }
#wrapper .wfa .wfa-close__title { max-width: 640px; margin: 0 auto; font-family: inherit; font-size: 28px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--wfa-navy); text-wrap: balance; }
#wrapper .wfa .wfa-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 32px; padding: 0 36px;
    background: var(--wfa-navy); color: var(--wfa-cream); border: 1px solid var(--wfa-navy); border-radius: 0; box-shadow: none;
    font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
#wrapper .wfa .wfa-btn:hover { background: #2B3B50; border-color: #2B3B50; color: var(--wfa-cream); text-decoration: none; }
#wrapper .wfa .wfa-btn:focus-visible { outline: 2px solid var(--wfa-gold); outline-offset: 2px; }
#wrapper .wfa .wfa-insta { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 24px auto 0; font-size: 15px; line-height: 1.4; color: var(--wfa-navy); text-decoration: underline; text-underline-offset: 4px; }
#wrapper .wfa .wfa-insta svg { flex: none; color: var(--wfa-gold); }
#wrapper .wfa .wfa-insta:hover { color: var(--wfa-gold); }

/* ---------- Celular y tablet ---------- */
@media (max-width: 991px) {
    .wfa { padding-bottom: 56px; }
    #wrapper .wfa .wfa-h2 { font-size: 26px; }
    .wfa-head { padding-top: 28px; }
    #wrapper .wfa .wfa-title { font-size: 34px; }
    #wrapper .wfa .wfa-lead { margin-top: 12px; font-size: 16px; }

    .wfa-story, .wfa-values, .wfa-close { margin-top: 56px; }
    .wfa-rule { margin: 14px auto 22px; }
    #wrapper .wfa .wfa-story__p { font-size: 16px; }
    #wrapper .wfa .wfa-story__p.wfa-story__p--lead { font-size: 20px; }
    #wrapper .wfa .wfa-values__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; margin-top: 32px; }
    .wfa .wfa-value__ico { width: 28px; height: 28px; }
    #wrapper .wfa .wfa-value__title { margin-top: 14px; font-size: 16px; }
    #wrapper .wfa .wfa-value__text { font-size: 14px; }

    .wfa-family { margin-top: 56px; padding: 56px 0; }
    #wrapper .wfa .wfa-family__text { font-size: 16px; }
    /* Celular: una foto y el borde de la siguiente; se desliza con el dedo, sin flechas. */
    .wfa-carousel { width: auto; margin: 32px -20px 0; }
    .wfa-track { gap: 12px; padding: 0 20px; scroll-padding-left: 20px; }
    .wfa-slide { flex: 0 0 82%; scroll-snap-stop: always; }
    #wrapper .wfa .wfa-arrow { display: none; }
    .wfa-dots { margin-top: 22px; }

    #wrapper .wfa .wfa-close__title { font-size: 22px; }
    #wrapper .wfa .wfa-btn { width: 100%; margin-top: 26px; }
}
