/* Web de WeChef. Paleta «Grafito e índigo» (la misma que la app). Archivo servida desde aquí (OFL): una sola familia
   con eje de anchura; los titulares van condensados y pesados, como el logo WECHEF, y el texto en ancho normal.
   iconos de Phosphor (MIT) pintados con máscara para que tomen el color del texto.
   Radios: marcos y bloques 16px · botones 10px. Nada más. */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17181c;
  --muted: #55585f;
  --paper: #f6f6f3;
  --raised: #ffffff;
  --line: #e2e1dc;
  --graphite: #15171c;
  --graphite-2: #23262e;
  --on-graphite: #e9e9ec;
  --accent: #3d34a5;
  --accent-hover: #332b8f;
  --accent-soft: #ecebf8;
  --good: #1e7a4c;
  --good-soft: #e6f3ec;
  --warn: #a65c00;
  --warn-soft: #fdf3e2;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --r-block: 16px;
  --r-btn: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececef;
    --muted: #a9abb3;
    --paper: #121317;
    --raised: #1b1d23;
    --line: #2c2f37;
    --graphite: #0c0d10;
    --graphite-2: #1f2229;
    --accent: #8f88f0;
    --accent-hover: #a7a1f5;
    --accent-soft: #24223f;
    --good: #5cc28e;
    --good-soft: #15291f;
    --warn: #e0a54a;
    --warn-soft: #2d2313;
    --bad: #f0847a;
    --bad-soft: #2e1715;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; line-height: 1.08; font-weight: 800; font-stretch: 78%; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.15rem; font-stretch: 90%; font-weight: 750; letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-btn); z-index: 30; }
.skip:focus { left: 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }

