/* Fuentes propias, subconjunto latino, archivos variables (sin Google Fonts). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); }

/* Marca Mundo Max: azul noche #142440 y verde #22C55E (la esquina doblada del logo).
   El verde lleva texto azul noche encima: con texto blanco no se lee bien. */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #142440;
  --muted: #56627a;
  --line: #dde3ee;
  --brand: #142440;
  --brand-soft: #e7ecf5;
  --accent: #22c55e;
  --accent-ink: #142440;
  --accent-text: #15803d;
  --logo-ink: #142440;
  --wa: #1c9e50;
  --ph-bg: #fff4d6;
  --ph-line: #e0a400;
  --hero-bg: #142440;
  --hero-ink: #f3f6ff;
  --hero-muted: #b8c3dc;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1222; --surface: #121b30; --ink: #e9edf7; --muted: #a3aec6; --line: #26314d;
    --brand: #b9c9ee; --brand-soft: #1b2744; --accent: #2fd16a; --accent-ink: #0d1830; --accent-text: #4ade80; --logo-ink: #f3f6ff; --wa: #39c06f;
    --ph-bg: #3a2e0c; --ph-line: #c99a1c; --hero-bg: #0d1830; --hero-ink: #f3f6ff; --hero-muted: #a9b6d6;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
section { padding-block: 72px; }
.section-head { display: grid; gap: 12px; max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; }


/* Barra superior */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
header.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo { position: relative; display: block; flex: none; height: 34px; aspect-ratio: 762 / 120; }
.logo svg { display: block; width: 100%; height: 100%; color: var(--logo-ink); }
nav.main { display: flex; gap: 20px; font-size: 15px; margin-left: auto; }
nav.main a { text-decoration: none; color: var(--muted); font-weight: 500; }
nav.main a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px var(--f-body); border-radius: 999px; padding: 12px 22px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-navy { background: var(--brand); color: var(--surface); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.client-link { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Portada */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding-block: 56px 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--hero-muted); margin-top: 20px; max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .trust { margin-top: 28px; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 15px; color: var(--hero-muted); }
.hero .trust span::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }

/* Ilustración: tienda + factura */
.scene { position: relative; min-height: 440px; }
.phone { position: absolute; right: 8%; top: 0; width: min(290px, 78%); background: var(--surface); color: var(--ink); border-radius: 30px; border: 8px solid #050b1f; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; }
.phone .bar { background: var(--brand-soft); padding: 14px 16px 12px; }
.phone .bar small { display: block; color: var(--muted); font-size: 11px; font-family: var(--f-mono); }
.phone .bar strong { font-family: var(--f-display); font-size: 18px; }
.offer { margin: 10px 12px 0; background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.prods { display: grid; gap: 8px; padding: 12px; }
.prod { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px; font-size: 14px; }
.prod .img { width: 46px; height: 46px; border-radius: 9px; }
.prod .name { font-weight: 600; line-height: 1.25; }
.prod .price { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.prod .add { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--surface); display: grid; place-items: center; font-weight: 700; }
.prod.out { opacity: .45; }
.prod.out .add { background: var(--line); color: var(--muted); font-size: 10px; width: auto; padding: 0 8px; border-radius: 999px; }
.cartbar { margin: 0 12px 14px; background: var(--ink); color: var(--surface); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.receipt { position: absolute; left: 0; bottom: 0; width: min(270px, 72%); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 16px 16px 14px; box-shadow: 0 24px 50px rgba(0,0,0,.35); font-family: var(--f-mono); font-size: 12px; line-height: 1.5; transform: rotate(-3deg); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, var(--surface) 6px, transparent 6.5px) 0 0 / 12px 8px repeat-x; }
.receipt .r-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; }
.receipt .ok { display: inline-block; margin: 8px 0; background: var(--accent); color: var(--accent-ink); border-radius: 4px; padding: 1px 8px; font-weight: 600; }
.receipt hr { border: 0; border-top: 1px dashed var(--line); margin: 8px 0; }
.receipt .stock { color: var(--brand); font-weight: 600; }

/* Tienda en línea */
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.step .n { font-family: var(--f-display); font-weight: 800; font-size: 34px; color: var(--accent-text); line-height: 1; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }
.store-cta { margin-top: 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--brand-soft); border-radius: var(--radius); padding: 20px 24px; }
.store-cta p { flex: 1 1 300px; min-width: 0; }
.store-cta .btn { background: var(--brand); color: var(--surface); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--surface); padding: 22px; display: grid; gap: 6px; align-content: start; }
.svc h3 { font-size: 18px; }
.svc p { color: var(--muted); font-size: 15px; }
.svc .tag { font-size: 12px; font-weight: 700; color: var(--accent-text); letter-spacing: .04em; text-transform: uppercase; }

