/* Shared home menu and footer, rendered through the two theme patterns. */
body.afz-site-chrome {
	--afz-chrome-gut: clamp(24px, 7.4vw, 118px);
	--afz-chrome-height: 86px;
	--afz-chrome-navy: #1a1e2b;
	--afz-chrome-menu: #272e42;
	--afz-chrome-cyan: #70bfeb;
	--afz-chrome-steel: #88a3b4;
}
body.afz-site-chrome.afzh { --sbar: 0px; --header: var(--afz-chrome-height); padding-top: 0; }
body.afz-site-chrome .afzh-b { --header: var(--afz-chrome-height); }
body.afz-site-chrome:not(.afzh):not(.afz-home-edu) .site-content { padding-top: var(--afz-chrome-height); }

body.afz-site-chrome .cab,
body.afz-site-chrome .pie { box-sizing: border-box; font-family: 'Indivisible HOME', Indivisible, 'Helvetica Neue', Arial, sans-serif; }
body.afz-site-chrome .cab *, body.afz-site-chrome .pie * { box-sizing: border-box; }
body.afz-site-chrome .cab { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--afz-chrome-height); display: flex; align-items: center; gap: clamp(16px,2.4vw,40px); padding-inline: var(--afz-chrome-gut); background: var(--afz-chrome-menu); border-bottom: 1px solid rgba(255,255,255,.14); transition: border-color .35s; }
body.afz-site-chrome .cab.is-stuck { border-bottom-color: transparent; }
body.afz-site-chrome .cab__marca { display: flex; align-items: center; flex: none; text-decoration: none; }
body.afz-site-chrome .cab__logo { display: block; width: 151px; height: auto; max-width: none; }
body.afz-site-chrome .cab__nav { display: flex; align-items: center; gap: clamp(12px,1.8vw,30px); margin-left: auto; }
body.afz-site-chrome .cab__nav a { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 12.5px; line-height: 15.5px; font-weight: 600; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
body.afz-site-chrome .cab__nav a:hover { color: var(--afz-chrome-cyan); }
body.afz-site-chrome .cab__nav svg { flex: none; }
body.afz-site-chrome .cab__cta { display: flex; align-items: center; justify-content: center; gap: 9px; flex: none; width: 154px; height: 52px; border-radius: 6px; background: var(--afz-chrome-cyan); color: #272e42; font-size: 12.5px; line-height: 1; font-weight: 600; letter-spacing: .06em; text-decoration: none; transition: background-color .25s; }
body.afz-site-chrome .cab__cta:hover { background: #4faee2; }
body.afz-site-chrome .cab__eng, body.afz-site-chrome .cab__secondary { flex: none; color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 3px; }
body.afz-site-chrome .cab__secondary { margin-left: -16px; }
body.afz-site-chrome .cab__nav .cab__language-mobile, body.afz-site-chrome .cab__nav .cab__language-secondary { display: none; }
body.afz-site-chrome .cab__menu { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
body.afz-site-chrome .cab__menu span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
body.afz-site-chrome .cab.is-menu-open .cab__menu span:first-child { transform: translateY(7px) rotate(45deg); }
body.afz-site-chrome .cab.is-menu-open .cab__menu span:nth-child(2) { opacity: 0; }
body.afz-site-chrome .cab.is-menu-open .cab__menu span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* The Services label navigates; its adjacent button controls the mega menu. */
body.afz-site-chrome .cab__nav { height: 100%; }
body.afz-site-chrome .cab__services { display: flex; align-items: center; height: 100%; gap: 2px; }
body.afz-site-chrome .cab__services-toggle { display: grid; place-items: center; flex: none; width: 30px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
body.afz-site-chrome .cab__services-toggle:hover,
body.afz-site-chrome .cab__services-toggle[aria-expanded="true"] { color: var(--afz-chrome-cyan); }
body.afz-site-chrome .cab__services-toggle svg { transition: transform .2s; }
body.afz-site-chrome .cab__services-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
body.afz-site-chrome .cab a:focus-visible,
body.afz-site-chrome .cab button:focus-visible { outline: 2px solid var(--afz-chrome-cyan); outline-offset: 4px; }
body.afz-site-chrome .cab__mega { position: absolute; top: 100%; left: 0; right: 0; padding: 28px var(--afz-chrome-gut) 38px; max-height: calc(100vh - var(--afz-chrome-height)); max-height: calc(100dvh - var(--afz-chrome-height)); overflow-y: auto; border-top: 2px solid var(--afz-chrome-cyan); background: var(--afz-chrome-menu); box-shadow: 0 18px 30px rgba(0,0,0,.2); }
body.afz-site-chrome .cab__mega[hidden] { display: none; }
body.afz-site-chrome .cab__mega-head { max-width: 1360px; margin: 0 auto 26px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.16); }
body.afz-site-chrome .cab__mega a { white-space: normal; font-size: 15px; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
body.afz-site-chrome .cab__mega-head a { display: inline-flex; gap: 14px; font-weight: 600; color: var(--afz-chrome-cyan); }
body.afz-site-chrome .cab__mega-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 28px; max-width: 1360px; margin: auto; }
body.afz-site-chrome .cab__mega-col { min-width: 0; padding-left: 18px; border-left: 1px solid var(--afz-chrome-steel); }
body.afz-site-chrome .cab__mega a.cab__mega-title { align-items: flex-start; min-height: 64px; margin-bottom: 20px; font-size: 20px; line-height: 24px; font-weight: 500; color: var(--afz-chrome-cyan); }
body.afz-site-chrome .cab__mega-col--avant { border-left-color: #63be88; }
body.afz-site-chrome .cab__mega-col--avant a.cab__mega-title { color: #63be88; }
body.afz-site-chrome .cab__mega-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
body.afz-site-chrome .cab__mega-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

body.afz-site-chrome .pie { margin: 0; padding: 36px 40px 24px; background: var(--afz-chrome-navy); color: #fff; font-size: 16px; line-height: 1.75; }
body.afz-site-chrome .pie a { color: inherit; text-decoration: none; }
body.afz-site-chrome .pie__top { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 44px; }
body.afz-site-chrome .pie__logo { display: block; width: 184px; height: auto; }
body.afz-site-chrome .pie__social { display: flex; align-items: center; gap: 12px; }
body.afz-site-chrome .pie__follow { margin-right: 6px; font-size: 16px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
body.afz-site-chrome .pie__social a { display: grid; place-items: center; width: 28px; height: 28px; color: var(--afz-chrome-steel); transition: color .3s, transform .3s; }
body.afz-site-chrome .pie__social a:hover { color: var(--afz-chrome-cyan); transform: translateY(-2px); }
body.afz-site-chrome .pie__mapa { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 40px; border-top: 1px solid rgba(255,255,255,.18); padding: 40px 0 52px; }
body.afz-site-chrome .pie__col h3 { margin: 0 0 16px; color: var(--afz-chrome-steel); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
body.afz-site-chrome .pie__col ul { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
body.afz-site-chrome .pie__col a { font-size: 15px; line-height: 22px; opacity: .85; }
body.afz-site-chrome .pie__col a:hover { opacity: 1; text-decoration: underline; }
body.afz-site-chrome .pie__tel { display: block; margin-bottom: 6px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
body.afz-site-chrome .pie__tel-etq { display: block; margin-bottom: 2px; font-size: 13px; line-height: 20px; opacity: .7; }
body.afz-site-chrome .pie__bottom { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.18); font-size: 13px; line-height: 28px; letter-spacing: .01em; }
body.afz-site-chrome .pie__copy { margin: 0; font-weight: 600; }
body.afz-site-chrome .pie__legal { display: flex; flex-wrap: wrap; gap: 26px; opacity: .75; }
body.afz-site-chrome .pie__legal a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 1250px) {
	body.afz-site-chrome .cab__menu { display: flex; margin-left: auto; }
	body.afz-site-chrome .cab__nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s ease, transform .3s cubic-bezier(.22,.61,.36,1), visibility 0s linear .3s; position: absolute; top: 100%; left: 0; right: 0; height: auto; max-height: calc(100vh - var(--afz-chrome-height)); max-height: calc(100dvh - var(--afz-chrome-height)); overflow-y: auto; margin: 0; padding: 20px var(--afz-chrome-gut) 26px; background: var(--afz-chrome-menu); box-shadow: 0 18px 30px rgba(0,0,0,.2); flex-direction: column; align-items: stretch; gap: 0; }
	body.afz-site-chrome .cab.is-menu-open .cab__nav { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; transition-delay: 0s; }
	body.afz-site-chrome .cab__nav a { min-height: 48px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 14px; line-height: 24px; }
	body.afz-site-chrome .cab__services { flex-wrap: wrap; height: auto; gap: 0; }
	body.afz-site-chrome .cab__services-link { flex: 1; }
	body.afz-site-chrome .cab__services-toggle { width: 44px; height: 48px; border-bottom: 1px solid rgba(255,255,255,.16); }
	body.afz-site-chrome .cab__mega { position: static; flex-basis: 100%; padding: 24px 0; max-height: none; overflow: visible; border-top: 0; box-shadow: none; }
	body.afz-site-chrome .cab__mega-head { margin-bottom: 24px; padding-bottom: 0; border: 0; }
	body.afz-site-chrome .cab__mega-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
	body.afz-site-chrome .cab__mega a { min-height: 44px; padding: 8px 0; border: 0; }
	body.afz-site-chrome .cab__mega a.cab__mega-title { min-height: 0; margin-bottom: 8px; font-size: 18px; }
	body.afz-site-chrome .cab__mega-list { gap: 0; }
}
@media (max-width: 1100px) { body.afz-site-chrome .pie__mapa { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 780px) {
	body.afz-site-chrome { --afz-chrome-height: 72px; --afz-chrome-gut: clamp(20px,6vw,32px); }
	body.afz-site-chrome .cab { gap: 10px; }
	body.afz-site-chrome .cab__logo { width: 130px; }
	body.afz-site-chrome .cab__cta { width: 116px; height: 44px; font-size: 11px; }
	body.afz-site-chrome .cab__mega-grid { grid-template-columns: minmax(0,1fr); }
	body.afz-site-chrome .pie { padding: 36px var(--afz-chrome-gut) 28px; }
	body.afz-site-chrome .pie__top { flex-wrap: wrap; gap: 24px; padding-bottom: 32px; }
	body.afz-site-chrome .pie__mapa { grid-template-columns: 1fr; }
	body.afz-site-chrome .pie__bottom { align-items: flex-start; flex-direction: column; gap: 20px; }
	body.afz-site-chrome .pie__legal { gap: 10px 20px; }
}
@media (max-width: 480px) {
	body.afz-site-chrome .cab__logo { width: 118px; }
	body.afz-site-chrome .cab__cta { width: 104px; }
	body.afz-site-chrome .cab__eng, body.afz-site-chrome .cab__secondary { display: none; }
	body.afz-site-chrome .cab__nav .cab__language-mobile, body.afz-site-chrome .cab__nav .cab__language-secondary { display: flex; }
	body.afz-site-chrome .cab__menu { width: 42px; height: 42px; }
}

/* October review: portal strip and three footer columns. */
body.afz-site-chrome { --afz-chrome-height: 116px; }
body.afz-site-chrome .cab { padding-top: 30px; }
body.afz-site-chrome .cab__portals { position:absolute; inset:0 0 auto; height:30px; display:flex; justify-content:flex-end; align-items:center; gap:22px; padding-inline:var(--afz-chrome-gut); background:#1a1e2b; }
body.afz-site-chrome .cab__portals a { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:600; line-height:1; color:#fff; text-decoration:none; }
body.afz-site-chrome .cab__portals svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; }
body.afz-site-chrome .pie__mapa { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:700px){body.afz-site-chrome {--afz-chrome-height:96px;}body.afz-site-chrome .cab__portals{justify-content:center;gap:16px;}body.afz-site-chrome .pie__mapa{grid-template-columns:1fr;}}
body.afz-site-chrome.afz-home-edu { --cab: var(--afz-chrome-height); }

/* One scroll controller, with native scrolling inside menus and carousels. */
html.lenis,html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth .cab__nav,.lenis.lenis-smooth .cab__mega { overscroll-behavior: contain; }
@media(prefers-reduced-motion:reduce){
 html { scroll-behavior: auto !important; }
 body.afz-site-chrome .cab__nav,body.afz-site-chrome .cab__menu span,body.afz-site-chrome .cab__services-toggle svg { transition: none; }
}

/* Services opens its menu without linking to a separate overview. */
body.afz-site-chrome .cab__services-link.cab__services-toggle { display:flex; align-items:center; justify-content:flex-start; gap:8px; width:auto; padding:0; font:inherit; font-size:12.5px; font-weight:600; letter-spacing:.06em; color:#fff; }
.afz-whatsapp { display:none; }
@media(max-width:1250px){body.afz-site-chrome .cab__services-link.cab__services-toggle{width:100%;min-height:48px;font-size:14px;border-bottom:1px solid rgba(255,255,255,.16);}}
@media(max-width:780px){.afz-whatsapp{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:90;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#168d43;color:#fff;box-shadow:0 4px 16px rgba(0,0,0,.2);}.afz-whatsapp:focus-visible{outline:3px solid #70bfeb;outline-offset:4px;}}

/* Mobile breadcrumb clearance for the shared Afianza page heroes. */
@media (max-width: 780px) {
  .afzh-crumbs {
    right: var(--pad, var(--gut));
    top: calc(var(--stack) + 16px);
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: calc(100% - 2 * var(--pad, var(--gut)));
  }
  .afzh-crumbs a,
  .afzh-crumbs svg { flex-shrink: 0; }
  .afzh-crumbs > span { flex: 1; min-width: 0; overflow-wrap: break-word; }
  .afzp-shero { padding-top: calc(var(--header) + 64px); }
  .afzs-shero { padding-top: calc(var(--header) + 88px); }
}
@media (max-width: 360px) {
  body.afz-site-chrome .cab { gap: 8px; max-width: 100vw; }
  body.afz-site-chrome .cab__menu { margin-left: 0; }
  .afzp-card__title { font-size: 28px; line-height: 32px; }
}

/* Cambios 27/10: home and Contacto swap the portal strip for the company-type switch (BotonesOKAfianza). */
body.afz-site-chrome.afz-brand-switch { --afz-switch:120px; --afz-chrome-height:calc(var(--afz-switch) + 86px); }
body.afz-site-chrome.afz-brand-switch .cab { padding-top:var(--afz-switch); transition:border-color .35s, transform .35s cubic-bezier(.22,.61,.36,1); }
body.afz-site-chrome.afz-brand-switch .cab.is-stuck:not(.is-menu-open) { transform:translateY(calc(-1 * var(--afz-switch))); }
body.afz-site-chrome .cab__switch { position:absolute; inset:0 0 auto; height:var(--afz-switch); display:flex; align-items:center; gap:40px; padding-inline:var(--afz-chrome-gut); background:#fff; color:#272e42; }
body.afz-site-chrome .cab__switch-label { margin:0; font-size:20px; line-height:1.2; font-weight:500; white-space:nowrap; }
body.afz-site-chrome .cab__switch-options { display:flex; gap:24px; }
body.afz-site-chrome .cab__switch-option { display:flex; align-items:center; justify-content:center; gap:12px; min-width:274px; height:50px; padding-inline:28px; border-radius:25px; white-space:nowrap; background:#e8eff5; color:#8994a3; font-size:14px; font-weight:600; letter-spacing:.01em; line-height:1; text-decoration:none; transition:background-color .25s, color .25s; }
body.afz-site-chrome .cab__switch-option:hover { background:#dfe2e8; color:#272e42; }
body.afz-site-chrome .cab__switch-option svg { width:22px; height:22px; flex:none; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linejoin:round; }
body.afz-site-chrome .cab__switch-option.is-current { background:#e8eff5; color:#2d354c; box-shadow:0 0 0 2px rgba(112,191,235,.8), 0 0 12px 4px rgba(112,191,235,.95); }
body.afz-site-chrome .cab__switch-option.is-current span { text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:6px; }
body.afz-site-chrome .cab__switch .cab__client { position:absolute; right:var(--afz-chrome-gut); bottom:14px; display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:600; line-height:1; color:#1a1e2b; text-decoration:none; }
body.afz-site-chrome .cab__switch .cab__client svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; }
@media (max-width:1100px) {
	body.afz-site-chrome .cab__switch { gap:24px; }
	body.afz-site-chrome .cab__switch-label { font-size:17px; }
	body.afz-site-chrome .cab__switch-options { gap:14px; }
	body.afz-site-chrome .cab__switch-option { min-width:0; padding-inline:22px; }
}
@media (max-width:780px) {
	body.afz-site-chrome.afz-brand-switch { --afz-switch:96px; --afz-chrome-height:calc(var(--afz-switch) + 86px); }
	body.afz-site-chrome .cab__switch { flex-wrap:wrap; align-content:center; gap:10px; }
	body.afz-site-chrome .cab__switch-label { font-size:14px; }
	body.afz-site-chrome .cab__switch-options { flex:1 0 100%; gap:10px; }
	body.afz-site-chrome .cab__switch-option { flex:1 1 0; gap:8px; height:auto; min-height:42px; padding:5px 10px; font-size:10.5px; white-space:normal; text-align:center; line-height:1.35; }
	body.afz-site-chrome .cab__switch-option.is-current span { text-underline-offset:2px; }
	body.afz-site-chrome .cab__switch-option svg { width:18px; height:18px; }
	body.afz-site-chrome .cab__switch .cab__client { top:15px; bottom:auto; }
}
@media (max-width:700px) { body.afz-site-chrome.afz-brand-switch { --afz-chrome-height:calc(var(--afz-switch) + 66px); } }

/* Cambios 27/10 (doc «Cambios Afianza»): ES · EN · CA always listed, the current one highlighted (as on Afianza Avant). */
body.afz-site-chrome .cab__eng[aria-current], body.afz-site-chrome .cab__secondary[aria-current] { color: #70bfeb; text-decoration: none; }
body.afz-site-chrome .cab__nav .cab__language-mobile[aria-current], body.afz-site-chrome .cab__nav .cab__language-secondary[aria-current] { color: #70bfeb; }
