/* Mesa Festiva — landing styles
   Art direction: carta de restaurante / papel impreso.
   Hairline rules instead of cards, oversized serif display, ink on cream. */

:root {
  --paper: #f6efe2;
  --paper-2: #efe6d6;
  --ink: #17150f;
  --ink-60: rgba(23, 21, 15, 0.62);
  --ink-40: rgba(23, 21, 15, 0.4);
  --rule: rgba(23, 21, 15, 0.22);
  --rule-soft: rgba(23, 21, 15, 0.12);
  --pine: #1f4d3a;
  --pine-deep: #16382a;
  --cranberry: #b23a48;
  --gold: #a8822a;
  --white: #fffdf8;

  --measure: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --step: clamp(56px, 9vw, 120px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cranberry);
  outline-offset: 3px;
}

.mf-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 50;
}
.mf-skip:focus {
  left: 12px;
  top: 12px;
}

.mf-wrap {
  width: min(var(--measure), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ── type ───────────────────────────────────────────── */

h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.mf-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cranberry);
}

.mf-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-60);
  max-width: 58ch;
}

.mf-section-head {
  display: grid;
  gap: 14px;
  padding-block: 10px 28px;
}

.mf-section-head h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.mf-rule {
  border: 0;
  border-top: 1px solid var(--rule);
}

.mf-rule--double {
  border: 0;
  border-top: 3px double var(--rule);
}

/* ── masthead ───────────────────────────────────────── */

.mf-masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.mf-masthead__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.mf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.mf-brand img {
  width: 38px;
  height: 38px;
}

.mf-brand__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.mf-brand__sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-top: 3px;
}

.mf-nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
}

.mf-nav a {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.mf-nav a:hover,
.mf-nav a[aria-current='page'] {
  border-bottom-color: var(--ink);
}

/* phones: brand on the first line, links scroll sideways instead of overflowing */
@media (max-width: 899px) {
  .mf-masthead__inner {
    flex-wrap: wrap;
    gap: 6px 16px;
    min-height: 0;
    padding-block: 12px 4px;
  }

  .mf-nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
  }

  .mf-nav::-webkit-scrollbar {
    display: none;
  }
}

/* ── buttons ────────────────────────────────────────── */

.mf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  background: var(--pine);
  color: var(--white);
  border: 1px solid var(--pine);
  font: 600 15px/1 'Karla', sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mf-btn:hover {
  background: var(--pine-deep);
  transform: translateY(-1px);
}

.mf-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.mf-btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.mf-btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.mf-btn--soon {
  background: transparent;
  color: var(--ink);
  border-style: dashed;
  border-color: var(--rule);
  cursor: default;
}

.mf-btn--soon:hover {
  background: transparent;
  transform: none;
}

.mf-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.mf-masthead .mf-btn {
  display: none;
}

@media (min-width: 900px) {
  .mf-masthead .mf-btn {
    display: inline-flex;
  }
}

/* ── hero ───────────────────────────────────────────── */

.mf-hero {
  padding-block: clamp(30px, 4.6vw, 64px) var(--step);
  position: relative;
}

.mf-hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 960px) {
  .mf-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
}

.mf-hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.mf-hero__kicker::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--rule);
}

.mf-hero h1 {
  font-size: clamp(42px, 6.4vw, 84px);
  letter-spacing: -0.03em;
}

.mf-hero h1 span {
  display: block;
}

.mf-hero h1 span:nth-child(2) {
  padding-left: clamp(0px, 4vw, 64px);
}

.mf-hero h1 em {
  font-style: italic;
  color: var(--pine);
}

.mf-hero__lead {
  margin-top: 26px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-60);
  max-width: 46ch;
}

