/* Home v1.0.27 — intención por sección, destacados y favoritos */

.recipe-showcase-story {
  max-width: 560px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  font-size: 0.98rem;
  font-weight: 700;
}

.recipe-home-showcase .recipe-spotlight-grid {
  margin-top: 22px;
}

.recipe-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.recipe-spotlight-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 35, 24, 0.55);
  backdrop-filter: blur(10px);
}

.recipe-spotlight-card__link {
  display: grid;
  grid-template-rows: 120px auto;
  color: #fffdf8;
  min-height: 100%;
}

.recipe-spotlight-card__media img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.recipe-spotlight-card__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 6px;
}

.recipe-spotlight-card__badge {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-spotlight-card__meta {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
}

.recipe-spotlight-card h3 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.recipe-spotlight-card__kcal {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.recipe-spotlight-card__cta {
  margin-top: 4px;
  font-weight: 900;
  font-size: 0.82rem;
  color: #d9f5df;
}

/* Calculadoras destacadas en home — reutiliza estilos del plugin (cg-catalog-card--photo) */
.home-calc-spotlight {
  margin-top: 28px;
}

.home-calc-spotlight__label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-800);
}

.home-calc-catalog.cg-catalog-app {
  margin: 0;
}

.home-calc-catalog .cg-catalog-app__head {
  display: none;
}

.home-calc-grid.cg-catalog-grid {
  margin: 0 !important;
  max-width: none;
  gap: 16px !important;
}

.home-calc-grid .cg-catalog-card.cg-catalog-card--photo {
  min-height: 220px;
}

.home-calc-grid .cg-tool-icon-wrap {
  width: 80px;
  height: 80px;
}

.home-calc-grid .cg-tool-icon-wrap .cg-tool-icon {
  width: 64px !important;
  height: 64px !important;
  filter: none !important;
  opacity: 1 !important;
}

.editorial-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.editorial-feature-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(18, 24, 20, 0.1);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-sm);
}

.editorial-feature-card__link {
  display: grid;
  grid-template-rows: 140px auto;
  color: inherit;
}

.editorial-feature-card__media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.editorial-feature-card__body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.editorial-feature-card__cat {
  display: inline-flex;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 900;
}

.editorial-feature-card h3 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--green-900);
}

.editorial-feature-card__cta {
  font-weight: 900;
  font-size: 0.84rem;
  color: var(--green-700);
}

.saved-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: 20px;
  border: 1px solid rgba(18, 24, 20, 0.1);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(238, 247, 233, 0.88));
}

.saved-teaser strong {
  display: block;
  font-family: Outfit, Inter, sans-serif;
  color: var(--green-900);
  font-size: 1.05rem;
}

.saved-teaser p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 640px;
}

.home-pro {
  padding-top: 20px;
}

.home-pro-card {
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(18, 24, 20, 0.1);
  background: linear-gradient(135deg, rgba(18, 63, 45, 0.96), rgba(35, 103, 68, 0.92));
  color: #fffdf8;
  box-shadow: var(--shadow-md);
}

.home-pro-card .section-kicker {
  color: #d9f5df;
}

.home-pro-card .section-title {
  color: #fffdf8;
}

.home-pro-card .section-sub {
  color: rgba(255, 253, 248, 0.82);
}

.home-pro-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(255, 253, 248, 0.86);
  font-weight: 700;
  line-height: 1.45;
}

.home-pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.home-pro-actions .btn-secondary {
  background: rgba(255, 253, 248, 0.92);
  color: var(--green-900);
}

.cg-favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(18, 24, 20, 0.12);
  background: rgba(255, 253, 248, 0.94);
  color: var(--green-800);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(9, 39, 26, 0.12);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cg-favorite-toggle .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.cg-favorite-toggle.is-saved {
  background: var(--green-900);
  color: #fffdf8;
  border-color: rgba(255, 255, 255, 0.2);
}

.cg-favorite-toggle.is-saved .icon path {
  fill: currentColor;
}

.cg-favorite-toggle--card {
  top: 8px;
  right: 8px;
}

.benefit-grid a.benefit {
  display: block;
  color: inherit;
}

@media (max-width: 1100px) {
  .recipe-spotlight-grid,
  .home-calc-grid,
  .editorial-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .recipe-spotlight-grid,
  .home-calc-grid,
  .editorial-feature-grid {
    grid-template-columns: 1fr;
  }

  .saved-teaser {
    flex-direction: column;
    align-items: flex-start;
  }
}
