/* Straton · layout — container, grids, header (light), footer (grey + carbon bands).
   Traced from straton.com.mx. Accent is ORANGE; the header is WHITE (NOT navy). */

.rx-container { width: 100%; max-width: var(--rx-container); margin-inline: auto; padding-inline: var(--rx-gutter); }
.rx-section { padding-block: var(--rx-space-6); }
.rx-main { min-height: 50vh; }

/* ============================================================
   Header — white bar, logo left, text nav right (home + 4 cats).
   Fixed overlay; a subtle shadow appears on scroll.
   ============================================================ */
body { padding-top: var(--rx-header-h); }

.rx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background-color: var(--rx-white);
  border-bottom: 1px solid var(--rx-grey-200);
  transition: box-shadow .25s var(--rx-ease), background-color .25s var(--rx-ease);
}
.rx-header.is-scrolled { box-shadow: 0 6px 22px rgba(18, 18, 18, .10); }

.rx-header__inner {
  max-width: var(--rx-container); margin-inline: auto; padding-inline: var(--rx-gutter);
  height: var(--rx-header-h);
  display: flex; align-items: center; gap: var(--rx-space-3);
}
.rx-header__brand { margin-right: auto; display: inline-flex; align-items: center; flex-shrink: 0; }
.rx-header__logo { height: 56px; width: auto; display: block; } /* coherente con portal/rouxlub (56/44) */

/* Primary nav — clean text links in dark grey; orange on hover/active */
.rx-nav { align-self: stretch; display: flex; align-items: stretch; }
.rx-nav__list {
  display: flex; align-items: center; height: 100%;
  gap: clamp(1.1rem, 2.6vw, 2.4rem); list-style: none; padding: 0; margin: 0;
}
.rx-nav__item { position: relative; display: flex; align-items: center; }
.rx-nav__link {
  display: inline-flex; align-items: center;
  font-family: var(--rx-font-head); font-weight: var(--rx-fw-regular); font-size: 1.02rem;
  letter-spacing: .01em; color: var(--rx-ink); white-space: nowrap;
  padding: .4rem 0; transition: color .2s var(--rx-ease);
}
.rx-nav__link:hover,
.rx-nav__item.is-current > .rx-nav__link { color: var(--rx-primary); }

/* Home icon item (with the little active underline traced from the original) */
.rx-nav__home {
  display: inline-flex; flex-direction: column; align-items: center;
  color: var(--rx-ink); padding: .25rem 0; transition: color .2s var(--rx-ease);
}
.rx-nav__home:hover { color: var(--rx-primary); }
.rx-nav__home-underline {
  display: block; width: 20px; height: 2px; background: currentColor; margin-top: 4px;
  opacity: 0; transition: opacity .2s var(--rx-ease);
}
.rx-nav__item.is-current .rx-nav__home-underline,
.rx-nav__home:hover .rx-nav__home-underline { opacity: 1; }

/* Header right-side actions (search lupa, mobile burger) */
.rx-header__actions { display: flex; align-items: center; gap: var(--rx-space-2); }
.rx-search-toggle {
  display: inline-flex; background: none; border: 0; color: var(--rx-ink); cursor: pointer;
  padding: 4px; transition: color .2s var(--rx-ease);
}
.rx-search-toggle:hover { color: var(--rx-primary); }
.rx-burger { display: none; }

/* ============================================================
   Search overlay (lupa)
   ============================================================ */
.rx-search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 18, 18, .92); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s var(--rx-ease);
}
.rx-search-overlay[hidden] { display: none; }
.rx-search-overlay.is-open { opacity: 1; }
.rx-search-overlay__close {
  position: absolute; top: 2rem; right: 2.4rem; background: none; border: 0; color: #fff;
  cursor: pointer; opacity: .8; transition: opacity .2s var(--rx-ease);
}
.rx-search-overlay__close:hover { opacity: 1; }
.rx-search-overlay__form {
  display: flex; align-items: center; width: min(760px, 88vw);
  background: #fff; border-radius: var(--rx-radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.rx-search-overlay__input {
  flex: 1; border: 0; padding: 1.25rem 1.5rem; font-size: 1.35rem;
  font-family: var(--rx-font-body); color: var(--rx-ink); background: transparent;
}
.rx-search-overlay__input:focus { outline: none; }
.rx-search-overlay__submit {
  background: none; border: 0; color: var(--rx-primary); cursor: pointer;
  padding: 0 1.3rem; display: inline-flex; transition: color .2s var(--rx-ease);
}
.rx-search-overlay__submit:hover { color: var(--rx-orange-dark); }

