:root {
  --bg: #FAF7F0; --card: #FFFFFF; --primary: #2F5D50; --primary-dark: #264a40;
  --accent: #C8A96A; --accent-soft: #E7D9BC; --text: #1F2933; --muted: #6B7280; --border: #E7DED2;
  --radius: 20px; --shadow: 0 10px 30px rgba(31, 41, 51, 0.07);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, .brand-word { font-family: var(--serif); font-weight: 600; letter-spacing: 0.2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 240, 0.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .bar { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-word { font-size: 22px; color: var(--primary); }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text); font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.langs { display: flex; gap: 6px; }
.langs button { border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.langs button:hover { border-color: var(--accent); }
.langs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 24px; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 0; }
.hero .blob-1 { width: 380px; height: 380px; background: rgba(200, 169, 106, 0.35); top: -120px; right: -80px; }
.hero .blob-2 { width: 320px; height: 320px; background: rgba(47, 93, 80, 0.18); bottom: -140px; left: -100px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 32px 0; }
.hero-copy .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12px; }
.hero-copy h1 { font-size: 46px; line-height: 1.1; margin: 14px 0 18px; color: var(--text); }
.hero-copy p { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 26px; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: #fff; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; box-shadow: 0 8px 20px rgba(47, 93, 80, 0.25); transition: transform 0.15s, background 0.15s; }
.cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.cta-note { display: block; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone { position: relative; width: 268px; height: 552px; background: #11201b; border-radius: 46px; padding: 11px; box-shadow: 0 30px 60px rgba(31, 41, 51, 0.28), 0 0 0 2px rgba(255,255,255,0.4) inset; }
.phone::before { content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 116px; height: 24px; background: #11201b; border-radius: 0 0 16px 16px; z-index: 3; }
.screen { width: 100%; height: 100%; background: var(--bg); border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; }
.screen-top { padding: 34px 18px 12px; display: flex; align-items: center; gap: 8px; }
.screen-top .dot { width: 22px; height: 22px; border-radius: 7px; background: rgba(47,93,80,0.12); display: flex; align-items: center; justify-content: center; }
.screen-top .t { font-family: var(--serif); font-size: 18px; color: var(--primary); font-weight: 600; }
.screen-body { padding: 4px 16px 16px; overflow: hidden; }
.screen-label { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin: 8px 2px 10px; }
.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 13px; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(31,41,51,0.05); }
.mini-card .meal { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.mini-card .name { color: var(--text); font-size: 13px; font-weight: 600; margin: 3px 0 6px; line-height: 1.3; }
.mini-card .macros { color: var(--primary); font-size: 11px; font-weight: 600; }
.mini-card .chips { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.mini-card .chip { font-size: 9px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }

/* Sections */
.section { padding: 46px 0; }
.section h2 { font-size: 30px; text-align: center; margin: 0 0 8px; }
.section .lead { text-align: center; color: var(--muted); max-width: 580px; margin: 0 auto 34px; font-size: 16px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform 0.15s; }
.feature:hover { transform: translateY(-3px); }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(47, 93, 80, 0.10); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .ic svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step .n { width: 36px; height: 36px; border-radius: 999px; background: var(--primary); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { margin: 0 0 5px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.disclaimer { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; color: var(--muted); font-size: 13px; font-style: italic; margin-top: 26px; }

/* Closing band with logo */
.band { text-align: center; padding: 8px 0 20px; }
.band .card-band { background: linear-gradient(180deg, #ffffff, #fbf9f3); border: 1px solid var(--border); border-radius: 26px; padding: 44px 24px; box-shadow: var(--shadow); }
.band-logo { width: min(320px, 74%); height: auto; margin: 4px auto 22px; border-radius: 14px; }
.band p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }

/* Legal */
.legal h1 { font-size: 32px; margin: 40px 0 4px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.legal .intro { font-size: 16px; margin-bottom: 22px; }
.legal .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.legal section { margin-bottom: 22px; }
.legal section:last-child { margin-bottom: 0; }
.legal h2 { font-family: var(--sans); font-size: 15px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.4px; margin: 0 0 8px; font-weight: 700; }
.legal p { margin: 0; white-space: pre-line; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 20px; background: #fbf9f3; }
.site-footer .inner { max-width: 1080px; margin: 0 auto; padding: 30px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer .fmark { width: 30px; height: auto; margin: 0 auto 12px; }
.site-footer a { margin: 0 6px; font-weight: 600; }

/* Bloques de idioma: por defecto se muestra español (sin depender del JS, para
   que el contenido nunca quede en blanco). El JS alterna entre idiomas. */
[data-lang-block="en"], [data-lang-block="pt"] { display: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 24px; }
}
@media (max-width: 600px) {
  .hero-copy h1 { font-size: 34px; }
  .nav { gap: 14px; }
  .brand-word { font-size: 20px; }
}
