/* =====================================================
   FRUTABUELA — Recetas Landing Page
   Paleta y tipografías: igual que home
   Diseño: Premium, editorial, rich UX/UI
   ===================================================== */

/* ── Sticky nav adjustment ── */
main { padding-top: 0; }

/* ============================================================
   HERO — RECETAS
   ============================================================ */
.rh-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-blue-deep);
  padding-top: 80px;
}

.rh-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11,29,58,0.9) 0%, rgba(11,29,58,0.6) 50%, rgba(11,29,58,0.4) 100%),
    url('../assets/img/frutabuela-banner-sabores-recetas.jpg') center/cover no-repeat;
}

/* decorative large mango icon */
.rh-hero-deco {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 420px;
  opacity: .04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.rh-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: var(--sp-2xl) var(--sp-lg);
}

.rh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(249,194,46,.30);
  background: rgba(249,194,46,.08);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-yellow);
  margin-bottom: 1.8rem;
}

.rh-hero-eyebrow span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-yellow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.rh-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.6rem;
}

.rh-hero-title em {
  font-style: italic;
  color: var(--clr-yellow);
}

.rh-flag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.6rem;
}
.rh-flag span { height: 3px; border-radius: 2px; display: block; }
.rh-flag span:nth-child(1) { background: var(--clr-yellow); width: 36px; }
.rh-flag span:nth-child(2) { background: var(--clr-blue);   width: 18px; }
.rh-flag span:nth-child(3) { background: var(--clr-primary); width: 18px; }

.rh-hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: 600px;
}

.rh-hero-desc + .rh-hero-desc {
  margin-top: -.4rem;
}

/* ── Barra de scroll ── */
.rh-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,.4);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 3;
}

.rh-scroll-hint svg {
  animation: bounce-btn 2.2s ease-in-out infinite;
}

/* ============================================================
   SECTION HEADING — Mango banner
   ============================================================ */
.rh-section-banner {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #A51F14 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rh-section-banner::before {
  content: '🥭';
  position: absolute;
  font-size: 300px;
  opacity: .06;
  top: -60px;
  left: -40px;
  pointer-events: none;
}

.rh-section-banner::after {
  content: '🥭';
  position: absolute;
  font-size: 220px;
  opacity: .05;
  bottom: -50px;
  right: -30px;
  pointer-events: none;
  transform: rotate(15deg);
}

.rh-section-banner h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.rh-section-banner p {
  color: rgba(255,255,255,.80);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   RECIPE CARDS — Layout moderno
   ============================================================ */
.recipes-wrapper {
  background: var(--clr-bg);
  padding: 0 0 var(--sp-2xl);
}

/* Índice rápido flotante */
.recipe-index {
  background: var(--clr-bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem 2.5rem;
  margin: -3rem auto 4rem;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 5;
}

.recipe-index-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(16,85,165,.10);
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
  color: var(--clr-text);
}

.recipe-index-item:hover {
  border-color: var(--clr-yellow);
  background: rgba(249,194,46,.06);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.recipe-index-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.recipe-index-info strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.recipe-index-info span {
  font-size: 0.72rem;
  color: var(--clr-text-light);
  font-weight: 500;
}

/* ── Recipe Card ── */
.recipe-card {
  background: var(--clr-bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 5rem;
  scroll-margin-top: 90px;
  transition: box-shadow var(--t-base);
}

.recipe-card:hover {
  box-shadow: var(--shadow-lg);
}

/* ── Hero Photo ── */
.recipe-photo-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.recipe-photo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.recipe-card:hover .recipe-photo-hero img {
  transform: scale(1.04);
}

.recipe-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,29,58,.05) 0%,
    rgba(11,29,58,.0) 40%,
    rgba(11,29,58,.80) 100%
  );
  z-index: 1;
}

.recipe-photo-title-block {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem;
  z-index: 2;
}

.recipe-photo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-yellow);
  margin-bottom: 0.6rem;
}

.recipe-photo-title-block h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
}

/* ── Meta pills row ── */
.recipe-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: var(--clr-bg-alt);
}

.rmeta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid rgba(16,85,165,.12);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
}

.rmeta-pill.level-easy {
  background: rgba(61,154,106,.08);
  border-color: rgba(61,154,106,.25);
  color: #2D7A56;
}
.rmeta-pill.level-medium {
  background: rgba(249,194,46,.10);
  border-color: rgba(249,194,46,.35);
  color: #8A6200;
}

/* ── Quote strip ── */
.recipe-quote-strip {
  padding: 2rem 2.5rem;
  background: var(--clr-bg-card);
  border-left: none;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.rqs-bar {
  width: 4px;
  min-height: 100%;
  background: linear-gradient(to bottom, var(--clr-yellow), var(--clr-primary));
  border-radius: 4px;
  flex-shrink: 0;
  align-self: stretch;
}

.recipe-quote-strip blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--clr-text-light);
  line-height: 1.85;
  margin: 0;
}

