:root{
  --hero-h: 80vh;
  --maxw: 1200px;
  --pad: clamp(16px, 3vw, 40px);

  /* Ajusta la opacidad de la capa blanca */
  --overlay-opacity: 0.55;

  /* Tipografías (si ya estás usando Bebas, perfecto; si no, cae en sans) */
  --font-title: var(--font-title, "Bebas Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --font-body: var(--font-body, "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}

.hero{
  position: relative;
  height: var(--hero-h);
  min-height: 520px;
  max-height: 920px;
  overflow: hidden;
}

.hero__media{
  position: absolute;
  inset: 0;
}

.hero__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

/* Capa blanca con opacidad encima del vídeo */
.hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, var(--overlay-opacity));
}

.hero__content{
  position: relative;
  height: 100%;
  display: grid;
  align-items: center;
  padding: var(--pad);
  text-align: center;
}

.hero__inner{
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.hero__eyebrow{
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}

.hero__title{
  font-family: var(--font-title);
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0;
}

.hero__subtitle{
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
  max-width: 52ch;
  margin: 0 auto;
  opacity: 0.95;
}

.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  justify-content: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 20px;
  border: 1px solid rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms ease,
    border-color 180ms ease, box-shadow 220ms ease, filter 220ms ease;
  will-change: transform;
}

.btn::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-120%);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.btn:focus-visible{
  outline: 2px solid rgba(0,0,0,0.85);
  outline-offset: 3px;
}

.btn:active{
  transform: translateY(0) scale(0.99);
}

.btn:hover::after{
  transform: translateX(120%);
}

.btn--primary{
  background: rgba(0,0,0,0.92);
  color: #fff;
  border-color: rgba(0,0,0,0.15);
}

.btn--ghost{
  background: rgba(255,255,255,0.65);
  color: #111;
}

@media (hover: hover) and (pointer: fine){
  .btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
    filter: brightness(1.01);
  }

  .btn--primary:hover{
    background: rgba(0,0,0,0.98);
  }

  .btn--ghost:hover{
    background: rgba(255,255,255,0.85);
  }
}

@media (max-width: 720px){
  .hero{
    min-height: 520px;
    max-height: none;
  }

  .hero__subtitle{
    max-width: 38ch;
  }
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce){
  .hero__video{
    display: none;
  }
  .hero__media{
    background: #eaeaea;
  }

  .btn,
  .btn::after{
    transition: none !important;
  }
}
