/* The Hemp House — página Flores Indoor: marquee + ciclo pinneado. */

/* === MARQUEE (CSS-only, infinito) === */
.thh-marquee {
  overflow: hidden;
  background: var(--thh-bg-forest);
  border-top: 1px solid var(--thh-border);
  border-bottom: 1px solid var(--thh-border);
  padding: 14px 0;
}

.thh-marquee__track {
  display: flex;
  width: max-content;
  animation: thh-marquee-scroll 38s linear infinite;
  will-change: transform;
}

.thh-marquee__track span {
  font-family: var(--thh-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--thh-gold);
  white-space: nowrap;
  padding-right: 8px;
}

@keyframes thh-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === EL CICLO INDOOR === */
.thh-cycle {
  position: relative;
  background: var(--thh-bg-deep);
  border-top: 1px solid var(--thh-border);
  overflow: hidden;
}

.thh-cycle::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 20% 25%, rgba(201, 169, 97, 0.08), transparent 70%),
    radial-gradient(ellipse 55% 40% at 85% 75%, rgba(92, 140, 104, 0.10), transparent 70%);
}

.thh-cycle__pin {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--thh-space-24) var(--thh-space-6);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thh-cycle__header {
  text-align: center;
  margin-bottom: var(--thh-space-12);
}

/* Número gigante de fondo — crossfade por etapa (solo desktop con pin) */
.thh-cycle__num {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  pointer-events: none;
  display: none;
}

.thh-cycle__num-item {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-family: var(--thh-font-heading);
  font-size: clamp(160px, 24vw, 340px);
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 97, 0.22);
  opacity: 0;
  transition: opacity 600ms var(--thh-ease-out);
}

.thh-cycle__num-item.is-active { opacity: 1; }

/* Barra de progreso del ciclo — solo visible en modo pinneado */
.thh-cycle__progress {
  display: none;
  position: relative;
  height: 2px;
  background: rgba(201, 169, 97, 0.15);
  border-radius: var(--thh-radius-full);
  margin: 0 auto var(--thh-space-12);
  width: min(560px, 80%);
  overflow: hidden;
}

.thh-cycle__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--thh-sage, #5C8C68), var(--thh-gold));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Etapas — apiladas por defecto (mobile / sin JS): siempre legibles */
.thh-cycle__stages {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--thh-space-6);
  max-width: 640px;
}

.thh-cycle__stage {
  background: var(--thh-bg-card);
  border: 1px solid var(--thh-border);
  border-radius: var(--thh-radius-lg);
  padding: var(--thh-space-8);
  will-change: transform, opacity;
}

.thh-cycle__stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--thh-space-4);
}

.thh-cycle__stage-num {
  font-family: var(--thh-font-heading);
  font-size: 20px;
  color: var(--thh-gold);
}

.thh-cycle__stage-tag {
  font-family: var(--thh-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--thh-text-muted);
  border: 1px solid var(--thh-border);
  border-radius: var(--thh-radius-full);
  padding: 4px 10px;
}

.thh-cycle__stage-title {
  font-family: var(--thh-font-heading);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  color: var(--thh-text-primary);
  margin: 0 0 var(--thh-space-3) 0;
}

.thh-cycle__stage-desc {
  font-family: var(--thh-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--thh-text-secondary);
  margin: 0;
}

/* Modo pinneado (lo activa el JS solo en desktop): etapas superpuestas */
.thh-cycle.is-pinned .thh-cycle__num { display: block; }
.thh-cycle.is-pinned .thh-cycle__progress { display: block; }

.thh-cycle.is-pinned .thh-cycle__stages {
  display: grid;
  min-height: 300px;
}

.thh-cycle.is-pinned .thh-cycle__stage {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(30px);
}

.thh-cycle.is-pinned .thh-cycle__stage.is-active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .thh-marquee__track { animation: none; }
  .thh-cycle__bar { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .thh-cycle__pin { padding: var(--thh-space-16) var(--thh-space-4); min-height: 0; }
}
