/**
 * Hero dark dramático — Smart Catering home.
 * UNLAYERED.
 */

body.scc-fase0 .sc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #000;
  isolation: isolate;
}
body.scc-fase0 .sc-hero__bg {
  position: absolute;
  /* Parallax safety headroom. The bg drifts DOWN up to ~15% via the
   * [data-parallax] scrub (app.js). Anchoring it 20% above the hero with
   * 120% height keeps the top edge covered even if ScrollTrigger's scrub
   * transform is briefly frozen (reload-while-scrolled + scroll restoration,
   * bfcache back-button, or a lazy-image layout shift). Without this, any
   * downward drift exposes the black .sc-hero background as a gap under the
   * nav. The hero's overflow:hidden clips the extra height. */
  left: 0;
  right: 0;
  top: -20%;
  height: 120%;
  z-index: 0;
}
body.scc-fase0 .sc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.scc-fase0 .sc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.78) 100%);
  z-index: 1;
}
body.scc-fase0 .sc-hero__watermark {
  position: absolute;
  bottom: -2vw;
  left: -2vw;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(8rem, 22vw, 28rem);
  color: rgba(255,255,255,0.05);
  letter-spacing: -0.04em;
  line-height: 0.9;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
body.scc-fase0 .sc-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 4vw, 2.5rem);
}
body.scc-fase0 .sc-hero__content { max-width: 56rem; }
body.scc-fase0 .sc-hero__eyebrow {
  display: block;
  color: var(--color-gold, #D99E39);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  /* QW5: legibility anchor over bright image zones. */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
body.scc-fase0 .sc-hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  color: #fff;
  /* Fase 2 foundations (AC-R7.2): H1 driven by the type-scale token instead
   * of an ad-hoc clamp, so the hero headline stays in the single H1 range
   * (56–80px) site-wide. Hero keeps its dramatic weight/line-height. */
  font-size: var(--fs-6xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
  /* Harden 2026-06-07: el H1 ES largo y multilingüe. Balance reparte líneas
   * pares; word-wrap es cinturón por si una traducción
   * (EN: "Gastronomic operations for businesses, hotels and international
   * weddings") se rompe sobre un grid angosto en mobile.
   * 2026-07-15: hyphens auto -> manual. Client flagged the mobile H1
   * breaking as "empre-sas"; a display serif headline must never
   * auto-hyphenate. Whole-word wrap only. */
  text-wrap: balance;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: manual;
}
@media (max-width: 480px) {
  body.scc-fase0 .sc-hero__title {
    /* Scale below the --fs-6xl floor (56px) on narrow screens: the longest
     * ES words ("gastronómica", "colectividades") measure ~366px at 56px
     * serif and overflow a 320px line, forcing break-word to split them
     * mid-word. This floor keeps every word whole down to 320px wide. */
    font-size: clamp(2.375rem, 11.5vw, 3.25rem);
  }
}
body.scc-fase0 .sc-hero__lead {
  /* Force full white: the global `p { color: var(--color-body) }` (#4a4a4a)
   * can win over the inherited section color, leaving the lead grey on the
   * dark hero photo. Mirrors the fix in division.css and bodas.css. */
  color: #fff;
  opacity: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 0 2.5rem;
  text-wrap: pretty;
}
body.scc-fase0 .sc-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
body.scc-fase0 .sc-hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
body.scc-fase0 .sc-hero__scroll-line {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,0.4);
  display: block;
  animation: sc-hero-scroll-pulse 2s ease-in-out infinite;
}
@keyframes sc-hero-scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
/* Harden 2026-06-07: el pulse infinito molesta en reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  body.scc-fase0 .sc-hero__scroll-line {
    animation: none;
    opacity: 0.7;
  }
}

/* ─── Canonical hero variants (Fase 2 foundations — AC-R7.1) ───────────────
 * Three sanctioned variants so future pages reuse `.sc-hero` + a modifier
 * instead of opening a new per-page hero selector (sc-bodas-hero,
 * sc-division-hero, …). Legacy hero selectors are migrated to these during
 * their own rebuild; foundations introduces no new per-page selectors.
 *   --home     full-bleed dramatic hero (default `.sc-hero` look).
 *   --division B2B division hero, shorter, content-led.
 *   --page     generic interior page hero, compact. */
body.scc-fase0 .sc-hero--division { min-height: 72vh; }
body.scc-fase0 .sc-hero--page {
  min-height: 56vh;
  align-items: flex-end;
}
body.scc-fase0 .sc-hero--page .sc-hero__inner {
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
