/**
 * The Hemp House — Estilos específicos página /flores-cbd/.
 * Carga después de home-extras.css y reutiliza todos sus tokens.
 */

/* === HERO de página (con video full-bleed) === */
.thh-page-hero {
  position: relative;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--thh-bg-deep);
}

@media (max-width: 768px) {
  .thh-page-hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: 100dvh;
    height: 100svh;
  }
  .thh-page-hero__bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
  }
  /* Centrar video en mobile: si el video es horizontal y la card es vertical,
     cover lo escala al alto (lo que es lo que queremos) */
}

/* === BREADCRUMB === */
.thh-breadcrumb {
  font-family: var(--thh-font-body);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--thh-text-secondary);
  margin-bottom: var(--thh-space-6);
}

.thh-breadcrumb a {
  color: var(--thh-text-secondary);
  text-decoration: none;
  transition: color 200ms var(--thh-ease-out);
}

.thh-breadcrumb a:hover {
  color: var(--thh-gold-bright);
}

.thh-breadcrumb__sep {
  margin: 0 8px;
  color: var(--thh-text-muted);
}

/* === MÉTODOS DE CULTIVO === */
.thh-methods {
  background: var(--thh-bg-forest);
  border-top: 1px solid var(--thh-border);
  padding: var(--thh-space-24) var(--thh-space-6);
}

.thh-methods__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.thh-methods__header {
  text-align: center;
  margin-bottom: var(--thh-space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.thh-methods__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--thh-space-6);
}

.thh-method-card {
  position: relative;
  padding: var(--thh-space-8);
  background: var(--thh-bg-card);
  border: 1px solid var(--thh-border);
  border-radius: var(--thh-radius-lg);
  transition:
    border-color 320ms var(--thh-ease-out),
    transform 320ms var(--thh-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .thh-method-card:hover {
    border-color: var(--thh-gold);
    transform: translateY(-4px);
  }
}

.thh-method-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--thh-space-4);
}

.thh-method-card__index {
  font-family: var(--thh-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--thh-gold);
}

.thh-method-card__tag {
  font-family: var(--thh-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--thh-sage-bright);
  padding: 4px 10px;
  border: 1px solid rgba(122, 171, 133, 0.3);
  border-radius: var(--thh-radius-full);
}

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

.thh-method-card__desc {
  font-family: var(--thh-font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--thh-text-secondary);
  margin: 0;
}

/* === BENEFICIOS === */
.thh-benefits {
  background: var(--thh-bg-deep);
  border-top: 1px solid var(--thh-border);
  padding: var(--thh-space-24) var(--thh-space-6);
}

.thh-benefits__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.thh-benefits__header {
  text-align: center;
  margin-bottom: var(--thh-space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.thh-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--thh-space-6);
}

.thh-benefit-card {
  text-align: center;
  padding: var(--thh-space-6) var(--thh-space-4);
}

.thh-benefit-card__symbol {
  display: inline-block;
  font-family: var(--thh-font-heading);
  font-style: italic;
  font-size: 38px;
  font-weight: 500;
  color: var(--thh-gold-bright);
  margin-bottom: var(--thh-space-4);
  line-height: 1;
}

.thh-benefit-card__title {
  font-family: var(--thh-font-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--thh-text-primary);
  margin: 0 0 var(--thh-space-3) 0;
}

.thh-benefit-card__desc {
  font-family: var(--thh-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--thh-text-secondary);
  margin: 0;
}

/* === GRID DE TODAS LAS FLORES === */
.thh-page-grid {
  background: var(--thh-bg-deep);
  border-top: 1px solid var(--thh-border);
  padding: var(--thh-space-24) var(--thh-space-6);
  scroll-margin-top: 80px;
}

.thh-page-grid__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.thh-page-grid__header {
  text-align: center;
  margin-bottom: var(--thh-space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.thh-page-grid__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--thh-space-6);
}

/* En grid, los cards no son flex 0 0 (los reseteamos) */
.thh-page-grid__list .thh-product-card {
  flex: initial;
  width: 100%;
}

/* === PROOF / Macro real del producto === */
.thh-page-proof {
  position: relative;
  background: var(--thh-bg-deep);
  border-top: 1px solid var(--thh-border);
  padding: var(--thh-space-24) var(--thh-space-6);
  overflow: hidden;
}

.thh-page-proof::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(201, 169, 97, 0.08), transparent 70%);
}

.thh-page-proof__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--thh-space-16);
  align-items: center;
}

.thh-page-proof__visual {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 720px;
  border-radius: var(--thh-radius-xl);
  overflow: hidden;
  background: var(--thh-bg-card);
  border: 1px solid var(--thh-border);
  box-shadow: var(--thh-shadow-glow-gold);
}

