/* RouxLub · home (front-page) — product-focused: hero + product lines + contact + maquila */

/* ---- Hero centrado: logo de la marca + overlay navy + banda roja del slogan ---- */
.rx-hero--center {
  position: relative; height: 600px; overflow: hidden;
  background-color: #08152b; display: grid; place-items: center; text-align: center;
}
.rx-hero--center::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-tech, none);
  background-size: cover; background-position: center;
}
/* Overlay navy (marca) + viñeta para resaltar el logo centrado */
.rx-hero--center::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 64% 62% at 50% 44%, rgba(0, 33, 95, .10) 0%, rgba(0, 33, 95, .38) 100%),
    linear-gradient(rgba(0, 33, 95, .24), rgba(0, 33, 95, .38));
}
.rx-hero--center .rx-hero__inner { position: relative; z-index: 2; padding: 0 var(--rx-gutter); }
.rx-hero__logo {
  display: block; margin: 0 auto var(--rx-space-3); width: auto; height: auto;
  max-height: clamp(150px, 22vh, 240px); max-width: 80vw;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 26px rgba(255, 255, 255, .5));
}
.rx-hero__slogan {
  display: inline-block; background: var(--rx-red); color: #fff;
  font-family: var(--rx-font-head); font-weight: var(--rx-fw-bold);
  font-size: clamp(.85rem, 2.3vw, 1.3rem); letter-spacing: .08em; text-transform: uppercase;
  padding: .6rem 2rem; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

/* ---- Líneas de productos ---- */
.rx-lineas { padding-bottom: var(--rx-space-5); }
.rx-lineas__band {
  background-color: #f4f6f9;
  background-image: linear-gradient(rgba(244, 246, 249, .72), rgba(244, 246, 249, .8)), var(--lineas-bg, none);
  background-size: cover; background-position: center; background-attachment: fixed; /* parallax */
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--rx-gutter); text-align: center; margin-bottom: var(--rx-space-4);
}
.rx-lineas__band h2 { color: var(--rx-navy); font-size: var(--rx-text-2xl); }
.rx-line { padding-block: var(--rx-space-4); }
.rx-line--grasas { background: #fbeef1; }
.rx-line__title { text-align: center; font-size: var(--rx-text-xl); color: var(--rx-navy); margin-bottom: var(--rx-space-3); }
.rx-line__title a { color: var(--rx-navy); }
.rx-line__title a:hover { color: var(--rx-red); }

/* ---- Contacto (home) ---- */
.rx-home-contact { background: var(--rx-grey-100); }
.rx-home-contact__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.rx-home-contact__title { font-size: var(--rx-text-2xl); color: var(--rx-navy); }
.rx-home-contact__lead { color: var(--rx-ink-soft); margin-bottom: var(--rx-space-3); }
.rx-form { text-align: left; }
.rx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rx-space-2); margin-bottom: var(--rx-space-2); }
.rx-form label {
  display: block; font-family: var(--rx-font-head); font-weight: var(--rx-fw-semibold);
  color: var(--rx-navy); font-size: .9rem;
}
.rx-form input, .rx-form select, .rx-form textarea {
  width: 100%; margin-top: .35rem; padding: .7rem .9rem; border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius); font: inherit; background: #fff; box-sizing: border-box;
}
.rx-form input:focus, .rx-form select:focus, .rx-form textarea:focus { outline: none; border-color: var(--rx-blue-500); box-shadow: 0 0 0 3px rgba(0, 81, 233, .12); }
.rx-form > label { margin-bottom: var(--rx-space-2); display: block; }
.rx-form .rx-btn { margin-top: var(--rx-space-2); border: 0; cursor: pointer; }
.rx-hp { position: absolute !important; left: -9999px !important; }
.rx-form__ok { background: #e7f6ec; color: #1d7a3e; padding: var(--rx-space-2); border-radius: var(--rx-radius); margin-bottom: var(--rx-space-3); }
/* Contact page: the theme form rendered under the page text (replaces the dead migrated form) */
.rx-page__form { max-width: 640px; margin: var(--rx-space-4) 0 0; }

/* ---- Maquila (cuestionario, banda navy) ---- */
.rx-maquila { background: var(--rx-navy); color: #dbe6f5; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.rx-maquila__inner { max-width: var(--rx-container-narrow); margin-inline: auto; text-align: center; }
.rx-maquila__eb {
  font-family: var(--rx-font-head); font-weight: var(--rx-fw-bold); text-transform: uppercase;
  letter-spacing: .2em; color: #ff8a84; font-size: var(--rx-text-sm); margin-bottom: .6rem;
}
.rx-maquila__title { color: #fff; font-size: var(--rx-text-2xl); margin-bottom: var(--rx-space-2); }
.rx-maquila__lead { color: #b9c8de; margin-bottom: var(--rx-space-3); }
.rx-maquila .rx-form { max-width: 680px; margin-inline: auto; }
.rx-maquila .rx-form label { color: #cdd9ec; }
.rx-maquila .rx-form input, .rx-maquila .rx-form select, .rx-maquila .rx-form textarea { border-color: rgba(255, 255, 255, .18); }
.rx-maquila .rx-btn { background: var(--rx-red); color: #fff; }
.rx-maquila .rx-btn:hover { background: var(--rx-red-dark); }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .rx-form__row { grid-template-columns: 1fr; gap: var(--rx-space-3); }
  .rx-lineas__band { background-attachment: scroll; } /* iOS ignores fixed */
}
@media (max-width: 600px) {
  .rx-hero--center { height: 480px; }
  .rx-hero--center::before { background-image: var(--hero-tech-m, var(--hero-tech)); background-position: center; }
  .rx-hero__logo { max-height: clamp(120px, 30vh, 190px); }
}
