/* ==========================================================
   Recetario de la Omi — estilos
   Paleta cálida de papel + terracota, con acentos de las
   banderas de Austria (rojo) y Argentina (celeste).
   ========================================================== */

:root {
  --bg: #FBF7F0;
  --paper: #F4ECDD;
  --paper-2: #EBDFC8;
  --card: #FFFDF8;
  --ink: #2B2019;
  --ink-soft: #6B5B4E;
  --line: #E6DAC5;

  --terracotta: #B2472B;
  --terracotta-dark: #8F3620;
  --gold: #C99A3B;
  --gold-ink: #8A6420;

  --at: #ED2939;
  --ar: #74ACDF;

  --radius: 18px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(43, 32, 25, .06), 0 6px 18px -10px rgba(43, 32, 25, .25);
  --shadow-md: 0 2px 4px rgba(43, 32, 25, .06), 0 18px 40px -18px rgba(43, 32, 25, .4);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 999px;
  text-decoration: none; font-size: .9rem; transition: top .2s;
}
.skip:focus { top: .75rem; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.ico {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.flag {
  width: 28px; height: 19px; border-radius: 2px; flex: none;
  box-shadow: 0 0 0 1px rgba(43, 32, 25, .14), 0 2px 4px rgba(43, 32, 25, .12);
}
.flag--s { width: 22px; height: 15px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--at) 0 50%, var(--ar) 50% 100%);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 1rem; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  background: none; border: 0; padding: .25rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em;
  transition: color .2s;
}
.brand:hover { color: var(--terracotta); }
.brand .flag { opacity: .85; }

.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.lang-toggle button {
  border: 0; background: none; padding: .3rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--terracotta); color: #fff; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 999px; border: 0;
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 24px -12px rgba(178, 71, 43, .8);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.link-btn {
  background: none; border: 0; padding: .2rem .1rem; font-size: .85rem; font-weight: 600;
  color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--terracotta-dark); }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: 3rem; align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink);
}

.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.9rem, 8vw, 5.6rem); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance; margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--terracotta); }

.hero__lead {
  max-width: 34rem; margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; color: var(--ink-soft);
}

.hero__memory {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-top: 2.25rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 34rem;
  font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--ink-soft);
}
.hero__cross { font-style: normal; font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em; color: var(--gold-ink); }

/* Muro de fotos */
.hero__photos {
  position: relative; isolation: isolate; display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, minmax(0, 1fr));
  aspect-ratio: 1 / 1.04; width: 100%; max-width: 560px; margin-inline: auto;
}
.hero__photos::before {
  content: ""; position: absolute; inset: -5% -6%; z-index: -1;
  background: radial-gradient(circle at 30% 20%, var(--paper-2), var(--paper) 60%);
  border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
  transform: rotate(-4deg); opacity: .9;
}
.ph {
  position: relative; padding: 0; overflow: hidden; background: #fff;
  border: 5px solid #fff; border-radius: 6px; box-shadow: var(--shadow-md);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
.ph img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.22); transition: filter .5s, transform .8s; }
.ph:hover { transform: rotate(0) scale(1.035) !important; z-index: 5; }
.ph:hover img { filter: none; }
.ph--a { grid-area: 1 / 1 / 4 / 5; transform: rotate(-1.2deg); }
.ph--b { grid-area: 1 / 5 / 4 / 7; transform: rotate(2deg); }
.ph--b img { object-position: 50% 15%; }
.ph--c { grid-area: 4 / 1 / 7 / 4; transform: rotate(1.4deg); }
.ph--c img { object-position: 45% 40%; }
.ph--d { grid-area: 4 / 4 / 7 / 7; transform: rotate(-1.8deg); }
.ph--d img { object-position: 60% 30%; }

