/* App-petitto · sitio público. Misma paleta y tipografías que la app (mockup "APP PETITTO - PRINCIPAL"). */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F3EEE2;
  --bg-soft: #F8F5EC;
  --panel: #FFFFFF;
  --pistache: #A3A26C;
  --pistache-dark: #6E7142;
  --forest: #4B4F2F;
  --forest-deep: #373A22;
  --ink: #34301F;
  --ink-soft: #6B6650;
  --line: #E2D8C3;
  --gold: #B8893F;
  --gold-soft: #E9C98B;
  --warn-bg: #FBF0DC;
  --warn-text: #8A6210;
  --ok-bg: #E8E6CF;
  --ok-text: #5A5E33;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(43, 50, 38, .06), 0 6px 18px rgba(43, 50, 38, .06);
  --shadow-lg: 0 2px 6px rgba(43, 50, 38, .08), 0 24px 48px rgba(43, 50, 38, .14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid var(--forest);
  background: var(--forest); color: #F8F7F0; font: 600 15px/1.2 var(--sans); text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--forest-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(55, 58, 34, .22); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 18px 30px; font-size: 17px; border-radius: 12px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #F8F7F0; }

/* ---------------------------------------------------------------- barra superior y navegación */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.lang { display: flex; align-items: center; gap: 6px; }
.lang__btn { background: none; border: 0; padding: 4px 2px; font: inherit; color: inherit; cursor: pointer; border-bottom: 1.5px solid transparent; }
.lang__btn[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--gold); }
.lang__btn:hover { color: var(--ink); }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(43, 50, 38, .06); }
.nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--serif); color: var(--forest-deep); }
.brand img { border-radius: 50%; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); position: relative; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--bg); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 18px/1 var(--serif); color: var(--forest); margin-bottom: 22px; }
.eyebrow img { border-radius: 50%; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); color: var(--forest-deep); margin-bottom: 22px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 30em; margin-bottom: 32px; }
.hero__notes { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-soft); }
.hero__notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero__notes li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pistache); }

.hero__art { position: relative; min-height: 520px; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 46% 54% 58% 42% / 52% 40% 60% 48%; }
.blob--gold { width: 440px; height: 400px; background: var(--gold-soft); top: 0; right: -20px; animation: morph 14s ease-in-out infinite; }
.blob--green { width: 230px; height: 200px; background: var(--pistache); bottom: 18px; left: 22px; opacity: .85; animation: morph 11s ease-in-out infinite reverse; }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 58% 42% / 52% 40% 60% 48%; transform: rotate(0); }
  50% { border-radius: 58% 42% 44% 56% / 42% 58% 42% 58%; transform: rotate(6deg); }
}

