/* ==========================================================================
   Quinoapp — identidad "en calma"
   Paleta: avena, bosque, salvia, trigo, cielo, arcilla
   ========================================================================== */

:root {
  --paper: #F5F7F6;
  --paper-2: #ECF0EE;
  --card: #FFFFFF;
  --ink: #0B1411;
  --ink-2: #47524E;
  --ink-3: #7A8580;
  --line: rgba(11, 20, 17, .11);
  --line-2: rgba(11, 20, 17, .07);

  --forest: #0E3B2E;
  --sage: #129B6A;
  --sage-soft: #E1F3EA;
  --grain: #F2A93B;
  --grain-soft: #FDF0DA;
  --sky: #3B7BF0;
  --sky-soft: #E5EDFD;
  --clay: #EC6544;
  --clay-soft: #FDE8E2;

  --night: #08110E;

  --serif: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif; /* display: logo y títulos */
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(11,20,17,.06), 0 8px 24px -12px rgba(11,20,17,.16);
  --shadow-lg: 0 1px 2px rgba(11,20,17,.06), 0 24px 48px -20px rgba(11,20,17,.28);
  --ease: cubic-bezier(.22, .8, .24, 1);

  /* Logo de un solo color (el hero usa su propia versión multicolor) */
  --m-outer: var(--sage);
  --m-mid: var(--sage);
  --m-core: var(--sage);
  --m-gap: var(--paper);

  /* Contenedor como feriapetandgrooming.petid.cl: max-w-7xl + px-4 / sm:px-6 / lg:px-8 */
  --container: 1280px;
  --gutter: 32px;
  --header-h: 108px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sage-soft); }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

/* Typography -------------------------------------------------------------- */
h1, h2 { font-family: var(--serif); letter-spacing: -.05em; line-height: 1.02; }
h1 { font-size: clamp(44px, 6.4vw, 86px); font-weight: 600; }
h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; }
h1 em, h2 em { font-style: normal; color: var(--sage); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--tone, var(--sage)); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 19px; margin-top: 20px; max-width: 36em; }

