/**
 * The Hemp House — Home Inmersiva: Secciones 2, 3 y 7
 *
 * Archivo separado del base (home-immersive.css) por límite de upload del WAF
 * de Webempresa (~16 KB por archivo). Carga DESPUÉS de home-immersive.css
 * para heredar las custom properties del :root.
 */

/* ====================================================
   Eyebrow + título genéricos reutilizables (secciones 2..7)
   ==================================================== */
.thh-section-eyebrow {
  font-family: var(--thh-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--thh-gold);
  margin: 0 0 var(--thh-space-4) 0;
}

.thh-section-title {
  font-family: var(--thh-font-heading);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--thh-text-primary);
  margin: 0 0 var(--thh-space-6) 0;
}

.thh-section-title .italic {
  font-style: italic;
  color: var(--thh-gold-bright);
}

.thh-section-subtitle {
  font-family: var(--thh-font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--thh-text-secondary);
  max-width: 60ch;
  margin: 0;
}

/* Helper genérico fade-up al entrar viewport */
.thh-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 800ms var(--thh-ease-out),
    transform 800ms var(--thh-ease-out);
  will-change: transform, opacity;
}
.thh-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================================
   SECCIÓN 2 — MANIFIESTO (con humo ambiental animado)
   ==================================================== */
.thh-manifesto {
  position: relative;
  padding: var(--thh-space-24) var(--thh-space-6);
  min-height: 100vh;
  background: var(--thh-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--thh-border);
  overflow: hidden;
  isolation: isolate;
}

/* Humo / niebla — capa ambiental de gradientes radiales blureados */
.thh-manifesto::before,
.thh-manifesto::after {
  content: '';
  position: absolute;
  inset: -25%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  will-change: transform;
}

.thh-manifesto::before {
  background:
    radial-gradient(circle at 25% 35%, rgba(92, 140, 104, 0.22), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(201, 169, 97, 0.16), transparent 50%);
  opacity: 0.7;
  animation: thh-smoke-a 38s ease-in-out infinite;
}

.thh-manifesto::after {
  background:
    radial-gradient(circle at 60% 25%, rgba(122, 171, 133, 0.14), transparent 55%),
    radial-gradient(circle at 35% 80%, rgba(232, 200, 121, 0.10), transparent 60%);
  opacity: 0.55;
  animation: thh-smoke-b 56s ease-in-out infinite;
}

@keyframes thh-smoke-a {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(4%, -2%) scale(1.08); }
  66%  { transform: translate(-3%, 3%) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes thh-smoke-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-5%, 4%) scale(1.12); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Scroll-hint pulsante al final del manifiesto */
.thh-manifesto__scroll-hint {
  position: absolute;
  bottom: var(--thh-space-12);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--thh-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--thh-text-secondary);
  opacity: 0.6;
}

.thh-manifesto__scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--thh-gold), transparent);
  animation: thh-scroll-line 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes thh-scroll-line {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

.thh-manifesto__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .thh-manifesto::before,
  .thh-manifesto::after,
  .thh-manifesto__scroll-hint::after {
    animation: none;
  }
}

.thh-manifesto__eyebrow {
  font-family: var(--thh-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--thh-gold);
  margin: 0 0 var(--thh-space-12) 0;
}

.thh-manifesto__text {
  font-family: var(--thh-font-heading);
  font-size: clamp(28px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--thh-text-primary);
  margin: 0;
}

.thh-manifesto__text .word {
  display: inline-block;
  margin-right: 0.18em;
  will-change: opacity, color;
}

.thh-manifesto__text .word.italic {
  font-style: italic;
  color: var(--thh-gold-bright);
}

/* ====================================================
   SECCIÓN 3 — CATEGORÍAS (scroll horizontal con pin)
   ==================================================== */
.thh-categories {
  position: relative;
  background: var(--thh-bg-forest);
  border-top: 1px solid var(--thh-border);
  overflow: hidden;
}

