/* ============================================================
   HOMBRE ALFA — Home sections
   ============================================================ */

/* ----- Botones compartidos ----- */
.ha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.ha-btn--primary {
  background: var(--ha-amber);
  color: var(--ha-text-on-amber);
  border-color: var(--ha-amber);
}
.ha-btn--primary:hover {
  background: var(--ha-amber-hover);
  border-color: var(--ha-amber-hover);
}

.ha-btn--ghost {
  background: transparent;
  color: var(--ha-white);
  border-color: var(--ha-hairline-strong);
}
.ha-btn--ghost:hover {
  border-color: var(--ha-white);
}

.ha-btn--amber {
  color: #D9822B;
  border-color: #D9822B;
}
.ha-btn--amber:hover {
  background: rgba(217,130,43,0.08);
  border-color: #E8963D;
  color: #E8963D;
}

.ha-btn--dark {
  background: var(--ha-black);
  color: var(--ha-white);
  border-color: var(--ha-black);
}
.ha-btn--dark:hover {
  background: var(--ha-charcoal);
}

/* ============================================================
   1. HERO
   ============================================================ */
.ha-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ha-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ha-hero__video-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ha-charcoal) 0%, var(--ha-ash) 50%, var(--ha-steel) 100%);
}

.ha-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ha-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,5,0.45) 0%,
    rgba(5,5,5,0.25) 50%,
    rgba(5,5,5,0.75) 100%
  );
}

.ha-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 2rem 4rem;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ha-hero__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ha-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ha-amber);
  margin: 0;
  margin-top: 120px;
  visibility: hidden;
}

.ha-hero__title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ha-white);
  margin: 0;
}

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

.ha-hero__sub {
  font-size: 1.125rem;
  color: var(--ha-smoke);
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

.ha-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.ha-hero__ctas .ha-btn {
  min-width: 220px;
  width: 220px;
}

.ha-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ha-hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--ha-amber), transparent);
  animation: ha-scroll-pulse 2s ease-in-out infinite;
}

@keyframes ha-scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ============================================================
   2. MANIFIESTO REDPILL
   ============================================================ */
.ha-manifesto {
  padding: 8rem 2rem;
  background: var(--ha-black);
  text-align: center;
}

.ha-manifesto__inner {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.ha-manifesto__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ha-amber);
  margin: 0;
}

.ha-manifesto__text {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ha-white);
  margin: 0;
}

.ha-manifesto__line {
  display: block;
}

body.js-reveal-ready .ha-manifesto__line {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.js-reveal-ready .ha-manifesto__text.is-visible .ha-manifesto__line {
  opacity: 1;
  transform: translateY(0);
}

body.js-reveal-ready .ha-manifesto__line:nth-child(1) { transition-delay: 0s; }
body.js-reveal-ready .ha-manifesto__line:nth-child(2) { transition-delay: 0.15s; }
body.js-reveal-ready .ha-manifesto__line:nth-child(3) { transition-delay: 0.3s; }
body.js-reveal-ready .ha-manifesto__line:nth-child(4) { transition-delay: 0.45s; }

.ha-manifesto__text strong {
  font-weight: 700;
  color: var(--ha-white);
}

.ha-manifesto__text em {
  font-style: italic;
  color: var(--ha-amber);
}

.ha-manifesto__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ha-amber);
  text-decoration: none;
  border-bottom: 1px solid var(--ha-amber);
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}
.ha-manifesto__link:hover {
  color: var(--ha-amber-hover);
  border-color: var(--ha-amber-hover);
}

/* ============================================================
   3. COLECCIONES
   ============================================================ */
.ha-collections {
  padding: 6rem 2rem;
  background: var(--ha-charcoal);
}

.ha-collections__inner {
  max-width: 1280px;
  margin-inline: auto;
}

.ha-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.ha-section-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ha-white);
  margin: 0;
  letter-spacing: -0.02em;
}

.ha-section-header__link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ha-smoke);
  text-decoration: none;
  transition: color 150ms ease;
  white-space: nowrap;
}
.ha-section-header__link:hover { color: var(--ha-amber); }