/* ============================================================
   Footer — light band (logo · Empresa · Productos · meta with certifications +
   Roux Corporation) + carbon copyright bar. Conceptual twin of rouxlub's footer,
   recolored to Straton orange + carbon. Catalog/product pages get the bar only.
   ============================================================ */
.rx-footer { background: var(--rx-grey-100); color: var(--rx-ink-soft); }
.rx-footer__inner {
  max-width: var(--rx-container); margin-inline: auto;
  padding: var(--rx-space-5) var(--rx-gutter) var(--rx-space-4);
  display: grid; grid-template-columns: auto minmax(0, 2.2fr) auto; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start;
}
.rx-footer a { color: var(--rx-ink-soft); transition: color .2s var(--rx-ease); }
.rx-footer a:hover { color: var(--rx-primary); }
/* Col 1 — logo only */
.rx-footer__brand-col { display: flex; align-items: flex-start; }
.rx-footer__logo { height: 56px; width: auto; display: block; }
/* Cols 2 — link columns */
.rx-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 4vw, 3rem); }
.rx-footer__heading {
  font-family: var(--rx-font-head); font-weight: var(--rx-fw-bold); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rx-ink-900); margin: 0 0 var(--rx-space-2);
  padding-bottom: .55rem; border-bottom: 2px solid var(--rx-primary);
}
.rx-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.rx-footer__col a { font-size: .93rem; line-height: 1.35; }
/* Col 3 — meta: "Contáctanos" label + contact/social icons */
.rx-footer__meta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--rx-space-2); }
.rx-footer__meta-label {
  font-family: var(--rx-font-head); font-weight: var(--rx-fw-bold); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rx-ink-900);
}
/* Roux Corporation logo — lives in the Empresa column, under the links */
.rx-footer__corp { margin-top: var(--rx-space-2); }
.rx-footer__corp a { display: inline-block; }
.rx-footer__corp img { width: 150px; max-width: 100%; height: auto; display: block; transition: transform .25s var(--rx-ease); }
.rx-footer__corp a:hover img { transform: translateY(-2px); }
/* Social round buttons (orange ring, fill on hover). Renders only if links are set. */
.rx-social { display: flex; align-items: center; gap: .7rem; list-style: none; margin: .3rem 0 0; padding: 0; }
.rx-social li { margin: 0; }
.rx-social__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; border: 2px solid var(--rx-primary); background: transparent; color: var(--rx-ink-900);
  transition: background .2s var(--rx-ease), color .2s var(--rx-ease), transform .2s var(--rx-ease);
}
.rx-social__btn svg { width: 20px; height: 20px; }
.rx-social__btn:hover { background: var(--rx-primary); color: #fff; transform: translateY(-2px); }
/* Carbon copyright bar (keeps Straton's two-band identity) */
.rx-footer__bar {
  background: var(--rx-band); color: rgba(255, 255, 255, .72); text-align: center;
  padding: var(--rx-space-2); font-size: .85rem;
}

/* ============================================================
   Card grid
   ============================================================ */
.rx-grid { display: grid; gap: var(--rx-space-3); }
.rx-grid--cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 900px) {
  .rx-header__logo { height: 44px; }
  .rx-nav {
    display: block;
    position: fixed; inset: var(--rx-header-h) 0 auto 0;
    max-height: calc(100dvh - var(--rx-header-h)); overflow-y: auto;
    background: var(--rx-white); border-bottom: 1px solid var(--rx-grey-200);
    transform: translateY(-130%); transition: transform .3s var(--rx-ease);
    box-shadow: 0 14px 30px rgba(18, 18, 18, .12);
  }
  .rx-nav.is-open { transform: translateY(0); }
  .rx-nav__list { flex-direction: column; align-items: stretch; padding: var(--rx-space-1) var(--rx-gutter) var(--rx-space-2); gap: 0; }
  .rx-nav__item { display: block; border-bottom: 1px solid var(--rx-grey-100); margin: 0; }
  .rx-nav__link, .rx-nav__home { display: flex; padding: .95rem 0; font-size: 1rem; }
  .rx-nav__home { flex-direction: row; gap: .5rem; }
  .rx-nav__home-underline { display: none; }
  .rx-burger {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 6px;
  }
  .rx-burger span { width: 24px; height: 2px; background: var(--rx-ink); transition: transform .3s var(--rx-ease), opacity .3s var(--rx-ease); }

  /* Footer stacks: logo, link columns, meta */
  .rx-footer__inner { grid-template-columns: 1fr; gap: var(--rx-space-4); }
}

@media (max-width: 560px) {
  .rx-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--rx-space-3) var(--rx-space-2); }
}
