/* Home only (reference: docs/design/ref-inicio-v2.jpg). The shared photo hero lives in public.css. */

/* ---------- Hero ---------- */
.hero.has-photo .hero-inner { min-height: 520px; }
.hero-copy .hero-eyebrow { display: flex; align-items: center; gap: 14px; white-space: nowrap; color: var(--red-bright); }
.hero-eyebrow::after {
  content: ""; flex: 0 1 220px; min-width: 24px; height: 1px;
  background: linear-gradient(90deg, rgba(232, 70, 63, .75), transparent);
}
.hero-copy h1 em { color: var(--red-bright); }
.hero-kanji { /* large faint characters behind the headline */
  position: absolute; top: 56px; left: clamp(4px, 2vw, 40px); z-index: 0; pointer-events: none;
  writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(6rem, 10vw, 9.5rem); line-height: 1;
  color: rgba(243, 232, 214, .06);
}
.hero-vertical {
  position: absolute; top: 48px; right: 20px; margin: 0;
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 1.3rem; line-height: 1.7; letter-spacing: .18em;
  color: var(--on-night); text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.hanko {
  display: inline-block; margin-inline-start: 14px; padding: 6px 2px; border: 1.5px solid var(--red-bright);
  border-radius: 4px; font-size: .78rem; letter-spacing: 0; color: var(--red-bright); background: rgba(20, 16, 13, .4);
}
.hero-actions .btn-primary { padding: 0 28px; }

/* ---------- Featured recipes ---------- */
.featured, .duo { max-width: 1080px; }
.featured .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Two cards: the fusion (dark) and the ingredients (paper) ---------- */
.duo { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; width: calc(100% - 40px); margin: 0 auto 56px; }
.duo-card {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center;
  min-height: 300px; border-radius: 14px; scroll-margin-top: calc(var(--header-h) + 16px);
}
.duo-card > .petals { z-index: 0; }
.duo-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.duo-photo { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.duo-copy { position: relative; z-index: 1; padding: 32px 30px; max-width: 24rem; }
.duo-copy .eyebrow { margin-bottom: 10px; }
.duo-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-style: italic; font-weight: 600; }
.duo-copy p:not(.eyebrow) { margin: 12px 0 22px; font-size: .92rem; line-height: 1.5; }

.duo-night { color: var(--on-night); background: var(--night-2); border: 1px solid rgba(242, 165, 59, .25); }
.duo-night .duo-photo { object-position: 78% 50%; }
.duo-night .duo-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--night) 0%, rgba(20, 16, 13, .86) 34%, rgba(20, 16, 13, .12) 66%, transparent 85%);
}
.duo-night .eyebrow { color: var(--red-bright); }
.duo-night h2 { text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }

.duo-paper { color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.duo-paper .duo-media { left: 30%; }
.duo-paper .duo-media::after { /* the photo melts into the paper on the text side */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 18%, rgba(246, 236, 217, .82) 38%, rgba(246, 236, 217, .35) 58%, rgba(246, 236, 217, 0) 78%);
}
.duo-paper .duo-photo { object-position: 62% 60%; }
.duo-paper .duo-copy { max-width: 15rem; padding-right: 0; }
.duo-paper h2 { font-size: clamp(1.5rem, 2.2vw, 1.8rem); }
.duo-paper .eyebrow { color: var(--red-dark); }
.duo-paper p:not(.eyebrow) { color: var(--ink-soft); }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .duo { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .hero.has-photo .hero-inner { min-height: 460px; }
  .hero-photo { object-position: 66% 58%; }
  .hero-vertical { font-size: 1.1rem; }
  .duo-paper .duo-media { left: 35%; }
  .duo-paper .duo-copy { max-width: 22rem; }
}

