/* Landing de Phoodie (index.html y en.html). Las páginas de texto siguen usando style.css. */
:root {
  --ink: #181818; --ink-2: #3a3a3a; --muted: #6b6b6b; --line: #ececec; --surface: #f5f5f5;
  --lime: #b6f074; --lime-2: #9fdc5a; --yellow: #ffec89; --lilac: #dab8f1; --blue: #bee3f8;
  --r-xl: 40px; --r-lg: 28px;
  --wrap: 1180px; --gut: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: "DM Sans", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botones ---------- */
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 26px 0 20px;
  background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.store:focus-visible, .pill:focus-visible { outline: 3px solid var(--lime-2); outline-offset: 3px; }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; margin-top: -3px; }
.store span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store small { font-size: 12px; opacity: .8; font-weight: 500; }
.store strong { font-size: 21px; letter-spacing: -.01em; }
.store.light { background: #fff; color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .2s;
}
.pill:hover { background: var(--lime-2); }
.meta { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- Barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.top .logo img { height: 26px; width: auto; }
.top nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top .lang { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
@media (max-width: 760px) { .top nav { display: none; } .top .lang { margin-left: auto; } }

/* ---------- Teléfono ---------- */
.phone {
  --w: 260px; width: var(--w); padding: calc(var(--w) * .035); background: var(--ink);
  border-radius: calc(var(--w) * .16); box-shadow: 0 30px 70px -20px rgba(0,0,0,.35);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; border-radius: calc(var(--w) * .13); background: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); font-size: 14px; font-weight: 500;
}
.eyebrow i { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-style: normal; font-size: 12px; }
h1 {
  margin: 22px 0 0; font-size: clamp(48px, 7.4vw, 92px); line-height: .95; letter-spacing: -.045em;
  font-weight: 400; text-wrap: balance;
}
h1 b { font-weight: 700; }
.lead { margin: 26px 0 34px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.stage { position: relative; height: 660px; }
.stage .card { position: absolute; border-radius: var(--r-xl); }
.stage .c1 { background: var(--yellow); inset: 40px 18% 300px 4%; transform: rotate(-4deg); }
.stage .c2 { background: var(--lilac); inset: 220px 2% 150px 30%; transform: rotate(3deg); }
.stage .c3 { background: var(--blue); inset: 380px 30% 0 10%; transform: rotate(-2deg); }
.stage .phone { position: absolute; }
.stage .p1 { --w: 270px; left: 4%; top: 64px; transform: rotate(-6deg); }
.stage .p2 { --w: 292px; left: 44%; top: 16px; transform: rotate(5deg); z-index: 2; }
.stage .num {
  position: absolute; z-index: 3; background: #fff; border-radius: 22px; padding: 14px 18px 12px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.25); font-size: 14px; line-height: 1.15;
}
.stage .num b { display: block; font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.stage .n1 { left: 0; bottom: 70px; }
.stage .n2 { right: -10px; top: 360px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { height: 520px; max-width: 460px; width: 100%; margin: 10px auto 0; }
  .stage .p1 { --w: 200px; left: 4%; }
  .stage .p2 { --w: 220px; left: 46%; }
  .stage .n2 { top: 300px; }
}
@media (max-width: 420px) {
  .stage { height: 440px; }
  .stage .p1 { --w: 170px; } .stage .p2 { --w: 186px; left: 44%; }
  .stage .n1 { bottom: 40px; } .stage .n2 { top: 250px; }
  .stage .num b { font-size: 32px; }
}

/* ---------- Secciones ---------- */
section { position: relative; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h2 {
  margin: 14px 0 0; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.04em; font-weight: 400;
  text-wrap: balance;
}
h2 b { font-weight: 700; }
.sub { margin: 18px 0 0; font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 34em; }
.head { margin-bottom: clamp(36px, 5vw, 60px); }

/* ---------- Vídeo ---------- */
.film { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 120px) 0; border-radius: var(--r-xl); margin: 0 clamp(8px, 1.4vw, 18px); }
.film .kicker { color: rgba(255,255,255,.55); }
.film .sub { color: rgba(255,255,255,.75); }
.film .head { text-align: center; } .film .sub { margin-inline: auto; }
.player { position: relative; max-width: 1000px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player .play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0) 55%);
}
.player .play span {
  display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px 0 22px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font: 700 18px "DM Sans", sans-serif;
  box-shadow: 0 14px 40px rgba(0,0,0,.35); transition: transform .25s var(--ease);
}
.player .play:hover span { transform: scale(1.05); }
.player .play svg { width: 20px; height: 20px; fill: currentColor; }
.player.playing .play { display: none; }
@media (max-width: 640px) { .player { aspect-ratio: 9 / 16; max-width: 400px; } }

/* ---------- Cómo funciona ---------- */
.how { padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { border-radius: var(--r-xl); padding: 30px 30px 34px; min-height: 300px; display: flex; flex-direction: column; }
.steps li:nth-child(1) { background: var(--yellow); }
.steps li:nth-child(2) { background: var(--lilac); }
.steps li:nth-child(3) { background: var(--blue); }
.steps .n { font-size: 96px; line-height: .85; font-weight: 700; letter-spacing: -.05em; }
.steps h3 { margin: auto 0 0; padding-top: 40px; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.steps p { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li { min-height: 0; } }

/* ---------- Funciones ---------- */
.features { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(40px, 6vw, 80px); }
.feature .art {
  border-radius: var(--r-xl); display: grid; place-items: center; padding: 56px 20px 0; overflow: hidden;
  height: clamp(440px, 46vw, 560px); align-items: start;
}
.feature .art .phone { --w: clamp(230px, 22vw, 280px); }
.feature h3 { margin: 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -.035em; font-weight: 400; }
.feature h3 b { font-weight: 700; }
.feature p { margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 28em; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feature li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }
.feature:nth-child(even) .art { order: 2; }
.bg-yellow { background: var(--yellow); } .bg-lilac { background: var(--lilac); }
.bg-lime { background: var(--lime); } .bg-blue { background: var(--blue); } .bg-grey { background: var(--surface); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .art { order: 0; }
  .feature .art { height: 440px; padding-top: 40px; }
}

/* ---------- Privacidad ---------- */
.privacy { padding: 0 0 clamp(70px, 9vw, 120px); }
.privacy .box {
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start;
}
.privacy dl { margin: 0; display: grid; gap: 22px; }
.privacy dt { font-weight: 700; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.privacy dt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime-2); flex: none; }
.privacy dd { margin: 6px 0 0 20px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 820px) { .privacy .box { grid-template-columns: 1fr; } }

/* ---------- Preguntas ---------- */
.faq { padding: 0 0 clamp(70px, 9vw, 120px); }
.faq .wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 19px; font-weight: 500;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px;
  border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 20px; transition: transform .25s var(--ease), background .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--lime); }