/* ── Content grid ── */
.recipe-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 0;
}

@media (max-width: 767px) {
  .recipe-content-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Left column: ingredients ── */
.recipe-ingredients-col {
  padding: 2.5rem;
  background: var(--clr-blue-deep);
  color: #fff;
}

.recipe-ingredients-col h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-yellow);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ingredients-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.50);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.ingredients-group-title:first-of-type {
  margin-top: 0;
}

.ing-list {
  list-style: none;
  padding: 0;
}

.ing-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 0.92rem;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
}

.ing-list li::before {
  content: '—';
  color: var(--clr-yellow);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
}

.ing-list li:last-child {
  border-bottom: none;
}

/* ── Tip box ── */
.abuela-tip {
  margin-top: 2rem;
  background: rgba(249,194,46,.10);
  border: 1px solid rgba(249,194,46,.25);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
}

.abuela-tip .tip-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--clr-yellow);
  margin-bottom: 0.65rem;
}

.abuela-tip p {
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(255,255,255,.80);
  line-height: 1.7;
}

/* ── Right column: steps ── */
.recipe-steps-col {
  padding: 2.5rem;
  background: var(--clr-bg-card);
}

.recipe-steps-col h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.steps-list li {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  counter-increment: step-counter;
  position: relative;
}

/* Connecting line between steps */
.steps-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 2.8rem;
  bottom: -1.2rem;
  width: 1px;
  background: rgba(16,85,165,.10);
}

.step-num-badge {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--clr-yellow);
  color: var(--clr-blue-deep);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(249,194,46,.35);
}

.step-content h5 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-blue-deep);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--clr-text-light);
  line-height: 1.7;
}

/* ── Acompañamiento footer ── */
.recipe-pairing-row {
  grid-column: 1 / -1;
  padding: 1.75rem 2.5rem;
  background: var(--clr-bg-alt);
  border-top: 1px solid rgba(0,0,0,.05);
}

.recipe-pairing-row h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: 1rem;
}

.pairing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pairing-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  background: #fff;
  border: 1.5px solid rgba(16,85,165,.12);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: all var(--t-fast);
}

.pairing-chip:hover {
  border-color: var(--clr-yellow);
  background: rgba(249,194,46,.06);
}

/* ============================================================
   CTA BANNER — CIERRE
   ============================================================ */
.rh-cierre {
  position: relative;
  background: var(--clr-blue-deep);
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
}

.rh-cierre-deco-l {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 350px;
  opacity: .05;
  line-height: 1;
  pointer-events: none;
}

.rh-cierre-deco-r {
  position: absolute;
  right: -60px;
  bottom: -30px;
  font-size: 280px;
  opacity: .04;
  line-height: 1;
  pointer-events: none;
  transform: rotate(20deg);
}

.rh-cierre-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.rh-cierre-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.rh-cierre-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.rh-cierre-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.rh-cierre-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2.25rem;
  background: var(--clr-yellow);
  color: var(--clr-blue-deep);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: 0 8px 28px rgba(249,194,46,.40);
  text-decoration: none;
}

.rh-cierre-btn:hover {
  background: #FFD454;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(249,194,46,.50);
}

/* ── Back link ── */
.rh-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,.55);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color var(--t-fast);
}

.rh-back-link:hover {
  color: var(--clr-yellow);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 900px) {
  .recipe-index {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -2rem;
  }
}

@media (max-width: 600px) {
  .recipe-index {
    grid-template-columns: 1fr;
  }

  .recipe-photo-hero {
    height: 280px;
  }

  .recipe-photo-title-block,
  .recipe-meta-row,
  .recipe-quote-strip,
  .recipe-ingredients-col,
  .recipe-steps-col,
  .recipe-pairing-row {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .rh-hero-content {
    padding: calc(var(--sp-xl) + 10px) var(--sp-sm) var(--sp-xl);
  }
}

/* Hero Desktop Redesign (Side-by-side) */
@media (min-width: 900px) {
  .rh-hero-content {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "back back"
      "eyebrow desc"
      "title desc"
      "flag desc";
    gap: 1rem 4rem;
    align-items: center;
  }
  
  .rh-hero-content .rh-back-link { grid-area: back; margin-bottom: 1rem; }
  .rh-hero-content .rh-hero-eyebrow { grid-area: eyebrow; margin-bottom: 0; align-self: end; justify-self: start; }
  .rh-hero-content .rh-hero-title { grid-area: title; margin-bottom: 0; }
  .rh-hero-content .rh-flag { grid-area: flag; margin-bottom: 0; align-self: start; }
  
  .rh-hero-text-group { grid-area: desc; }
  .rh-hero-desc { font-size: 1.15rem; }
  .rh-hero-text-group .rh-hero-desc:last-child { margin-bottom: 0; }
}