/* Mayorista landing (/main) · v9 «Flotante». Linked only from screen_landing, after g3.css (shared tokens, header row,
   buttons, wave, footer); every rule here is scoped to html.g3-home.
   Composite placement is precomputed from compuesto/manifest.json (canvas 1254, set scale 1.14, alimentos ×1.2). */

/* hero */
.g3-home .hero{position:relative;isolation:isolate;color:var(--white);
  background:radial-gradient(120% 90% at 18% 0%,var(--navy-hi) 0%,rgba(69,85,140,0) 55%),
             radial-gradient(90% 120% at 100% 100%,var(--navy-lo) 0%,rgba(50,63,110,0) 60%),var(--navy);
  padding-bottom:44px}
.g3-home .hero .light i:first-child{background:repeating-linear-gradient(118deg,rgba(255,255,255,0) 0 70px,rgba(255,255,255,.055) 120px,rgba(255,255,255,0) 170px,rgba(255,255,255,0) 260px);
  -webkit-mask:radial-gradient(70% 90% at 15% 10%,#000 0%,transparent 75%);mask:radial-gradient(70% 90% at 15% 10%,#000 0%,transparent 75%)}
.g3-home .hero .light i+i{background:repeating-linear-gradient(118deg,rgba(20,28,60,0) 0 110px,rgba(20,28,60,.10) 150px,rgba(20,28,60,0) 200px,rgba(20,28,60,0) 330px);
  -webkit-mask:radial-gradient(80% 90% at 70% 60%,#000 0%,transparent 80%);mask:radial-gradient(80% 90% at 70% 60%,#000 0%,transparent 80%)}
.g3-home .hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;padding-top:4px}
.g3-home .hero h1{margin:0 0 20px;font-size:clamp(40px,4.9vw,70px);line-height:1.02;letter-spacing:-.035em;font-weight:760}
.g3-home .lede{margin:0 0 30px;font-size:16px;line-height:1.55;color:rgba(255,253,253,.94)}
.g3-home .actions{display:flex;gap:22px;flex-wrap:wrap}
.g3-home .hello{margin:0 0 12px;font-size:15px;font-weight:600;color:rgba(255,253,253,.86)}
.g3-home .nav .quiet{font-size:14px;opacity:.82}
.g3-home .seal{width:290px;height:auto;display:block;margin:-34px 22px 0 0}

/* verticals */
.g3-home .verticales{position:relative;isolation:isolate;background:var(--cream);padding:6px 0 34px;margin-top:-1px;display:block}
.g3-home .verticales .light{inset:-40px 0 0}
.g3-home .verticales .light i:first-child{background:repeating-linear-gradient(62deg,rgba(120,96,60,0) 0 90px,rgba(120,96,60,.07) 135px,rgba(120,96,60,0) 185px,rgba(120,96,60,0) 300px);
  -webkit-mask:linear-gradient(100deg,#000 0%,rgba(0,0,0,.6) 45%,transparent 80%);mask:linear-gradient(100deg,#000 0%,rgba(0,0,0,.6) 45%,transparent 80%)}
.g3-home .verticales .light i+i{background:repeating-linear-gradient(62deg,rgba(255,255,255,0) 0 140px,rgba(255,255,255,.55) 190px,rgba(255,255,255,0) 240px,rgba(255,255,255,0) 360px);
  -webkit-mask:radial-gradient(60% 70% at 30% 70%,#000,transparent 80%);mask:radial-gradient(60% 70% at 30% 70%,#000,transparent 80%)}
.g3-home .vhead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.g3-home .vgrid{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));scroll-margin-top:24px}
.g3-home .vgrid li{min-width:0;display:flex}
.g3-home .col{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;padding-bottom:6px;-webkit-tap-highlight-color:transparent}
.g3-home .col:focus-visible{outline:none}
.g3-home .col:focus-visible .name{outline:3px solid var(--orange);outline-offset:6px;border-radius:8px}
.g3-home .stage{position:relative;width:100%;aspect-ratio:72/100}
.g3-home .rise{position:absolute;inset:0;transition:opacity .9s var(--glide),transform .9s var(--glide);transition-delay:calc(var(--i,0)*90ms + 60ms)}
/* hover / focus is the only motion: one ~5px lift, ~600ms ease-out, and back */
.g3-home .lift{position:absolute;inset:0;z-index:1;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.g3-home .col:hover .lift,.g3-home .col:focus-visible .lift{transform:translate3d(0,-5px,0)}
.g3-home .cmp{position:absolute;display:block;left:var(--d-l);top:var(--d-t);width:var(--d-w)}
.g3-home .cmp img{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.g3-home .floor{position:absolute;left:6%;right:6%;top:88%;height:10%;border-radius:50%;z-index:0;
  background:radial-gradient(closest-side,rgba(92,72,44,.40),rgba(92,72,44,.17) 52%,rgba(92,72,44,0));filter:blur(3px);transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1)}
.g3-home .col:hover .floor,.g3-home .col:focus-visible .floor{opacity:.72;transform:scale(1.06,1.04)}
.g3-home .label{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:14px;text-align:center}
.g3-home .name{font-size:22px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
/* 18.0.8.8.0: a división not yet open — dimmed, no link. 18.0.8.15.0: it lifts like the others, and as it lifts
   «Próximamente» forms where its shadow was: out of focus first, then sharp. No hover (tablets) or reduced motion: the
   word simply sits under the name. Phone: the card on top of the deck counts as hovered. */
.g3-home .prox{cursor:default}
.g3-home .prox .cmp{filter:grayscale(.7);opacity:.5}
.g3-home .prox .floor{opacity:.45}
.g3-home .prox .name{color:#6A7396}
.g3-home .prox:is(:hover,:focus-visible) .floor,.g3-home .deck li:not([aria-hidden="true"]) .prox .floor{opacity:.32}
.g3-home .prox:is(:hover,:focus-visible) .lift,.g3-home .deck li:not([aria-hidden="true"]) .prox .lift{transform:translate3d(0,-5px,0)}
.g3-home .soon{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#6A7396}
.g3-home .floorword{display:none}
@media (prefers-reduced-motion:no-preference) and (hover:hover),(prefers-reduced-motion:no-preference) and (max-width:640px){
  .g3-home .soon{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .g3-home .floorword{display:block;position:absolute;left:0;right:0;top:93%;translate:0 -50%;z-index:0;text-align:center;
    font-size:12px;font-weight:500;letter-spacing:.14em;text-indent:.14em;text-transform:uppercase;color:rgb(120,104,80);white-space:nowrap;
    opacity:0;filter:blur(6px);transform:scale(.9,.5);transition:opacity .26s ease,filter .26s ease,transform .3s ease,color .26s ease}
  .g3-home .prox:is(:hover,:focus-visible) .floorword,.g3-home .deck li:not([aria-hidden="true"]) .prox .floorword{color:#7A819F;opacity:1;filter:blur(0);transform:none;
    transition:opacity .5s ease .14s,filter .8s ease-in-out .14s,transform .8s cubic-bezier(.3,.6,.2,1) .14s,color .8s ease .14s}
  .g3-home .prox:is(:hover,:focus-visible) .floor,.g3-home .deck li:not([aria-hidden="true"]) .prox .floor{opacity:.14;transform:scale(1.16,1.12)}
}
@media (max-width:640px) and (prefers-reduced-motion:no-preference){
  .g3-home .floorword{top:calc(var(--m-st) + var(--m-sh) / 2);translate:0 calc(-50% + 10px)}
}

/* Preventa (18.0.8.15.0): the label above the headline; a click glides it into the title of its page */
@view-transition{navigation:auto}
.g3-home .pv-tag{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;padding:8px 16px;border-radius:999px;
  background:rgba(255,255,255,.10);color:#FFE3B0;font-size:14px;font-weight:600;text-decoration:none;view-transition-name:pv-titulo;
  animation:pv-tag 2.8s ease-in-out infinite;transition:background-color .3s ease}
.g3-home .pv-tag:hover{background:rgba(255,255,255,.18)}
.g3-home .pv-tag:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.g3-home .pv-tag svg{flex:none}
@keyframes pv-tag{0%,100%{box-shadow:0 0 0 1px rgba(255,214,140,.55),0 0 14px rgba(255,196,110,.40)}50%{box-shadow:0 0 0 1px rgba(255,224,160,.9),0 0 26px rgba(255,196,110,.70)}}

/* per-division placement: d = desktop/tablet stage (72:100), m = phone card stage (1:.74) + its floor shadow */
.g3-home .d-juguetes{--d-l:7.818%;--d-t:16.749%;--d-w:84.364%;--m-l:27.799%;--m-t:24.592%;--m-w:44.402%;--m-sl:33.642%;--m-sw:32.716%;--m-st:88.743%;--m-sh:10.135%}
.g3-home .d-bebe{--d-l:3.273%;--d-t:16.553%;--d-w:93.455%;--m-l:25.407%;--m-t:24.398%;--m-w:49.187%;--m-sl:31.872%;--m-sw:36.256%;--m-st:88.743%;--m-sh:10.135%}
.g3-home .d-cosmeticos{--d-l:15.364%;--d-t:17.011%;--d-w:69.273%;--m-l:31.770%;--m-t:24.851%;--m-w:36.459%;--m-sl:36.581%;--m-sw:26.838%;--m-st:88.743%;--m-sh:10.135%}
.g3-home .d-suministros{--d-l:3.409%;--d-t:21.069%;--d-w:93.182%;--m-l:25.478%;--m-t:28.859%;--m-w:49.043%;--m-sl:31.925%;--m-sw:36.150%;--m-st:88.743%;--m-sh:10.135%}
.g3-home .d-alimentos{--d-l:-5.800%;--d-t:-4.170%;--d-w:111.600%;--m-l:20.632%;--m-t:3.927%;--m-w:58.737%;--m-sl:28.352%;--m-sw:43.295%;--m-st:88.743%;--m-sh:10.135%}

/* tablet: 3 + 2 */
@media (max-width:1080px){
  .g3-home .hero-grid{grid-template-columns:minmax(0,1fr) 220px}
  .g3-home .seal{width:220px;margin:0}
}
/* tablet portrait: 3 + 2. A landscape tablet (≥ 901px) keeps the five in one row, so the page fits its screen */
@media (max-width:900px){
  .g3-home .vgrid{grid-template-columns:repeat(6,minmax(0,1fr));row-gap:28px;margin-top:-18px}
  .g3-home .vgrid li{grid-column:span 2}
  .g3-home .vgrid li:nth-of-type(4){grid-column:2 / span 2}
}
/* phone: «baraja» — a deck of cards. Without JS the five cards are a plain list; landing.js turns the list into a deck
   (ul.deck: every li in one grid cell, the top card whole and the next two peeking ~10px lower at .95 / .90) and adds the
   dots under it. Every card is the same height, sized so the deck and its dots fit an iPhone viewport with Safari bars.
   The stage is a 1:.74 box scaled to the card (--sw) and centred on its own content (via `translate`, which the desktop
   glide never transitions). */
@media (max-width:640px){
  .g3-home .hero{padding-bottom:72px}
  .g3-home .hero-grid{grid-template-columns:1fr;gap:6px}
  .g3-home .hero h1{font-size:40px;margin-bottom:14px}
  .g3-home .lede{font-size:15px;margin-bottom:22px}
  .g3-home .actions{gap:12px}.g3-home .btn{flex:1 1 100%;min-height:50px}
  .g3-home .seal{display:none}
  /* the divisions fill the space between the formed bar and the tab bar. Under the hero the deck sits close to the
     wave (14px, as before); as the wave flattens into the bar, landing.js glides it down to the center of that space,
     following the scroll, so the formed state has the same beige above and below (18.0.8.0.26) */
  .g3-home .verticales{display:flex;flex-direction:column;justify-content:flex-start;padding:14px 0 20px;
    min-height:calc(100vh - 64px - 64px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
  @supports (height:100svh){.g3-home .verticales{min-height:calc(100svh - 64px - 64px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}}
  .g3-home .verticales>.wide{align-self:stretch;width:auto;margin-inline:0}
  /* full-bleed clip box so a card gliding off is cut at the screen edge, never widening the page */
  .g3-home .verticales .wide{width:auto;padding-inline:16px;overflow-x:clip}
  .g3-home .vgrid{display:block;margin:0;padding:0;
    --vh:100vh;--card-h:clamp(360px,calc(var(--vh) - 240px - env(safe-area-inset-bottom,0px)),452px);--sw:min(142%,calc((var(--card-h) - 64px) * 1.32))}
  @supports (height:100svh){.g3-home .vgrid{--vh:100svh}}
  .g3-home .vgrid li{display:block;margin-bottom:14px}
  .g3-home .vgrid li:last-child{margin-bottom:0}
  .g3-home .col{height:var(--card-h);padding:14px 14px 18px;border-radius:18px;background:var(--white);overflow:hidden;
    box-shadow:0 1px 3px rgba(31,42,68,.07),0 10px 24px rgba(31,42,68,.08)}
  .g3-home .col:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
  .g3-home .col:focus-visible .name{outline:none}
  .g3-home .stage{flex:1 1 auto;min-height:0;aspect-ratio:auto}
  .g3-home .rise,.g3-home.js .col:not(.in) .rise{inset:auto;left:50%;top:50%;width:var(--sw);aspect-ratio:1/.74;opacity:1;
    transform:none;translate:-50% calc(var(--m-t) * -.5 - 49.45%);transition:none}
  .g3-home .cmp{left:var(--m-l);top:var(--m-t);width:var(--m-w)}
  .g3-home .floor{left:var(--m-sl);width:var(--m-sw);right:auto;top:var(--m-st);height:var(--m-sh);filter:blur(2px);
    background:radial-gradient(closest-side,rgba(92,72,44,.34),rgba(92,72,44,.13) 55%,rgba(92,72,44,0))}
  .g3-home .label{margin-top:4px}
  .g3-home .name{font-size:20px;font-weight:600;letter-spacing:-.015em;color:#2B3A6B}
  .g3-home .prox .name{color:#6A7396}
  /* the deck (landing.js): vertical page scroll stays native (pan-y); only horizontal drags move the top card */
  .g3-home .vgrid.deck{display:grid;grid-template-columns:minmax(0,1fr);padding-bottom:20px;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none}
  .g3-home .vgrid.deck.is-drag,.g3-home .vgrid.deck.is-drag *{cursor:grabbing}
  .g3-home .vgrid.deck li{grid-area:1/1;margin:0}
  .g3-home .deck li[aria-hidden="true"]{pointer-events:none}
  .g3-home .deck .col{transform-origin:50% 100%;will-change:transform;-webkit-user-drag:none;-webkit-touch-callout:none}
  .g3-home .vdots{justify-content:center;margin-top:6px}
  .g3-home .vdots button{display:flex;align-items:center;justify-content:center;padding:10px 5px;margin:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .g3-home .vdots i{display:block;width:6px;height:6px;border-radius:999px;background:rgba(43,58,107,.22);transition:width .5s cubic-bezier(.2,.7,.2,1),background-color .5s cubic-bezier(.2,.7,.2,1)}
  .g3-home .vdots [aria-current="true"] i{width:16px;background:#2B3A6B}
  .g3-home .vdots button:focus-visible{outline:none}
  .g3-home .vdots button:focus-visible i{box-shadow:0 0 0 2px var(--cream),0 0 0 5px var(--orange)}
  .g3-home .vdots{align-items:center}
  .g3-home .vdots .varrow{width:44px;height:44px;padding:0;color:#2B3A6B;opacity:.55}
  .g3-home .vdots .varrow.prev{margin-right:6px}.g3-home .vdots .varrow.next{margin-left:6px}
  .g3-home .vdots .varrow svg{width:20px;height:20px;display:block}
  .g3-home .vdots .varrow:active{opacity:.9}
  .g3-home .vdots .varrow:focus-visible{outline:none;opacity:1}
  .g3-home .vdots .varrow:focus-visible svg{border-radius:999px;box-shadow:0 0 0 3px var(--cream),0 0 0 6px var(--orange)}
}
.g3-home .vdots{display:none}
@media (max-width:640px){.g3-home .vdots{display:flex}}

/* phone: header row — «Iniciar sesión →» always on one line (360–430px) */
@media (max-width:640px){
  .g3-home .top{gap:12px}
  .g3-home .brand span{white-space:nowrap}
  .g3-home .nav{gap:16px;font-size:14px}
  .g3-home .nav a{gap:7px;flex:none}
}
@media (max-width:374px){
  .g3-home .brand{gap:10px}.g3-home .brand img{width:40px;height:40px}.g3-home .brand span{font-size:10.5px;letter-spacing:2.3px}
  .g3-home .nav{gap:13px;font-size:13.5px}
}

/* phone: the fixed bar (landing.js adds html.dock-on). A slim navy bar (56px) with a soft shadow, no edge line; its two
   44px pills are fixed layers that landing.js carries from the hero's big buttons into the bar in one ~340ms animation
   once the buttons pass under it (and back above). Visitor: Solicitar acceso (orange) + Iniciar sesión (lavender);
   aliado: Catálogo + Mi pedido · N. Without JS, no bar. */
.g3-home .dock{display:none}
@media (max-width:640px){
  .g3-home{--dock-h:64px;--dock-top:env(safe-area-inset-top,0px)}
  /* two resting places, like an app: the hero, or the divisions under the formed bar. The page never stops half-way,
     so once the bar forms it stays until the hero is pulled back down (18.0.8.0.24) */
  .g3-home.dock-on{scroll-snap-type:y mandatory;scroll-padding-top:calc(var(--dock-h) + var(--dock-top))}
  .g3-home.dock-on .hero{scroll-snap-align:start}
  .g3-home.dock-on .verticales{scroll-snap-align:start;scroll-margin-top:0}
  .g3-home.dock-on .vgrid{scroll-margin-top:0}
  .g3-home.dock-on .dock{display:block;position:fixed;left:0;right:0;top:0;height:0;z-index:40;pointer-events:none}
  .g3-home .dock-bar{position:absolute;left:0;right:0;top:0;height:calc(var(--dock-h) + var(--dock-top));padding:var(--dock-top) 12px 0;
    display:flex;align-items:center;gap:8px;color:var(--white);opacity:0;will-change:opacity}
  /* the bar never slides in: it is the hero itself. Its navy (::before) takes over only once the hero's bottom edge —
     the wave, flattened by landing.js as it rises — reaches the bar's bottom, so the swap is navy over navy; its
     shadow (::after) then fades in as the cream passes under it */
  .g3-home .dock-bar::before,.g3-home .dock-bar::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}
  .g3-home .dock-bar::before{background:radial-gradient(90% 300% at 100% 100%,var(--navy-lo) 0%,rgba(50,63,110,0) 60%),var(--navy);opacity:var(--bgo,0)}
  .g3-home .dock-bar::after{box-shadow:0 1px 2px rgba(20,28,60,.10),0 8px 22px rgba(20,28,60,.16);opacity:var(--sho,0)}
  .g3-home .dock-bar>*{position:relative}
  .g3-home .hero .wave{transform-origin:50% 100%;will-change:transform}
  .g3-home .dock-logo{flex:none;display:flex;width:40px;height:40px;border-radius:50%}
  .g3-home .dock-logo img{width:40px;height:40px;display:block}
  .g3-home .dock-slot{flex:1 1 0;min-width:0;height:44px}
  .g3-home .dock-pill{position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;
    white-space:nowrap;overflow:hidden;font-weight:700;letter-spacing:-.01em;color:var(--btn-ink);
    -webkit-tap-highlight-color:transparent;opacity:0;visibility:hidden;will-change:transform,width,height}
  .g3-home .dock-pill.p1{background:#F09A48}
  .g3-home .dock-pill.p2{background:#B9C3E8}
  .g3-home .dock-pill .arrow{overflow:hidden;flex:none}
  /* the hero button's own label, cross-fading into the bar label while the pill is in flight */
  .g3-home .dock-pill .t0{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
  .g3-home .dock-pill:focus-visible{outline:3px solid var(--white);outline-offset:3px}
  .g3-home .dock-pill:active{filter:brightness(.97)}
  /* the hero's own buttons never leave the flow: landing.js only fades them while their pills are in flight (no twin
     beside the pill) and brings them back once the bar is formed, so the hero keeps its layout and never shows an empty
     navy gap — on tall phones (430px) the bar forms while the buttons are still on screen (18.0.8.0.2) */
  .g3-home.is-docked .dock-bar,.g3-home.is-docked .dock-pill{pointer-events:auto}
}
/* phone: the app tab bar (w_g3_tabs) is the way around; the aliado's «Cerrar sesión» lives in its «Más» sheet */
@media (max-width:640px){.g3-home .top .nav{display:none}}
@media (prefers-reduced-motion:reduce){
  .g3-home .rise,.g3-home .lift,.g3-home .floor,.g3-home .arrow,.g3-home .btn,.g3-home .vdots i{transition:none!important}
  .g3-home .pv-tag{animation:none;box-shadow:0 0 0 1px rgba(255,224,160,.9),0 0 18px rgba(255,196,110,.5)}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
  .g3-home.js .col:not(.in) .rise{opacity:1;transform:none}
}
