/* ==========================================================================
   Gastro Cloud · Home polish
   Capa única de refinamiento de la home. Se carga solo en "/".
   html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap = ámbito de contenido, html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap = ámbito de cabecera (lo expande build.sh).
   ========================================================================== */

/* ---------- 0 · Inter (variable, autoalojada, OFL-1.1) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/gc_theme_prime/static/media/bcb10a32fa3326.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/gc_theme_prime/static/legacy/files/19476__inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --gc-out { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --gc-in  { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes gc-polish-out { to { --gc-out: 1; } }
@keyframes gc-polish-in  { to { --gc-in: 1; } }

/* ---------- 1 · Tipografía: una sola familia ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, p, li, a, label, small, button, input, select, textarea, .btn, .badge, .nav-link, .dropdown-item, .lead):not(.fa, .fab, .fas, .far, [class^="ph-"], [class*=" ph-"], .ph, .dri, .oi) {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap { font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; }

/* Escala: display (hero) · título de sección 48 · subtítulo 20 · cuerpo 16 · nota 13 */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_heading_3 h2,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap .gc-section-head h2,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery h2,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > :is(.s_info_block_1, .s_info_block_2, .s_banner_10) :is(h1, h2),
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero, #gc-scroll-story) > .container > .row h1,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero, #gc-scroll-story) h1.o_default_snippet_text {
  font-size: clamp(32px, 3.4vw, 48px) !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  letter-spacing: -.022em !important;
  text-wrap: balance;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero, #gc-scroll-story) :is(h1, h2, h3) :is(strong, b, span) { font-weight: inherit !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper h3 {
  font-size: 32px !important; line-height: 1.1 !important; font-weight: 600 !important; letter-spacing: -.02em !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_heading_3 p.lead,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap .gc-section-head p.lead,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-intro,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_banner_10 :is(h3, h4, h5, p) {
  font-size: 20px !important; line-height: 1.4 !important; font-weight: 400 !important; letter-spacing: -.005em;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > :is(.s_info_block_1, .s_info_block_2) p,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero, #gc-scroll-story, #gc-discovery) > .container p.o_default_snippet_text:not(.mb-0) {
  font-size: 16px !important; line-height: 1.55 !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_d_top_categories h4 { font-size: 20px !important; font-weight: 600 !important; letter-spacing: -.01em; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-scroll-story .gc-story-item p { font-size: clamp(18px, 1.7vw, 24px) !important; font-weight: 400 !important; }
/* Titulares de la historia a tamaño "display", casi de lado a lado */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-scroll-story .gc-story-item h2 {
  font-size: clamp(44px, 13.2vw, 216px) !important; line-height: .9 !important; letter-spacing: -.045em !important;
  font-weight: 900 !important; white-space: nowrap; margin-bottom: .14em !important;
}

/* ---------- 2 · Color: blanco sobre el cielo, marino solo dentro de tarjetas ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero) { color: #fff; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero) :is(h1, h2, h3, h4, h5, h6, p, li, .lead, font, span, strong, b, i.ph, i.fa, .gc-kicker, .gc-intro):not(:is(.gc-tile, .gc-promo-card, [class*="tp_product_list_cards"], .tp-icon-block, .btn, .badge, form, .dropdown-menu) *, .gc-tile, .btn, .badge) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;   /* había un text-fill marino que ganaba a "color" */
}

/* ---------- 3 · Sin líneas de borde a borde; cielo del hero fundido ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section { border-top: 0 !important; border-bottom: 0 !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap :is(#gc-sky, #gc-flat) {
  -webkit-mask-image: linear-gradient(#000 56%, transparent 100%);
          mask-image: linear-gradient(#000 56%, transparent 100%);
}

/* ---------- 4 · Ritmo vertical ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_heading_3 { padding-top: 72px !important; padding-bottom: 24px !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_d_top_categories { padding-top: 16px !important; padding-bottom: 72px !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery { padding-top: 72px !important; padding-bottom: 72px !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > :is(.s_image_product_listing_cards_wrapper, .s_info_block_1, .s_info_block_2) { padding-top: 72px !important; padding-bottom: 72px !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_banner_10 { padding-top: 96px !important; padding-bottom: 72px !important; }

/* ---------- 5 · Botones y píldoras: planos, radio 8, sin sombra ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero) :is(a.btn, button.btn):not(.btn-link, .dropdown-toggle) {
  background: #fff !important;
  color: #173e68 !important;
  border: 1px solid #fff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero) :is(a.btn, button.btn):not(.btn-link, .dropdown-toggle) :is(i, span, svg) { color: inherit !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero) :is(a.btn, button.btn):not(.btn-link, .dropdown-toggle):is(:hover, :focus-visible) {
  background: rgba(255, 255, 255, .82) !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:not(#gc-sky-hero) :is(a.btn, button.btn):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_heading_3 .badge {
  background: rgba(255, 255, 255, .16) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: 12px !important; font-weight: 500 !important; letter-spacing: .02em;
  padding: 5px 12px !important;
}

/* ---------- 6 · Cabecera ---------- */
/* Isotipo central en blanco 100 % */
html.gc-home-intro[data-gc-stage="done"] body #wrapwrap#wrapwrap#wrapwrap#wrapwrap .gc-brand .gc-iso-ph {
  fill: #fff !important; opacity: 1 !important; transition: opacity .5s ease !important;
}
/* Logo central → isotipo izquierdo, ligado al scroll */
html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header .gc-brand {
  opacity: calc(1 - var(--gc-out, 0)) !important;
  transform: translateY(calc(var(--gc-out, 0) * -6px)) scale(calc(1 - var(--gc-out, 0) * .04)) !important;
  filter: none !important;   /* sin desenfoque: en iPhone se veía borroso con muy poco scroll */
  transform-origin: 50% 50%;
}
html.gc-home-intro[data-gc-stage="done"] body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header .gc-brand .gc-word { opacity: 1 !important; }
html.gc-home-intro[data-gc-stage="done"] body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header .gc-iso-move {
  opacity: var(--gc-in, 0) !important;
  transform: translate(var(--gc-ixl, 0px), var(--gc-iyl, 0px))
             translateX(calc((1 - var(--gc-in, 0)) * -8px))
             scale(calc(.9 + var(--gc-in, 0) * .1)) !important;
  filter: none !important;
  transform-origin: 50% 50%;
}
/* El isotipo izquierdo lleva al inicio */
html.gc-home-intro[data-gc-stage="done"][data-gc-scrolled="1"] body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header .gc-iso-move {
  pointer-events: auto !important; cursor: pointer;
}
/* El contenido se desvanece al pasar bajo la cabecera */
html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header::before {
  content: ""; position: absolute; inset: 0 0 -32px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(66, 143, 233, .78), rgba(66, 143, 233, 0));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 50%, transparent 100%);
          mask-image: linear-gradient(#000 50%, transparent 100%);
  opacity: var(--gc-in, 0);
}