.ha-collections__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ha-collection-card,
.ha-collection-card:hover,
.ha-collection-card:focus,
.ha-collection-card:visited {
  position: relative;
  background: var(--ha-ash);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
}

.ha-collection-card__ph {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  background: linear-gradient(160deg, var(--ha-steel) 0%, var(--ha-ash) 100%);
  overflow: hidden;
  transition: transform 400ms ease;
  flex-shrink: 0;
}
.ha-collection-card:hover .ha-collection-card__ph {
  transform: scale(1.04);
}

.ha-collection-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.ha-collection-card:hover .ha-collection-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.ha-collection-card__overlay-name {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--ha-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.ha-collection-card__overlay-sub {
  font-size: 0.8125rem;
  color: var(--ha-smoke);
  line-height: 1.45;
  margin: 0 0 1rem;
}

.ha-collection-card__overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D9822B;
}

.ha-collection-card__body {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--ha-charcoal);
}

.ha-collection-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ha-white);
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ha-collection-card__sub {
  font-size: 0.6875rem;
  color: var(--ha-smoke);
  margin: 0;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* ============================================================
   4. PRODUCTOS DESTACADOS
   ============================================================ */
.ha-products {
  padding: 6rem 2rem;
  background: var(--ha-black);
}

.ha-products__inner {
  max-width: 1280px;
  margin-inline: auto;
}

.ha-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ha-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.ha-product-card__img {
  aspect-ratio: 1 / 1;
  background: #222222;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.4s ease;
}

.ha-product-card__img img,
.ha-products .ha-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  box-sizing: border-box;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .ha-product-card:hover .ha-product-card__img {
    border-color: #D9822B;
  }

  .ha-product-card:hover .ha-product-card__img img {
    transform: scale(1.04);
  }
}

.ha-product-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--ha-charcoal);
  padding: 1rem;
}

.ha-product-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ha-white);
  margin: 0;
  letter-spacing: 0.02em;
}

.ha-product-card__price {
  font-size: 0.8125rem;
  color: var(--ha-smoke);
  margin: 0;
}

/* ============================================================
   5. UNIVERSO HOMBRE ALFA
   ============================================================ */
.ha-universe {
  padding: 6rem 2rem;
  background: var(--ha-charcoal);
}

.ha-universe__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ha-universe__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ha-universe__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ha-amber);
  margin: 0;
}

.ha-universe__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ha-white);
  margin: 0;
  letter-spacing: -0.02em;
}

.ha-universe__body {
  font-size: 1rem;
  color: var(--ha-smoke);
  line-height: 1.75;
  margin: 0;
}

.ha-universe__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.ha-universe__value {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--ha-hairline);
  border-radius: 2px;
}

.ha-universe__value-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ha-white);
  margin: 0;
}

.ha-universe__value-desc {
  font-size: 0.8125rem;
  color: var(--ha-smoke);
  margin: 0;
  line-height: 1.5;
}

.ha-universe__image {
  display: grid;
  background: #050505;
  overflow: hidden;
  max-width: 960px;
  margin-inline: auto;
}

.ha-universe__image img,
.ha-universe__fire-glow {
  grid-area: 1 / 1;
}

/* Fuego vivo: NO pinta un color nuevo encima de la foto (eso se veía
   como un plafón/semáforo parpadeando). En su lugar, duplica la propia
   imagen y usa una máscara que aísla solo los píxeles de tono fuego
   (naranja/rojo real de la foto, no gris de roca), animando su brillo
   y saturación. El resultado es que el grabado que YA existe en la
   imagen del artista respira/vive, sin añadir ninguna forma ajena. */