@media (max-width: 720px) { .hero__photos::before { inset: -1% -1%; } }
@media (min-width: 940px) {
  .hero { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

/* ---------- Biblioteca ---------- */
.library { padding-block: 1rem 3rem; scroll-margin-top: 4rem; }

.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-bottom: 2rem; }

.search { position: relative; display: block; max-width: 460px; }
.search .ico { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search input {
  width: 100%; padding: .85rem 1.2rem .85rem 2.9rem;
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: #9A8B7C; }
.search input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(178, 71, 43, .14); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; min-width: 0; }
.chips-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); min-width: 5.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; min-width: 0; }
.chip {
  padding: .38rem .9rem; border-radius: 999px; font-size: .84rem; font-weight: 500;
  color: var(--ink-soft); background: transparent; border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.chip.is-active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

.filters__foot { display: flex; align-items: center; gap: 1rem; min-height: 1.6rem; font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 720px) {
  .chips-row { flex-direction: column; align-items: flex-start; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 1.25rem); padding: 0 1.25rem .35rem 0; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
}

/* Tarjetas */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.js .grid--anim .card { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__link { display: block; text-decoration: none; height: 100%; }

.card__art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper); }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__art img { transform: scale(1.06); }
.card__no {
  position: absolute; top: .6rem; left: .6rem; padding: .15rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--ink);
  background: rgba(255, 253, 248, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card__body { padding: .9rem 1rem 1.1rem; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; transition: color .2s; }
.card:hover .card__title { color: var(--terracotta); }
.card__alt { margin: .15rem 0 .7rem; font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--ink-soft); }

.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge {
  padding: .18rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--paper); color: var(--ink-soft);
}
.badge--outline { background: transparent; border: 1px solid rgba(201, 154, 59, .55); color: var(--gold-ink); }

.empty { padding: 4rem 0; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Encabezados de sección ---------- */
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-bottom: .8rem;
}
.section-head p:not(.orn):not(.flags-orn) { color: var(--ink-soft); font-size: 1.02rem; }

.orn, .flags-orn { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 1rem; color: var(--gold); font-size: 1rem; }
.orn span { width: 2.2rem; height: 1px; background: rgba(201, 154, 59, .5); }

/* ---------- De Viena a Buenos Aires ---------- */
.journey { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }

.journey__cities { display: grid; gap: 1.25rem; align-items: center; grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
.journey__route { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--gold); }
.journey__line { width: 0; height: 2.2rem; border-left: 2px dashed rgba(201, 154, 59, .6); }
.journey__plane { width: 28px; height: 28px; transform: rotate(135deg); }
.journey__zoom { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 2rem 0; color: var(--gold); font-size: 1.2rem; }
.journey__zoom span { width: 4rem; height: 1px; background: rgba(201, 154, 59, .5); }

.journey__countries { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; max-width: 640px; margin-inline: auto; }

.postcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: .6rem .6rem 0; box-shadow: var(--shadow-sm); transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.postcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.postcard__img { overflow: hidden; border-radius: 16px; aspect-ratio: 1; background: var(--paper); }
.postcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.postcard:hover .postcard__img img { transform: scale(1.04); }
.postcard figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .1rem .6rem; padding: .85rem .5rem 1rem; text-align: center; }
.postcard figcaption .flag { align-self: center; }
.postcard figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.postcard figcaption span { font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--ink-soft); }
.postcard--sm figcaption strong { font-size: 1.05rem; }
.postcard--sm figcaption { padding-top: .7rem; padding-bottom: .85rem; }

@media (min-width: 760px) {
  .journey__cities { grid-template-columns: 1fr auto 1fr; gap: 1.25rem; }
  .journey__route { flex-direction: row; }
  .journey__line { width: 2.6rem; height: 0; border-left: 0; border-top: 2px dashed rgba(201, 154, 59, .6); }
  .journey__plane { transform: rotate(45deg); }
}

/* ---------- Casa de Flores ---------- */
.house { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.house__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 980px; margin-inline: auto; }
.house__item button { display: block; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-md); }
.house__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.house__item button:hover img { transform: scale(1.05); }
.house__item figcaption { margin-top: .8rem; text-align: center; font-family: var(--font-display); font-style: italic; font-size: .98rem; color: var(--ink-soft); }
@media (min-width: 720px) {
  .house__grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: start; }
  .house__item:nth-child(2) { margin-top: 2.5rem; }
}
@media (max-width: 719px) {
  .house__grid { max-width: 420px; }
}

