/* ===========================
   HERO PRINCIPAL
=========================== */

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

/* ===========================
   IMAGEN
=========================== */

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  background: #000;
}

/* Velo para que el texto blanco se lea sobre cualquier cuadro */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* ===========================
   CONTENIDO
=========================== */

.hero-content {
  position: relative;
  z-index: 2;
  top: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  max-width: fit-content;

  padding-left: clamp(20px, 6vw, 80px);
  padding-right: 20px;
}

/* ===========================
   MARCA SUPERIOR
=========================== */

.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-brand-icon {
  position: relative;
  bottom: -5px;
  width: clamp(1.5rem, 2vw + 1rem, 2rem);
  height: clamp(1.5rem, 2vw + 1rem, 2rem);

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  /* Aquí irá el SVG de la llama */
}

.hero-brand-icon svg path {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--color-orange);
}

.hero-brand-text {
  font-family: var(--font-paragraph);
  font-size: var(--font-size-paragraph);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.3px;
}

/* ===========================
   TÍTULO Y DESCRIPCIÓN
   Grotesca Schibsted Grotesk con interletrado cerrado.
   Proporciones del diseño de referencia: el párrafo mide
   ~0.28 del título y ~24 caracteres anchos por línea.
=========================== */

.hero-content {
  --hero-font: "Schibsted Grotesk", "Helvetica", "Arial", sans-serif;
  --hero-title-size: var(--font-size-title-hero);
}

.hero-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--hero-font);
  font-size: var(--hero-title-size);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-kerning: normal;
}

.hero-title__line {
  display: block;
  text-wrap: balance;
}

.hero-description {
  max-width: 24em;
  margin: 1.15em 0 1.6em;
  color: var(--color-text);
  font-family: var(--hero-font);
  font-size: max(0.95rem, calc(var(--hero-title-size) * 0.28));
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.hero-description strong {
  color: #ffffff;
  font-weight: 600;
}

/* ===========================
   ANIMACIÓN DE ENTRADA
   Mismo revelado del sitio (partials/Reveal): cada pieza sube
   desde su máscara. Aquí solo se escalona el orden y se deja
   aire para que la máscara no corte descendentes ni la llama.
=========================== */

.hero-title .reveal-line {
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero-content .hero-description {
  padding-bottom: 0.2em;
  margin-bottom: 1.4em;
}

.hero-content .reveal-mask {
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.hero-content > .reveal-mask:first-child .reveal-block { transition-delay: 0s; }
.hero-title__line:nth-child(1) > span { transition-delay: 0.08s; }
.hero-title__line:nth-child(2) > span { transition-delay: 0.16s; }
.hero-content .hero-description > span { transition-delay: 0.26s; }
.hero-content > .reveal-mask:last-child .reveal-block { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .hero-content .reveal-line span,
  .hero-content .reveal-block {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ===========================
   BOTÓN CTA
=========================== */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: fit-content;

  padding: 16px 28px;

  background: rgba(var(--color-bg-rgb), 0.7);
  color: var(--color-text);

  text-decoration: none;
  font-family: var(--font-paragraph), "Helvetica", "Arial", sans-serif;
  font-weight: 600;
  font-size: var(--font-size-paragraph);

  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.1) !important;
  color: #ffffff;
}

.cta-button svg {
  fill: var(--color-orange);
  height: clamp(16px, 5vw, 28px);
  width: auto;
  transition: transform 0.3s ease;
}

/* efecto hover */
.cta-button:hover svg {
  transform: translate(12px);
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1024px) {
  .hero {
    height: 100svh;
    max-height: 650px;
  }

  .hero-content {
    max-width: 90svw;
    padding-left: 30px;
    padding-right: 30px;
    --hero-title-size: clamp(2.8rem, 8vw, 4.5rem);
  }
}

@media (max-width: 768px) {
  .hero {
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 24px;
    --hero-title-size: clamp(2.4rem, 9vw, 3.8rem);
  }

  .hero-brand {
    margin-bottom: 20px;
  }

  .hero-description {
    max-width: 100%;
  }

  .cta-button {
    padding: 15px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 20px;
    /* Dos líneas también en celular, como en el diseño */
    --hero-title-size: clamp(1.75rem, 8.8vw, 3rem);
  }

  .hero-brand-text {
    font-size: 0.85rem;
  }

  .cta-button {
    width: fit-content;
    padding: 14px 22px;
  }
}
