/* ── HOMEPAGE STUDIO HERO ─────────────────────────────────────────────────
   DEPLUS-approved design (Nov 2026): studio lineup photo, centred copy,
   spec rail. Phones (<=860px) swap the wide photo for the cut-out lineup
   (products-lineup-mobile.webp) in the flow above a 2x2 rail.
   Sits under the site's shared white navbar. */

.hs-hero {
  --hs-ink: #010b1c;
  --hs-line: rgba(255, 255, 255, 0.14);
  --hs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  min-height: 100svh;
  padding-top: var(--navbar-height);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--hs-ink);
  color: #fff;
}

.hs-media { position: absolute; inset: 0; z-index: -3; }
.hs-media img {
  position: absolute; left: 50%; bottom: -7%;
  width: max(100%, 1500px); height: auto; max-width: none;
  transform: translateX(-50%) scale(1.08); transform-origin: 50% 80%;
  animation: hs-push 18s var(--hs-ease) forwards;
}
@keyframes hs-push { to { transform: translateX(-50%) scale(1); } }

.hs-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(1,11,28,.97) 0%, rgba(1,11,28,.9) 38%, rgba(1,11,28,.55) 52%, rgba(1,11,28,.1) 66%, rgba(1,11,28,.35) 85%, rgba(1,11,28,.95) 100%),
    radial-gradient(60% 50% at 50% 70%, transparent 0%, rgba(1,11,28,.55) 100%);
}
.hs-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.10) 48%, transparent 60%);
  background-size: 250% 100%; background-position: 120% 0; mix-blend-mode: screen;
  animation: hs-sweep 7s 1.4s var(--hs-ease) infinite;
}
@keyframes hs-sweep { 0% { background-position: 120% 0; } 55%, 100% { background-position: -40% 0; } }

.hs-copy { text-align: center; padding: clamp(28px, 6vh, 70px) 20px 0; max-width: 1500px; margin: 0 auto; }
.hs-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hs-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(214,45,47,.25); }

.hs-title {
  font-family: 'Barlow Semi Condensed', var(--font-heading); font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 5.3vw, 92px); line-height: .98; letter-spacing: -.035em;
  color: #fff; margin: 18px 0 0;
}
.hs-title .hs-line { display: block; overflow: hidden; padding-bottom: .04em; }
.hs-title .hs-line > span { display: inline-block; transform: translateY(105%); animation: hs-rise 1.1s var(--hs-ease) forwards; }
.hs-title .hs-line:nth-child(2) > span { animation-delay: .12s; color: var(--color-primary); }
.hs-title .hs-seg { white-space: nowrap; }
@keyframes hs-rise { to { transform: none; } }

.hs-sub {
  max-width: 740px; margin: 22px auto 0;
  font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: rgba(255,255,255,.72);
  opacity: 0; animation: hs-fade 1s .5s var(--hs-ease) forwards;
}
.hs-ctas { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; opacity: 0; animation: hs-fade 1s .65s var(--hs-ease) forwards; }
@keyframes hs-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 16px 26px; border-radius: 999px; color: #fff; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.hs-btn:active { transform: translateY(1px); }
.hs-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.hs-btn:hover svg { transform: translateX(3px); }
.hs-btn-red { background: var(--color-primary); box-shadow: 0 10px 30px -8px rgba(214,45,47,.6); }
.hs-btn-red:hover { background: var(--color-primary-dark); }
.hs-btn-ghost { background: rgba(2,22,53,.55); border: 1px solid var(--hs-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hs-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }

.hs-lineup { display: none; }

.hs-rail {
  margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hs-line);
  background: linear-gradient(180deg, rgba(1,11,28,0), rgba(1,11,28,.7));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hs-rail div { padding: 22px clamp(16px, 2.4vw, 36px); border-right: 1px solid var(--hs-line); opacity: 0; animation: hs-fade .9s var(--hs-ease) forwards; }
.hs-rail div:last-child { border-right: 0; }
.hs-rail div:nth-child(1) { animation-delay: .9s } .hs-rail div:nth-child(2) { animation-delay: 1s }
.hs-rail div:nth-child(3) { animation-delay: 1.1s } .hs-rail div:nth-child(4) { animation-delay: 1.2s }
.hs-rail b { display: block; font-family: var(--font-heading); font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; letter-spacing: .01em; color: #fff; font-variant-numeric: tabular-nums; }
.hs-rail span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

@media (max-width: 860px) {
  .hs-hero { min-height: 100svh; background: radial-gradient(120% 70% at 50% 35%, #1a2236 0%, #10162a 55%, #0b1122 100%); }
  .hs-media, .hs-hero::before, .hs-hero::after { display: none; }
  .hs-copy { padding: 44px 26px 0; }
  .hs-eyebrow { font-size: 11px; letter-spacing: .24em; gap: 12px; }
  .hs-title { font-size: clamp(30px, 9.4vw, 52px); line-height: 1.02; margin-top: 18px; }
  .hs-title .hs-seg { display: block; }
  .hs-sub { font-size: 16px; line-height: 1.6; margin-top: 22px; color: rgba(255,255,255,.7); }
  .hs-ctas { flex-direction: column; gap: 14px; margin-top: 30px; }
  .hs-btn { width: 100%; font-size: 17px; padding: 18px 26px; }
  .hs-btn-red { box-shadow: 0 8px 34px -6px rgba(214,45,47,.75); }
  .hs-btn-ghost { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.22); }
  .hs-lineup { display: block; margin: 34px auto 0; width: 88%; max-width: 520px; opacity: 0; animation: hs-fade 1s .8s var(--hs-ease) forwards; }
  .hs-lineup img { display: block; width: 100%; height: auto; }
  .hs-rail { margin-top: 0; grid-template-columns: 1fr 1fr; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--hs-line); }
  .hs-rail div { padding: 20px 24px; }
  .hs-rail div:nth-child(2) { border-right: 0; }
  .hs-rail div:nth-child(-n+2) { border-bottom: 1px solid var(--hs-line); }
  .hs-rail b { font-family: var(--font-body); font-size: 22px; letter-spacing: -.01em; }
  .hs-rail span { font-size: 11px; letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-media img, .hs-hero::after, .hs-title .hs-line > span, .hs-sub, .hs-ctas, .hs-lineup, .hs-rail div { animation: none; opacity: 1; transform: none; }
  .hs-media img { transform: translateX(-50%); }
}

/* Section backgrounds below the hero (hero-test.css keyed these off .test-hero). */
.hs-hero ~ .section, .hs-hero ~ .cert-bar { background-color: #ffffff; }
.hs-hero ~ .section-light, .hs-hero ~ .category-bar { background-color: #f5f5f5; }

/* Spanish hero lines are longer ("AIRES ACONDICIONADOS,"): a step smaller on phones so they fit */
@media (max-width: 860px) {
  html[lang="es"] .hs-title { font-size: clamp(26px, 8.1vw, 46px); }
}