/* ---------- Pie ---------- */
.footer { margin-top: 2rem; padding: 3.5rem 0 4rem; background: var(--ink); color: #EADFCB; text-align: center; }
.footer__orn { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-bottom: 1.25rem; }
.footer__orn .rule { width: 2rem; height: 1px; background: rgba(201, 154, 59, .45); }
.footer__orn .star { color: var(--gold); }
.footer__main { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin-bottom: .4rem; }
.footer__sub { font-size: .85rem; letter-spacing: .04em; color: rgba(234, 223, 203, .6); }

/* ---------- Receta ---------- */
.recipe { padding-block: 1.5rem 3rem; animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }

.back {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem .5rem .6rem; margin-bottom: 1.5rem;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; transition: color .2s, border-color .2s, background .2s;
}
.back:hover { color: var(--terracotta); border-color: var(--terracotta); background: var(--card); }

.recipe__head { display: grid; gap: 2rem; align-items: center; margin-bottom: 3rem; }
.recipe__art {
  width: min(100%, 360px); margin-inline: auto; background: #fff; padding: 8px; border-radius: 22px;
  box-shadow: var(--shadow-md); transform: rotate(-1.5deg);
}
.recipe__art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 15px; }
.recipe__no { margin-bottom: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.recipe__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.recipe__alt { margin: .5rem 0 1.25rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--ink-soft); }
.recipe__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }

@media (min-width: 820px) {
  .recipe__head { grid-template-columns: 340px 1fr; gap: 3.5rem; }
  .recipe__art { margin: 0; width: 100%; }
}

/* Compartir */
.share { position: relative; }
.share__btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem;
  font-size: .88rem; font-weight: 600; color: var(--gold-ink);
  background: transparent; border: 1px solid rgba(201, 154, 59, .6); border-radius: 999px; transition: background .2s, color .2s;
}
.share__btn:hover, .share__btn[aria-expanded="true"] { background: var(--card); color: var(--terracotta); }
.share__menu {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; min-width: 12.5rem; padding: .4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
}
.share__menu button {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .8rem;
  background: none; border: 0; border-radius: 9px; text-align: left; font-size: .92rem;
}
.share__menu button:hover { background: var(--paper); }
.share__menu .ico { color: var(--terracotta); }

/* Cuerpo bilingüe */
.recipe__body { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .recipe__body { grid-template-columns: 1.12fr 1fr; align-items: start; gap: 2rem; } }

.lang { padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: 24px; border: 1px solid var(--line); }
.lang--primary { background: var(--card); box-shadow: var(--shadow-sm); }
.lang--secondary { background: var(--paper); border-color: transparent; color: var(--ink-soft); }

.lang__tag {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink);
}
.lang h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: -.015em; margin-bottom: 1rem; color: var(--ink); }
.lang--secondary h2 { color: var(--ink-soft); }
.lang h2:not(:first-of-type) { margin-top: 2.25rem; }

.ingredients li {
  position: relative; padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px dashed var(--line); line-height: 1.5;
}
.ingredients li:last-child { border-bottom: 0; }
.ingredients li::before {
  content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta);
}
.lang--secondary .ingredients li::before { background: rgba(107, 91, 78, .45); }
.lang--secondary .ingredients li { border-bottom-color: rgba(107, 91, 78, .2); }

.prep { font-size: 1.04rem; line-height: 1.8; white-space: pre-line; }
.lang--primary .prep { color: var(--ink); }

/* Anterior / siguiente */
.recipe__nav { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 640px) { .recipe__nav { grid-template-columns: 1fr 1fr; } .nav-card--next:only-child { grid-column: 2; } }
.nav-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.nav-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--terracotta); }
.nav-card--next { flex-direction: row-reverse; text-align: right; }
.nav-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.nav-card small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.nav-card strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }

/* ---------- Visor de fotos ---------- */
#lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
#lightbox::backdrop { background: rgba(28, 20, 15, .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#lightbox figure { display: grid; gap: .75rem; justify-items: center; }
#lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
#lightbox figcaption { color: #EADFCB; font-family: var(--font-display); font-style: italic; text-align: center; }
.lb-close {
  position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 50%; transition: background .2s;
}
.lb-close:hover { background: rgba(255, 255, 255, .28); }
.hero__photos .ph, .house__item button { cursor: zoom-in; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200; transform: translate(-50%, 20px);
  padding: .7rem 1.25rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión (para imprimir recetas) ---------- */
@media print {
  body { background: #fff; }
  .nav, .skip, .back, .recipe__actions, .recipe__nav, .footer, .toast, #lightbox { display: none !important; }
  .recipe { padding: 0; animation: none; }
  .recipe__art, .lang, .card { box-shadow: none; transform: none; }
  .recipe__head { grid-template-columns: 200px 1fr; }
  .recipe__body { grid-template-columns: 1fr 1fr; }
  .lang { break-inside: avoid; }
}

/* ---- enlaces como botones ---- */
a.brand, a.back, a.nav-card { text-decoration: none; }
a.nav-card { color: inherit; }