section { padding: clamp(96px, 12vw, 168px) 0; position: relative; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px; border-radius: 10px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 16px; line-height: 1;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(11,20,17,.5); background: var(--forest); border-color: var(--forest); }
.btn span { transition: transform .4s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Mark / lockups ---------------------------------------------------------- */
.mark { width: 28px; height: 28px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: .84; letter-spacing: -.045em; }
.site-header .brand { gap: 11px; }
.site-header .brand .mark { width: 34px; height: 34px; }
.lockup { font-family: var(--serif); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.03em; font-size: 17px; }
.lockup .mark { width: 22px; height: 22px; }
.lockup b { font-weight: 500; margin-left: 1px; color: var(--tone, var(--sage)); }

[data-tone="core"]    { --tone: var(--sage);   --tone-deep: var(--forest); }
[data-tone="pay"]     { --tone: var(--grain); --tone-deep: #A2650A; }
[data-tone="display"] { --tone: var(--sky);     --tone-deep: #2556B8; }
[data-tone="pos"]     { --tone: var(--clay);   --tone-deep: #B53D20; }
[data-tone="pay"] .mark     { --m-outer: #E39A2B; --m-mid: #E39A2B; --m-core: #E39A2B; }
[data-tone="display"] .mark { --m-outer: var(--sky); --m-mid: var(--sky); --m-core: var(--sky); }
[data-tone="pos"] .mark     { --m-outer: var(--clay); --m-mid: var(--clay); --m-core: var(--clay); }
.tile-dark[data-tone="display"] .mark { --m-outer: #6E9EF7; --m-mid: #6E9EF7; --m-core: #6E9EF7; }
.tile-dark[data-tone="display"] .lockup.light .mark { --m-outer: var(--tv-accent); --m-mid: var(--tv-accent); --m-core: var(--tv-accent); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.scrolled { background: rgba(245, 247, 246, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-block: 25px;; transition: height .35s var(--ease); }
/* Al hacer scroll el header se compacta */
.site-header.scrolled .header-inner { height: 68px; }
.site-header .brand .mark, .site-header .wordmark { transition: width .35s var(--ease), height .35s var(--ease), font-size .35s var(--ease); }
.site-header.scrolled .brand .mark { width: 28px; height: 28px; }
.site-header.scrolled .wordmark { font-size: 21px; }
@media (max-width: 900px) {
  .site-header.scrolled .header-inner { height: 62px; }
  .site-header.scrolled .menu-toggle { width: 40px; height: 40px; }
  .site-header.scrolled .menu-toggle span:first-child { top: 16px; } .site-header.scrolled .menu-toggle span:last-child { top: 23px; }
  .site-header.scrolled .menu-toggle[aria-expanded="true"] span { top: 19.5px; }
  .site-header.scrolled .brand .mark { width: 26px; height: 26px; }
  .site-header.scrolled .wordmark { font-size: 20px; }
}
.nav { display: flex; align-items: center; gap: 32px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-cta { display: none; }
.nav a:not(.btn) { position: relative; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--sage); transition: width .2s; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav a:not(.btn):hover { color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 18px; } .menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */
.hero { padding-top: calc(var(--header-h) + clamp(30px, 5vw, 72px)); padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: 0; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(18,155,106,.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.hero-mark { position: absolute; inset: 12%; width: 76%; height: 76%; overflow: visible; }
.hero-mark circle { stroke: var(--paper); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; animation: seed 1.1s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 200ms); }
.hero-mark .ring-outer circle { fill: var(--forest); }
.hero-mark .ring-mid circle { fill: var(--forest); }
.hero-mark .core { fill: var(--sage); }
.hero-mark .ring-outer { transform-origin: 45.5px 45.5px; animation: spin 140s linear infinite; }
.hero-mark .ring-mid { transform-origin: 45.5px 45.5px; animation: spin 90s linear infinite reverse; }
@keyframes seed { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.35; animation: rise 1s var(--ease) both, float 7s ease-in-out infinite;
}
.float-card strong { display: block; font-weight: 600; }
.float-card small { display: block; color: var(--ink-3); font-size: 12.5px; }
.fc-service > small:first-child, .fc-menu > small:first-child { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.float-card .muted { color: var(--ink-3); }
.fc-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; flex: none; }
.fc-icon.pay { background: var(--sage-soft); color: var(--forest); }
.fc-icon.soft { background: var(--sky-soft); color: #2556B8; font-family: var(--mono); }
.fc-pay { top: 9%; left: 0; animation-delay: 1.2s, 0s; }
.fc-service { display: block; right: 1%; top: 30%; width: 196px; animation-delay: 1.4s, -2s; }
.fc-service .num { font-family: var(--mono); font-size: 30px; font-weight: 500; line-height: 1.1; margin: 4px 0 8px; letter-spacing: -.02em; }
.fc-service .of { font-size: 18px; color: var(--ink-3); }
.fc-absence { bottom: 19%; left: 0; animation-delay: 1.6s, -4s; }
.fc-menu { display: block; bottom: 5%; right: 12%; animation-delay: 1.8s, -1s; }
.fc-menu strong { font-weight: 600; font-size: 18px; letter-spacing: -.02em; margin: 2px 0; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes float { 50% { translate: 0 -8px; } }
/* With JS the hero shows at most two cards at a time, rotated in main.js */
.js .float-card { animation: float 7s ease-in-out infinite; opacity: 0; visibility: hidden; transform: translateY(-22px) scale(.96); transition: opacity .25s ease-in, transform .3s ease-in, visibility 0s .3s; }
.js .float-card.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease-out, transform .55s cubic-bezier(.34, 1.5, .64, 1), visibility 0s; }
.js .float-card.is-out { transform: translateY(-14px) scale(.97); }
.js .fc-service { animation-delay: -2s; } .js .fc-absence { animation-delay: -4s; } .js .fc-menu { animation-delay: -1s; }

.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--tone, var(--sage)); border-radius: inherit; transition: width 1s var(--ease); }

/* Chaos → order ----------------------------------------------------------- */
.calm { background: var(--paper-2); }
.calm-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.calm-copy h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 24px; }
.calm-copy > p:not(.eyebrow) { color: var(--ink-2); max-width: 32em; }
.switch { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-top: 36px; gap: 4px; }
.switch button { border: 0; background: transparent; padding: 10px 18px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .35s var(--ease), color .35s; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.board { position: relative; height: 520px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.board::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; opacity: .6; transition: opacity .6s; }
.board[data-state="order"]::before { opacity: 0; }
.chip {
  position: absolute; left: var(--x); top: var(--y); transform: translateY(-50%) rotate(var(--r));
  display: grid; padding: 12px 16px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  background: #fff; border: 1px dashed rgba(236,101,68,.5); font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  box-shadow: 0 6px 18px -10px rgba(30,43,38,.3); max-width: 62%;
  transition: left .9s var(--ease), top .9s var(--ease), transform .9s var(--ease), background .5s, border-color .5s, max-width .9s var(--ease);
  transition-delay: calc(var(--o) * 45ms);
}
.chip span { grid-area: 1 / 1; transition: opacity .45s, transform .45s var(--ease); }
.chip .a { opacity: 0; transform: translateY(6px); display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.chip .a::before { content: "✓"; width: 22px; height: 22px; border-radius: 6px; background: var(--sage-soft); color: var(--forest); display: grid; place-items: center; font-size: 12px; flex: none; }
.board[data-state="order"] .chip { font-family: var(--sans); font-size: 14.5px; left: 6%; top: calc(9% + var(--o) * 13.6%); transform: translateY(-50%) rotate(0); border: 1px solid var(--line-2); max-width: 88%; width: 88%; background: #fff; }
.board[data-state="order"] .chip .b { opacity: 0; transform: translateY(-6px); }
.board[data-state="order"] .chip .a { opacity: 1; transform: none; }

/* Suite · bento ----------------------------------------------------------- */
.suite { background: var(--card); }
.section-head.center { margin-inline: auto; text-align: center; max-width: 900px; }
.section-head.center p:not(.eyebrow) { margin-inline: auto; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--paper);
  display: flex; flex-direction: column; padding: clamp(26px, 3vw, 40px);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile-copy { position: relative; z-index: 1; max-width: 34em; }
.tile-copy .lockup { margin-bottom: 22px; }
.tile h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.05; letter-spacing: -.045em; margin-bottom: 14px; }
.tile-copy > p { color: var(--ink-2); font-size: 16px; }
.tile-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tile-chips button { position: relative; overflow: hidden; font: inherit; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.tile-chips button:hover { border-color: var(--line); color: var(--ink); }
.tile-chips button[aria-selected="true"] { background: rgba(18, 155, 106, .12); border-color: rgba(18, 155, 106, .35); color: var(--forest); font-weight: 600; }
/* Barra de progreso del autoplay dentro del tag activo */
.tile-chips button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--sage); }
.tile-chips.playing button[aria-selected="true"]::after { animation: chip-progress var(--cycle, 5s) linear forwards; }
@keyframes chip-progress { to { width: 100%; } }
.tile-chips button:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* Pantalla "app": dashboard con sidebar y header, simplificado */
.scr-app { margin: -16px; grid-template-rows: 1fr; align-content: stretch; }
.app { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 100%; }
.app-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; border-right: 1px solid var(--line-2); background: var(--paper); }
.app-side .mark { width: 20px; height: 20px; margin-bottom: 6px; }
.app-side i { width: 16px; height: 16px; border-radius: 5px; background: var(--paper-2); }
.app-side i.on { background: rgba(18, 155, 106, .25); }
.app-main { padding: 0 18px 18px; min-width: 0; }
.app-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--line-2); margin: 0 -18px; padding: 0 18px; }
.app-bar .search { font-size: 11.5px; color: var(--ink-3); padding: 6px 10px; border-radius: 7px; background: var(--paper); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-title { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: -.03em; color: var(--forest); margin: 16px 0 12px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pnl { display: grid; gap: 12px; align-content: start; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; min-width: 0; }
.pnl small { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.pnl-bill { display: flex; align-items: center; gap: 14px; }
.donut.sm { width: 64px; flex: none; background: radial-gradient(closest-side, #fff 70%, transparent 71%), conic-gradient(var(--sage) calc(var(--p) * 1%), var(--paper-2) 0); }
.donut.sm b { font-size: 13px; }
.pnl-bill > div { display: grid; gap: 2px; min-width: 0; }
.pnl-bill .big { font-family: var(--mono); font-weight: 500; font-size: 17px; color: var(--sage); }
.pnl-bill .muted { font-size: 11px; color: var(--ink-3); }
.pnl-bill .neg-t { font-family: var(--mono); font-size: 11.5px; color: #C0392B; }
.mbars { display: flex; align-items: flex-end; gap: 5px; height: 64px; border-bottom: 1px solid var(--line-2); }
.mbars i { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; background: linear-gradient(to top, var(--sage) var(--a), transparent var(--a)) left / 50% 100% no-repeat, linear-gradient(to top, #E39A2B var(--b), transparent var(--b)) right / 50% 100% no-repeat; border-radius: 2px 2px 0 0; }
.rows { display: grid; gap: 10px; }
.rows p { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rows .dot { width: 8px; height: 8px; border-radius: 50%; }
.rows .dot.web { background: #E39A2B; }
.rows .dot.tr { background: var(--sage); }
.rows .ln { height: 6px; border-radius: 3px; background: var(--paper-2); }
.rows .ln.s { width: 70%; }
.rows b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; }
.spark { width: 100%; height: 64px; }
.pnl.wide { grid-column: 1 / -1; }
.pnl.kpi { gap: 8px; padding: 12px 14px; }
.pnl .kpi-n { font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: -.03em; line-height: 1; }
.pnl .muted { font-size: 11px; color: var(--ink-3); }
.rows p:has(.st) { grid-template-columns: auto minmax(0, 1fr) auto 84px; }
.rows .st { justify-self: end; }
.pnl .kpi-n.neg-n { color: #C0392B; }
.pnl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rows .dot.bad { background: var(--clay); }

/* Pantalla "portal": portal de apoderados con menú lateral de color, simplificado */
.ptl { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.ptl-side { display: grid; align-content: start; gap: 18px; padding: 16px 10px; background: var(--paper); border-right: 1px solid var(--line-2); color: var(--ink-2); }
.ptl-brand { display: flex; align-items: center; gap: 7px; padding: 0 6px; white-space: nowrap; overflow: hidden; font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: -.02em; color: var(--ink); }
.ptl-brand .mark { width: 18px; height: 18px; flex: none; }
.ptl-nav { display: grid; gap: 2px; }
.ptl-nav li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; padding: 7px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptl-nav li i { width: 8px; height: 8px; border-radius: 3px; background: var(--paper-2); flex: none; }
.ptl-nav li.on { background: rgba(18, 155, 106, .1); color: var(--forest); font-weight: 600; }
.ptl-nav li.on i { background: var(--sage); }
.ptl-content { min-width: 0; }
.ptl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 46px; padding: 0 18px; }
.ptl-hello { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.ptl-hello strong { font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: -.02em; }
.ptl-hello small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.ptl-main { display: grid; gap: 10px; align-content: start; padding: 0 18px 18px; }
.ptl-main .app-title { margin-bottom: 2px; }
.ptl-kid { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ptl-kid em { font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-left: 6px; }
.chk { width: 14px; height: 14px; border-radius: 4px; background: var(--sage); flex: none; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--sage); }
.ptl-btn { justify-self: start; font-size: 12px; font-weight: 600; padding: 9px 14px; border-radius: 8px; background: var(--sage); color: #fff; }
.ptl-amount { font-family: var(--mono); font-weight: 500; font-size: 24px; color: var(--sage); letter-spacing: -.03em; line-height: 1; }
.ptl-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; }
.ptl-row em { margin-left: 8px; }
.ptl-row b { font-family: var(--mono); font-weight: 500; }

/* Pantallas de la tarjeta Quinoapp: apiladas en la misma celda para que el alto no salte */
.scr-stack { display: grid; padding: 16px; }
.scr { grid-area: 1 / 1; display: grid; gap: 12px; align-content: start; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.scr.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.scr small { display: block; font-size: 11.5px; color: var(--ink-3); }
.scr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; background: var(--paper); }
.scr-head strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.03em; margin-top: 2px; }
.st { flex: none; font-family: var(--sans); font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.st.ok { background: var(--sage-soft); color: var(--forest); }
.st.bad { background: var(--clay-soft); color: #B53D20; }
.st.warn { background: var(--grain-soft); color: #A2650A; }
.tx { display: grid; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.tx p { display: grid; grid-template-columns: 1fr auto 86px; gap: 12px; align-items: center; padding: 10px 14px; font-size: 13px; border-top: 1px solid var(--line-2); }
.tx p:first-child { border-top: 0; }
.tx em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.tx b, .pays b, .scr-foot b, .bill-nums b { font-family: var(--mono); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.tx .neg, .bill-nums .neg { color: #C0392B; }
.tx .okc { color: var(--sage); font-family: var(--sans); font-weight: 600; }
.bill { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 12px; background: var(--paper); }
.donut { width: 120px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, var(--paper) 72%, transparent 73%), conic-gradient(var(--sage) calc(var(--p) * 1%), var(--paper-2) 0); }
.donut span { text-align: center; font-size: 11px; color: var(--ink-3); line-height: 1.2; }
.donut b { display: block; font-family: var(--mono); font-weight: 500; font-size: 17px; color: var(--ink); }
.bill-nums { display: grid; gap: 6px; }
.bill-nums p { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.bill-nums strong { font-family: var(--mono); font-weight: 500; font-size: 17px; color: var(--sage); }
.pays { display: grid; gap: 8px; }
.pays p { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13px; }
.pays span small { display: block; }
.m { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; }
.m.web { background: var(--grain-soft); color: #A2650A; }
.m.tr { background: var(--sage-soft); color: var(--forest); }
.dates { display: flex; flex-wrap: wrap; gap: 6px; }
.dates span { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
.send { flex: none; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 8px; background: var(--sage); color: #fff; }
.methods { display: grid; gap: 6px; }
.methods span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.methods span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.methods .on { color: var(--ink); font-weight: 600; }
.methods .on::before { border: 4px solid var(--sage); }
@media (max-width: 600px) {
  /* Tags en una fila deslizable para no empujar la pantalla hacia abajo */
  .tile-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(26px, 3vw, 40px)); padding-inline: clamp(26px, 3vw, 40px); scroll-padding-inline: clamp(26px, 3vw, 40px); }
  .tile-chips::-webkit-scrollbar { display: none; }
  .tile-chips button { flex: none; }
  .scr-stack { padding: 12px; }
  .tx p { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 10px 12px; }
  .tx em { display: none; }
  .tx em.st { display: inline-block; }
  .tx b { min-width: 0; }
  .pays p { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; }
  .pays .m { display: none; }
  .scr-head { flex-wrap: wrap; }
  .bill { grid-template-columns: 1fr; justify-items: center; }
  .bill-nums { width: 100%; }
  .scr-app { margin: -12px; }
  .app { grid-template-columns: 36px minmax(0, 1fr); }
  .app-main { padding: 0 12px 12px; }
  .app-bar { margin: 0 -12px; padding: 0 12px; }
  .app-bar .search { max-width: 60%; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid .pnl:nth-child(n+3):not(.wide) { display: none; }
  #cs-3 .app-grid { grid-template-columns: 1fr 1fr; }
  .rows p:has(.st) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rows p:has(.st) .ln { display: none; }
  .ptl { grid-template-columns: 1fr; }
  .ptl-side { display: none; }
  .ptl-top { padding: 0 12px; }
  .ptl-main { padding: 0 12px 12px; }
}
.tile-visual { flex: 1; display: flex; align-items: flex-end; justify-content: center; margin-top: 32px; transition: transform .8s var(--ease); }
.tile:hover .tile-visual { transform: translateY(-6px); }

.tile-core { grid-column: span 8; min-height: 640px; }
.tile-core .tile-visual { margin-bottom: calc(-1 * clamp(26px, 3vw, 40px) - 30px); }
.tile-core .mock-window { max-width: 640px; }
@media (min-width: 1081px) {
  /* Misma altura en la primera fila; las pantallas se recortan abajo */
  .tile-core .tile-copy { max-width: none; }
  .tile-core .tile-chips { flex-wrap: nowrap; }
  .tile-core, .tile-pay { height: 800px; }
  .tile-core .tile-visual, .tile-pay .tile-visual { align-items: flex-start; margin-bottom: 0; }
  /* La interfaz se estira hasta salir por el borde inferior */
  .tile-core .tile-visual { align-items: stretch; margin-bottom: calc(-1 * clamp(26px, 3vw, 40px) - 30px); }
  .tile-core .mock-window { display: flex; flex-direction: column; }
  .tile-core .scr-stack { flex: 1; }
}
.tile-pay { grid-column: span 4; background: linear-gradient(180deg, var(--grain-soft), #FFF8EC 60%, var(--paper)); }
.tile-pay .tile-visual { margin-bottom: calc(-1 * clamp(26px, 3vw, 40px) - 60px); }
.tile-pay .ph-toast { bottom: auto; top: 300px; }
.tile-pay .phone { width: 280px; }
.tile-pay .ph-toast { left: -24px; right: -24px; }
/* Métodos de pago de Quinoapp Pay */
.pay-logos { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(162,101,10,.18); }
.pay-logos small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pay-logos ul { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.pay-logos li { display: grid; place-items: center; height: 28px; }
.pay-logos img { height: 16px; width: auto; }
.pay-logos img[alt="Webpay"] { height: 22px; }
.tile-display { grid-column: span 7; min-height: 600px; }
.tile-display .tile-visual { align-items: center; margin-bottom: 8px; }
.tile-pos { grid-column: span 5; min-height: 600px; }
.tile-pos .tile-visual { margin-bottom: calc(-1 * clamp(26px, 3vw, 40px) - 40px); }
.tile-pos .tablet { max-width: 380px; }
.tile-dark { background: radial-gradient(120% 80% at 80% 100%, #12305F, var(--night) 60%); color: #EEF2F7; }
.tile-dark .lockup { color: #fff; --m-gap: var(--night); }
.tile-dark .tile-copy > p { color: #A9B6C8; }
.tile-dark .lockup b { color: #8EB2FA; }



/* Mock: window */
.mock-window { width: 100%; max-width: 520px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line-2); }
.mw-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); }
.mw-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); }
.mw-top span { margin-left: 10px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Mock: phone */
.phone { position: relative; width: 290px; background: #fff; border-radius: 42px; padding: 10px 10px 14px; box-shadow: var(--shadow-lg), inset 0 0 0 10px var(--ink); }
.ph-notch { position: absolute; z-index: 2; left: 50%; top: 20px; width: 90px; height: 24px; border-radius: 99px; background: var(--ink); transform: translateX(-50%); }
.ph-head { padding: 58px 20px 56px; border-radius: 32px 32px 0 0; background: var(--forest); color: #fff; }
.ph-head small { display: block; font-weight: 600; font-size: 15px; }
.ph-head span { font-size: 12px; opacity: .7; }
.ph-card { margin: -40px 10px 18px; background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); position: relative; }
.ph-card small { font-size: 12px; color: var(--ink-3); }
.amount { display: block; font-family: var(--mono); font-weight: 500; font-size: 30px; letter-spacing: -.02em; margin: 2px 0 12px; }
.ph-label { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.radio { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 6px 0; }
.radio i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.radio.on i { border: 4px solid var(--grain); }
.radio.on { color: var(--ink); font-weight: 600; }
.ph-total { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line-2); }
.ph-total.strong { color: var(--ink); font-weight: 700; border-top: 0; margin-top: 0; padding-top: 2px; }
.ph-btn { display: block; text-align: center; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.ph-toast { position: absolute; left: -48px; right: 40px; bottom: 34px; display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500; animation: toast 6s var(--ease) infinite; }
.ph-toast span { width: 26px; height: 26px; border-radius: 50%; background: var(--grain-soft); color: #A2650A; display: grid; place-items: center; font-weight: 700; flex: none; }
@keyframes toast { 0%, 12% { opacity: 0; transform: translateY(14px); } 20%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }

/* Mock: TV */
.tv { width: 100%; max-width: 540px; container-type: inline-size; }
.tv-screen { --tv-bg: var(--night); --tv-fg: #F4F1EA; --tv-accent: #6E9EF7; --tv-soft: rgba(110,149,171,.22); aspect-ratio: 16 / 9; background: var(--tv-bg); color: var(--tv-fg); transition: background .8s var(--ease), color .8s var(--ease); border-radius: 6px; box-shadow: 0 0 0 6px #050807, 0 0 0 7px #3A4644, 0 34px 60px -22px rgba(0,0,0,.65); position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 31%; grid-template-rows: minmax(0, 1fr); }
.tv-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.06), transparent 40%); pointer-events: none; }
.tv-main > *, .tv-note { transition: opacity .4s var(--ease); }
.tv-screen.swap .tv-main > *, .tv-screen.swap .tv-note { opacity: 0; }
.tv-main { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3.6cqw 3cqw 3cqw; min-width: 0; }
.lockup.light { font-size: max(10px, 2.3cqw); color: var(--tv-fg); --m-gap: var(--tv-bg); opacity: .8; }
.lockup.light .mark { width: 1.3em; height: 1.3em; }
.tv-title { margin: .9cqw 0 0; font-weight: 600; letter-spacing: -.02em; font-size: max(12px, 3cqw); color: var(--tv-accent); transition: color .8s; }
.tv-menu { display: grid; gap: 1.5cqw; margin-block: auto; }
.tv-menu dt { font-family: var(--mono); font-size: max(7.5px, 1.55cqw); letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.tv-menu dd { position: relative; display: table; margin-inline: auto; font-weight: 600; letter-spacing: -.03em; font-size: max(13px, 3.6cqw); line-height: 1.15; }
.tag { display: inline-block; width: .5em; height: .5em; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 0 .12em color-mix(in srgb, var(--c) 30%, transparent); }
.tag.prot { --c: #E5484D; } .tag.milk { --c: #4C8DF6; } .tag.veg { --c: #3FB27F; } .tag.egg { --c: #F2B33D; }
.tv-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.2em; font-size: max(7.5px, 1.5cqw); opacity: .7; }
.tv-legend li { display: inline-flex; align-items: center; gap: .5em; }
.tv-legend .tag { width: .8em; height: .8em; box-shadow: none; }
/* El punto cuelga a la derecha para que el plato quede centrado */
.tv-menu dd .tag { position: absolute; left: calc(100% + .45em); top: 50%; translate: 0 -50%; }
.tv-side { display: flex; flex-direction: column; background: var(--tv-soft); transition: background .8s; min-width: 0; }
/* Trama en movimiento: el aviso puede ser una animación */
.tv-note { position: relative; overflow: hidden; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--tv-accent) 13%, transparent) 0 6px, transparent 6px 14px); background-size: 19.8px 19.8px; animation: tv-stripes 1.6s linear infinite; }
@keyframes tv-stripes { to { background-position: 19.8px 0; } }
.tv-progress { height: 2px; margin: 0 2.4cqw 1.4cqw; background: color-mix(in srgb, var(--tv-fg) 18%, transparent); border-radius: 2px; overflow: hidden; }
.tv-progress i { display: block; height: 100%; background: var(--tv-accent); transform-origin: left; animation: tv-progress 4.5s linear both; transition: background .8s; }
@keyframes tv-progress { from { transform: scaleX(0); } }
.tv-note { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1cqw; padding: 3cqw 2.6cqw; text-align: center; font-size: max(9.5px, 2.4cqw); line-height: 1.3; }
.tv-note-head { align-self: center; padding: .35em .7em; border-radius: .4em; background: var(--tv-accent); color: var(--tv-bg); font-weight: 700; font-size: .82em; letter-spacing: -.01em; transition: background .8s, color .8s; }
.tv-note p:last-child { font-weight: 500; letter-spacing: -.01em; }
.tv-bar { display: flex; align-items: center; gap: 1.6cqw; padding: 1.5cqw 2.4cqw; background: rgba(0,0,0,.28); color: #F4F1EA; font-size: max(8px, 1.8cqw); }
.tv-clock { font-family: var(--mono); font-weight: 500; }
.tv-temp { opacity: .75; }
.tv-temp::before { content: "☁ "; }
.tv-bar .mark { width: 1.4em; height: 1.4em; margin-left: auto; --m-gap: #2a2f2d; }
@container (max-width: 420px) {
  .tv-main { padding: 3cqw 2.5cqw; }
  .lockup.light { font-size: 9px; }
  .tv-title { font-size: 11px; }
  .tv-menu { gap: 1cqw; }
  .tv-menu dt { font-size: 6.5px; }
  .tv-menu dd { font-size: 12px; }
  .tv-legend { display: none; }
  .tv-note { font-size: 8.5px; padding: 2cqw; }
  .tv-bar { font-size: 7.5px; padding: 1.6cqw 2cqw; }
}
@keyframes ticker { to { transform: translateX(-100%); } }

/* Mock: tablet */
.tablet { width: 100%; max-width: 400px; background: #fff; border-radius: 28px; padding: 22px; box-shadow: var(--shadow-lg), inset 0 0 0 9px var(--ink); padding: 30px; }
.tb-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--clay); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.tb-progress { margin: 14px 0 22px; font-size: 13px; color: var(--ink-3); }
.tb-progress b { color: var(--ink); font-size: 15px; font-family: var(--mono); font-weight: 500; }
.tb-progress .bar { margin-top: 8px; }
.tb-result { text-align: center; padding: 28px 10px; border-radius: 20px; background: var(--paper); transition: background .4s; }
.tb-result.flash .ok-ring { animation: pop .6s var(--ease); }
.ok-ring { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; background: var(--sage-soft); box-shadow: 0 0 0 10px rgba(220,231,223,.5); }
.ok-ring span { width: 52px; height: 52px; border-radius: 14px; background: var(--sage); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.tb-status { font-weight: 600; letter-spacing: -.03em; font-size: 24px; color: var(--forest); }
.tb-name { font-weight: 600; margin-top: 4px; }
.tb-flag { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: var(--grain-soft); color: #A2650A; }
/* Sin dieta: se oculta pero conserva su alto para que el layout no salte */
.tb-flag:empty { visibility: hidden; }
.tb-flag:empty::before { content: "\00a0"; }
.tb-methods { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.tb-methods span { font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); }

/* Day ---------------------------------------------------------------------- */
.day { background: var(--paper); }
.day-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.day-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.day-aside h2 { margin-bottom: 20px; }
.day-aside > p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; max-width: 26em; }
.day-clock { margin-top: 44px; padding: 26px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-width: 440px; }
.clock-top { display: flex; align-items: baseline; justify-content: space-between; }
.clock-time { font-family: var(--mono); font-size: clamp(48px, 5vw, 64px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.clock-label { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.clock-track { position: relative; height: 4px; border-radius: 4px; background: var(--paper-2); margin: 24px 0 10px; }
.clock-track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: inherit; background: var(--ink); transition: width .7s var(--ease); }
.clock-track i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); transform: translateY(-50%); }
.clock-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.day-steps { position: relative; padding-left: 34px; }
.day-steps::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.day-step { position: relative; padding: 30px 32px; margin-bottom: 14px; border-radius: 20px; border: 1px solid transparent; transition: background .5s var(--ease), border-color .5s, box-shadow .5s var(--ease), opacity .5s; }
.day-step::before { content: ""; position: absolute; left: -33px; top: 40px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-3); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.js .day-step { opacity: .45; }
.js .day-step.active { opacity: 1; background: var(--card); border-color: var(--line-2); box-shadow: var(--shadow); }
.day-step.active::before { background: var(--ink); border-color: var(--ink); transform: scale(1.15); }
.step-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.step-meta time { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink); }
.prod { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); padding: 4px 9px 4px 6px; border-radius: 7px; background: var(--paper-2); }
.prod .mark { width: 15px; height: 15px; --m-gap: var(--paper-2); }
.day-step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 8px; }
.day-step p { color: var(--ink-2); font-size: 15.5px; max-width: 32em; }

/* Families ---------------------------------------------------------------- */
.families { padding-top: 0; }
.fam-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(48px, 8vw, 120px); align-items: center; }
.fam-photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.fam-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.notifs { position: absolute; left: -120px; bottom: 30px; width: 330px; display: grid; gap: 8px; }
.notif { display: flex; gap: 12px; align-items: center; padding: 14px 14px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 18px 40px -18px rgba(11,20,17,.45); font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.notif .mark { width: 26px; height: 26px; --m-gap: #fff; }
.notif-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.notif-head strong { color: var(--ink); font-size: 13.5px; }
.notif-head span { flex: none; font-size: 11px; color: var(--ink-3); }
.fam-copy h2 { margin-bottom: 24px; }
.fam-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; max-width: 34em; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pill-list li { padding: 9px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }

/* Steps ------------------------------------------------------------------- */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.step-grid::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 10px); opacity: .5; }
.step-grid li { position: relative; }
.step-dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 16px; margin-bottom: 26px; box-shadow: 0 0 0 8px var(--paper); }
.step-grid li:nth-child(2) .step-dot { background: var(--sage); }
.step-grid li:nth-child(3) .step-dot { background: var(--grain); color: var(--ink); }
.step-grid h3 { font-weight: 600; letter-spacing: -.035em; font-size: 24px; margin-bottom: 10px; }
.step-grid p { color: var(--ink-2); font-size: 15.5px; }

/* FAQ --------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq .section-head { position: sticky; top: 110px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-weight: 600; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat; transition: transform .4s var(--ease), background-color .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--sage-soft); }
.faq-list details p { padding: 0 50px 26px 0; color: var(--ink-2); }

/* Demo -------------------------------------------------------------------- */
/* #demo y footer comparten un degradado sage → forest; el footer va transparente encima del final */
:root { --foot-h: 84px; }
.demo { background: linear-gradient(135deg, var(--sage) 0%, #0F6A4B 45%, var(--forest) 100%); color: #EEF1EC; overflow: hidden; padding-bottom: calc(clamp(96px, 12vw, 168px) + var(--foot-h)); }
.demo::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 20% 60%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 20% 60%, #000, transparent 75%); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.demo-mark { width: 64px; height: 64px; margin-bottom: 30px; --m-gap: #fff; --m-outer: var(--sage); --m-mid: var(--sage); --m-core: var(--sage); animation: spin 60s linear infinite; }
.demo h2 { margin-bottom: 24px; }
.demo h2 em { color: #CDEFDD; }
.demo-copy > p { color: #D3EADD; font-size: 19px; max-width: 30em; }
.demo .phone { all: unset; display: block; margin-top: 30px; font-size: 16px; color: #D3EADD; }
.demo .phone a { color: #fff; font-family: var(--mono); font-weight: 500; font-size: 20px; margin-left: 8px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.demo-form { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.demo-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.demo-form .opt { font-weight: 400; color: var(--ink-3); }
.demo-form input:not([type="checkbox"]) { font: inherit; font-weight: 400; font-size: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.demo-form input:not([type="checkbox"]):focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.demo-form fieldset { border: 0; padding: 0; margin: 0; }
.demo-form legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checks label { display: block; cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks .lockup { display: flex; padding: 11px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 15px; gap: 7px; transition: border-color .25s, box-shadow .25s, background .25s; }
.checks .lockup .mark { width: 18px; height: 18px; }
.checks .lockup b { margin-left: 0; }
.checks input:not(:checked) + .lockup { color: var(--ink-3); }
.checks input:not(:checked) + .lockup .mark { filter: grayscale(1); opacity: .5; }
.checks input:not(:checked) + .lockup b { color: var(--ink-3); }
.checks input:checked + .lockup { border-color: var(--tone); box-shadow: inset 0 0 0 1px var(--tone); background: color-mix(in srgb, var(--tone) 6%, #fff); }
.checks input:focus-visible + .lockup { outline: 2px solid var(--sage); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--ink-3); text-align: center; }

/* Footer ------------------------------------------------------------------ */
.site-footer { position: relative; margin-top: calc(-1 * var(--foot-h)); min-height: var(--foot-h); display: flex; align-items: center; background: transparent; border-top: 1px solid rgba(255,255,255,.1); color: #D3EADD; --m-gap: #fff; --m-outer: var(--forest); --m-mid: var(--forest); --m-core: var(--forest); }
.site-footer .wrap { width: 100%; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; text-align: center; }
.site-footer .wordmark { color: #fff; }
.footer-tag { font-size: 13.5px; color: #D3EADD; }
.site-footer .wordmark { font-size: 19px; }
.site-footer .mark { width: 24px; height: 24px; }

/* Reveal ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1150px) {
  .nav { gap: 22px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 24px; }
}

@media (max-width: 1080px) {
  .tile-core, .tile-display, .tile-pos { grid-column: span 12; min-height: 0; }
  .tile-pay { grid-column: span 12; grid-row: auto; }
  .tile-pay .tile-visual { margin-bottom: calc(-1 * clamp(26px, 3vw, 40px) - 120px); }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  :root { --header-h: 94px; }
  .header-inner { padding-block: 20px; }
  .wordmark { font-size: 21px; }
  .site-header .brand .mark { width: 28px; height: 28px; }
  .header-cta { display: none; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    left: 0; transform: none;
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--paper); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav a:not(.btn) { font-size: 30px; font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
  .nav.open { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }

  .hero-grid, .calm-grid, .fam-grid, .demo-grid, .faq-grid, .day-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 440px; margin-top: 20px; }
  .calm-grid { gap: 40px; }
  .board { height: 500px; }
  .step-grid { grid-template-columns: 1fr; }
  .day-aside { position: static; }
  .day-clock { display: none; }
  .js .day-step { opacity: 1; }
  .day-step { background: var(--card); border-color: var(--line-2); padding: 24px; }
  .day-step::before { background: var(--ink); border-color: var(--ink); top: 32px; }
  .step-grid { gap: 32px; }
  .step-grid::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--ink-3) 0 4px, transparent 4px 10px); }
  .step-grid li { padding-left: 70px; }
  .step-dot { position: absolute; left: 0; top: 0; }
  .fam-photo { justify-self: center; }
  .notifs { left: -16px; width: min(330px, 100% + 16px); }
  .faq .section-head { position: static; margin-bottom: 10px; }
}

@media (max-width: 650px) {
  :root { --header-h: 91px; }
  .header-inner { padding-block: 22px; }
  .wordmark { font-size: 22px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand .mark { width: 30px; height: 30px; }
}

@media (max-width: 639px) {
  :root { --gutter: 16px; }
}

@media (max-width: 600px) {
  :root { --foot-h: 104px; }
  .bento { gap: 12px; }
  .tile { border-radius: 22px; }
  .tile-core .tile-visual { margin-bottom: -50px; }
  .float-card { font-size: 12.5px; padding: 10px 12px; }
  .fc-service { width: 150px; right: -2%; }
  .fc-service .num { font-size: 26px; }
  .fc-menu { right: 0; }
  .fc-absence { bottom: 18%; }
  .phone { width: 260px; }
  .ph-toast { left: -10px; right: -10px; }
  .chip { font-size: 13px; padding: 10px 12px; max-width: 80%; }
  .board[data-state="order"] .chip { width: 90%; max-width: 90%; left: 5%; }
  .faq-list details p { padding-right: 0; }
}

/* Hero en celular: centrado, bajada corta y CTAs a todo el ancho */
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 72px; }
  .hero-grid { gap: 0; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(40px, 11.6vw, 50px); margin-bottom: 18px; }
  .hero .lead { font-size: 17px; max-width: 30ch; margin-inline: auto; text-wrap: balance; }
  .lead-more { display: none; }
  .hero-actions { flex-direction: column; gap: 10px; margin-top: 30px; }
  .hero-actions .btn { width: 100%; padding: 19px 22px; font-size: 17px; border-radius: 12px; }
  .hero-visual { max-width: 330px; margin: 36px auto 0; }
  .fc-absence, .fc-menu { display: none; }
  .fc-pay { top: 8%; left: 0; }
  .fc-service { top: auto; bottom: 6%; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .float-card, .js .float-card.is-on { transform: none; transition-duration: .5s, 0s, 0s !important; }
}