.mf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.mf-hero__note {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* overlapping screenshots, tilted like photo prints */

.mf-shots {
  position: relative;
  padding-block: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mf-shot {
  background: var(--white);
  padding: 10px 10px 34px;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 18px 44px rgba(23, 21, 15, 0.16);
}

.mf-shot img {
  width: 100%;
}

/* hero: cropped interface fragments instead of full-height phones */
.mf-shots__main img {
  height: clamp(300px, 46vh, 430px);
  object-fit: cover;
  object-position: top center;
}

.mf-shots__back img {
  height: clamp(250px, 38vh, 360px);
  object-fit: cover;
  object-position: top center;
}

.mf-shot figcaption {
  font-size: 12px;
  color: var(--ink-40);
  padding-top: 10px;
  font-style: italic;
}

.mf-shots__main {
  width: min(248px, 62%);
  transform: rotate(-2.2deg);
  position: relative;
  z-index: 2;
}

.mf-shots__back {
  width: min(206px, 52%);
  transform: rotate(3.4deg);
  margin-left: -13%;
  align-self: flex-start;
  margin-top: 54px;
  opacity: 0.97;
}

@media (max-width: 600px) {
  .mf-shots__back {
    display: none;
  }
  .mf-shots__main {
    width: min(264px, 78%);
    transform: rotate(-1.4deg);
  }
}

/* ── steps (walkthrough) ────────────────────────────── */

.mf-steps {
  padding-block: var(--step);
  border-top: 1px solid var(--rule);
}

.mf-step {
  display: grid;
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--rule-soft);
  align-items: center;
}

.mf-step:first-of-type {
  border-top: 0;
}

@media (min-width: 820px) {
  .mf-step {
    grid-template-columns: 96px minmax(0, 1fr) minmax(0, 320px);
  }

  /* mirrored rows: explicit placement, otherwise the shot lands in the number column */
  .mf-step--flip {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr) 96px;
  }
  .mf-step--flip .mf-step__shot {
    grid-area: 1 / 1;
  }
  .mf-step--flip .mf-step__body {
    grid-area: 1 / 2;
  }
  .mf-step--flip .mf-step__n {
    grid-area: 1 / 3;
    text-align: right;
  }
}

.mf-step__n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--paper);
  -webkit-text-stroke: 1px var(--ink-40);
  text-stroke: 1px var(--ink-40);
}

.mf-step h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 10px;
}

.mf-step p {
  color: var(--ink-60);
  max-width: 52ch;
}

.mf-step__shot {
  border: 1px solid var(--rule-soft);
  background: var(--white);
  padding: 8px;
}

/* cropped fragment: enough interface to recognise the screen, no full phone */
.mf-step__shot img {
  height: clamp(220px, 26vw, 300px);
  object-fit: cover;
  object-position: top center;
}

.mf-plan__shot img {
  height: clamp(280px, 34vw, 400px);
  object-fit: cover;
  object-position: top center;
}

/* ── carta (feature menu) ───────────────────────────── */

.mf-carta {
  padding-block: var(--step);
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}

.mf-carta__list {
  display: grid;
  gap: 0 clamp(28px, 5vw, 72px);
  margin-top: 8px;
}

@media (min-width: 860px) {
  .mf-carta__list {
    grid-template-columns: 1fr 1fr;
  }
}

.mf-dish {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding-block: 20px;
  border-bottom: 1px solid var(--rule-soft);
  /* not `baseline`: that shrink-wraps the title and breaks the dotted leader */
  align-items: start;
}

.mf-dish__n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--cranberry);
  padding-top: 2px;
}

.mf-dish__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
}

.mf-dish__title span {
  flex: 0 1 auto;
}

.mf-dish__title::after {
  content: '';
  flex: 1 1 24px;
  min-width: 24px;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-4px);
}

.mf-dish__text {
  grid-column: 2;
  color: var(--ink-60);
  font-size: 16px;
}

/* ── plan (dark band) ───────────────────────────────── */

.mf-plan {
  background: var(--pine);
  color: #f3efe6;
  padding-block: var(--step);
  position: relative;
  overflow: hidden;
}

.mf-plan::after {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: 50%;
}

.mf-plan__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .mf-plan__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
  }
}

.mf-plan .mf-eyebrow {
  color: #e0cf9c;
}

.mf-plan h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  margin-block: 14px 18px;
}

.mf-plan p {
  color: rgba(243, 239, 230, 0.78);
  max-width: 52ch;
}

.mf-rail {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 253, 248, 0.24);
}

.mf-rail li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-block: 13px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
  list-style: none;
}

.mf-rail b {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #e0cf9c;
}

.mf-rail span {
  font-size: 16px;
}

.mf-rail li:last-child b,
.mf-rail li:last-child span {
  color: var(--white);
  font-weight: 700;
}

