/* Horma Hogar — componentes de contenido (hero, grillas, CTAs) */

/* ===== Hero ===== */
.hero {
  padding: 90px 0 70px;
}
.hero-inner { max-width: 720px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--wood-deep); }
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Value props / trust bar ===== */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.value-props .value-item {
  background: var(--bone);
  padding: 34px 30px;
}
.value-item h3 { font-size: 18px; margin-bottom: 8px; }
.value-item p { font-size: 14.5px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .value-props { grid-template-columns: 1fr; }
}

/* ===== Grilla de categorías (patrón caparazón) ===== */
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 16px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cat-item {
  display: block;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.cat-item:hover { border-color: var(--wood); transform: translateY(-2px); }
.cat-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}
.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
a.cat-item:hover .cat-thumb img { transform: scale(1.04); }
.cat-thumb span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wood-deep);
  background: rgba(248,244,239,0.85);
  padding: 5px 10px;
  border-radius: var(--radius);
}
.cat-body { padding: 20px 22px 24px; }
.cat-body h3 { font-size: 19px; margin-bottom: 6px; }
.cat-body p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; }
.cat-link { font-size: 13.5px; font-weight: 600; color: var(--wood-deep); }
div.cat-item .cat-link { color: var(--stone); }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ===== CTA strip ===== */
.cta-strip {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h3 { color: var(--white); font-size: 24px; max-width: 34ch; }
.cta-strip .btn-primary { background: var(--wood); }
.cta-strip .btn-primary:hover { background: var(--wood-light); color: var(--ink); }

/* ===== Página de categoría ===== */
.category-hero {
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--sand);
}
.category-hero .eyebrow { margin-bottom: 14px; }
.category-hero h1 { font-size: clamp(32px, 4.4vw, 48px); max-width: 18ch; }

.guide-section { padding: 56px 0; border-bottom: 1px solid var(--sand); }
.guide-section:last-of-type { border-bottom: none; }
.guide-section h2 { font-size: 26px; margin-bottom: 16px; max-width: 30ch; }
.guide-section p { color: var(--ink-soft); max-width: 62ch; margin-bottom: 14px; }

.availability-box {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.availability-box h3 { font-size: 20px; margin-bottom: 6px; }
.availability-box p { color: var(--ink-soft); font-size: 14.5px; max-width: 42ch; }

.related-list { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.related-list a {
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--ink-soft);
}
.related-list a:hover { border-color: var(--wood); color: var(--wood-deep); }

/* ===== Nav dropdown ===== */
.main-nav .has-dropdown { position: relative; }
.nav-dropdown-toggle {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0;
}
.main-nav .dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 24px rgba(33,29,26,0.08);
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown { display: flex; }
.main-nav .dropdown a { padding: 8px 10px; font-size: 14px; border-radius: var(--radius); }
.main-nav .dropdown a:hover { background: var(--bone); color: var(--wood-deep); }

/* ===== Imagen destacada de categoría (variante de composición, no siempre hero de solo texto) ===== */
.category-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.category-feature-img { aspect-ratio: 4/3; overflow: hidden; }
.category-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-feature-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.category-feature-text h2 { font-size: 26px; margin-bottom: 14px; }
.category-feature-text p { color: var(--ink-soft); }

@media (max-width: 800px) {
  .category-feature { grid-template-columns: 1fr; }
  .category-feature-text { padding: 32px 24px; }
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--sand); }
.faq-item:first-child { border-top: 1px solid var(--sand); }
.faq-item h3 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { color: var(--ink-soft); font-size: 15px; }

/* ===== Rango de mercado (contexto, no precio propio) ===== */
.market-range {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 8px 0 0;
}
.market-range .range-figure { font-family: var(--font-display); font-size: 30px; color: var(--wood-deep); }
.market-range p { color: var(--stone); font-size: 13.5px; margin-top: 6px; }
