/* ============================================================
   05 · HERO + SLIDER — módulo compartido (home, contacto, servicios, nosotros)
   Parametrizable por página vía custom properties en .hero:
     --hero-stats       cantidad de columnas de stat (default 2)
     --hero-gap         gap del hero-bottom (default 60px)
     --hero-title-size  tamaño del título (default clamp home)
   ============================================================ */
.hero {
  min-height: 92vh;
  padding: 120px 40px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slider-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease), opacity 0.1s linear 1.2s;
  filter: grayscale(100%) contrast(1.1) brightness(0.62) sepia(0.85) hue-rotate(-15deg) saturate(2.2);
}
.slider-image.active { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease), opacity 0s; animation: kenBurns 9s ease-out forwards; z-index: 2; }
@keyframes kenBurns { from { transform: scale(1.05); } to { transform: scale(1.12); } }
.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.7) 80%),
    linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.9) 100%);
  pointer-events: none;
  z-index: 5;
}
.slider-indicators { position: absolute; bottom: 50px; right: 40px; z-index: 6; display: flex; gap: 10px; align-items: center; }
.slider-indicator { width: 30px; height: 2px; background: rgba(240,237,230,0.25); transition: all 0.4s ease; cursor: none; position: relative; overflow: hidden; }
.slider-indicator.active { width: 60px; }
.slider-indicator.active::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: indicatorFill 5s linear forwards; }
@keyframes indicatorFill { to { transform: translateX(0); } }
.slider-counter { font-size: 10px; font-weight: 500; letter-spacing: 0.15em; color: var(--gold); margin-left: 14px; }

.hero > *:not(.hero-slider) { position: relative; z-index: 10; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  opacity: 0;
  animation: heroIn 0.8s var(--ease) 0.4s forwards;
}
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.hero-eyebrow .blink { color: var(--gold); animation: blinkLive 1.5s infinite; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--hero-title-size, clamp(45px, 7.2vw, 112px));
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-title-line { display: block; overflow: hidden; }
.hero-title-line span { display: inline-block; transform: translateY(110%); animation: titleReveal 1.2s var(--ease) forwards; }
.hero-title-line:nth-child(1) span { animation-delay: 0.7s; }
.hero-title-line:nth-child(2) span { animation-delay: 0.85s; }
.hero-title-line:nth-child(3) span { animation-delay: 1.0s; }
.hero-title-line:nth-child(4) span { animation-delay: 1.15s; }
@keyframes titleReveal { to { transform: translateY(0); } }
.hero-title em { font-style: italic; color: var(--gold); }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr repeat(var(--hero-stats, 2), 0.7fr);
  gap: var(--hero-gap, 60px);
  margin-top: 60px;
  align-items: end;
  opacity: 0;
  animation: heroIn 1s var(--ease) 1.7s forwards;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero-desc { font-size: 17px; line-height: 1.7; color: var(--ink-dim); max-width: 480px; }
.hero-desc strong { color: var(--ink); font-weight: 900; }
.hero-stat { border-left: 1px solid var(--border-strong); padding-left: 20px; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: flex; align-items: baseline; gap: 4px;
}
.hero-stat-num em { color: var(--gold); font-style: normal; }
.hero-stat-label { font-size: 12px; color: var(--ink-dim); line-height: 1.5; }
@media (max-width: 920px) {
  .hero { padding: 80px 20px 60px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .hero-stat { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 20px; }
  .slider-indicators { bottom: 30px; right: 20px; }
}
