/* New home blocks reuse the existing palette, Montserrat and components. */
:root{--home-tools-gap:24px;--home-logo-height:24px;--home-logo-gap:56px;--home-carousel-dot:8px;--home-carousel-dot-color:#111;--home-carousel-dot-idle:#69746d}
.brand-logo-marquee .marquee-track{display:flex;width:max-content;animation:home-logo-loop 100s linear infinite}
.logo-marquee-group{display:flex;align-items:center;flex:none;gap:var(--home-logo-gap);padding:6px calc(var(--home-logo-gap)/2)}
.logo-marquee-item{display:block;flex:none}
.logo-marquee-item img{display:block;width:calc(var(--home-logo-height) * var(--logo-ratio));height:auto;max-width:none}
@keyframes home-logo-loop{to{transform:translateX(-50%)}}
.tools-grid{--od-cols:3;--od-gap:var(--home-tools-gap);align-items:stretch}
.tool-card{grid-template-rows:auto 1fr}
.tool-card figure{margin:0}
.tool-card .tool-card-body{padding:24px;gap:16px;align-items:flex-start}
.tool-card .tool-card-body h3{margin:0;font-size:20px;line-height:1.5;font-weight:600;letter-spacing:-.025em}
.tool-card .tool-card-body .btn{margin-top:auto;min-height:44px;white-space:nowrap}
.home-image-carousel{padding-bottom:48px}
.home-carousel-slides{min-width:0;aspect-ratio:1920 / 888;display:flex;align-items:center}
.home-carousel-slide{margin:0;width:100%}
.home-carousel-slide[hidden]{display:none}
.home-carousel-slide img{width:100%;height:auto;object-fit:contain}
.home-carousel-controls{justify-content:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.home-carousel-controls .carousel-dot{display:flex;align-items:center;justify-content:center;flex:none;width:44px;min-height:44px;padding:0;background:transparent;border:0;border-radius:50%;cursor:pointer}
.carousel-dot span{display:block;width:var(--home-carousel-dot);height:var(--home-carousel-dot);border-radius:50%;background:var(--home-carousel-dot-idle);transition:transform 200ms ease-out,background-color 200ms ease-out}
.carousel-dot[aria-current=true] span{background:var(--home-carousel-dot-color);transform:scale(1.4)}
.carousel-dot:focus-visible{outline:2px solid var(--home-carousel-dot-color);outline-offset:0}
@media(hover:hover){.carousel-dot:hover span{background:var(--home-carousel-dot-color)}}
@media(max-width:767px){.tools-grid{--od-cols:1}.tool-card .tool-card-body{padding:20px}.home-image-carousel{padding-bottom:32px}.home-carousel-controls{gap:8px}}
@media(prefers-reduced-motion:reduce){.brand-logo-marquee .marquee-track{animation:none;display:block;width:100%}.logo-marquee-group{flex-wrap:wrap;justify-content:center;gap:24px;padding:16px}.logo-marquee-group[aria-hidden=true]{display:none}}

@media(prefers-reduced-motion:reduce){.carousel-dot span{transition:none}}

/* Refinamiento local v2: banda institucional y herramientas según referencia. */
.home-refined .wong-family{--family-gap:32px;--home-family-padding:24px;padding-block:24px;margin-top:0}
.home-refined .wong-family-grid{grid-template-columns:180px minmax(0,1fr);gap:32px}
.home-refined .wong-family-brand{padding:16px 24px 16px 0;border-bottom:0;border-right:1px solid var(--family-rule)}
.home-refined .wong-family-brand img{max-width:156px}
.home-refined .wong-family-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 32px;align-items:center}
.home-refined .wong-family-copy .eyebrow,.home-refined .wong-family-copy h2,.home-refined .wong-family-copy p{grid-column:1}
.home-refined .wong-family-copy h2{font-size:28px;line-height:1.2}
.home-refined .wong-family-copy p{max-width:70ch;font-size:16px;line-height:1.5}
.home-refined .wong-family-copy .wong-family-button{grid-column:2;grid-row:1 / span 3;max-width:240px;padding:12px 16px;font-size:14px}
.tools-reference{--tool-green:#377b4e;--tool-surface:#eff8f1;--tool-radius:16px;--tool-gap:24px;--tool-motion:220ms;background:var(--white);color:var(--ink)}
.tools-reference-layout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--tool-gap);align-items:start}
.tools-reference-intro{--od-gap:16px;grid-column:1 / -1;max-width:640px;align-items:flex-start;padding-block:0;margin-bottom:8px}
.tools-reference-intro .eyebrow{margin:0;font-size:11px;line-height:1.6;letter-spacing:.2em;font-weight:600}
.tools-reference .tools-reference-intro h2{margin:8px 0 0;font-size:clamp(32px,3.2vw,48px);line-height:1.06;letter-spacing:-.045em;font-weight:800;text-wrap:balance}
.tools-reference-intro p{margin:0;font-size:16px;line-height:1.6;font-weight:400;max-width:52ch}
.tools-reference-rule{display:block;width:72px;height:4px;background:#58ad5d;margin-top:8px;border-radius:4px}
.tool-reference-card{color:var(--ink);text-decoration:none;border:0;border-radius:var(--tool-radius);background:var(--tool-surface);grid-template-rows:auto 1fr;align-self:stretch;min-width:0;transition:transform var(--tool-motion) ease-out,box-shadow var(--tool-motion) ease-out}
.tool-reference-media{display:block;position:relative;border-radius:var(--tool-radius);--tool-overlay-opacity:.1}
.tool-reference-media>.od-media{border-radius:inherit;width:100%;height:auto;display:block}
.tool-reference-media::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;background:var(--mint);opacity:var(--tool-overlay-opacity);pointer-events:none}
.tool-reference-caption{display:grid;grid-template-columns:44px minmax(0,1fr) 24px;gap:12px;align-items:center;padding:24px 16px;min-height:112px}
.tool-reference-icon{display:flex;align-items:center;padding-right:12px;border-right:1px solid #9bc6a7;color:var(--tool-green);min-height:40px}
.tool-reference-icon svg{display:block;width:32px;height:32px;flex:none}
.tool-reference-caption h3{margin:0;font-size:clamp(16px,1.35vw,20px);line-height:1.3;font-weight:700;letter-spacing:-.04em;overflow-wrap:normal}
.tool-reference-arrow{display:block;width:24px;height:24px;transition:transform var(--tool-motion) ease-out}
.tool-reference-card:focus-visible{outline:3px solid var(--tool-green);outline-offset:4px}
@media(hover:hover){.tool-reference-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px #1111}.tool-reference-card:hover .tool-reference-arrow{transform:translateX(4px)}}
@media(max-width:1100px){
 .tools-reference-layout{grid-template-columns:repeat(3,minmax(0,1fr))}
 .tools-reference-intro{grid-column:1 / -1;max-width:640px;--od-gap:16px;margin-bottom:8px}
 .tools-reference .tools-reference-intro h2{font-size:40px}
 .tools-reference-intro p{max-width:52ch}
 .home-refined .wong-family-grid{grid-template-columns:144px minmax(0,1fr);gap:24px}
 .home-refined .wong-family-copy{grid-template-columns:minmax(0,1fr)}
 .home-refined .wong-family-copy .wong-family-button{grid-column:1;grid-row:auto;justify-self:start;margin-top:4px}
}
@media(max-width:767px){
 .home-refined .wong-family{padding-block:24px}
 .home-refined .wong-family-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .home-refined .wong-family-brand{padding:0;border:0;justify-content:flex-start}
 .home-refined .wong-family-brand img{max-width:144px}
 .home-refined .wong-family-copy{gap:8px}
 .home-refined .wong-family-copy h2{font-size:24px}
 .tools-reference-layout{grid-template-columns:minmax(0,1fr);gap:24px}
 .tools-reference-intro{grid-column:auto;margin-bottom:8px}
 .tools-reference .tools-reference-intro h2{font-size:36px;max-width:14ch;text-wrap:initial}
 .tool-reference-caption{min-height:96px;grid-template-columns:48px minmax(0,1fr) 24px;padding:20px;gap:16px}
 .tool-reference-caption h3{font-size:20px}
}
@media(prefers-reduced-motion:reduce){.tool-reference-card,.tool-reference-arrow{transition:none}.tool-reference-card:hover,.tool-reference-card:hover .tool-reference-arrow{transform:none}}

/* Marcas bajo Herramientas: composición blanca y movimiento continuo. */
.brand-showcase{--brand-track-speed:80s;--brand-item-width:176px;--brand-item-gap:64px;--brand-row-height:112px;background:var(--white);color:var(--ink);padding-block:24px 48px}
.brand-showcase .section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.brand-showcase .section-heading h2{margin:0}
.brand-showcase .section-heading>a{flex:none;min-height:44px;display:inline-flex;align-items:center;gap:16px}
.brand-showcase-window{overflow:hidden;border-block:1px solid var(--line);padding-block:8px}
.brand-showcase-track{display:flex;width:max-content;animation:home-logo-loop var(--brand-track-speed) linear infinite}
.brand-showcase-group{display:flex;align-items:center;gap:var(--brand-item-gap);padding-inline:calc(var(--brand-item-gap)/2);flex:none}
.brand-showcase-item{display:flex;align-items:center;justify-content:center;flex:none;width:var(--brand-item-width);min-height:var(--brand-row-height)}
.brand-showcase-item a{display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:8px;color:var(--ink);text-decoration:none;border-radius:4px}
.brand-showcase-item img{display:block;width:auto;height:auto;max-width:160px;max-height:40px;filter:brightness(0);transition:opacity 200ms ease-out}
.brand-showcase:focus-within .brand-showcase-track{animation-play-state:paused}
.brand-showcase-item a:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
@media(hover:hover){.brand-showcase:hover .brand-showcase-track{animation-play-state:paused}.brand-showcase-item a:hover img{opacity:.7}}
@media(max-width:767px){.brand-showcase{--brand-item-width:144px;--brand-item-gap:32px;--brand-row-height:88px;padding-block:16px 32px}.brand-showcase .section-heading{flex-wrap:wrap;gap:8px;margin-bottom:16px}.brand-showcase .section-heading h2{font-size:30px}.brand-showcase-item img{max-width:128px;max-height:32px}}
@media(prefers-reduced-motion:reduce){.brand-showcase-track{animation:none;width:100%;display:block}.brand-showcase-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;padding:8px}.brand-showcase-group[aria-hidden=true]{display:none}.brand-showcase-item{width:100%}.brand-showcase-item img{transition:none}}

/* Ajuste local v4: herramientas negras y mayor presencia de Nosotros. */
.tools-reference{--tool-surface:var(--mint);--tool-card-foreground:var(--ink);--tool-divider:#91b591}
.tool-reference-card{color:var(--tool-card-foreground)}
.tool-reference-icon{color:var(--tool-card-foreground);border-right-color:var(--tool-divider)}
.tool-reference-caption h3,.tool-reference-arrow{color:var(--tool-card-foreground)}
.home-refined .wong-family{--home-family-padding:48px;--family-gap:48px;padding-block:var(--home-family-padding)}
.home-refined .wong-family-grid{grid-template-columns:minmax(200px,.85fr) minmax(0,1.45fr);gap:var(--family-gap)}
.home-refined .wong-family-brand{padding:24px 48px 24px 0}
.home-refined .wong-family-brand img{max-width:240px}
.home-refined .wong-family-copy{grid-template-columns:minmax(0,1fr);gap:16px}
.home-refined .wong-family-copy h2{font-size:clamp(32px,3vw,40px)}
.home-refined .wong-family-copy p{font-size:18px;line-height:1.6;max-width:60ch}
.home-refined .wong-family-copy .wong-family-button{grid-column:1;grid-row:auto;justify-self:start;max-width:100%;padding:12px 20px;font-size:16px;margin-top:4px}
@media(max-width:1023px){.home-refined .wong-family{--family-gap:32px}.home-refined .wong-family-grid{grid-template-columns:minmax(200px,.85fr) minmax(0,1.45fr)}.home-refined .wong-family-brand{padding:24px 32px 24px 0}.home-refined .wong-family-brand img{max-width:180px}}
@media(max-width:767px){.home-refined .wong-family{--home-family-padding:32px;--family-gap:24px}.home-refined .wong-family-grid{grid-template-columns:minmax(0,1fr)}.home-refined .wong-family-brand{padding:0;border:0}.home-refined .wong-family-brand img{max-width:180px}.home-refined .wong-family-copy{gap:12px}.home-refined .wong-family-copy h2{font-size:32px}.home-refined .wong-family-copy p{font-size:16px}}
