/* Paginas publicas servidas por el panel: el hub (negocios.seedloopai.com), la
   pagina de reserva de cada negocio (<slug>.seedloopai.com) y la politica de
   privacidad. Mismo sistema que seedloopai.com (web/index.html y DESIGN.md):
   mismos tokens, misma tipografia, misma barra y mismo pie. Si cambia alli,
   cambia aqui. */

@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #F7F5F0; --tile: #FFFFFF; --tile-alt: #EFECE4; --line: #E2DED3;
  --ink: #1B1B18; --ink-2: #4A493F; --ink-3: #6B6A60;
  --green: #2F6B4F; --green-hover: #285C44; --green-ink: #2F6B4F; --green-soft: #E4EEE8; --on-green: #F7F5F0;
  --amber: #C77D3E; --amber-ink: #94561F; --amber-soft: #F7E9DA;
  --danger-bg: #FDECEA; --danger-ink: #8A2119;
  --nav: rgba(247,245,240,.78);
  --r-tile: 28px; --r-card: 22px; --r-field: 12px;
  --ease-out: cubic-bezier(.16,1,.3,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14201A; --tile: #1B2A22; --tile-alt: #17251E; --line: #2A3A30;
    --ink: #F1EFE8; --ink-2: #C3CDC6; --ink-3: #9AA8A1;
    --green-ink: #7CC49B; --green-soft: #20342A;
    --amber-ink: #E0A26A; --amber-soft: #33291D;
    --danger-bg: #3A1E1A; --danger-ink: #F0B5AB;
    --nav: rgba(20,32,26,.72);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14201A; --tile: #1B2A22; --tile-alt: #17251E; --line: #2A3A30;
  --ink: #F1EFE8; --ink-2: #C3CDC6; --ink-3: #9AA8A1;
  --green-ink: #7CC49B; --green-soft: #20342A;
  --amber-ink: #E0A26A; --amber-soft: #33291D;
  --danger-bg: #3A1E1A; --danger-ink: #F0B5AB;
  --nav: rgba(20,32,26,.72);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--line) var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); caret-color: var(--green-ink);
  font: 400 17px/1.55 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--green); color: var(--on-green); }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