/* Iconos de Phosphor como máscara: toman currentColor. */
.ico {
  display: inline-block; width: 28px; height: 28px; flex: none;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.ico-receipt { --i: url(icons/receipt.svg); }
.ico-cooking-pot { --i: url(icons/cooking-pot.svg); }
.ico-tray-arrow-up { --i: url(icons/tray-arrow-up.svg); }
.ico-list-checks { --i: url(icons/list-checks.svg); }
.ico-file-xls { --i: url(icons/file-xls.svg); }
.ico-shield-check { --i: url(icons/shield-check.svg); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-btn);
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #121317; } }

/* Marco de las capturas */
.frame { margin: 0; border-radius: var(--r-block); overflow: hidden; background: var(--raised); border: 1px solid var(--line); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; }
.logo { height: 26px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 550; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-enter { margin-left: auto; text-decoration: none; font-weight: 650; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.nav nav + .nav-enter { margin-left: 0; }
@media (max-width: 760px) { .nav nav { display: none; } .nav-in .btn { margin-left: auto; } }

/* Hero: texto a la izquierda, la ficha real a la derecha, sangrando por el borde. */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.6rem); max-width: 15ch; }
.hero .lead { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-shot { width: 112%; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot { width: 100%; }
}

/* Frase */
.statement { padding: 56px 0 72px; }
.statement p { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.25; font-weight: 700; font-stretch: 85%; max-width: 32ch; text-wrap: pretty; }

/* Cómo funciona: pasos a la izquierda, «Hoy» fijo a la derecha mientras se leen. */
.how { padding: 72px 0; background: var(--raised); border-block: 1px solid var(--line); }
.how-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 30px; }
.steps li { display: flex; gap: 18px; }
.steps .ico { color: var(--accent); margin-top: 2px; }
.steps p { color: var(--muted); margin-top: 6px; max-width: 46ch; }
.how-shot { position: sticky; top: 100px; }
@media (max-width: 900px) { .how-in { grid-template-columns: 1fr; gap: 40px; } .how-shot { position: static; } }

/* Bento: cinco piezas, cinco celdas. */
.features { padding: 88px 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.cell { border-radius: var(--r-block); border: 1px solid var(--line); background: var(--raised); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.cell p { color: var(--muted); }
.cell .ico { color: var(--accent); margin-bottom: 6px; }
.cell-wide { grid-column: span 2; grid-row: span 2; display: grid; grid-template-rows: auto 1fr; gap: 22px; padding-bottom: 0; overflow: hidden; }
.cell-wide .cell-text { display: grid; gap: 8px; }
.cell-media { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.cell-media img { aspect-ratio: 16 / 9.4; object-fit: cover; object-position: top left; width: 100%; }
.cell-accent { background: var(--accent-soft); border-color: transparent; }
.cell-dark { background: var(--graphite); border-color: var(--graphite); color: var(--on-graphite); }
.cell-dark p { color: #b9bbc3; }
.cell-dark .ico { color: #a7a1f5; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .cell-wide { grid-column: auto; } }

/* Ingeniería de menú: captura a todo el ancho y los cuatro grupos en 2 × 2, como en la app. */
.menu { padding: 88px 0; background: var(--raised); border-block: 1px solid var(--line); }
.menu .lead { margin-top: 16px; }
/* Matriz interactiva: gráfico a la izquierda, la recomendación del plato elegido a la derecha. */
.mx { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; margin-top: 40px; align-items: start; }
.mx-chart { margin: 0; }
.mx-chart svg { width: 100%; height: auto; display: block; overflow: visible; font-family: inherit; }
.mx-chart figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.mx-zone { stroke: var(--raised); stroke-width: 2; }
.mx-star { fill: var(--good-soft); }
.mx-plowhorse, .mx-puzzle { fill: var(--warn-soft); }
.mx-dog { fill: var(--bad-soft); }
.mx-zone-title { font-weight: 800; font-stretch: 85%; font-size: 15px; fill: var(--ink); }
.mx-zone-what { font-size: 12px; fill: var(--muted); }
.mx-grid { stroke: var(--line); stroke-width: 1; opacity: 0.6; }
.mx-tick { font-size: 12px; fill: var(--muted); }
.mx-axis { font-size: 13px; fill: var(--muted); font-weight: 600; }
.mx-cut { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.mx-pt { cursor: pointer; outline: none; }
.mx-hit { fill: transparent; }
.mx-dot { fill: var(--ink); stroke: var(--raised); stroke-width: 2; transition: r 0.2s var(--ease), fill 0.2s var(--ease); }
.mx-label { font-size: 14px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--raised); stroke-width: 4px; stroke-linejoin: round; }
.mx-pt.on .mx-dot { fill: var(--accent); r: 10; }
.mx-pt:focus-visible .mx-dot { stroke: var(--accent); stroke-width: 4; }
.mx-panel { border: 1px solid var(--line); border-radius: var(--r-block); padding: 24px; background: var(--paper); min-height: 320px; }
.mx-dish { font-size: 1.5rem; font-weight: 800; font-stretch: 80%; line-height: 1.1; }
.mx-tag { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: var(--r-btn); font-weight: 650; font-size: 0.92rem; border: 1px solid; }
.mx-tag-star { color: var(--good); background: var(--good-soft); }
.mx-tag-plowhorse, .mx-tag-puzzle { color: var(--warn); background: var(--warn-soft); }
.mx-tag-dog { color: var(--bad); background: var(--bad-soft); }
.mx-why { margin-top: 14px; }
.mx-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; }
.mx-nums div { border-top: 1px solid var(--line); padding-top: 8px; }
.mx-nums dt { color: var(--muted); font-size: 0.85rem; }
.mx-nums dd { margin: 0; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mx-ev { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.92rem; display: grid; gap: 4px; }
.mx-data { margin-top: 20px; }
.mx-data summary { cursor: pointer; color: var(--accent); font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.mx-table-wrap { overflow-x: auto; }
.mx-data table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.mx-data th, .mx-data td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mx-data th { color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .mx { grid-template-columns: 1fr; } .mx-panel { min-height: 0; } }
.note { margin-top: 16px; color: var(--muted); font-size: 0.92rem; }

/* Preguntas */
.faq { padding: 88px 0; }
.faq-in { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 650; position: relative; min-height: 44px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform 0.2s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 36px 22px 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 900px) { .faq-in { grid-template-columns: 1fr; gap: 24px; } }

/* Llamada final */
.cta { padding: 0 0 96px; }
.cta-in { background: var(--graphite); color: var(--on-graphite); border-radius: var(--r-block); padding: 64px 32px; display: grid; justify-items: center; text-align: center; gap: 16px; }
.cta-in h2 { max-width: 20ch; }
.cta-in p { color: #b9bbc3; margin-bottom: 8px; }
.cta-in .cta-mail { margin: 4px 0 0; font-size: 0.92rem; }
.cta-mail a { color: #e9e9ec; }
.cta-mark { width: 72px; height: 72px; }
.cta .btn-primary { background: #ffffff; color: var(--graphite); }
.cta .btn-primary:hover { background: #e8e7f7; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot .logo { height: 20px; margin-bottom: 8px; }
.foot-links { display: grid; gap: 6px; justify-items: end; }
@media (max-width: 600px) { .foot-links { justify-items: start; } }

/* Aparición al entrar en pantalla: dice «esto es lo siguiente» al leer. Sin movimiento si el sistema lo pide. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
