/* ============================================================================
 * responsive-patches.css
 *
 * Overrides on top of the imported Claude Design HTML.
 *
 * Load order recap:
 *     <link href="/ds-tokens.css">           ← design tokens
 *     <link href="/responsive-patches.css">  ← THIS file
 *     <style>...page styles...</style>       ← inline page CSS  (wins by source order)
 *
 * Because the inline <style> comes AFTER us, every override here uses
 * !important. Otherwise the inline rules win at equal specificity.
 *
 * Companion script: /nav-mobile.js — injects the hamburger button + panel.
 * ========================================================================== */

/* ============================================================================
 * Hamburger menu (always defined, gated to mobile via the media queries
 * further down). The burger button + .nav-panel are injected from JS so the
 * five HTML pages stay untouched.
 * ========================================================================== */

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms ease, opacity 150ms ease;
}
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(6px)  rotate( 45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav { position: sticky; }
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-canvas);
  padding: 12px 20px 20px;
  box-shadow: 0 18px 40px -12px rgba(14,11,7,0.18);
  border-top: 1px solid var(--border-subtle);
  z-index: 60;
}
.nav-panel[hidden] { display: none !important; }

.nav-panel .panel-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.nav-panel .panel-links a {
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-panel .panel-links a:last-child { border-bottom: 0; }

.nav-panel .panel-cta {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 16px;
}
.nav-panel .panel-cta .btn,
.nav-panel .panel-cta .btn-primary,
.nav-panel .panel-cta .btn-secondary,
.nav-panel .panel-cta .btn-outline {
  display: inline-flex !important;
  width: 100%;
  justify-content: center;
  padding: 0 16px !important;
  height: 44px !important;
  font-size: 14px !important;
}

/* Language / currency toggles live inside .nav-cta, which the mobile menu
 * clones into this slide-out panel. The page CSS hides .toggle-group at
 * ≤640px (the top bar has no room), so re-show them inside the panel — this
 * is the only way mobile users can switch language or currency. */
.nav-panel .panel-cta .toggle-group {
  display: inline-flex !important;
  align-self: center;
  font-size: 13px;
}
.nav-panel .panel-cta .toggle-group a {
  padding: 8px 16px;
}

/* Desktop: burger hidden, panel hidden, original nav-links visible. */
@media (min-width: 1024px) {
  .nav-burger { display: none !important; }
  .nav-panel  { display: none !important; }
}

/* ============================================================================
 * Tablet / phone (≤1023px) — extended from 640 to also cover iPad portrait
 * (768) and similar tablets, since the desktop 2-col hero is too cramped
 * at those widths.
 * ========================================================================== */
@media (max-width: 1023px) {
  /* Show burger AND keep the primary CTA visible to its left.
   * The secondary outlined CTA is dropped from the bar — it still lives in
   * the slide-out panel that nav-mobile.js builds, so users who open the
   * menu get both. */
  .nav-burger { display: inline-flex !important; }
  .nav-links  { display: none !important; }
  .nav-badge  { display: none !important; }

  .nav-cta {
    display: inline-flex !important;
    gap: 8px !important;
    flex-shrink: 0;
    /* With nav-brand + nav-cta + nav-burger as 3 siblings and the parent
     * using justify-content: space-between, the CTA defaults to the
     * geometric middle. margin-left:auto absorbs the free space so the
     * CTA snaps right next to the hamburger. */
    margin-left: auto !important;
  }
  .nav-cta .btn-secondary,
  .nav-cta .btn-outline   { display: none !important; }
  .nav-cta .btn-primary,
  .nav-cta .btn-arrow,
  .nav-cta .btn           {
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* Home hero reserves min-height on h1/.lead for the JS slideshow. At
   * mobile font sizes those reserved heights leave an empty band. Let
   * the content flow naturally. */
  .hero h1, .hero .lead { min-height: 0 !important; }

  /* AND — separately — the text column itself has min-height:460px so it
   * vertically aligns with the slider on desktop. On mobile that becomes
   * dead space below the buttons because the column stacks instead of
   * sitting next to the slider. Kill it. */
  .hero-inner > div:first-child,
  .hero-inner > div  { min-height: 0 !important; }

  /* Hero spacing — the actual visual reorder (image after eyebrow) is done
   * by nav-mobile.js, which physically moves .hero-slider / .hero-mock /
   * .hero-term / .hero-stickers right after the eyebrow on mobile. The CSS
   * here just makes the single-column stack tight. */
  .hero        { padding: 16px 0 24px !important; }
  .hero-inner  {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  /* The two original column wrappers are kept; the visual gets re-parented
   * by JS into the text column, after the eyebrow. */
  .hero-inner > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  /* Spacing tweaks for the items inside the (now flex-column) text col. */
  .hero h1     {
    margin: 4px 0 6px !important;
    /* Bigger, fluid: clamp keeps it between 36px and 60px depending on
     * viewport width. Mobile portrait used to be 38-40px (felt small);
     * now ~44px at iPhone widths and 56px+ at larger phones / tablet. */
    font-size: clamp(36px, 11vw, 60px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
  }
  .hero .lead  {
    margin-bottom: 8px !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
  }
  .hero-dots   { margin-top: 16px !important; }

  /* Hide the 4-col "Mensual · 3 días · AI-First · Local" strip on mobile —
   * it looks cramped at narrow widths. Stays visible on desktop. */
  .hero-metrics { display: none !important; }

  /* FIXED-FRAME LAYOUT — only applies on the HOME hero, because that's
   * the one with the rotating slideshow. Sub-brand pages have static
   * copy that's allowed to flow naturally.
   *
   * Scoped via `:has(.hero-slider)` (only the home hero contains the
   * carousel). Inside the frame, nav-mobile.js's fitText() shrinks the
   * font-size if the new copy doesn't fit. */
  .hero:has(.hero-slider) h1     {
    min-height: 80px !important;
    max-height: 96px !important;
    overflow: hidden !important;
  }
  .hero:has(.hero-slider) .lead  {
    min-height: 138px !important;
    max-height: 138px !important;
    overflow: hidden !important;
  }

  /* Decorative corner ticks (`.tick.tl/.tr/.bl/.br` inside .hero-ticks)
   * sit absolutely in the hero corners on desktop. On the narrow mobile
   * hero they look like random glitches floating in space — hide them. */
  .hero-ticks, .tick { display: none !important; }

  /* /ai-first has no visual element (no slider/mock/term) — its hero is
   * eyebrow + title + lead + actions + .hero-strip stats. Turn the strip
   * into a 2x2 mini-banner so the page has a visual anchor like the
   * other sub-brand pages. */
  .hero-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-top: 12px !important;
    padding-top: 24px !important;
  }
  .hero-strip-item {
    padding: 12px 14px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
  }
  .hero-strip-item .val { font-size: 24px !important; }
  .hero-strip-item .lbl { font-size: 10px !important; line-height: 1.3 !important; }

  /* CTAs side-by-side on a single row even at narrow widths. If the labels
   * are long ("Conocer el programa AI-First →"), shrink the type and the
   * padding instead of wrapping to two lines. */
  .hero-actions {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .btn-outline {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    height: 42px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis;
    overflow: hidden;
    justify-content: center;
  }

  /* Eyebrow pill — vertical centering math.
   *
   * Symptom 1 (line-height inherited from body, ~1.55): leading was so
   *   large that the text glyph visually sat BELOW the dot's center.
   * Symptom 2 (line-height: 1): no leading at all, so the glyph cap top
   *   pressed against the pill's top padding ("text touches the top").
   *
   * Sweet spot: line-height: 1.4. The line-box is just tall enough to
   * hold the glyph (~7.5px cap) with ~3px of leading split top/bottom.
   * Combined with padding 3px top + bottom, both the dot and the text
   * sit visually centered. */
  .hero-eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
    padding: 3px 10px !important;
    gap: 6px !important;
    line-height: 1.4 !important;
    align-items: center !important;
  }
  .hero-eyebrow > *,
  .hero-eyebrow span {
    line-height: 1.4 !important;
  }
  .eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
    line-height: 1.4 !important;
  }
  .eyebrow > *,
  .eyebrow span {
    line-height: 1.4 !important;
  }

  /* Galaxy S8+ (360×740) — at the snug viewport, .bb-product-img was
   * collapsing to a thin grey bar because the 4/3 slider doesn't leave
   * enough vertical room after .bb-hero + bottom meta. Set a real
   * minimum so the placeholder still reads as a product image. */
  .bb-product-img    { min-height: 44px !important; }

  /* SECTION PADDING ------------------------------------------------------
   * Every non-hero section has 96–120px top/bottom padding designed for
   * desktop. On mobile that's the source of the giant empty bands the
   * user reported. Bring everything down to ~56px. */
  section:not(.hero),
  .subbrands, .por-que, .proceso, .clientes, .cta-final,
  .servicios, .casos, .nosotros, .faq, .contacto, .equipo,
  .plataforma, .industrias, .arq,
  .experimentos, .feed, .oss, .about, .news,
  .pillars, .cases, .pricing {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .section-head { margin-bottom: 28px !important; }

  .clientes-row { gap: 16px 24px !important; row-gap: 8px !important; }

  .subbrand { min-height: 0 !important; }

  .trait { padding-top: 24px !important; padding-bottom: 24px !important; }

  .footer { padding: 40px 0 24px !important; }

  /* DASHBOARD / SLIDER ADAPTATIONS -------------------------------------- */

  /* Home slider — 4/3 (≈270px on a 360-wide viewport). Compact enough
   * that the slide-indicator pills are visible above the fold on a
   * 740px-tall viewport (Galaxy S8+). The visualization shrinks
   * accordingly. */
  .hero-slider {
    aspect-ratio: 4/3 !important;
    /* All slides are position:absolute, so the slider has no intrinsic
     * width. When nav-mobile.js re-parents it into the (centered) flex
     * text column it would collapse to 0 and the hero would look empty.
     * width:100% prevents the collapse; max-width keeps it from ballooning
     * to the full viewport on wider phones / tablets. */
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto 6px !important;
    align-self: center !important;
  }

  /* ALIGNMENT — center everything on mobile (user preference).
   * Hero copy, section heads, card text and CTAs all centered. */
  .hero,
  .hero-inner,
  .hero-inner > div  { text-align: center !important; align-items: center !important; }
  .hero-eyebrow,
  #hero-eyebrow,
  .eyebrow           { align-self: center !important; }
  .hero-actions      { justify-content: center !important; align-self: center !important; }
  .hero-strip,
  .hero-trust        { justify-content: center !important; text-align: center !important; }

  /* Section heads + card content centered on mobile too. */
  .section-head,
  .section-head h2,
  .section-head .lead,
  .section-head p        { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
  .subbrand,
  .subbrand-title,
  .subbrand-desc,
  .subbrand-head,
  .trait,
  .trait h3,
  .trait p,
  .step,
  .step h3,
  .step p,
  .caso,
  .caso h3,
  .caso h4,
  .caso p,
  .servicio,
  .servicio h3,
  .servicio p,
  .industria,
  .industria h4,
  .industria p,
  .platform-cell,
  .platform-cell h3,
  .platform-cell p,
  .flow-step,
  .flow-step h4,
  .flow-step p,
  .cta-card,
  .cta-card h2,
  .cta-card p           { text-align: center !important; }
  /* Subbrand head: pill + domain. On mobile stack vertically so they
   * don't squish together at narrow widths. */
  .subbrand-head {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  .platform-cell-tags,
  .industria,
  .flow-step-out,
  .subbrand-usecases    { align-items: center !important; justify-content: center !important; }

  /* Eyebrows — ensure gap holds when centered. */
  .hero-eyebrow,
  .eyebrow {
    gap: 8px !important;
    white-space: nowrap;
  }
  /* If the eyebrow text is too long for a 360px viewport, allow wrap inside
   * the inner span (so the leading dot/glyph stays attached). */
  .hero-eyebrow #hero-eyebrow-text,
  .eyebrow > span:not(.hero-eyebrow-dot) {
    white-space: normal;
  }
  /* Bulleted lists keep bullets visible — switch to inline-block with bullet
   * left in place but the block itself centered. */
  .subbrand-usecases,
  ul                    { display: block; }
  .subbrand-usecases    { list-style-position: inside !important; padding-left: 0 !important; }

  /* /web .hero-mock — the orange "Almacén de la Esquina" card was sized
   * for desktop. On mobile shrink it so the products row gets visual
   * weight (that's the actual proof — "look, store online"). */
  .mock-hero        { padding: 14px !important; border-radius: 8px !important; }
  .mock-hero-title  { font-size: 16px !important; line-height: 1.15 !important; }
  .mock-hero-sub    { font-size: 10px !important; margin-top: 2px !important; }
  .mock-hero-btn    { padding: 6px 10px !important; font-size: 11px !important; }
  .mock-product     { padding: 8px !important; gap: 3px !important; }
  .mock-product-img { height: 48px !important; }
  .mock-product-name{ font-size: 10px !important; }
  .mock-product-price{ font-size: 12px !important; }

  /* /web mock chrome (URL bar etc.) — also a bit smaller. */
  .mock-chrome      { padding: 8px 10px !important; }
  .mock-url         { font-size: 11px !important; }

  /* Home web-slide browser mock — 3-col products grid crammed at narrow
   * widths; drop to 2 cols and hide the third card. */
  .bb-products       { grid-template-columns: 1fr 1fr !important; }
  .bb-product:nth-child(n+3) { display: none !important; }

  /* Same shrink for the orange "Almacén de la Esquina" card up top. */
  .bb-hero           { padding: 12px !important; border-radius: 8px !important; }
  .bb-hero-text      { font-size: 13px !important; line-height: 1.15 !important; }
  .bb-hero-cta       { font-size: 9px !important; padding: 3px 8px !important; }
  .bb-product-img    { min-height: 28px !important; }
  .bb-product-price  { font-size: 9px !important; }

  /* /web standalone hero mock (NOT inside the slider). Same product fix +
   * the mock card itself takes less aggressive shadows. */
  .mock-products {
    grid-template-columns: 1fr 1fr !important;
  }
  .mock-product:nth-child(n+3) { display: none !important; }
  .mock-product { padding: 10px !important; gap: 4px !important; }

  /* /edge terminal — at 360px-wide × ~270px-tall the 12.5px monospace
   * lines wrap awkwardly. Tighten line-height + font slightly. */
  .term-body  { padding: 12px !important; font-size: 11px !important; line-height: 1.5 !important; }
  .term-line  { gap: 6px !important; }

  /* Home edge-slide: the "Analizando lo visto" callout overflows the
   * slider at 288px tall. Shrink padding + clamp the paragraph to 2 lines
   * with ellipsis so it always fits. */
  .hero-slide-edge   { padding: 14px !important; gap: 10px !important; }
  .ef-analysis       { padding: 8px 10px !important; gap: 4px !important; }
  .ef-analysis p     {
    font-size: 10px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .ef-bars           { height: 48px !important; }
  .ef-bars-axis      { font-size: 8px !important; }

  /* /labs hero stickers: on desktop each sticker is `position: absolute`
   * with hand-tuned top/left/rotate. On mobile that overlaps with the
   * lead text below (each sticker leaks outside its parent). Convert
   * the whole block to a static 2x2 grid; preserve a hint of the
   * playful rotation. */
  .hero-stickers {
    position: relative !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .sticker, .sticker.s1, .sticker.s2, .sticker.s3, .sticker.s4 {
    position: static !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    padding: 12px !important;
    box-shadow: 0 4px 0 -1px rgba(40,30,20,0.22) !important;
  }
  /* Keep a subtle alternating tilt so it still feels sticker-y. */
  .sticker.s1 { transform: rotate(-3deg) !important; }
  .sticker.s2 { transform: rotate( 3deg) !important; }
  .sticker.s3 { transform: rotate( 2deg) !important; }
  .sticker.s4 { transform: rotate(-2deg) !important; }
  .sticker-title { font-size: 13px !important; }
  .sticker-meta  { font-size: 9px !important; }
}

/* ============================================================================
 * ≤480px (phones)
 * ========================================================================== */
@media (max-width: 480px) {
  .container        { padding: 0 16px !important; }
  .nav-inner        { gap: 10px !important; height: 64px !important; }
  .nav-brand svg    { width: 32px !important; height: 32px !important; }
  .wordmark         {
    font-size: 11px !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
  }

  /* Eyebrow even smaller on tiny phones. */
  .hero-eyebrow {
    font-size: 9px !important;
    padding: 2px 8px !important;
  }
  .eyebrow { font-size: 9px !important; }

  /* Hero metric strip stacks 2×2 instead of 4×1. */
  .hero-metrics { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

  /* Tighten section padding further on real phones. */
  section:not(.hero),
  .subbrands, .por-que, .proceso, .clientes, .cta-final,
  .servicios, .casos, .nosotros, .faq, .contacto, .equipo,
  .plataforma, .industrias, .arq,
  .experimentos, .feed, .oss, .about, .news,
  .pillars, .cases, .pricing {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .section-head { margin-bottom: 24px !important; }
}

/* ============================================================================
 * ≤380px (Samsung S8+, iPhone SE)
 * ========================================================================== */
@media (max-width: 380px) {
  .container        { padding: 0 12px !important; }
  .wordmark         { font-size: 10px !important; }
  .nav-burger       { width: 36px !important; height: 32px !important; }
}

/* ============================================================================
 * /ai-first hero-art (Asistente Carpin chat preview)
 *
 * Hidden on desktop (the text-only centered hero is intentional there).
 * Shown on mobile portrait — JS moves it between h1 and lead. In phone
 * landscape and tablet it slots to the right of the text in the 2-col
 * grid (already handled by the landscape media query above).
 * ========================================================================== */
.aif-preview { display: none; }

@media (max-width: 1023px) {
  .aif-preview {
    display: block;
    background:
      radial-gradient(circle at 80% 0%, rgba(255,196,87,0.18) 0%, transparent 45%),
      radial-gradient(circle at 20% 100%, rgba(217,140,42,0.16) 0%, transparent 50%),
      linear-gradient(160deg, #2a1a08 0%, #150a02 100%);
    border-radius: 20px;
    border: 1px solid rgba(255,215,130,0.16);
    overflow: hidden;
    margin: 4px 0 8px;
  }
  .aif-card {
    padding: 14px;
    display: flex; flex-direction: column; gap: 10px;
  }
  .aif-head {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,215,130,0.18);
  }
  .aif-avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, #FFE8B0, #C89A3E);
    border-radius: 50%;
    display: grid; place-items: center;
    color: #1a1208; font-weight: 700; font-size: 11px;
    font-family: var(--font-mono);
    flex-shrink: 0;
  }
  .aif-meta { flex: 1; min-width: 0; }
  .aif-name { font-size: 13px; font-weight: 600; color: #FFE8B0; }
  .aif-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-mono); font-size: 10px;
    color: rgba(255,215,130,0.55);
    margin-top: 2px;
  }
  .aif-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 2px rgba(52,211,153,0.25);
  }
  .aif-pill {
    flex-shrink: 0;
    background: linear-gradient(135deg, #FFE8B0 0%, #FFD782 40%, #C89A3E 100%);
    color: #1a1208;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.06em;
  }
  .aif-msgs { display: flex; flex-direction: column; gap: 7px; }
  .aif-msg {
    padding: 10px 13px;
    background: rgba(255,215,130,0.06);
    border: 1px solid rgba(255,215,130,0.14);
    border-radius: 14px 14px 14px 6px;
    font-family: var(--font-sans); font-size: 11.5px; line-height: 1.4;
    color: #FFE8B0;
  }
  .aif-msg b { color: #FFD782; font-weight: 700; }
  .aif-msg-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--font-mono); font-size: 8.5px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: #C89A3E;
    margin-bottom: 4px;
  }
  .aif-input {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,215,130,0.18);
    border-radius: 999px;
    font-family: var(--font-sans); font-size: 11px;
    color: rgba(255,215,130,0.45);
  }
  .aif-cursor {
    width: 2px; height: 12px;
    background: #FFD782;
    animation: aif-blink 1s steps(2) infinite;
  }
  @keyframes aif-blink { 50% { opacity: 0; } }
}

/* ---- Safety net: no horizontal scroll anywhere ------------------------ */
html, body { overflow-x: hidden; }

/* ============================================================================
 * Phone in landscape orientation.
 *
 * The "stacked / reordered" mobile layout is great in PORTRAIT but waste
 * a lot of vertical space when the phone is rotated to landscape (where
 * vertical pixels are scarce). For landscape on phone-class viewports we
 * fall back to a desktop-ish layout: hero in 2 columns, tier grids in
 * 3 columns. Hamburger stays.
 * ========================================================================== */
@media (max-width: 1023px) and (orientation: landscape) and (min-width: 600px) {
  /* Hero back to 2-col grid; undo the flex-column stack. */
  .hero-inner {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 32px !important;
    align-items: center !important;
  }
  .hero-inner > div {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
  }

  /* No fixed-height frame for h1/lead in landscape — text flows. */
  .hero:has(.hero-slider) h1,
  .hero:has(.hero-slider) .lead {
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Slider back to a wider aspect ratio so it sits naturally on the right. */
  .hero-slider { aspect-ratio: 4/3 !important; max-width: 540px !important; margin-left: auto !important; }

  /* Section tier grids in 3 columns. */
  .subbrand-grid,
  .servicio-grid, .servicios-grid,
  .caso-grid, .casos-grid,
  .feed-grid, .oss-grid,
  .platform-grid, .industria-grid,
  .pricing-grid, .faq-grid,
  .steps {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