.fig { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Barra ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-row { height: 52px; width: min(1180px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
.brand svg { width: 22px; height: 22px; color: var(--green-ink); }
.links { display: flex; gap: 28px; }
.links a { font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.links a:hover, .links a.active { color: var(--ink); }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; margin-left: 8px; }
.lang a { padding: 5px 10px; border-radius: 999px; color: var(--ink-3); text-decoration: none; }
.lang a.active { color: var(--ink); background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; color: var(--ink); border-radius: 999px; cursor: pointer; }
.nav-toggle .ic { width: 22px; height: 22px; }
@media (max-width: 820px) {
  .links {
    position: fixed; inset: 52px 0 auto 0; flex-direction: column; gap: 0;
    padding: 4px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease-out), opacity .2s;
  }
  .links.open { transform: none; opacity: 1; pointer-events: auto; }
  .links a { font-size: 19px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .links a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .lang { margin-left: 0; }
}
/* En la pagina de reserva la barra solo lleva marca y un enlace: no hay menu que plegar. */
.nav-simple .links { position: static; flex-direction: row; padding: 0; background: none; border: 0; transform: none; opacity: 1; pointer-events: auto; }
.nav-simple .links a { font-size: 13px; padding: 0; border: 0; }

/* ---------- Botones y enlaces ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--green); color: var(--on-green); font: 600 16px/1.2 'Space Grotesk', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .25s var(--ease-out);
}
.pill:hover { background: var(--green-hover); }
.pill:active { transform: scale(.97); }
/* En linea (no flex): si el texto parte en dos lineas, la flecha sigue pegada a la ultima palabra. */
.more { color: var(--green-ink); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more .ic { display: inline-block; width: .8em; height: .8em; margin-left: 3px; vertical-align: -.08em; transition: transform .25s var(--ease-out); }
.more:hover .ic { transform: translateX(3px); }

/* ---------- Cabecera de pagina ---------- */
.head { padding: 88px 0 0; text-align: center; }
.head h1 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.5rem); line-height: 1.03; letter-spacing: -.038em; max-width: 14em; margin-inline: auto; }
.head .lede { margin: 22px auto 0; max-width: 46ch; font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.45; color: var(--ink-2); }
.resumen { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--ink-2); }
.resumen b { color: var(--ink); font-weight: 600; }

/* ---------- Hub ---------- */
.seccion { padding-top: 96px; }
.seccion h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.08; letter-spacing: -.03em; }
.negocios { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.negocio { border-radius: var(--r-tile); background: var(--tile); padding: 32px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.negocio h3 { font-size: 1.5rem; line-height: 1.18; letter-spacing: -.022em; }
.negocio .prod { color: var(--ink-2); font-size: 16px; }
.precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.precio .importe { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; }
.precio .nota { font-size: 14px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--tile-alt); color: var(--ink-2); }
.chip-ok { background: var(--green-soft); color: var(--green-ink); }
.chip-aviso, .chip-podado { background: var(--amber-soft); color: var(--amber-ink); }
.barra { height: 8px; border-radius: 999px; background: var(--tile-alt); overflow: hidden; margin-top: 8px; }
.barra span { display: block; height: 100%; border-radius: 999px; background: var(--green); min-width: 0; }
.cifras { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; }
.cifras dt { color: var(--ink-3); }
.cifras dd { margin: 0; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.negocio .pie { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.negocio .idioma { font-size: 13px; color: var(--ink-3); }
.negocio .espera { font-size: 15px; color: var(--ink-3); }
.podados { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.podado { padding: 28px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.podado h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.012em; }
.podado .cifras-linea { font-size: 15px; color: var(--ink-2); }
.leccion { margin: 4px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--tile-alt); color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.leccion strong { color: var(--ink); font-weight: 600; }
.vacio { margin-top: 20px; color: var(--ink-2); }
@media (max-width: 700px) {
  .podados { grid-template-columns: 1fr; }
  .negocio { padding: 26px; }
  .negocios { grid-template-columns: 1fr; }
}

/* ---------- Pagina de reserva ---------- */
.reserva { width: min(600px, 100% - 32px); margin: 0 auto; padding: 72px 0 0; }
.reserva .head { padding: 0; }
.reserva .head h1 { font-size: clamp(2.125rem, 1.3rem + 3vw, 3.25rem); max-width: none; }
.reserva .head .lede { font-size: 1.125rem; }
.ficha { margin-top: 40px; border-radius: var(--r-tile); background: var(--tile); padding: 32px; box-shadow: inset 0 0 0 1px var(--line); }
.precio-bloque { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ficha .producto { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.plazas { margin-top: 10px; font-size: 14px; color: var(--amber-ink); }
.campo { margin-top: 18px; }
.campo label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.campo input, .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--bg); color: var(--ink); font: 400 16px/1.4 'Space Grotesk', system-ui, sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { min-height: 96px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px var(--green-soft); }
.req { color: var(--amber-ink); }
.casilla { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.casilla + .casilla { margin-top: 12px; }
.casilla input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--green); }
.casilla a { color: var(--green-ink); }
.ficha .pill { width: 100%; margin-top: 26px; padding: 12px 24px; text-align: center; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { margin-top: 20px; padding: 12px 14px; border-radius: var(--r-field); background: var(--danger-bg); color: var(--danger-ink); font-size: 15px; }
.avisos { margin-top: 24px; font-size: 14px; line-height: 1.55; color: var(--ink-3); display: grid; gap: 8px; }
.avisos strong { color: var(--ink-2); font-weight: 600; }
.avisos a { color: var(--green-ink); }
.avisos > .more { justify-self: start; }
.hecho { text-align: center; }
.hecho h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); letter-spacing: -.03em; }
.hecho .sello-ok { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--green-ink); }
.ficha-cerrada .leccion { margin-top: 20px; }
/* En movil un parrafo centrado de seis lineas cansa: la cabecera de la reserva va a la izquierda. */
@media (max-width: 600px) {
  .reserva .head { text-align: left; }
  .reserva .head .lede { margin-inline: 0; }
  .ficha { padding: 24px; }
}

/* ---------- Texto largo (privacidad) ---------- */
.texto { width: min(720px, 100% - 32px); margin: 0 auto; padding: 72px 0 0; }
.texto h1 { font-size: clamp(2.125rem, 1.3rem + 3vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; }
.texto .version { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.texto h2 { margin-top: 40px; font-size: 1.25rem; letter-spacing: -.015em; }
.texto p, .texto li { color: var(--ink-2); }
.texto p { margin-top: 10px; }
.texto ul { margin: 10px 0 0; padding-left: 22px; }
.texto a { color: var(--green-ink); }
.texto .falta { color: var(--amber-ink); }
.texto .nota-idioma { margin-top: 20px; padding: 12px 16px; border-radius: 14px; background: var(--tile-alt); font-size: 15px; }

/* ---------- Pie ---------- */
.base { margin-top: 120px; border-top: 1px solid var(--line); padding: 22px 0 40px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.base .brand { margin-right: 0; font-size: 14px; color: var(--ink); }
.base .brand svg { width: 18px; height: 18px; }
.base nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.base a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