/* Acompañamiento */
.care { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.care-list { display: grid; gap: 14px; }
.care-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.care-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.care-item h3 { font-size: 18px; margin-bottom: 4px; }
.care-item p { color: var(--muted); font-size: 15px; }
.quote { font-family: var(--f-display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.25; }
.quote-by { margin-top: 14px; color: var(--muted); }

/* Arma tu plan */
.planner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.picker fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.picker legend { font-weight: 700; margin-bottom: 12px; font-size: 18px; }
.opt { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt input { width: 18px; height: 18px; accent-color: var(--brand); }
.all { margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.all p { color: var(--muted); font-size: 15px; flex: 1 1 220px; }
.chat { background: #e8dfd3; border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
@media (prefers-color-scheme: dark) { :root .chat { background: #1d2433; } }
.chat .who { font-size: 13px; color: #4b5563; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root .chat .who { color: var(--muted); } }
.bubble { justify-self: end; max-width: 92%; background: #d9fdd3; color: #102010; border-radius: 12px 12px 2px 12px; padding: 10px 12px; font-size: 15px; box-shadow: 0 1px 1px rgba(0,0,0,.08); min-height: 44px; }
.bubble.empty { color: #5b6b5b; font-style: italic; }
.chat .btn-wa { justify-self: stretch; }
.hint { font-size: 13px; color: var(--muted); }

/* Preguntas */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-ways { display: grid; gap: 14px; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.way small { display: block; color: var(--muted); font-size: 13px; }
.way strong { font-size: 20px; font-family: var(--f-display); }
form.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--brand); }
form.lead-form .btn { grid-column: 1 / -1; background: var(--brand); color: var(--surface); }
#form-status { grid-column: 1 / -1; font-size: 14px; color: var(--brand); min-height: 1.2em; }

footer { background: var(--hero-bg); color: var(--hero-muted); padding-block: 40px; font-size: 14px; }
footer .wrap { display: flex; gap: 16px 40px; flex-wrap: wrap; justify-content: space-between; }
footer strong { color: var(--hero-ink); font-family: var(--f-display); font-size: 18px; }

.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  nav.main { display: none; }
  .client-link { margin-left: auto; }
  .hero .wrap, .care, .planner, .contact { grid-template-columns: 1fr; }
  .store-grid, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  header.top .logo { height: 28px; }
  section { padding-block: 52px; }
  header.top .btn { display: none; }
  .store-grid, .services, .picker fieldset, form.lead-form { grid-template-columns: 1fr; }
  .scene { min-height: 470px; }
  .phone { right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .opt { transition: background-color .15s, border-color .15s, filter .15s; }
}

/* Antes eran estilos en línea (la CSP no los permite). */
section.alt { background: var(--surface); }
.care .section-head { margin-bottom: 0; }
.care .testimonio { margin: 24px 0 0; }
blockquote.quote { margin: 0; }
.prod .img.cafe { background: linear-gradient(135deg, #6b3e1f, #a0632e); }
.prod .img.panela { background: linear-gradient(135deg, #c78a2c, #e9b45a); }
.prod .img.arepas { background: linear-gradient(135deg, #d9c79a, #f1e4bd); }
footer .logo { --logo-ink: #f3f6ff; height: 30px; margin-bottom: 10px; }
.way a { text-decoration: none; overflow-wrap: anywhere; }
.store-cta .btn-wa { background: var(--wa); color: #fff; }
.no-existe { padding-block: 96px; }
.no-existe p { color: var(--muted); margin: 12px 0 24px; }