.thh-page-proof__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.thh-page-proof__badge {
  position: absolute;
  top: var(--thh-space-4);
  left: var(--thh-space-4);
  z-index: 2;
  background: var(--thh-gold);
  color: var(--thh-bg-deep);
  font-family: var(--thh-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 12px;
  border-radius: var(--thh-radius-sm);
}

.thh-page-proof__content {
  padding: var(--thh-space-4) 0;
}

.thh-page-proof__points {
  list-style: none;
  padding: 0;
  margin: var(--thh-space-8) 0 var(--thh-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--thh-space-4);
}

.thh-page-proof__points li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--thh-space-4) 0;
  border-bottom: 1px solid var(--thh-border);
}

.thh-page-proof__points li:last-child {
  border-bottom: none;
}

.thh-page-proof__points strong {
  font-family: var(--thh-font-heading);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  color: var(--thh-gold-bright);
  letter-spacing: -0.005em;
}

.thh-page-proof__points span {
  font-family: var(--thh-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--thh-text-secondary);
}

.thh-page-proof__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--thh-space-4);
}

@media (max-width: 900px) {
  .thh-page-proof__inner {
    grid-template-columns: 1fr;
    gap: var(--thh-space-8);
  }
  .thh-page-proof__visual {
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 360px;
    min-height: 540px;
    margin: 0 auto;
  }
  .thh-page-proof__video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
}

/* === OTRAS CATEGORÍAS (cross-sell) === */
.thh-other-cats {
  background: var(--thh-bg-forest);
  border-top: 1px solid var(--thh-border);
  padding: var(--thh-space-24) var(--thh-space-6);
}

.thh-other-cats__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.thh-other-cats__header {
  text-align: center;
  margin-bottom: var(--thh-space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.thh-other-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--thh-space-6);
}

.thh-other-cat-card {
  position: relative;
  display: block;
  background: var(--thh-bg-card);
  border: 1px solid var(--thh-border);
  border-radius: var(--thh-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 320px;
  transition:
    border-color 320ms var(--thh-ease-out),
    transform 320ms var(--thh-ease-out);
}

.thh-other-cat-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.32;
  filter: saturate(0.85) brightness(0.78);
  transition: opacity 500ms var(--thh-ease-out), transform 700ms var(--thh-ease-out);
  will-change: transform, opacity;
}

.thh-other-cat-card.has-image::after {
  /* Overlay dark con vignette + gradient bottom para legibilidad */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,14,10,0.55) 0%, rgba(10,14,10,0.7) 50%, rgba(10,14,10,0.92) 100%);
}

.thh-other-cat-card__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--thh-space-3);
  padding: var(--thh-space-8);
  height: 100%;
  min-height: 320px;
  justify-content: flex-end;
}

@media (hover: hover) and (pointer: fine) {
  .thh-other-cat-card:hover {
    border-color: var(--thh-gold);
    transform: translateY(-4px);
  }
  .thh-other-cat-card:hover .thh-other-cat-card__bg {
    opacity: 0.5;
    transform: scale(1.06);
  }
  .thh-other-cat-card:hover .thh-other-cat-card__cta {
    color: var(--thh-gold-bright);
  }
}

.thh-other-cat-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--thh-space-2);
}

.thh-other-cat-card__index {
  font-family: var(--thh-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--thh-gold);
}

.thh-other-cat-card__tag {
  font-family: var(--thh-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--thh-sage-bright);
  padding: 4px 10px;
  border: 1px solid rgba(122, 171, 133, 0.3);
  border-radius: var(--thh-radius-full);
}

.thh-other-cat-card__title {
  font-family: var(--thh-font-heading);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--thh-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.thh-other-cat-card__desc {
  font-family: var(--thh-font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--thh-text-secondary);
  margin: 0;
  flex-grow: 1;
}

.thh-other-cat-card__cta {
  font-family: var(--thh-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--thh-gold);
  padding-top: var(--thh-space-3);
  border-top: 1px solid var(--thh-border);
  transition: color 250ms var(--thh-ease-out);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .thh-methods__grid,
  .thh-benefits__grid,
  .thh-other-cats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .thh-page-hero {
    min-height: 60vh;
  }
  .thh-methods,
  .thh-benefits,
  .thh-page-grid {
    padding: var(--thh-space-16) var(--thh-space-4);
  }
  .thh-methods__grid,
  .thh-benefits__grid,
  .thh-other-cats__grid {
    grid-template-columns: 1fr;
  }
  .thh-page-grid__list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--thh-space-4);
  }
}