.thh-categories__intro {
  padding: var(--thh-space-24) var(--thh-space-6) var(--thh-space-12);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.thh-categories__viewport {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.thh-categories__track {
  display: flex;
  height: 100%;
  align-items: center;
  gap: var(--thh-space-12);
  padding: 0 8vw;
  will-change: transform;
}

.thh-category-card {
  flex: 0 0 clamp(280px, 38vw, 520px);
  height: 70vh;
  position: relative;
  background: var(--thh-bg-card);
  border-radius: var(--thh-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--thh-space-8);
  text-decoration: none;
  border: 1px solid var(--thh-border);
  transition:
    border-color 300ms var(--thh-ease-out),
    transform 400ms var(--thh-ease-out);
}

.thh-category-card__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--thh-bg-card);
  /* Fallback gradient si no hay imagen — el inline style="background-image:..."
     en el template gana sobre esto */
  background-image:
    radial-gradient(circle at 30% 20%, rgba(201, 169, 97, 0.18), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(92, 140, 104, 0.15), transparent 60%),
    linear-gradient(180deg, var(--thh-bg-forest), var(--thh-bg-card));
  will-change: transform;
  transition: transform 600ms var(--thh-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .thh-category-card:hover .thh-category-card__bg {
    transform: scale(1.06);
  }
}

.thh-category-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 10, 0.1) 0%,
    rgba(10, 14, 10, 0.55) 50%,
    rgba(10, 14, 10, 0.92) 100%
  );
  pointer-events: none;
}

.thh-category-card__content {
  position: relative;
  z-index: 3;
  color: var(--thh-text-primary);
}

.thh-category-card__index {
  font-family: var(--thh-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--thh-gold);
  margin: 0 0 var(--thh-space-4) 0;
  text-transform: uppercase;
}

.thh-category-card__title {
  font-family: var(--thh-font-heading);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--thh-text-primary);
  margin: 0 0 var(--thh-space-4) 0;
}

.thh-category-card__desc {
  font-family: var(--thh-font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--thh-text-secondary);
  margin: 0 0 var(--thh-space-6) 0;
  max-width: 38ch;
}

.thh-category-card__cta {
  font-family: var(--thh-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thh-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 250ms var(--thh-ease-out), color 250ms var(--thh-ease-out);
}

.thh-category-card__cta::after {
  content: '\2192';
  display: inline-block;
  transition: transform 250ms var(--thh-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .thh-category-card:hover {
    border-color: var(--thh-gold);
  }
  .thh-category-card:hover .thh-category-card__cta {
    color: var(--thh-gold-bright);
    gap: 14px;
  }
  .thh-category-card:hover .thh-category-card__cta::after {
    transform: translateX(4px);
  }
}

.thh-categories__progress {
  position: absolute;
  bottom: var(--thh-space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--thh-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--thh-text-secondary);
  opacity: 0.7;
}

.thh-categories__progress-bar {
  position: relative;
  width: 120px;
  height: 1px;
  background: rgba(245, 240, 229, 0.15);
}

.thh-categories__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--thh-gold);
  will-change: width;
}

/* ====================================================
   SECCIÓN 7 — CTA FINAL
   ==================================================== */
.thh-cta-final {
  position: relative;
  padding: var(--thh-space-24) var(--thh-space-6);
  min-height: 90vh;
  background: var(--thh-bg-deep);
  border-top: 1px solid var(--thh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thh-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201, 169, 97, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.thh-cta-final__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.thh-cta-final__title {
  font-family: var(--thh-font-heading);
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--thh-text-primary);
  margin: 0 0 var(--thh-space-8) 0;
}

.thh-cta-final__title .italic {
  font-style: italic;
  color: var(--thh-gold-bright);
}

.thh-cta-final__subtitle {
  font-family: var(--thh-font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--thh-text-secondary);
  max-width: 55ch;
  margin: 0 auto var(--thh-space-12) auto;
}

.thh-cta-final__actions {
  display: flex;
  gap: var(--thh-space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ====================================================
   RESPONSIVE — secciones 2, 3, 7
   ==================================================== */
@media (max-width: 768px) {
  .thh-manifesto {
    padding: var(--thh-space-16) var(--thh-space-4);
    min-height: 80vh;
  }
  .thh-manifesto__text {
    font-size: clamp(24px, 6.5vw, 36px);
  }

  .thh-categories__intro {
    padding: var(--thh-space-16) var(--thh-space-4) var(--thh-space-8);
  }
  .thh-categories__viewport {
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--thh-space-12);
  }
  .thh-categories__viewport::-webkit-scrollbar {
    display: none;
  }
  .thh-categories__track {
    height: auto;
    padding: var(--thh-space-8) var(--thh-space-4);
    gap: var(--thh-space-6);
  }
  .thh-category-card {
    flex: 0 0 80vw;
    height: 60vh;
    scroll-snap-align: center;
  }
  .thh-categories__progress {
    display: none;
  }

  .thh-cta-final {
    min-height: 70vh;
    padding: var(--thh-space-16) var(--thh-space-4);
  }
}