@supports (animation-timeline: scroll()) {
  html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap { scroll-timeline: --gc-page block; }
  html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header {
    animation: gc-polish-out linear both, gc-polish-in linear both;
    animation-timeline: --gc-page, --gc-page;
    animation-range: 0px 200px, 120px 340px;
  }
  html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header :is(.gc-brand, .gc-iso-move) { transition: none !important; }
}
@supports not (animation-timeline: scroll()) {
  html.gc-home-intro[data-gc-scrolled="1"] body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header { --gc-out: 1; }
  html.gc-home-intro.gc-nav-shift body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header { --gc-in: 1; }
  html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header .gc-brand {
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1), filter .7s cubic-bezier(.22, 1, .36, 1) !important;
  }
  html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header .gc-iso-move {
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1) .15s, transform .8s cubic-bezier(.22, 1, .36, 1) .15s, filter .8s cubic-bezier(.22, 1, .36, 1) .15s !important;
  }
  html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header::before { transition: opacity .6s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header .gc-brand { transform: none !important; filter: none !important; }
  html.gc-home-intro[data-gc-stage="done"] body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header .gc-iso-move {
    transform: translate(var(--gc-ixl, 0px), var(--gc-iyl, 0px)) !important; filter: none !important;
  }
}

/* ---------- 7 · Footer ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer :is(h1, h2, h3, h4, h5, h6),
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer :is(h1, h2, h3, h4, h5, h6) a { font-weight: 600 !important; letter-spacing: -.01em; }

/* ---------- 8 · Nubes de página completa (gc-home-clouds.js) ---------- */
/* Con el canvas activo sobran las nubes de degradado animadas en CSS */
html.gc-clouds-on body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap::before,
html.gc-clouds-on body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap::after {
  display: none !important; animation: none !important;
}

