:root {
  --loza: #F2F4FA;
  --pano: #2346B8;
  --pano-suave: #E1E7F7;
  --tinta: #131C3A;
  --gris: #525B78;
  --linea: #DCE1EF;
  --pimenton: #E8452C;
  --pimenton-texto: #B8321C;
  --yema: #FFC23D;
  --yema-suave: #FFF0C7;
  --acelga: #1F7A55;
  --acelga-suave: #DDF1E6;
  --blanco: #FFFFFF;
  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-text: 'DM Sans', system-ui, sans-serif;
  --f-data: 'DM Mono', ui-monospace, monospace;
  --radio: 18px;
  --sombra: 0 18px 40px -18px rgba(19, 28, 58, .35);
  --rayado: repeating-linear-gradient(45deg, rgba(35, 70, 184, .10) 0 6px, var(--blanco) 6px 12px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--loza);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--f-text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pano); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--pano); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-weight: 600; font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--blanco); padding: 8px 12px; z-index: 10; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(242, 244, 250, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a { color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-header nav a:hover { color: var(--pano); }
.nav-links { display: none; gap: 20px; }
@media (min-width: 760px) { .nav-links { display: flex; } }
.lang-switch { font-family: var(--f-data); font-size: .85rem; border: 1.5px solid var(--tinta); border-radius: 6px; padding: 3px 8px; }

/* Sellos */
.stamp {
  display: inline-block; font-family: var(--f-data); font-weight: 500; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 6px; padding: 3px 8px;
  transform: rotate(-3deg); line-height: 1.2; background: var(--blanco);
}
.stamp--cole { color: var(--pano); }
.stamp--apetece { color: var(--pimenton-texto); transform: rotate(2deg); }
.stamp--cuadra { color: var(--acelga); transform: rotate(-1deg); }
.stamp--revisar { color: #7A4F00; background: var(--yema-suave); transform: rotate(1deg); }
.stamp--soon { color: var(--pimenton-texto); position: absolute; top: -10px; right: -8px; }

/* Badges de tienda */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 8px; }
.store { position: relative; display: inline-flex; align-items: center; height: 48px; }
.store img.apple { height: 48px; width: auto; }
.store img.google { height: 70px; width: auto; max-width: none; margin: 0 -10px; }
.store--soon { cursor: default; }
.store--soon img { opacity: .55; }
.trial { font-family: var(--f-data); font-size: .9rem; color: var(--gris); }

/* Botones */
.button { font: 600 1rem var(--f-text); border-radius: 999px; padding: 10px 20px; border: 2px solid var(--tinta); background: var(--blanco); color: var(--tinta); cursor: pointer; }
.button:hover { background: var(--pano-suave); }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Secciones */
.section { padding: 72px 0; scroll-margin-top: 80px; }
.section--white { background: var(--blanco); }
.eyebrow { font-family: var(--f-data); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--pano); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--gris); max-width: 36em; }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.hero h1 .hoy { color: var(--pimenton); }

/* Marco de móvil */
.phone { width: min(300px, 78vw); margin-inline: auto; border-radius: 44px; background: var(--tinta); padding: 10px; box-shadow: var(--sombra); }
.phone img { border-radius: 34px; width: 100%; height: auto; aspect-ratio: 500 / 1084; object-fit: cover; background: var(--loza); }

/* Un martes cualquiera */
.compare { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border-radius: var(--radio); padding: 28px; background: var(--blanco); border: 1px solid var(--linea); }
.compare__col--sin { background: transparent; border-style: dashed; }
.compare__col h3 { display: flex; align-items: center; gap: 10px; }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare li { display: flex; gap: 12px; align-items: flex-start; }
.compare__col--sin .icon { color: var(--pimenton-texto); }
.school-card { position: relative; border-radius: 14px; padding: 16px; background: var(--rayado); border: 1.5px solid var(--pano); margin-bottom: 14px; }
.school-card .stamp { position: absolute; top: -10px; right: 12px; }
.school-card p, .dinner-card p { margin: 0; }
.card-meta { font-family: var(--f-data); font-size: .8rem; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.dish { font-weight: 700; font-size: 1.1rem; }
.dinner-card { position: relative; border-radius: 14px; padding: 16px; background: var(--blanco); border: 1.5px solid var(--linea); }
.dinner-card .stamp { position: absolute; bottom: -10px; right: 12px; }
.dinner-card .why { color: var(--acelga); font-size: .95rem; margin-top: 6px; }

/* Cómo funciona */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; counter-reset: paso; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--blanco); border-radius: var(--radio); padding: 28px; border: 1px solid var(--linea); counter-increment: paso; position: relative; }
.steps li::before { content: counter(paso); position: absolute; top: 20px; right: 24px; font: 800 2.4rem var(--f-display); color: var(--pano-suave); }
.section--white .steps li { background: var(--loza); }
.steps .icon { color: var(--pano); width: 32px; height: 32px; margin-bottom: 12px; }

