/* ===========================
   Hero Section
   =========================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ===========================
   Background — 3 Layers
   Layer 1: Fine grain
   Layer 2: Warm glow
   Layer 3: Paper texture (almost invisible)
   =========================== */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
}

/* Layer 3: Paper texture — barely perceptible depth */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      rgba(255, 255, 255, 0.003) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 4px 4px;
  opacity: 0.8;
  pointer-events: none;
}

/* Layer 1: Film grain — fine, cinematic */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ===========================
   Organic Glow — Layer 2
   Asymmetric, warm, organic
   =========================== */

.hero__glow {
  position: absolute;
  top: 38%;
  left: 46%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 750px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Core hotspot — tighter, brighter */
.hero__glow::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 48%;
  width: 280px;
  height: 200px;
  background: radial-gradient(
    ellipse at 48% 30%,
    rgba(196, 168, 110, 0.058) 0%,
    rgba(196, 168, 110, 0.027) 30%,
    rgba(196, 168, 110, 0.009) 55%,
    transparent 80%
  );
  border-radius: 45% 55% 50% 50%;
  filter: blur(45px);
}

/* Outer spill — wide, asymmetric drift */
.hero__glow::after {
  content: '';
  position: absolute;
  top: 5%;
  left: 35%;
  width: 650px;
  height: 550px;
  background:
    radial-gradient(ellipse 50% 40% at 45% 20%, rgba(196, 168, 110, 0.023) 0%, transparent 65%),
    radial-gradient(ellipse 30% 55% at 55% 40%, rgba(196, 168, 110, 0.013) 0%, transparent 55%),
    radial-gradient(ellipse 70% 25% at 40% 65%, rgba(196, 168, 110, 0.007) 0%, transparent 45%);
  filter: blur(90px);
}

.hero.loaded .hero__glow {
  opacity: 1;
}

/* ===========================
   Architectural Visual — RIGHT SIDE
   Appears after 1.5s, at 2-4% opacity
   Lines of a technical drawing
   =========================== */

.hero__visual {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 320px;
  height: 460px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 3s cubic-bezier(0.16, 1, 0.3, 1) 1.5s;
}

.hero.loaded .hero__visual {
  opacity: 1;
}

/* Outer frame */
.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 160px 160px 0 0;
  box-shadow: 0 0 60px 20px rgba(196, 168, 110, 0.03);
}

/* Inner arch */
.hero__visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 85%;
  border: 1px solid rgba(196, 168, 110, 0.06);
  border-radius: 120px 120px 0 0;
  box-shadow:
    0 0 40px 15px rgba(196, 168, 110, 0.025),
    inset 60px 0 80px -40px rgba(196, 168, 110, 0.035);
}

/* Technical grid lines inside */
.hero__visual-grid {
  position: absolute;
  inset: 0;
}

.hero__visual-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
}

.hero__visual-grid::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(196, 168, 110, 0.03);
}

/* ===========================
   Editorial Word — hidden detail
   =========================== */

.hero__editorial-word {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: var(--weight-body-medium);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.15;
  margin-top: 10px;
  margin-left: 20px;
}

/* ===========================
   Content — Asymmetric offset LEFT
   =========================== */

.hero__content {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 900px;
  padding-left: clamp(48px, 8vw, 140px);
  padding-right: var(--grid-page-margin);
  margin-left: -40px;
  margin-top: -45px;
}

/* ===========================
   Brand Signature — sello delicado
   =========================== */

.hero__signature {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: var(--weight-heading-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.45;
  margin-bottom: var(--space-56);
  padding-bottom: var(--space-20);
  position: relative;
}

.hero__signature::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 1px;
  background-color: var(--color-gold);
  opacity: 0.3;
}

/* ===========================
   Title — Donde el lujo se vuelve silencio
   =========================== */

.hero__title {
  margin-bottom: var(--space-8);
  line-height: 1;
}

.hero__title em {
  font-style: italic;
  color: var(--color-gold);
}

/* ===========================
   Boutique — 55% of title, integrated
   =========================== */

.hero__boutique {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  font-weight: var(--weight-heading-light);
  font-style: italic;
  color: var(--color-ivory);
  margin-top: 36px;
  margin-bottom: var(--space-40);
  margin-left: clamp(64px, 8.5vw, 180px);
  opacity: 0.7;
  letter-spacing: var(--tracking-wide);
}

/* ===========================
   Subtitle — extreme tracking, more air
   =========================== */

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--weight-body-medium);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0;
  margin-top: var(--space-8);
  opacity: 0.6;
}

/* ===========================
   Description — 420px max, magazine line-height
   =========================== */

.hero__description {
  max-width: 420px;
  margin-top: 56px;
  margin-bottom: 56px;
  color: var(--color-gray-warm);
  font-size: var(--text-hero-description);
  line-height: 1.85;
  font-weight: var(--weight-body-light);
}

/* ===========================
   CTA — Editorial: text + line below
   =========================== */

.hero__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: var(--space-128);
}

.btn--editorial {
  display: inline-flex;
  align-items: center;
  gap: var(--space-16);
  min-height: 44px;
  padding: var(--space-16) var(--space-40);
  background-color: var(--color-gold);
  border: 1px solid var(--color-gold);
  color: var(--color-black-absolute);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--weight-body-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  position: relative;
  transition: background-color var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.btn--editorial__line {
  width: 24px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.75;
  position: relative;
  transition: width var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out);
}

.btn--editorial__line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.btn--editorial:hover {
  background-color: var(--color-ivory);
  border-color: var(--color-ivory);
  color: var(--color-black-absolute);
}

.btn--editorial:hover .btn--editorial__line {
  width: 36px;
  opacity: 1;
}

.btn--editorial:focus-visible {
  outline: 2px solid var(--color-ivory);
  outline-offset: 3px;
}

.btn--editorial:active {
  transform: translateY(1px);
}

/* ===========================
   Scroll Indicator
   =========================== */

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  position: absolute;
  bottom: var(--space-88);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.loaded .hero__scroll {
  opacity: 1;
  transition-delay: 4.2s;
}

.hero__line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
  margin-bottom: var(--space-8);
}

.hero__scroll-text {
  font-size: 0.5rem;
  font-weight: var(--weight-body-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gray-warm);
  opacity: 0.5;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-gold));
  animation: scrollPulse 2.6s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}