.faq details p { margin: -6px 0 24px; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 38em; }
@media (max-width: 820px) { .faq .wrap { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Llamada final ---------- */
.final { padding: 0 clamp(8px, 1.4vw, 18px) clamp(8px, 1.4vw, 18px); }
.final .box {
  background: var(--lime); border-radius: var(--r-xl); padding: clamp(56px, 8vw, 110px) var(--gut);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.final .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.35); }
.final h2 { margin-top: 30px; }
.final .sub { margin: 16px auto 34px; }

/* ---------- Páginas de texto (guía y comparativas) ---------- */
.doc-page .top .pill { margin-left: auto; } .doc-page .top nav + .pill { margin-left: 0; }
@media (max-width: 760px) { .doc-page .top nav + .pill { margin-left: auto; } }
.doc { padding: clamp(36px, 6vw, 72px) 0 clamp(60px, 8vw, 100px); }
.doc .narrow { max-width: 820px; }
.doc .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.doc .crumbs a { text-decoration: none; } .doc .crumbs a:hover { color: var(--ink); }
.doc h1 { margin: 14px 0 0; font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -.045em; font-weight: 400; text-wrap: balance; }
.doc h1 b { font-weight: 700; }
.doc h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: clamp(48px, 6vw, 72px); }
.doc h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.01em; }
.doc p, .doc li { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.doc p { margin: 18px 0 0; }
.doc .answer { margin-top: 26px; font-size: clamp(20px, 2.2vw, 23px); line-height: 1.5; color: var(--ink); }
.doc .byline { font-size: 14px; color: var(--muted); margin-top: 16px; }
.doc .note { font-size: 14px; color: var(--muted); }
.doc .store { margin-top: 10px; }
.doc .table { margin-top: 26px; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--line); }
.doc thead th { border-top: 0; font-size: 15px; background: var(--surface); }
.doc thead th:nth-child(2) { background: var(--lime); }
.doc tbody th { font-weight: 700; width: 26%; color: var(--ink); }
.doc td { color: var(--ink-2); width: 37%; }
.doc .pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(40px, 5vw, 56px); }
.doc .pick > div { background: var(--surface); border-radius: var(--r-lg); padding: 28px; }
.doc .pick .us { background: var(--yellow); }
.doc .pick ul, .doc .ticks { margin: 0; padding-left: 20px; }
.doc .pick li { font-size: 16px; margin-top: 6px; }
.doc .steps-doc { padding-left: 22px; } .doc .steps-doc li { margin-top: 12px; }
.doc .steps-doc strong, .doc .ticks li { color: var(--ink); }
.doc .faq-list { margin-top: 20px; }
.doc details { border-top: 1px solid var(--line); }
.doc details:last-child { border-bottom: 1px solid var(--line); }
.doc summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 18px; font-weight: 700; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; }
.doc details[open] summary::after { content: "–"; }
.doc details p { margin: -4px 0 22px; font-size: 17px; }
.doc .cmps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.doc .cmp { display: block; padding: 24px; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: background .2s; }
.doc .cmp:nth-child(4n+1) { background: var(--lilac); } .doc .cmp:nth-child(4n+2) { background: var(--blue); }
.doc .cmp:nth-child(4n+3) { background: var(--yellow); } .doc .cmp:nth-child(4n) { background: var(--lime); }
.doc .cmp:hover { filter: brightness(.97); }
.doc .cmp strong { display: block; font-size: 19px; }
.doc .cmp span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.doc .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.doc .chip { padding: 10px 16px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 15px; font-weight: 500; }
.doc .chip:hover { background: var(--lime); }
@media (max-width: 680px) { .doc .pick, .doc .cmps { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
footer { padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .store, .player .play span { transition: none; }
}
.dc-promo .sub a, .dc-link { color: var(--ink); font-weight: 700; }
.dc-link { display: inline-block; margin-top: 8px; font-size: 18px; }