/* Funciones */
.feature { display: grid; gap: 32px; align-items: center; padding: 40px 0; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-of-type(even) .feature__text { order: 2; }
}
.feature .stamp { margin-bottom: 12px; }
.feature__extra { font-family: var(--f-data); font-size: .9rem; color: var(--gris); border-top: 1px dashed var(--linea); padding-top: 12px; }

/* ¿Te suena? */
.pains { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px; }
.pain .icon { color: var(--pano); width: 28px; height: 28px; margin-bottom: 12px; }
.pain p { margin: 0; }
.pain .pain__problem { font-weight: 700; font-size: 1.1rem; line-height: 1.35; margin-bottom: 8px; }
.pain__fix { color: var(--gris); }

/* Pídelo con tus palabras */
.request-box { margin-top: 32px; max-width: 720px; background: var(--blanco); border: 1.5px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); padding: 20px; display: grid; gap: 10px; }
.request-box label { font-family: var(--f-data); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--gris); }
.request-box textarea { width: 100%; font: 400 1rem/1.5 var(--f-text); color: var(--tinta); background: var(--loza); border: 1.5px solid var(--linea); border-radius: 12px; padding: 12px 14px; resize: vertical; min-height: 5.5em; }
.request-box textarea::placeholder { color: var(--gris); }
.fake-button { justify-self: end; font: 600 1rem var(--f-text); background: var(--pano); color: var(--blanco); border-radius: 999px; padding: 10px 22px; }
.request-label { font-family: var(--f-data); font-size: .85rem; color: var(--gris); margin: 24px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 820px; }
.request-chip, .chip { font: 500 .95rem/1.3 var(--f-text); border-radius: 999px; padding: 8px 16px; border: 1.5px solid var(--linea); background: var(--blanco); color: var(--tinta); text-align: left; }
.request-chip { cursor: pointer; border-color: var(--pano); color: var(--pano); font-weight: 600; }
.request-chip:hover { background: var(--pano-suave); }
.request-chip[aria-pressed="true"] { background: var(--pano); color: var(--blanco); }
.chip { color: var(--gris); }

/* Avisos de la víspera */
.lockscreen { width: min(300px, 78vw); margin-inline: auto; aspect-ratio: 500 / 1084; border: 10px solid var(--tinta); border-radius: 44px; box-shadow: var(--sombra); padding: 56px 14px 24px; color: var(--blanco); background: linear-gradient(165deg, #2346B8 0%, #1B358F 55%, #14286F 100%); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.lockscreen__time { font: 800 4rem/1 var(--f-display); letter-spacing: -.03em; text-align: center; margin: 0 0 28px; }
.lockscreen::after { content: ""; margin: auto auto 0; width: 110px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.notif { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .14); border-radius: 18px; padding: 12px; backdrop-filter: blur(6px); }
.notif img { width: 28px; height: 28px; border-radius: 7px; background: var(--blanco); flex: none; }
.notif__body { min-width: 0; }
.notif p { margin: 0; line-height: 1.3; }
.notif__head { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pano-suave); }
.notif .notif__title { font-weight: 700; font-size: .88rem; margin-top: 2px; }
.notif__text { font-size: .82rem; }

/* Precios */
.plans { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { background: var(--blanco); border: 1.5px solid var(--linea); border-radius: var(--radio); padding: 28px; position: relative; }
.plan--best { border-color: var(--pano); box-shadow: var(--sombra); }
.plan--best .stamp { position: absolute; top: -12px; left: 24px; color: var(--pano); }
.plan__name { font-weight: 700; margin-bottom: 4px; }
.plan__price { font: 500 2.2rem var(--f-data); margin: 0; }
.plan__per { font-family: var(--f-data); color: var(--gris); font-size: .9rem; }
.plans-note { margin-top: 24px; color: var(--gris); font-size: .95rem; max-width: 46em; }

/* Preguntas */
.faq { margin-top: 32px; display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--pano); }
.faq details p { margin: 0 0 16px; }

/* CTA final */
.cta { background: var(--pano); color: var(--blanco); border-radius: 28px; padding: 56px 28px; text-align: center; }
.cta h2 { color: var(--blanco); }
.cta :focus-visible { outline-color: var(--blanco); }
.cta .stores { justify-content: center; }
.cta .trial { color: var(--pano-suave); }

/* Pie */
.site-footer { padding: 48px 0 120px; font-size: .95rem; color: var(--gris); }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.site-footer a, .site-footer .link-button { color: var(--tinta); }

/* Banner de cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 640px; margin-inline: auto;
  background: var(--blanco); border: 2px solid var(--tinta); border-radius: 18px; padding: 18px 20px; box-shadow: var(--sombra);
}
.cookie-banner p { margin: 0 0 12px; font-size: .95rem; }
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button--cookie { flex: 1 1 140px; }

/* Legales */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--linea); padding: 8px 6px; vertical-align: top; }
.legal-draft { background: var(--yema-suave); border: 1.5px solid #7A4F00; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
mark.pendiente { background: var(--yema); color: var(--tinta); padding: 0 4px; border-radius: 4px; }
.table-scroll { overflow-x: auto; }