.ha-universe__fire-glow {
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: url('../img/marca-emblema-mask.png');
  mask-image: url('../img/marca-emblema-mask.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  animation: ha-fire-breathe 3.2s ease-in-out infinite;
}

@keyframes ha-fire-breathe {
  0%   { opacity: 0.35; filter: brightness(1.6) saturate(1.4) contrast(1.15); }
  30%  { opacity: 0.85; filter: brightness(2.4) saturate(1.9) contrast(1.3); }
  50%  { opacity: 0.55; filter: brightness(1.9) saturate(1.5) contrast(1.2); }
  70%  { opacity: 1;    filter: brightness(2.8) saturate(2) contrast(1.35); }
  100% { opacity: 0.35; filter: brightness(1.6) saturate(1.4) contrast(1.15); }
}

/* ============================================================
   6. BANDA CTA
   ============================================================ */
.ha-cta-band {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
  background: var(--ha-black);
  text-align: center;
  border-top: 1px solid var(--ha-hairline);
}

.ha-ember {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: #D9822B;
  opacity: 0;
  bottom: var(--from, 8%);
  left: var(--x, 50%);
  pointer-events: none;
  animation: ha-ember-rise var(--dur, 4s) ease-in infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes ha-ember-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: var(--peak, 0.7); }
  45%  { opacity: calc(var(--peak, 0.7) * 0.6); transform: translateY(calc(var(--travel, 200px) * -0.45)) translateX(calc(var(--drift, 10px) * 0.5)); }
  80%  { opacity: calc(var(--peak, 0.7) * 0.25); }
  100% { transform: translateY(calc(var(--travel, 200px) * -1)) translateX(var(--drift, 10px)); opacity: 0; }
}

.ha-cta-band__inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ha-cta-band__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ha-white);
  margin: 0;
  letter-spacing: -0.02em;
}

.ha-cta-band__sub {
  font-size: 1rem;
  color: var(--ha-smoke);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   Scroll-to-top button (móvil)
   ============================================================ */
#ha-scroll-top {
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #D9822B;
  color: #fff;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, background 150ms ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

#ha-scroll-top:hover {
  background: #E8963D;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .ha-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ha-universe__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ha-universe__image {
    order: -1;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ha-collections__grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .ha-hero {
    min-height: 480px;
    height: 60vh;
  }

  .ha-hero__video {
    object-position: center 35%;
  }

  .ha-hero__scroll {
    display: none;
  }

  .ha-hero__content {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .ha-hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .ha-hero__ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0.5rem;
  }

  .ha-hero__ctas .ha-btn {
    width: auto;
    max-width: 200px;
    justify-content: center;
    padding: 0.45rem 1.25rem;
    font-size: 0.75rem;
  }

  .ha-manifesto {
    padding: 5rem 1.5rem;
  }

  .ha-universe__values {
    grid-template-columns: 1fr;
  }

  .ha-products__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ha-collections__grid {
    grid-template-columns: 1fr;
  }

  .ha-products__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ha-hero__ctas .ha-btn {
    max-width: 100%;
  }

  .ha-cta-band__title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   BLOQUE 1 — Hero fluido para pantallas grandes (1920x1080)
   Todo queda por encima de 768px: el breakpoint móvil aprobado
   (max-width: 768px, arriba) no se modifica ni se ve afectado.
   ============================================================ */
@media (min-width: 769px) {
  .ha-hero {
    align-items: stretch;
  }

  .ha-hero__content {
    justify-content: space-between;
    padding-top: 19rem;
    padding-bottom: 2.5rem;
  }

  .ha-hero__sub {
    font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.375rem);
  }

  .ha-hero__ctas .ha-btn {
    min-width: unset;
    width: clamp(200px, 15vw, 240px);
    padding: clamp(0.75rem, 0.6rem + 0.5vw, 0.875rem) clamp(1.5rem, 1rem + 1.5vw, 2rem);
    font-size: clamp(0.75rem, 0.65rem + 0.3vw, 0.8125rem);
  }
}

@media (min-width: 1600px) {
  .ha-hero__title {
    font-size: clamp(6.5rem, 6vw, 8rem);
  }
}

/* ============================================================
   Bloque 1 — Suprimir icono quickview / zoom en product cards
   ============================================================ */
.ha-product-card .woocommerce-product-gallery__trigger,
.ha-product-card [class*="quick"],
.ha-product-card [class*="zoom"],
.ha-product-card__img > button {
  display: none !important;
}

/* ============================================================
   Scroll reveal — solo activo cuando JS carga (anti-CLS)
   ============================================================ */
body.js-reveal-ready .reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.js-reveal-ready .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