/* Dispositivos con capturas reales de la app (integration_test/capturas_test.dart en el repositorio de la app). */
.devices { position: relative; z-index: 2; width: min(100%, 640px); aspect-ratio: 580 / 470; }
.devices figure { position: absolute; margin: 0; background: #1F2117; box-shadow: var(--shadow-lg); }
.devices img { width: 100%; height: auto; }
.tablet { top: 0; right: 0; width: 90%; padding: 2.1%; border-radius: 26px; animation: rise .9s var(--ease) both; }
.tablet img { border-radius: 12px; }
.phone { left: 0; bottom: 0; width: 30%; padding: 2.4%; border-radius: 30px; animation: rise .9s .2s var(--ease) both; }
.phone img { border-radius: 22px; }
.phone__cam { position: absolute; top: 4.2%; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #1F2117; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- franja */
.band { background: #F1F3EC; border-top: 1px solid #E4E7DA; border-bottom: 1px solid #E4E7DA; }
.band__in { text-align: center; padding-top: 72px; padding-bottom: 76px; max-width: 880px; }
.band h2 { font-size: clamp(28px, 3.6vw, 38px); color: var(--forest-deep); margin-bottom: 18px; }
.band p { font-size: 17px; color: var(--ink); max-width: 46em; margin: 0 auto 30px; }
.band__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------------------------------------------------------------- secciones */
.section { padding: 96px 0; }
.section--alt { background: var(--bg); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__head h2, .split h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--forest-deep); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--pistache); }
.feat__ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ok-bg); fill: none; stroke: var(--forest); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.feat__img { border-radius: 50%; margin-bottom: 18px; }
.feat h3 { font-size: 19px; color: var(--forest-deep); margin-bottom: 8px; }
.feat p { font-size: 15px; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__copy > p:not(.kicker) { font-size: 17px; margin: 18px 0 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px; border-left: 2px solid #F8F7F0; border-bottom: 2px solid #F8F7F0; transform: rotate(-45deg); }

.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; max-width: 440px; justify-self: center; width: 100%; position: relative; }
.ticket::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -9px; height: 18px; background: radial-gradient(circle at 9px 0, transparent 8px, var(--panel) 8.5px) 0 0 / 18px 18px repeat-x; filter: drop-shadow(0 4px 3px rgba(43, 50, 38, .06)); }
.ticket__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ticket__head img { border-radius: 50%; }
.ticket__title { font: 600 19px/1.2 var(--serif); color: var(--forest-deep); }
.ticket__sub { font-size: 13px; color: var(--ink-soft); }
.ticket__rows { margin: 0; padding: 10px 0; }
.ticket__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.ticket__rows dt { color: var(--ink-soft); }
.ticket__rows dd { margin: 0; font-weight: 500; }
.ticket__sum { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px !important; }
.ticket__sum dt, .ticket__sum dd { color: var(--ink); font-weight: 600; }
.ticket__gain dt, .ticket__gain dd { color: var(--ok-text); font-weight: 600; }
.ticket__price { display: grid; justify-items: center; text-align: center; background: var(--ok-bg); border-radius: var(--radius); padding: 16px; margin-top: 6px; }
.ticket__price span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok-text); }
.ticket__price strong { font: 600 40px/1.1 var(--serif); color: var(--forest-deep); font-variant-numeric: tabular-nums; }
.ticket__price small { font-size: 13px; color: var(--ok-text); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; border-top: 2px dashed var(--line); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step__n { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: #F8F7F0; font: 600 22px/1 var(--serif); margin-bottom: 18px; box-shadow: 0 0 0 8px var(--panel); }
.step h3 { font-size: 21px; color: var(--forest-deep); margin-bottom: 8px; }
.step p { color: var(--ink-soft); max-width: 22em; margin: 0 auto; }
.walk { position: relative; height: 140px; margin-top: 36px; border-bottom: 2px dashed var(--line); overflow: hidden; }
.walk img { position: absolute; bottom: 0; left: 0; width: 180px; animation: walk 18s linear infinite; }
@keyframes walk {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(calc(100vw + 40px)); }
}

.faq { max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--pistache); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- llamada final y pie */
.cta { background: linear-gradient(180deg, var(--forest), var(--forest-deep)); color: #F8F7F0; text-align: center; }
.cta__in { padding-top: 88px; padding-bottom: 96px; display: grid; justify-items: center; }
.cta__pet { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--pistache); margin-bottom: 22px; animation: bob 5s ease-in-out infinite; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.cta p { color: #D6DBC8; font-size: 18px; max-width: 34em; margin-bottom: 34px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 11px 20px; border-radius: 12px; background: #1F2117; border: 1px solid rgba(248, 247, 240, .25); color: #F8F7F0; text-align: left; font: 600 18px/1.1 var(--sans); cursor: default; }
.store svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; color: #B7C0A8; margin-bottom: 2px; }

.foot { background: #2B2D1B; color: #B7C0A8; font-size: 14px; }
.foot__in { padding-top: 40px; padding-bottom: 40px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.brand--light { color: #F8F7F0; font-size: 20px; }
.foot__copy { color: #8E957D; font-size: 13px; }

/* ---------------------------------------------------------------- aparición al desplazarse (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.grid .reveal:nth-child(4n+2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.grid .reveal:nth-child(4n+3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.grid .reveal:nth-child(4n+4) { transition-delay: .24s; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero__in { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; padding-bottom: 64px; text-align: center; }
  .hero__copy { display: grid; justify-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero__notes { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(43, 50, 38, .08); padding: 8px 24px 20px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 16px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .topbar__note { display: none; }
  .topbar__in { justify-content: flex-end; }
  .grid { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
  .btn--lg { width: 100%; }
  .hero__in { padding-top: 36px; }
  .hero__art { min-height: 0; padding: 28px 0 36px; }
  .blob--gold { width: 320px; height: 300px; right: -30px; }
  .tablet { border-radius: 16px; }
  .tablet img { border-radius: 7px; }
  .phone { border-radius: 18px; }
  .phone img { border-radius: 12px; }
  .phone__cam { width: 6px; height: 6px; margin-left: -3px; }
  .ticket { padding: 20px; }
  .store { min-width: 0; flex: 1 1 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .walk img { left: 50%; margin-left: -90px; }
}

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 100vh; display: grid; align-items: center; }
.notfound__btn { border-color: #F8F7F0; color: #F8F7F0; }
.notfound__btn:hover { background: #F8F7F0; color: var(--forest-deep); }