.mf-plan__shot {
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.2);
  padding: 10px;
  max-width: 320px;
  margin-inline: auto;
}

.mf-plan figcaption {
  font-size: 12px;
  font-style: italic;
  color: rgba(243, 239, 230, 0.6);
  padding-top: 8px;
  text-align: center;
}

/* ── recetas ────────────────────────────────────────── */

.mf-recetas {
  padding-block: var(--step);
}

.mf-recetas__head {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

@media (min-width: 900px) {
  .mf-recetas__head {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: end;
  }
}

.mf-recetas__head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
}

.mf-dishes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

@media (min-width: 760px) {
  .mf-dishes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mf-dish-card figcaption {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
}

.mf-dish-card b {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  display: block;
}

.mf-dish-card span {
  font-size: 13px;
  color: var(--ink-40);
  letter-spacing: 0.04em;
}

.mf-dish-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.02);
}

.mf-recetas__extra {
  margin-top: 28px;
  font-style: italic;
  color: var(--ink-60);
}

/* ── privacidad ─────────────────────────────────────── */

.mf-privacy {
  padding-block: var(--step);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}

.mf-privacy__grid {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
}

@media (min-width: 880px) {
  .mf-privacy__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.mf-checklist {
  display: grid;
  gap: 14px;
}

.mf-checklist li {
  list-style: none;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 17px;
}

.mf-checklist svg {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  fill: var(--pine);
}

/* ── faq ────────────────────────────────────────────── */

.mf-faq {
  padding-block: var(--step);
}

.mf-faq__list {
  border-top: 1px solid var(--rule);
  margin-top: 8px;
}

.mf-faq details {
  border-bottom: 1px solid var(--rule-soft);
}

.mf-faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
}

.mf-faq summary::-webkit-details-marker {
  display: none;
}

.mf-faq summary::after {
  content: '+';
  font-family: 'Karla', sans-serif;
  font-size: 22px;
  color: var(--cranberry);
  flex: none;
  transition: transform 0.2s ease;
}

.mf-faq details[open] summary::after {
  transform: rotate(45deg);
}

.mf-faq p {
  color: var(--ink-60);
  padding-bottom: 22px;
  max-width: 68ch;
}

/* ── final cta ──────────────────────────────────────── */

.mf-cta {
  padding-block: var(--step);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.mf-cta h2 {
  font-size: clamp(34px, 5.4vw, 64px);
  max-width: 16ch;
  margin-inline: auto;
}

.mf-cta p {
  color: var(--ink-60);
  max-width: 48ch;
  margin: 18px auto 0;
}

.mf-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.mf-cta__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-40);
}

.mf-appicon {
  width: 84px;
  height: 84px;
  margin: 0 auto 26px;
  border: 1px solid var(--rule);
}

/* ── footer ─────────────────────────────────────────── */

.mf-footer {
  border-top: 3px double var(--rule);
  padding-block: 44px 56px;
  font-size: 15px;
}

.mf-footer__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .mf-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

.mf-footer h3 {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 12px;
  font-weight: 700;
}

.mf-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.mf-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  display: inline-block;
  padding-block: 7px;
}

.mf-footer a:hover {
  border-bottom-color: var(--ink);
}

.mf-footer__about {
  color: var(--ink-60);
  max-width: 42ch;
}

.mf-footer__meta {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-40);
}

/* ── legal / text pages ─────────────────────────────── */

.mf-doc {
  padding-block: clamp(36px, 6vw, 72px) var(--step);
}

.mf-doc__head {
  border-bottom: 3px double var(--rule);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.mf-doc__head h1 {
  font-size: clamp(36px, 6vw, 66px);
  margin-top: 12px;
}

.mf-release {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin-top: 32px;
}

.mf-doc__body {
  max-width: 72ch;
}

.mf-doc__body h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 34px;
}

.mf-doc__body p {
  color: var(--ink-60);
  margin-top: 10px;
}

.mf-doc__body ul {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--ink-60);
  display: grid;
  gap: 8px;
}

.mf-doc__langs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.mf-tag {
  border: 1px solid var(--rule);
  padding: 5px 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ── reveal on scroll ───────────────────────────────── */

.mf-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mf-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mf-btn:hover {
    transform: none;
  }
}