/* ---------- Phone: the art sits under the text, the cards stack with the art on top ---------- */
@media (max-width: 760px) {
  .hero.has-photo .hero-inner { min-height: 0; padding: 36px 20px 230px; }
  .hero-photo { object-position: 72% 70%; }
  .hero-kanji, .hero-vertical { display: none; }
  .hero-copy .hero-eyebrow { font-size: .7rem; letter-spacing: .16em; }

  .featured .card-grid { grid-template-columns: 1fr; gap: 12px; }

  .duo { width: calc(100% - 24px); margin-bottom: 32px; gap: 14px; }
  .duo-card { display: block; min-height: 0; }
  .duo-media, .duo-paper .duo-media { position: relative; left: 0; z-index: 0; aspect-ratio: 16 / 9; }
  .duo-night .duo-media::after { background: linear-gradient(180deg, transparent 50%, var(--night-2)); }
  .duo-paper .duo-media::after { background: linear-gradient(180deg, transparent 50%, var(--paper)); }
  .duo-copy, .duo-paper .duo-copy { max-width: none; padding: 4px 20px 24px; }
  .duo-copy .btn { width: 100%; }
}

/* ---------- Four reasons (cream band under the hero) ---------- */
.perks { position: relative; z-index: 1; background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); border-block: 1px solid var(--line); }
.perks ul { list-style: none; margin: 0 auto; padding: 22px 20px; max-width: 1080px; display: grid; grid-template-columns: repeat(4, 1fr); }
.perks li { display: flex; gap: 14px; align-items: flex-start; padding: 0 22px; margin: 0; }
.perks li + li { border-left: 1px solid rgba(109, 92, 75, .3); }
.perks .icon { width: 38px; height: 38px; flex: none; color: var(--red); margin-top: 2px; }
.perks strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.perks span { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.4; color: var(--ink-soft); }

/* ---------- Featured recipes on the dark photo ---------- */
.featured-dark { position: relative; isolation: isolate; overflow: hidden; margin: 0; max-width: none; width: 100%; border-radius: 0; border: 0; box-shadow: none; padding: 44px 0 56px; background: var(--night); color: var(--on-night); }
.featured-dark > :not(.featured-bg) { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.featured-bg { position: absolute; inset: 0; z-index: -1; }
.featured-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 16, 13, .94), rgba(20, 16, 13, .72) 55%, rgba(20, 16, 13, .9)); }
.featured-photo { width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .55; }
.featured-dark .section-head h2 { color: var(--on-night); font-style: italic; }
.featured-dark .muted { color: var(--on-night-soft); }
.featured-dark .see-all { color: #ff8a80; }

@media (max-width: 1020px) { .perks ul { grid-template-columns: 1fr 1fr; row-gap: 18px; } .perks li:nth-child(3) { border-left: 0; } }
@media (max-width: 760px) {
  .perks ul { grid-template-columns: 1fr; padding: 18px 16px; row-gap: 14px; }
  .perks li { padding: 0; border-left: 0 !important; }
  .featured-dark { padding: 28px 0 36px; }
  .featured-dark > :not(.featured-bg) { padding-inline: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .perks li { animation: rise .5s calc(var(--i, 0) * 80ms) cubic-bezier(.2, .7, .2, 1) backwards; }
  .perks li:nth-child(2) { --i: 1; } .perks li:nth-child(3) { --i: 2; } .perks li:nth-child(4) { --i: 3; }
  .perks .icon { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
  .perks li:hover .icon { transform: scale(1.12) rotate(-6deg); }
}

/* ---------- "¿Qué se te antoja hoy?" strip under the perks ---------- */
.craving { position: relative; z-index: 1; padding: 26px 20px 22px; background: var(--night-2); color: var(--on-night); text-align: center; }
.craving h2 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.craving h2 .icon { width: 22px; height: 22px; color: var(--lantern); }
.craving .quick { justify-content: center; max-width: 1080px; margin: 0 auto; }
.craving .quick a { background: rgba(243, 232, 214, .08); border-color: rgba(243, 232, 214, .28); color: var(--on-night); }
.craving .quick a:hover { background: rgba(243, 232, 214, .16); }
.craving .quick a .icon { color: var(--lantern); }
@media (max-width: 760px) {
  .craving { padding: 20px 16px 16px; }
  .craving h2 { justify-content: flex-start; font-size: 1.2rem; }
  .craving .quick { justify-content: flex-start; }
}