/* ---------- 9 · Bloque masonry "Todo lo que tu negocio necesita" ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile { border: 1px solid rgba(255, 255, 255, .55) !important; box-shadow: none !important; }
/* Cristal neutro algo menos blanco y tarjetas tintadas */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile:is(.gc-editorial, .gc-emoji, .gc-product, .gc-color-light) { background-color: rgba(255, 255, 255, .26) !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile.gc-color-blue:not(.gc-product)   { background: rgba(29, 78, 216, .46) !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile.gc-color-indigo:not(.gc-product) { background: rgba(79, 70, 229, .50) !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile.gc-color-plum:not(.gc-product)   { background: rgba(147, 51, 234, .42) !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile.gc-color-teal:not(.gc-product)   { background: rgba(13, 148, 136, .50) !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile.gc-color-sand:not(.gc-product)   { background: rgba(255, 190, 120, .84) !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile:is(.gc-color-blue, .gc-color-indigo, .gc-color-plum, .gc-color-teal):not(.gc-product) :is(h3, .gc-label, .gc-symbol, .gc-symbol i) { color: #fff !important; }
/* Iconos Phosphor grandes en las tarjetas sin foto */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile .gc-symbol { font-size: clamp(64px, 6.4vw, 92px) !important; line-height: 1 !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile .gc-symbol i { font-size: inherit !important; color: inherit; display: block; }
/* Miniatura de producto a todo el ancho de la tarjeta */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile.gc-product { padding: 0 !important; overflow: hidden; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; position: relative; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile.gc-product img {
  position: static !important; display: block; order: 0;
  width: 100% !important; max-width: none !important; height: auto !important; flex: 1 1 0; min-height: 0;
  object-fit: cover; object-position: 50% 40%; margin: 0 !important; border-radius: 0 !important; transform: none !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile.gc-product .gc-label {
  position: absolute !important; top: 14px; left: 14px; z-index: 1; margin: 0 !important;
  background: rgba(255, 255, 255, .88); color: #173e68 !important; padding: 4px 10px; border-radius: 999px; opacity: 1 !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile.gc-product > div { padding: 14px 20px 18px !important; flex: 0 0 auto; }

/* Pies de tarjeta: mismo estilo que los textos del footer, con una pequeña sangría */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section#gc-discovery .gc-grid .gc-tile-entry > p.gc-tile-caption {
  color: #173e68 !important; -webkit-text-fill-color: #173e68 !important;
  font-size: 14px !important; line-height: 21px !important; font-weight: 400 !important; letter-spacing: 0 !important;
  padding-left: 12px !important;
}

/* ---------- 10 · Promociones: cabecera común y tres cápsulas iguales ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap .gc-section-head { margin-bottom: 20px; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap .gc-section-head h2 { margin-bottom: 12px; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper [class*="tp_product_list_cards"],
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper .gc-promo-card {
  height: 100%; display: flex; flex-direction: column; padding: 24px 25px !important;
  background: rgba(255, 255, 255, .10) !important; border: 1px solid rgba(255, 255, 255, .5) !important; border-radius: 12px !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper .gc-promo-card > * {
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; overflow: visible !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper .gc-promo-card > .gc-promo-card-title {
  font-size: 20px !important; font-weight: 600 !important; color: #183d62 !important; -webkit-text-fill-color: #183d62 !important; text-align: left;
  margin: 0 0 16px !important; padding: 0 0 16px !important; border-bottom: 1px solid rgba(255, 255, 255, .45) !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper .gc-promo-card > .gc-promo-card-art {
  flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain; margin: 4px auto 20px !important; padding: 0 !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper .gc-promo-card > .gc-promo-card-cta {
  width: 100%; text-align: center; padding: 11px 16px !important;
  background: #fff !important; border: 1px solid #fff !important; border-radius: 8px !important;
}
/* Las tres cápsulas, a la misma altura */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper .s_product_listing_cards > .row { align-items: stretch; height: 100%; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper .s_product_listing_cards > .row > [class*="col-"] > [class*="tp_product_list_cards"] { height: 100%; }

/* ---------- 11 · Menú del Día: iconos Phosphor en blanco y a escala ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_cover_4 :is(span.fa, i.ph, .gc-ph-icon),
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_cover_4 :is(span.fa, i.ph, .gc-ph-icon)::before { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_cover_4 span.fa { width: 56px !important; font-size: 40px !important; line-height: 1 !important; text-align: center; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_cover_4 span.fa i.ph { font-size: 40px !important; }

/* ---------- 13 · Buscador del hero ---------- */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-sky-hero .gc-sky-suggestions a,
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-sky-hero .gc-sky-suggestions a * { color: #1a56db !important; -webkit-text-fill-color: #1a56db !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-sky-hero .gc-sky-suggestions a:is(:hover, :focus-visible) { color: #1446b8 !important; -webkit-text-fill-color: #1446b8 !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-sky-hero .gc-sky-search form button { background: #1a56db !important; border-color: #1a56db !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-sky-hero .gc-sky-search form button:is(:hover, :focus-visible) { background: #1446b8 !important; }
@media (min-width: 992px) {
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-sky-hero .gc-sky-search { max-width: 560px !important; margin-left: auto !important; margin-right: auto !important; }
  /* Los seis accesos caben en una línea aunque el buscador sea más estrecho */
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-sky-hero .gc-sky-suggestions { margin-left: -110px !important; margin-right: -110px !important; flex-wrap: nowrap !important; justify-content: center !important; }
}

/* ---------- 14 · Promoción del mes: un solo bloque encapsulado ---------- */
/* La cabecera (s_banner_10) y el detalle con las seis ventajas (s_cover_4) forman una cápsula continua */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section:is(.s_banner_10, .s_cover_4) {
  width: min(1180px, calc(100% - 32px)); margin-left: auto !important; margin-right: auto !important;
  background-color: rgba(255, 255, 255, .13) !important;
  border-left: 1px solid rgba(255, 255, 255, .5) !important; border-right: 1px solid rgba(255, 255, 255, .5) !important;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section.s_banner_10 {
  margin-top: 72px !important; padding-top: 56px !important; padding-bottom: 8px !important; min-height: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .5) !important; border-radius: 20px 20px 0 0;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section.s_cover_4 {
  margin-bottom: 96px !important; padding-top: 24px !important; padding-bottom: 40px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .5) !important; border-radius: 0 0 20px 20px;
}
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section.s_banner_10 :is(h1, h2) { margin-bottom: 8px !important; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section.s_banner_10 .btn { margin-top: 12px; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section.s_cover_4 section { padding-top: 24px !important; padding-bottom: 0 !important; }

/* ---------- 15 · Footer ordenado ---------- */
/* Columnas: enlaces · proveedores · contacto · [síguenos / suscríbete / medios de pago] */
@media (min-width: 992px) {
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) {
    display: grid !important; column-gap: 0; align-items: start;
    grid-template-columns: minmax(0, 5fr) minmax(0, 2.4fr) minmax(0, 3.4fr) minmax(0, 3.6fr);
    grid-template-rows: auto auto 1fr;     /* la altura sobrante va a la última fila, no separa los bloques de la derecha */
  }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > * { width: auto !important; max-width: none !important; flex: none !important; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(2) { grid-column: 2; grid-row: 1 / span 3; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(3) { grid-column: 3; grid-row: 1 / span 3; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(5) { grid-column: 4; grid-row: 1; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(6) { grid-column: 4; grid-row: 2; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(4) { grid-column: 4; grid-row: 3; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) { grid-template-columns: minmax(0, 4.2fr) minmax(0, 3.4fr) minmax(0, 3.4fr); grid-template-rows: auto auto auto 1fr; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(2) { grid-column: 1; grid-row: 4; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(3) { grid-column: 2; grid-row: 1 / span 4; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(5),
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(6),
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .container > .row:not(.o_grid_mode) > :nth-child(4) { grid-column: 3; }
}
/* El campo de suscripción, con un ancho razonable en cualquier tamaño */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .input-group { max-width: 380px; }
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap > footer #footer .s_social_media { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }

/* ---------- 16 · Hero en móvil: las mismas nubes que el resto de la página ---------- */
/* En móvil la intro usa la versión CSS; sus nubes de degradado se sustituyen por el canvas común */
html.gc-clouds-on[data-gc-mode="css"] body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-flat .gc-cloud { display: none !important; }
html.gc-clouds-on[data-gc-mode="css"] body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-flat .gc-flat-sky { background: transparent !important; }

/* ---------- 17 · iPhone: nube plana de la intro atascada sobre el hero ---------- */
/* En móvil la intro arranca en modo CSS y un script del pie la cambia a 3D al terminar de cargar.
   La nube plana del modo CSS se quedaba congelada encima del texto: en modo 3D no debe verse. */
html[data-gc-mode="3d"] body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #gc-flat .gc-flat-obj { display: none !important; }

/* ---------- 18 · Tecnología / Control / Innovación: más recorrido y sin solapes ---------- */
/* Más altura = más scroll por titular; y cada titular termina de irse antes de que entre el siguiente */
html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section#gc-scroll-story { height: 380vh !important; min-height: 1900px !important; }
@media (max-width: 600px) {
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section#gc-scroll-story { height: 330vh !important; min-height: 1600px !important; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes gc-polish-story-one {
      0%, 30%   { opacity: 1; transform: translateY(0) scale(1); }
      38%, 100% { opacity: 0; transform: translateY(-35px) scale(.96); }
    }
    @keyframes gc-polish-story-two {
      0%, 42%   { opacity: 0; transform: translateY(35px) scale(.96); }
      50%, 56%  { opacity: 1; transform: translateY(0) scale(1); }
      64%, 100% { opacity: 0; transform: translateY(-35px) scale(.96); }
    }
    @keyframes gc-polish-story-three {
      0%, 68%   { opacity: 0; transform: translateY(35px) scale(.96); }
      76%, 100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section#gc-scroll-story .gc-story-item:nth-child(1) { animation-name: gc-polish-story-one !important; }
    html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section#gc-scroll-story .gc-story-item:nth-child(2) { animation-name: gc-polish-story-two !important; }
    html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > section#gc-scroll-story .gc-story-item:nth-child(3) { animation-name: gc-polish-story-three !important; }
  }
}

/* ---------- 12 · Móvil ---------- */
@media (max-width: 991.98px) {
  /* El logo iba centrado y pisaba los botones: en móvil se alinea a la izquierda */
  html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header .o_header_mobile .o_main_nav > .gc-brand { grid-column: 1 / 3 !important; justify-self: start !important; }
  /* Sin carrito ni favoritos en la cabecera móvil */
  html.gc-home-intro body #wrapwrap#wrapwrap#wrapwrap#wrapwrap > header :is(.o_wsale_my_cart, .o_wsale_my_wish) { display: none !important; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_heading_3 { padding-top: 48px !important; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > :is(#gc-discovery, .s_d_top_categories, .s_image_product_listing_cards_wrapper, .s_info_block_1, .s_info_block_2) { padding-top: 48px !important; padding-bottom: 48px !important; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_heading_3 p.lead,
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap .gc-section-head p.lead,
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-intro { font-size: 17px !important; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > #gc-discovery .gc-tile .gc-symbol { font-size: 56px !important; }
  html body:has(#gc-sky-hero) #wrapwrap#wrapwrap#wrapwrap#wrapwrap #wrap > .s_image_product_listing_cards_wrapper [class*="tp_product_list_cards"] { padding: 16px !important; }
}
