/* Guías prácticas de uso para compradores. Mantiene la paleta cálida del sitio. */
.howto-page {
  min-height: 60vh;
  padding: 12px 0 72px;
  color: var(--color-text);
}
.howto-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.howto-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 24px;
  color: var(--color-muted-warm);
  font-size: 13px;
}
.howto-breadcrumbs a {
  color: var(--color-terracota-deep);
  text-decoration: none;
}
.howto-breadcrumbs a:hover,
.howto-breadcrumbs a:focus-visible { text-decoration: underline; }
.howto-hero {
  padding: clamp(34px, 6vw, 68px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--color-line-warm);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--color-surface-alt), var(--bg-card));
  text-align: center;
}
.howto-eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.howto-hero h1 {
  max-width: 18ch;
  margin: 0 auto;
  font-family: var(--font-title);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  color: var(--color-text);
}
.howto-lead {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--color-text-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}
.howto-reading {
  margin: 18px 0 0;
  color: var(--color-muted-warm);
  font-size: 13px;
  font-weight: 700;
}
.howto-section { padding: 56px 0 18px; }
.howto-section__head {
  max-width: 700px;
  margin: 0 auto 26px;
  text-align: center;
}
.howto-section__head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(27px, 3.5vw, 38px);
  line-height: 1.2;
}
.howto-section__head > p:last-child {
  margin: 12px 0 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}
.howto-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--color-line-warm);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.howto-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-cta);
  box-shadow: var(--shadow-card-flat);
}
.howto-card__category {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  color: var(--color-terracota-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.howto-card h3 {
  margin: 15px 0 8px;
  font-family: var(--font-title);
  font-size: 23px;
  line-height: 1.2;
}
.howto-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.howto-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--color-terracota-deep);
  font-weight: 800;
  text-decoration: none;
}
.howto-card__link:hover,
.howto-card__link:focus-visible { text-decoration: underline; }
.howto-article {
  max-width: 860px;
  margin: 32px auto 0;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--color-line-warm);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}
.howto-article section + section { margin-top: 30px; }
.howto-article h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.25;
}
.howto-article p,
.howto-article li {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.howto-article p { margin: 0 0 12px; }
.howto-article ul,
.howto-article ol { margin: 12px 0 0; padding-left: 24px; }
.howto-article li + li { margin-top: 9px; }
.howto-callout,
.howto-note {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-left: 4px solid var(--color-accent-botanical);
  border-radius: 12px;
  background: rgba(130, 150, 107, 0.12);
}
.howto-callout p,
.howto-note p { margin: 0; color: var(--color-text); line-height: 1.65; }
.howto-note h2 {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 22px;
}
.howto-related,
.howto-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 24px auto 0;
  padding: 22px 24px;
  border: 1px solid var(--color-line-warm);
  border-radius: 16px;
  background: var(--color-surface-alt);
}
.howto-related p,
.howto-bottom-cta p { margin: 0; color: var(--color-text); font-weight: 700; }
.howto-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--color-terracota-deep);
  border-radius: 999px;
  background: var(--color-terracota-deep);
  color: var(--color-white);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.howto-button:hover,
.howto-button:focus-visible {
  transform: translateY(-1px);
  background: var(--color-accent-dark);
}
.howto-back {
  display: inline-block;
  margin: 28px auto 0;
  color: var(--color-terracota-deep);
  font-weight: 800;
  text-decoration: none;
}
.howto-back:hover,
.howto-back:focus-visible { text-decoration: underline; }
.howto-step-visual {
  max-width: 760px;
  margin: 18px auto 24px;
  padding: 10px;
  border: 1px solid var(--color-line-warm);
  border-radius: 16px;
  background: var(--bg-card);
}
.howto-step-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 10px;
}
.howto-step-visual figcaption {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 16px);
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: clamp(12px, 1.45vw, 15px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.howto-step-visual--four figcaption {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .howto-step-visual {
    margin: 16px 0 22px;
    padding: 7px;
    border-radius: 12px;
  }
  .howto-step-visual figcaption {
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
  }
  .howto-step-visual--four figcaption {
    gap: 2px;
    font-size: 10.5px;
  }
}
@media (max-width: 640px) {
  .howto-container { width: min(100% - 28px, 1120px); }
  .howto-page { padding-bottom: 48px; }
  .howto-breadcrumbs { margin: 12px 0 18px; font-size: 12px; }
  .howto-hero { border-radius: 18px; }
  .howto-section { padding-top: 40px; }
  .howto-card { min-height: 0; padding: 20px; }
  .howto-related,
  .howto-bottom-cta { align-items: stretch; flex-direction: column; }
  .howto-button { width: 100%; }
}
