/* Happy Yumi — Técnicas de cocina (editorial v6.34.38) */

.hy-page--tecnicas {
  padding-bottom: clamp(64px, 10vw, 100px);
  background: #fdfbf7;
}

.hy-tecnicas__head {
  padding: calc(var(--header-h) + 40px) 0 32px;
  text-align: center;
}

.hy-tecnicas__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #1c1b19;
}

.hy-tecnicas__lead {
  margin: 14px auto 0;
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(28, 27, 25, 0.55);
}

.hy-tecnicas__body {
  max-width: 1080px;
}

.hy-tecnicas__body--single {
  max-width: none;
  padding: 0 20px clamp(48px, 8vw, 72px);
}

.hy-page--tecnicas-single {
  padding-top: calc(var(--header-h) + 12px);
}

.hy-page--tecnicas-single .hy-breadcrumbs {
  max-width: 1080px;
  margin: 0 auto 8px;
  padding: 0 20px;
}

.hy-tecnicas-group {
  margin-bottom: clamp(36px, 5vw, 52px);
}

.hy-tecnicas-group--advanced {
  margin-top: clamp(12px, 2vw, 20px);
}

.hy-tecnicas-group__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4a5d4e;
}

.hy-tecnicas-layout {
  position: relative;
  padding-bottom: 48px;
}

/* ── Grid index ── */
.hy-tecnicas-index {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .hy-tecnicas-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hy-tecnicas-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

.hy-tecnicas-index__item {
  margin: 0;
  min-height: 0;
}

/* ── Card ── */
.hy-tecnicas-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(28, 27, 25, 0.06);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.hy-tecnicas-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(28, 27, 25, 0.1);
}

.hy-tecnicas-card:focus-visible {
  outline: 2px solid #d47b58;
  outline-offset: 3px;
}

.hy-tecnicas-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ece6dc;
}

.hy-tecnicas-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hy-tecnicas-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, #fff 8%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hy-tecnicas-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hy-tecnicas-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f5ddd2;
  color: #d47b58;
}

.hy-tecnicas-card__icon svg {
  width: 20px;
  height: 20px;
}

.hy-tecnicas-card__num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(28, 27, 25, 0.38);
}

.hy-tecnicas-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 14px 16px 16px;
}

.hy-tecnicas-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.25vw, 1.02rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #1c1b19;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hy-tecnicas-card__hook {
  margin: 0;
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(28, 27, 25, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hy-tecnicas-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.hy-tecnicas-card__time {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(28, 27, 25, 0.42);
}

.hy-tecnicas-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: #d47b58;
  white-space: nowrap;
  transition: gap 0.2s ease, background 0.2s ease;
}

.hy-tecnicas-card__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hy-tecnicas-card:hover .hy-tecnicas-card__cta {
  gap: 7px;
  background: #c96d4a;
}

html[dir="rtl"] .hy-tecnicas-card__cta svg {
  transform: scaleX(-1);
}

.hy-tecnicas-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 28px;
  padding-right: 4px;
  color: #d47b58;
}

.hy-tecnicas-brand__star {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.hy-tecnicas-brand__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
}

.hy-tecnicas-brand__happy {
  font-weight: 400;
  text-transform: lowercase;
}

.hy-tecnicas-brand__yumi {
  font-weight: 700;
}

.hy-tecnicas-footer {
  max-width: 640px;
  margin: clamp(36px, 5vw, 48px) auto 0;
  text-align: center;
}

.hy-tecnicas-footer h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.hy-tecnicas-footer p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(28, 27, 25, 0.65);
  line-height: 1.7;
}

/* ── Editorial article (single page) ── */
.hy-tecnicas-editorial {
  padding: clamp(20px, 4vw, 32px) 0 0;
}

.hy-tecnicas-article-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(74, 93, 78, 0.12);
  box-shadow: 0 28px 80px rgba(28, 27, 25, 0.1);
}

.hy-tecnicas-article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4a5d4e;
  text-decoration: none;
}

.hy-tecnicas-article__back::before {
  content: "←";
}

html[dir="rtl"] .hy-tecnicas-article__back::before {
  content: "→";
}

.hy-tecnicas-article__back:hover {
  color: #d47b58;
}

.hy-tecnicas-article__kicker {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(74, 93, 78, 0.75);
}

.hy-tecnicas-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.hy-tecnicas-article__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f5ede4;
  border: 1px solid rgba(212, 123, 88, 0.18);
  color: #4a5d4e;
  font-size: 0.78rem;
  font-weight: 700;
}

.hy-tecnicas-article__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #1c1b19;
}

.hy-tecnicas-article__lead {
  margin: 0 0 26px;
  max-width: 780px;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(28, 27, 25, 0.72);
}

.hy-tecnicas-article__hero {
  margin: 0 0 34px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(28, 27, 25, 0.12);
  background: #ece6dc;
}

.hy-tecnicas-article__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hy-tecnicas-article__summary {
  margin: 0 0 30px;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(74, 93, 78, 0.13);
  background: linear-gradient(135deg, #fffdf8, #f5ede4);
  box-shadow: 0 16px 44px rgba(28, 27, 25, 0.06);
}

.hy-tecnicas-article__summary h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #4a5d4e;
}

.hy-tecnicas-article__summary ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 8px;
}

.hy-tecnicas-article__summary li {
  line-height: 1.55;
  color: rgba(28, 27, 25, 0.78);
}

.hy-tecnicas-article__content {
  font-size: 1.05rem;
  line-height: 1.82;
  color: rgba(28, 27, 25, 0.78);
}

.hy-tecnicas-article__content h2 {
  margin: 34px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
  color: #4a5d4e;
}

.hy-tecnicas-article__content h2:first-child {
  margin-top: 0;
}

.hy-tecnicas-article__content p {
  margin: 0 0 18px;
}

.hy-tecnicas-article__content ul,
.hy-tecnicas-article__content ol {
  margin: 0 0 22px;
  padding-left: 1.35rem;
}

.hy-tecnicas-article__content li {
  margin: 0 0 10px;
}

.hy-tecnicas-article__divider {
  border: 0;
  border-top: 1px solid rgba(74, 93, 78, 0.12);
  margin: 30px 0;
}

.hy-tecnicas-article__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hy-tecnicas-article__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.hy-tecnicas-article__btn--primary {
  background: #d47b58;
  color: #fff;
}

.hy-tecnicas-article__btn--primary:hover {
  background: #c96d4a;
  color: #fff;
}

.hy-tecnicas-article__btn--secondary {
  background: #fff;
  border: 1px solid rgba(74, 93, 78, 0.18);
  color: #4a5d4e;
}

.hy-tecnicas-article__btn--secondary:hover {
  border-color: #d47b58;
  color: #d47b58;
}

.hy-tecnicas-article__editorial {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f5f0e8;
  border: 1px solid rgba(74, 93, 78, 0.1);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(28, 27, 25, 0.6);
}

@media (max-width: 620px) {
  .hy-tecnicas__body--single {
    padding-inline: 14px;
  }

  .hy-tecnicas-article-shell {
    border-radius: 22px;
    padding: 22px;
  }

  .hy-tecnicas-article__content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hy-tecnicas-article__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hy-tecnicas-card {
    transition: none;
  }
}
