/* Landing — muestrario de color. Papel + tinta + el acento que elija quien visita. */

:root {
  --paper: #F3EEE4;
  --paper-2: #EAE3D5;
  --card: #FBF8F2;
  --ink: #16130F;
  --ink-2: #26221C;
  --muted: #5C554B;
  --line: rgba(22, 19, 15, .16);
  --note: #FFF1BF;

  /* main.js recalcula estos valores para el color elegido (contraste AA). */
  --accent: #FF4B1F;
  --on-accent: #16130F;
  --accent-ink: #B8300E;
  --accent-glow: #FF6A44;
  --accent-soft: #F9CDBE;

  --f-d: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-b: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-s: 'Instrument Serif', Georgia, serif;
  --f-m: 'DM Mono', ui-monospace, Menlo, monospace;

  --wrap: 1260px;
  --gut: clamp(16px, 4vw, 40px);
  --r-card: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--f-b);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Tipografía ---------------------------------------------------------------*/
.h-hero {
  font-family: var(--f-d);
  font-weight: 860;
  font-stretch: 112%;
  font-size: clamp(2.45rem, 1.1rem + 5.2vw, 4.9rem);
  line-height: .96;
  letter-spacing: -.025em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.name-slot {
  overflow-wrap: anywhere;
  background: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .04em;
}
.h2 {
  font-family: var(--f-d);
  font-weight: 820;
  font-stretch: 108%;
  font-size: clamp(1.95rem, 1.15rem + 2.9vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h2 em, .h-final em {
  font-family: var(--f-s);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -.01em;
  color: var(--accent-ink);
}
.sec-dark .h2 em { color: var(--accent-glow); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1.2 var(--f-m);
  letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 16px;
}
.eyebrow::before { content: ''; width: 12px; height: 16px; border-radius: 3px; background: linear-gradient(var(--accent) 62%, #fff 62%); border: 2px solid currentColor; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.2 var(--f-m); letter-spacing: .08em; text-transform: uppercase; }
.kdot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.lede { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); max-width: 33em; color: var(--ink-2); }
.micro { font: 500 13px/1.3 var(--f-m); color: var(--muted); }
.sec-lede { font-size: 18px; color: var(--muted); max-width: 40ch; margin-top: 16px; }

/* Botones -----------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 24px;
  border: 2px solid var(--ink); border-radius: 999px;
  font: 650 16px/1 var(--f-b); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease);
}
.btn .i { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 62px; padding: 0 32px; font-size: 19px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: transparent;
  font: 600 14px/1 var(--f-b);
}
.btn-ghost .i { width: 18px; height: 18px; }
.i { width: 18px; height: 18px; flex: none; }

/* Nav ---------------------------------------------------------------------*/
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 228, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 860 22px/1 var(--f-d); font-stretch: 125%; letter-spacing: .02em; }
.logo-mark { width: 16px; height: 22px; border-radius: 4px; border: 2px solid var(--ink); background: linear-gradient(var(--accent) 62%, #fff 62%); }
.nav nav { margin-left: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { background: var(--paper-2); }
.nav .btn { margin-left: auto; }
@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 8px; }
}

/* Hero --------------------------------------------------------------------*/
.hero { position: relative; overflow-x: clip; padding: clamp(20px, 4vw, 56px) 0 clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; gap: 28px; grid-template-areas: "copy" "stage" "pz"; grid-template-columns: minmax(0, 1fr); }
.hero-copy { grid-area: copy; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.hero-stage { grid-area: stage; position: relative; display: grid; place-items: center; padding: 24px 0 8px; }
.phone-slot { position: relative; z-index: 2; }
.nojs { grid-column: 1 / -1; font: 500 14px var(--f-m); color: var(--muted); }

/* Abanico de muestras detrás del teléfono */
.fan { position: absolute; left: 50%; bottom: 90px; width: 0; height: 0; z-index: 1; }
.fan-chip {
  position: absolute; bottom: 0; left: -62px;
  width: 124px; height: 400px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--c);
  transform-origin: 50% 92%;
  transform: rotate(var(--r));
  display: flex; align-items: flex-start;
  overflow: hidden;
}
.fan-front { background: var(--accent); }
.fan-name {
  display: block; width: 100%; height: 74px;
  padding: 10px 10px 0; background: #fff; border-bottom: 2px solid var(--ink);
  font: 500 11px/1.2 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}

/* Panel del personalizador */
.pz {
  grid-area: pz;
  display: grid; gap: 14px;
  background: var(--card);
  border: 2px solid var(--ink); border-radius: 22px;
  padding: 16px;
  box-shadow: 0 4px 0 var(--ink);
  min-width: 0;
}
html:not(.js) .pz { display: none; }
.pz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pz-title { font: 820 19px/1.1 var(--f-d); font-stretch: 110%; }
.pz-sub { display: block; font: 400 13px/1.3 var(--f-b); color: var(--muted); margin-top: 3px; font-stretch: 100%; }
.pz-tabs { display: flex; gap: 2px; padding: 3px; background: var(--paper-2); border-radius: 999px; }
.pz-tabs button { flex: 1; min-height: 44px; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; font-weight: 650; font-size: 14px; }
.pz-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pz-group { display: grid; gap: 12px; min-width: 0; }
.flabel { display: block; padding: 0; margin-bottom: 7px; font: 500 12px/1.2 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.flabel .cur { text-transform: none; letter-spacing: 0; color: var(--ink); margin-left: 6px; }
.field { min-width: 0; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff;
  font: 650 17px var(--f-b);
}
.photo-row { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 2px dashed var(--ink); border-radius: 12px; background: #fff; font-weight: 650; font-size: 15px; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { position: relative; display: grid; width: 58px; cursor: pointer; transition: transform .2s var(--ease); }
.sw input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-chip { height: 48px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 9px 9px 0 0; background: var(--c); position: relative; }
.sw-name { display: block; padding: 4px 0 5px; border: 2px solid var(--ink); border-radius: 0 0 9px 9px; background: #fff; font: 500 10px/1.1 var(--f-m); text-align: center; }
.sw input:checked + .sw-chip::after,
.sw-custom.is-on .sw-chip::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: #fff; border: 2px solid var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316130F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.sw:has(input:checked), .sw-custom.is-on { transform: translateY(-4px); }
.sw input:focus-visible + .sw-chip { outline: 3px solid var(--focus); outline-offset: 3px; }
.sw-custom .sw-chip { background: conic-gradient(from 90deg, #FF4B1F, #FFC21A, #1FA35B, #1463FF, #6B2BD9, #FF3D8B, #FF4B1F); }
.sw-custom.is-on .sw-chip { background: var(--accent); }
.sw-custom input[type="color"] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sw-custom:focus-within .sw-chip { outline: 3px solid var(--focus); outline-offset: 3px; }

.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 14px;
  border: 1.5px solid rgba(22, 19, 15, .32); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt-check input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
.opt-check input:checked + span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.shape { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: var(--sr); }
.f-grotesk { font-family: 'Archivo', sans-serif; }
.f-rounded { font-family: 'Nunito', sans-serif; font-weight: 800 !important; }
.f-condensed { font-family: 'Archivo', sans-serif; font-stretch: 68%; font-weight: 750 !important; }
.f-serif { font-family: 'Instrument Serif', serif; font-weight: 400 !important; font-size: 1.12em !important; }
.f-mono { font-family: 'DM Mono', monospace; font-weight: 500 !important; }

/* Móvil y tablet: panel compacto pegado abajo, con pestañas */
@media (max-width: 999px) {
  .pz { position: sticky; bottom: 8px; z-index: 20; padding: 12px; gap: 10px; box-shadow: 0 4px 0 var(--ink), 0 -10px 40px -10px rgba(22, 19, 15, .25); }
  .pz-sub { display: none; }
  .pz-title { font-size: 17px; }
  .js .pz .pz-group { display: none; }
  .js .pz[data-tab="name"] [data-group="name"],
  .js .pz[data-tab="color"] [data-group="color"],
  .js .pz[data-tab="style"] [data-group="style"],
  .js .pz[data-tab="type"] [data-group="type"],
  .js .pz[data-tab="widgets"] [data-group="widgets"] { display: grid; }
  .pz [data-group="name"] { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .pz [data-group="name"] .hint { display: none; }
  .swatches, .pz .opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 4px; margin: -6px -2px -4px; }
  .swatches::-webkit-scrollbar, .pz .opts::-webkit-scrollbar { display: none; }
  .sw { flex: none; }
  .pz .flabel { margin-bottom: 4px; }
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas: "copy stage" "pz stage";
    column-gap: clamp(32px, 4vw, 64px); row-gap: 32px; align-items: start;
  }
  .hero-stage { position: sticky; top: 86px; padding-top: 10px; }
  .pz-tabs { display: none; }
  .pz { padding: 20px 22px; gap: 16px; }
  .pz [data-group="name"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pz [data-group="style"], .pz [data-group="type"] { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (min-width: 1240px) {
  .hero .ph { zoom: 1.1; }
  .fan { transform: scale(1.1); transform-origin: 50% 100%; }
}

/* Ticker */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; padding: 14px 0; border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font: 820 22px/1 var(--f-d); font-stretch: 118%; white-space: nowrap; }
.ticker span::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Secciones ---------------------------------------------------------------*/
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-head { max-width: 860px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-tint { background: var(--paper-2); }
.sec-dark { background: var(--ink); color: var(--paper); --focus: var(--paper); }
.sec-dark .eyebrow::before { border-color: var(--paper); }
.sec-dark .sec-lede { color: #CFC8BB; }
@media (min-width: 900px) {
  .sec-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; max-width: none; }
  .sec-head-split .sec-lede { margin: 0 0 6px; }
}
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); min-width: 0; }
.card-t { display: flex; align-items: center; gap: 12px; font: 820 23px/1.1 var(--f-d); font-stretch: 108%; }
.card-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 2px solid currentColor; font: 500 14px var(--f-m); }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 14px; }
.step-n { font: 500 13px var(--f-m); }
.step h3 { font: 820 24px/1.05 var(--f-d); font-stretch: 110%; }
.step p { color: var(--ink-2); }
.step-art { height: 132px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); display: grid; place-items: center; padding: 14px; overflow: hidden; }
.art-quiz { align-content: center; gap: 10px; }
.q-txt { font: 750 16px var(--f-d); }
.q-opts { display: flex; gap: 6px; }
.q-opt { padding: 7px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 600; }
.q-opt.on { background: var(--accent); color: var(--on-accent); }
.art-gen { grid-template-columns: repeat(3, 34px); gap: 8px; }
.art-gen i { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--ink); animation: gen 2.4s var(--ease) infinite; }
.art-gen i:nth-child(1) { background: var(--accent); }
.art-gen i:nth-child(2) { background: var(--ink); animation-delay: .2s; border-radius: 50%; }
.art-gen i:nth-child(3) { background: var(--accent-soft); animation-delay: .4s; }
.art-gen i:nth-child(4) { background: #fff; animation-delay: .6s; border-radius: 4px; }
.art-gen i:nth-child(5) { background: var(--accent); animation-delay: .8s; border-radius: 50% 50% 9px 9px; }
.art-gen i:nth-child(6) { background: var(--paper-2); animation-delay: 1s; }
@keyframes gen { 0%, 70%, 100% { transform: scale(1); } 35% { transform: scale(.82) rotate(-8deg); } }
.art-edit { align-content: center; gap: 8px; width: 100%; }
.ed-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 230px; padding: 8px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600; }
.ed-row b { margin-left: auto; font-weight: 600; color: var(--muted); }
.ed-row.on { border-color: var(--ink); transform: translateX(10px) rotate(-2deg); box-shadow: 0 10px 20px -10px rgba(22, 19, 15, .4); }
.grip { width: 10px; height: 16px; flex: none; background-image: radial-gradient(circle, var(--muted) 1.4px, transparent 1.6px); background-size: 5px 5.33px; }
.art-home { grid-template-columns: repeat(4, 30px); gap: 10px; }
.art-home i { width: 30px; height: 30px; border-radius: 9px; background: var(--paper-2); }
.art-home i.me { background: var(--accent); border: 2px solid var(--ink); transform: scale(1.2); }

/* Plan e interfaz */
.plan-grid { display: grid; gap: 20px; }
@media (min-width: 940px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec { margin: 18px 0 0; }
.spec > div { display: grid; gap: 4px 18px; padding: 14px 0; border-top: 1px solid var(--line); }
@media (min-width: 520px) { .spec > div { grid-template-columns: 170px minmax(0, 1fr); } }
.spec dt { font: 750 16px/1.3 var(--f-d); font-stretch: 104%; }
.spec dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.ui-card { background: var(--ink-2); color: var(--paper); --focus: var(--paper); }
.ui-card .spec > div { border-top-color: rgba(243, 238, 228, .18); }
.ui-card .spec dd { color: #DCD5C8; }
.ui-card .card-n { color: var(--on-accent); border-color: var(--paper); }
.mini-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips li { padding: 3px 10px; border: 1.5px solid rgba(243, 238, 228, .55); border-radius: 999px; font-size: 14px; }
.dots { display: inline-flex; margin-right: 6px; vertical-align: -3px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 2px solid var(--paper); margin-right: -5px; }
.health {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 24px; padding: 20px 22px;
  background: var(--note); border: 2px solid var(--ink); border-radius: 18px;
}
.health-ic { width: 28px; height: 28px; flex: none; }
.health h3 { font: 820 18px/1.2 var(--f-d); margin-bottom: 4px; }
.health p { max-width: 75ch; }

/* Muro de variedad */
.wall-scroll { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 12px var(--gut) 36px; scrollbar-width: thin; scrollbar-color: #5C554B transparent; }
.wall { display: flex; gap: 22px; width: max-content; }
.wall-item { position: relative; margin: 0; width: 300px; flex: none; display: flex; flex-direction: column; gap: 18px; scroll-snap-align: start; }
.wall-phone .ph { box-shadow: 0 0 0 1.5px #3a352e inset, 0 30px 60px -24px rgba(0, 0, 0, .8); }
.wall-cap { font: italic 400 27px/1.05 var(--f-s); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 10px; padding: 0; }
.tags li { font: 500 11.5px/1 var(--f-m); padding: 5px 8px; border: 1px solid rgba(243, 238, 228, .32); border-radius: 999px; color: #DCD5C8; }
.wall-w { font-size: 14px; color: #BDB5A7; }
.wall-hint { font: 500 13px var(--f-m); color: #BDB5A7; }
@media (min-width: 1340px) {
  .wall-scroll { overflow: visible; padding-bottom: 0; }
  .wall { display: grid; grid-template-columns: repeat(4, 300px); justify-content: center; width: auto; column-gap: clamp(24px, 2.4vw, 40px); row-gap: 64px; }
  .wall-item:nth-child(even) { margin-top: 64px; }
  .wall-hint { display: none; }
}

/* Foto del plato */
.plate { display: grid; gap: 28px; }
@media (min-width: 900px) { .plate { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 48px; align-items: start; } }
.cam {
  position: relative; aspect-ratio: 1 / 1; max-width: 540px;
  border: 2px solid var(--ink); border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #463d33, #1b1814 72%);
  display: grid; place-items: center;
}
.plate-svg { width: 84%; height: auto; display: block; }
.dish { opacity: 0; transition: opacity .35s; }
.dish.on { opacity: 1; }
.cam-tag { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; padding: 6px 12px; border-radius: 999px; background: rgba(10, 9, 8, .72); color: #fff; font: 500 12px var(--f-m); letter-spacing: .04em; white-space: nowrap; }
.cam-corner { position: absolute; z-index: 3; width: 30px; height: 30px; border: 3px solid #fff; }
.cam-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.cam-corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.cam-corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.cam-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(transparent 82%, color-mix(in srgb, var(--accent) 35%, transparent) 97%, var(--accent) 99%, transparent 100%); transform: translateY(-100%); }
.cam.scanning .scan { opacity: 1; animation: scan 1.4s var(--ease) forwards; }
@keyframes scan { from { transform: translateY(-85%); } to { transform: translateY(0); } }
.plate-ctl { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 18px; max-width: 540px; }
.plate-opts, .chat-asks { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; font: 600 15px var(--f-b); color: var(--ink); }
.opt-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.est { background: var(--card); border: 2px solid var(--ink); border-radius: 24px; padding: clamp(20px, 3vw, 32px); min-height: 440px; box-shadow: 0 5px 0 var(--ink); }
.js .est > * { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .est > .est-idle, .js .est.is-ready > * { opacity: 1; transform: none; }
.js .est.is-ready > *:nth-child(2) { transition-delay: .05s; }
.js .est.is-ready > *:nth-child(3) { transition-delay: .1s; }
.js .est.is-ready > *:nth-child(4) { transition-delay: .15s; }
.js .est.is-ready > *:nth-child(5) { transition-delay: .2s; }
.js .est.is-ready > *:nth-child(6) { transition-delay: .25s; }
.js .est.is-ready > *:nth-child(7) { transition-delay: .3s; }
.est-idle { color: var(--muted); font-size: 18px; padding-top: 8px; }
.est-tag span { display: inline-block; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 12px/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; }
.est-name { margin-top: 16px; font: 820 24px/1.1 var(--f-d); font-stretch: 104%; }
.est-kcal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 10px; }
.est-n { font: 900 clamp(3.1rem, 2rem + 4vw, 4.8rem)/1 var(--f-d); font-stretch: 112%; letter-spacing: -.03em; }
.est-u { font-weight: 650; font-size: 18px; }
.est-u em { font: italic 400 1.6em var(--f-s); color: var(--accent-ink); }
.est-range { color: var(--muted); font-size: 15px; margin-top: 2px; }
.est-macros { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.est-macros li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 54px; align-items: center; gap: 10px; font-size: 15px; }
.est-macros b { text-align: right; }
.est-bar { height: 12px; border-radius: 999px; background: var(--paper-2); overflow: hidden; border: 1.5px solid var(--ink); }
.est-bar i { display: block; height: 100%; background: var(--mc); border-radius: inherit; }
.est .mc0 { --mc: var(--accent); }
.est .mc1 { --mc: var(--ink); }
.est .mc2 { --mc: #B8AD99; }
.est-items { width: 100%; border-collapse: collapse; font-size: 15px; }
.est-items th { font: 500 11.5px var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 0 8px; }
.est-items td { padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.est-items th:nth-child(2), .est-items td:nth-child(2) { padding-inline: 10px; white-space: nowrap; }
.est-items th:last-child, .est-items td:last-child { text-align: right; }
.est-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Editor + chat */
.edit-grid { display: grid; gap: 20px; }
@media (min-width: 940px) { .edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 500 12px var(--f-m); color: var(--muted); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--ink); }
.ed-list { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ed-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto 28px; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; font-size: 15px; font-weight: 600; }
.ed-item.lifted { border-color: var(--ink); transform: translateX(12px) rotate(-1.5deg); box-shadow: 0 14px 26px -12px rgba(22, 19, 15, .45); }
.ed-item.ghost { opacity: .5; border-style: dashed; text-decoration: line-through; }
.ed-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-var { font: 500 12px var(--f-m); padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); white-space: nowrap; }
.ed-size { display: flex; gap: 2px; }
.ed-size b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 500 11px var(--f-m); }
.ed-size b.on { background: var(--ink); color: var(--paper); }
.ed-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); }
@media (max-width: 480px) { .ed-size { display: none; } .ed-item { grid-template-columns: 10px minmax(0, 1fr) auto 28px; } }
.ed-features { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px 16px; }
@media (min-width: 520px) { .ed-features { grid-template-columns: 1fr 1fr; } }
.ed-features li { display: block; }
.ed-features li::before { content: '✓'; margin-right: 8px; font-weight: 800; color: var(--accent-ink); }
.free-note { display: inline-block; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 650; }
.chat-sub { margin-top: 8px; color: var(--muted); }
.chat-log { display: flex; flex-direction: column; gap: 10px; min-height: 300px; margin: 18px 0; }
.msg { max-width: 90%; }
.msg > p { padding: 10px 14px; border-radius: 18px; font-size: 15px; }
.msg.me { align-self: flex-end; }
.msg.me p { background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; display: flex; flex-direction: column; gap: 8px; width: 90%; animation: rise .45s var(--ease) both; }
.msg.ai > p:first-child { background: #fff; border: 1.5px solid var(--line); border-bottom-left-radius: 5px; }
.msg .uses { padding: 0 4px; font: 500 12px var(--f-m); color: var(--muted); }
.msg .uses span { padding: 2px 6px; border-radius: 4px; background: var(--paper-2); color: var(--ink); }
.typing { flex-direction: row !important; width: auto !important; gap: 5px !important; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Instalar */
.inst-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .inst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inst h3 { font: 820 24px/1.1 var(--f-d); font-stretch: 108%; margin: 20px 0 8px; }
.inst-art { height: 236px; border-radius: 16px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; }
.mini-screen { position: relative; width: 156px; height: 210px; padding: 16px 12px; border: 2px solid var(--ink); border-radius: 24px; background: #fff; overflow: hidden; transform: translateY(18px); }
.ms-bar { display: block; height: 18px; margin: -4px -2px 12px; border-radius: 9px; background: var(--paper-2); }
.ms-line { display: block; height: 8px; margin-bottom: 8px; border-radius: 4px; background: var(--paper-2); }
.w70 { width: 70%; } .w50 { width: 50%; } .w60 { width: 60%; }
.ms-sheet { position: absolute; left: 0; right: 0; bottom: 18px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px 8px; padding: 12px 10px; background: #fff; border-top: 2px solid var(--ink); box-shadow: 0 -12px 20px -12px rgba(22, 19, 15, .25); }
.ms-ic { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--ink); background: linear-gradient(var(--accent) 62%, #fff 62%); }
.ms-txt { display: flex; flex-direction: column; min-width: 0; }
.ms-txt b { font-size: 11px; line-height: 1.2; }
.ms-txt small { font-size: 8.5px; line-height: 1.2; color: var(--muted); }
.ms-btn { grid-column: 1 / -1; padding: 6px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--accent); color: var(--on-accent); text-align: center; font-size: 11px; font-weight: 700; }
.ms-menu { position: absolute; left: 8px; right: 8px; bottom: 58px; display: flex; flex-direction: column; border-radius: 12px; background: #F2EFEA; overflow: hidden; border: 1px solid var(--line); }
.ms-menu span { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; font-size: 9.5px; border-top: 1px solid var(--line); }
.ms-menu span:first-child { border-top: 0; }
.ms-menu span.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.ms-plus { font-style: normal; width: 14px; height: 14px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 4px; font-size: 10px; }
.ms-safari { position: absolute; left: 0; right: 0; bottom: 18px; height: 36px; display: flex; align-items: center; justify-content: space-around; background: #F7F5F1; border-top: 1px solid var(--line); }
.ms-safari i { width: 14px; height: 14px; border-radius: 3px; background: #DAD4CA; }
.ms-safari i.share { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--ink); display: grid; place-items: center; }
.ms-safari i.share svg { width: 15px; height: 15px; }
.ms-safari i.share::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.inst-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.i-inline { width: 1.05em; height: 1.05em; vertical-align: -3px; }

/* Precios */
.price-grid { display: grid; gap: 20px; max-width: 980px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price { display: flex; flex-direction: column; gap: 14px; }
.price-name { font: 500 14px var(--f-m); letter-spacing: .08em; text-transform: uppercase; }
.price-amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font: 900 clamp(3rem, 2rem + 3vw, 4.4rem)/1 var(--f-d); font-stretch: 118%; letter-spacing: -.03em; }
.price-amt small { font: 600 17px var(--f-b); letter-spacing: 0; }
.price-list { list-style: none; margin: 4px 0 8px; padding: 0; flex: 1; }
.price-list li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--line); }
.price-list li::before { content: ''; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.price .btn { align-self: flex-start; }
.price-pro { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 0 var(--ink); }
.price-pro .price-list li { border-top-color: currentColor; border-top-style: dashed; }
.price-pro .price-list li::before { background: var(--on-accent); border-color: var(--on-accent); }
.price-pro .btn-primary { background: var(--ink); color: var(--paper); box-shadow: none; }
.price-pro .btn-primary:focus-visible { outline-color: var(--on-accent); }
.price-def { margin-top: 28px; max-width: 70ch; color: var(--ink-2); }

/* FAQ */
@media (min-width: 960px) {
  .faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .faq-wrap .sec-head { position: sticky; top: 96px; }
}
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; font: 750 19px/1.25 var(--f-d); font-stretch: 104%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 50%; font: 500 20px/1 var(--f-m); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.faq details p { padding: 0 48px 22px 0; color: var(--ink-2); max-width: 62ch; }

/* CTA final */
.final {
  padding: clamp(72px, 11vw, 150px) 0;
  background-color: var(--accent);
  background-image: repeating-linear-gradient(-55deg, rgba(0, 0, 0, .045) 0 2px, transparent 2px 22px);
  color: var(--on-accent);
  border-block: 2px solid var(--ink);
  --focus: var(--on-accent);
}
.final-in { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.final-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid currentColor; border-radius: 999px; font: 500 13px var(--f-m); }
.final-sw { width: 14px; height: 18px; border-radius: 3px; border: 2px solid currentColor; background: linear-gradient(var(--accent) 60%, #fff 60%); }
.h-final { font: 900 clamp(2.5rem, .9rem + 6.4vw, 6.6rem)/.94 var(--f-d); font-stretch: 116%; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.final .h-final em { color: inherit; }
.final .btn-primary { background: var(--ink); color: var(--paper); box-shadow: none; }
.final .micro { color: inherit; }

/* Sobre el desarrollador + pie */
.about { padding: 48px 0; }
.about-in { display: grid; gap: 10px; }
@media (min-width: 800px) { .about-in { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; } }
.about .eyebrow { margin: 4px 0 0; }
.about-body { display: grid; gap: 8px; max-width: 64ch; overflow-wrap: anywhere; }
.about-name { font: 820 24px/1.15 var(--f-d); }
.about-role { display: inline-block; margin-left: 6px; font: 500 12px var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); vertical-align: 3px; }
.about a { font-weight: 650; text-underline-offset: 3px; }

.footer { background: var(--ink); color: var(--paper); padding: 56px 0 40px; --focus: var(--paper); overflow-wrap: anywhere; }
.foot-in { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .foot-health, .foot-legal { grid-column: 1 / -1; } }
.footer .logo-mark { border-color: var(--paper); }
.foot-tag { margin-top: 8px; color: #CFC8BB; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.foot-links a:hover { background: var(--ink-2); }
.foot-health { padding: 14px 16px; border: 1px solid rgba(243, 238, 228, .25); border-radius: 12px; color: #DCD5C8; font-size: 15px; }
.foot-legal { display: grid; gap: 4px; padding-top: 22px; border-top: 1px solid rgba(243, 238, 228, .18); font-size: 14px; color: #CFC8BB; }
.foot-legal a { color: var(--paper); font-weight: 600; }

/* Aparición ---------------------------------------------------------------*/
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fan-open { from { transform: rotate(0deg); } }
.js .hero-copy > * { animation: rise .8s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .hero-copy > :nth-child(3) { animation-delay: .14s; }
.js .hero-copy > :nth-child(4) { animation-delay: .2s; }
.js .phone-slot { animation: rise 1s .15s var(--ease) both; }
.js .fan-chip { animation: fan-open 1.1s .35s var(--ease) both; }
.js .pz { animation: rise .8s .28s var(--ease) both; }

/* =========================================================================
   Maqueta de teléfono: renderiza las opciones reales de shared/catalog.json
   ========================================================================= */
.ph {
  --ff-d: 'Archivo', sans-serif; --ff-b: 'Instrument Sans', sans-serif; --fst: 100%; --fwd: 800;
  --pad: 14px; --gap: 8px; --wp: 11px;
  --r: 16px; --rb: 999px;
  --trk: rgba(22, 19, 15, .08); --ln: rgba(22, 19, 15, .22); --ln2: rgba(22, 19, 15, .32);
  --glass: rgba(255, 255, 255, .6); --glass-ln: rgba(255, 255, 255, .9);
  position: relative; flex: none;
  width: 300px; height: 600px; padding: 8px;
  border-radius: 46px; background: #0B0A09;
  box-shadow: 0 0 0 1.5px #2D2925 inset, 0 34px 60px -26px rgba(22, 19, 15, .55), 0 12px 24px -14px rgba(22, 19, 15, .4);
  color: var(--tx); font-size: 12px; line-height: 1.3; text-align: left;
  -webkit-font-smoothing: antialiased;
}
.ph.pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.95) rotate(-1deg); } 60% { transform: scale(1.015); } 100% { transform: none; } }
.ph[data-mode="dark"] { --trk: rgba(255, 255, 255, .1); --ln: rgba(255, 255, 255, .24); --ln2: rgba(255, 255, 255, .36); --glass: rgba(255, 255, 255, .075); --glass-ln: rgba(255, 255, 255, .14); }
.ph[data-font="rounded"] { --ff-d: 'Nunito', sans-serif; --ff-b: 'Nunito', sans-serif; }
.ph[data-font="condensed"] { --ff-b: 'Archivo', sans-serif; --fst: 66%; }
.ph[data-font="serif"] { --ff-d: 'Instrument Serif', serif; --fwd: 400; }
.ph[data-font="mono"] { --ff-d: 'DM Mono', monospace; --ff-b: 'DM Mono', monospace; --fwd: 500; }
.ph[data-density="compact"] { --pad: 12px; --gap: 6px; --wp: 9px; }
.ph[data-density="airy"] { --pad: 16px; --gap: 12px; --wp: 14px; }
.ph[data-radius="sharp"] { --r: 3px; --rb: 3px; }
.ph[data-radius="soft"] { --r: 10px; --rb: 8px; }
.ph[data-radius="round"] { --r: 18px; --rb: 999px; }
.ph[data-radius="pill"] { --r: 26px; --rb: 999px; }

.ph-screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 38px; background: var(--bg); font-family: var(--ff-b); }
.ph[data-bg="gradient"] .ph-screen { background: linear-gradient(180deg, var(--a-soft) 0%, var(--bg) 48%); }
.ph[data-bg="mesh"] .ph-screen { background: radial-gradient(120% 55% at 0% 0%, var(--mesh1), transparent 62%), radial-gradient(90% 50% at 100% 35%, var(--mesh2), transparent 62%), radial-gradient(90% 45% at 20% 100%, var(--mesh1), transparent 62%), var(--bg); }
.ph-status { flex: none; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 22px 0 28px; font: 600 11.5px 'Instrument Sans', sans-serif; }
.ph-isl { width: 82px; height: 22px; border-radius: 99px; background: #0B0A09; }
.ph-bat { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid currentColor; box-shadow: inset 12px 0 0 -1px currentColor; }
.ph-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: var(--gap); padding: 6px var(--pad) 12px; -webkit-mask-image: linear-gradient(#000 calc(100% - 30px), transparent); mask-image: linear-gradient(#000 calc(100% - 30px), transparent); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: var(--gap); }
.ph[data-layout="feed"] .ph-grid { grid-template-columns: minmax(0, 1fr); }
.ph .sz-m, .ph .sz-l { grid-column: 1 / -1; }
.ph-empty { align-items: center; justify-content: center; min-height: 90px; text-align: center; }

.ph .w { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--wp); border-radius: var(--r); background: var(--sf); overflow: hidden; }
.ph[data-surface="outline"] .w { background: transparent; border: 1.5px solid var(--ln); }
.ph[data-surface="brutal"] .w { border: 2px solid var(--tx); box-shadow: 3px 3px 0 var(--tx); }
.ph[data-surface="brutal"] .ph-grid { gap: calc(var(--gap) + 3px); padding: 0 3px 3px 0; }
.ph[data-surface="glass"] .w { background: var(--glass); border: 1px solid var(--glass-ln); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.ph[data-surface="gradient"] .w { background: linear-gradient(155deg, var(--a-soft), var(--sf) 72%); }
.ph .w.bare { padding: 2px 2px 4px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }

.ph .d { font-family: var(--ff-d); font-stretch: var(--fst); font-weight: var(--fwd); letter-spacing: -.01em; line-height: 1.05; }
.ph .d small { font-size: .5em; letter-spacing: 0; }
.ph .cap { font-size: 10.5px; line-height: 1.25; color: var(--mut); }
.ph .ac { color: var(--a-tx); }
.ph .t-md { font-size: 14px; } .ph .t-lg { font-size: 19px; } .ph .t-xl { font-size: 24px; } .ph .t-xxl { font-size: 34px; } .ph .n-xl { font-size: 40px; line-height: 1; }
.ph[data-font="serif"] .t-xl { font-size: 27px; } .ph[data-font="serif"] .t-xxl { font-size: 38px; }
.ph .row { display: flex; align-items: center; min-width: 0; }
.ph .row.between { justify-content: space-between; gap: 6px; }
.ph .row.gap { gap: 10px; }
.ph .row.base { align-items: baseline; }
.ph .row.top { align-items: flex-start; }
.ph .col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ph .ctr { text-align: center; }
.ph .i { width: 16px; height: 16px; }
.ph .w-hd { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 650; color: var(--mut); }
.ph .w-hd .i { width: 13px; height: 13px; color: var(--a-tx); }
.ph .w-hd-x { margin-left: auto; }
.ph .chip { display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: 100%; padding: 4px 9px; border-radius: var(--rb); background: var(--a-soft); color: var(--tx); font-size: 10.5px; font-weight: 650; }
.ph .chip .i { width: 12px; height: 12px; }
.ph .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ph .dot { display: inline-block; flex: none; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: var(--mc, var(--a)); vertical-align: 1px; }
.ph .mc0 { --mc: var(--a); } .ph .mc1 { --mc: var(--m1); } .ph .mc2 { --mc: var(--m2); }
.ph .bar { height: 7px; border-radius: var(--rb); background: var(--trk); overflow: hidden; }
.ph .bar i { display: block; height: 100%; border-radius: inherit; background: var(--mc, var(--a)); }
.ph .ring { display: block; width: 86px; height: 86px; }
.ph .ring circle { fill: none; stroke-width: 5; }
.ph .ring .trk { stroke: var(--trk); }
.ph .ring .val { stroke: var(--mc, var(--a)); stroke-linecap: round; }
.ph[data-radius="sharp"] .ring .val, .ph[data-radius="sharp"] .gauge .val { stroke-linecap: butt; }
.ph .ring-wrap { position: relative; display: grid; place-items: center; margin: 0 auto; }
.ph .ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ph .ring-wrap.sm .ring { width: 56px; height: 56px; }

/* saludo */
.ph .av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--rb); overflow: hidden; }
.ph .av img { width: 100%; height: 100%; object-fit: cover; }
.ph .av-ini { background: var(--a); color: var(--on-a); font: 800 15px var(--ff-d); font-stretch: var(--fst); }
.ph .av-lg { width: 48px; height: 48px; font-size: 17px; }
.ph .av-wrap { position: relative; flex: none; }
.ph .av-badge { position: absolute; right: -6px; bottom: -6px; display: flex; align-items: center; gap: 1px; padding: 2px 6px 2px 4px; border-radius: 99px; background: var(--tx); color: var(--bg); font-size: 10px; font-weight: 700; }
.ph .av-badge .i { width: 10px; height: 10px; }
.ph .chip-goal { margin-top: 6px; }
.ph .gh-hero { min-height: 168px; padding: 0; justify-content: flex-end; color: #fff; }
.ph .gh-bg { position: absolute; inset: 0; display: grid; align-items: start; justify-items: end; padding: 10px 16px; background: linear-gradient(135deg, var(--a), var(--m2)); }
.ph .gh-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .gh-ini { font: 800 58px/1 var(--ff-d); color: var(--on-a); }
.ph .gh-over { position: relative; display: flex; flex-direction: column; gap: 3px; padding: var(--wp); background: linear-gradient(rgba(10, 9, 8, .45), rgba(10, 9, 8, .72)); }
.ph .gh-over .cap { color: rgba(255, 255, 255, .9); }
.ph .gh-over .chip { margin-top: 3px; background: #fff; color: #16130F; }

/* calorías / macros */
.ph .split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph .gauge { position: relative; }
.ph .gauge svg { display: block; width: 100%; }
.ph .gauge path { fill: none; stroke-width: 9; stroke-linecap: round; }
.ph .gauge .trk { stroke: var(--trk); }
.ph .gauge .val { stroke: var(--a); }
.ph .gauge-c { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; flex-direction: column; align-items: center; }
.ph .mrings { display: flex; justify-content: space-between; gap: 2px; }
.ph .mr { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; }
.ph .mr .ring.sm { width: 32px; height: 32px; }
.ph .mr .ring circle { stroke-width: 6; }
.ph .stackbar { display: flex; gap: 3px; height: 12px; }
.ph .stackbar i { border-radius: var(--rb); background: var(--mc); }
.ph .mb { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600; }

/* listas */
.ph .ml, .ph .ckl, .ph .exl, .ph .fl, .ph .tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ph .ml li, .ph .ckl li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 11.5px; }
.ph .ml li b { font-size: 11.5px; }
.ph .ck { display: grid; place-items: center; width: 18px; height: 18px; border-radius: var(--rb); border: 1.5px solid var(--ln2); }
.ph li.done .ck { background: var(--a); border-color: var(--a); color: var(--on-a); }
.ph .ck .i { width: 11px; height: 11px; stroke-width: 3; }
.ph .ckl li.done > span:nth-child(2) { text-decoration: line-through; color: var(--mut); }
.ph .exl li, .ph .fl li { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--trk); font-size: 11.5px; }
.ph .exl li:last-child, .ph .fl li:last-child { border-bottom: 0; padding-bottom: 0; }
.ph .tl li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding-left: 14px; font-size: 11.5px; }
.ph .tl li::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1.5px solid var(--a); }
.ph .tl li.done::before { background: var(--a); }
.ph .tl-n { min-width: 0; }
.ph .pill-ac { padding: 5px 10px; border-radius: var(--rb); background: var(--a); color: var(--on-a); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ph .mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph .mcard { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: calc(var(--r) * .7); background: var(--trk); font-size: 11px; }
.ph .mcard.done { box-shadow: inset 0 0 0 1.5px var(--a); }

/* agua */
.ph .glasses { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ph .gl { width: 17px; height: 23px; border: 1.5px solid var(--a); border-radius: 2px 2px 6px 6px; }
.ph .gl.on { background: var(--a); }
.ph .plus { display: grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border-radius: var(--rb); background: var(--tx); color: var(--bg); }
.ph .plus .i { width: 13px; height: 13px; }
.ph .bottle { position: relative; flex: none; width: 34px; height: 64px; border: 2px solid var(--a); border-radius: 10px 10px 12px 12px; overflow: hidden; }
.ph .bottle i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--a); }
.ph .btn-mini { display: inline-flex; align-items: center; gap: 3px; width: max-content; padding: 4px 8px; border-radius: var(--rb); background: var(--a); color: var(--on-a); font-size: 10.5px; font-weight: 700; }
.ph .btn-mini .i { width: 11px; height: 11px; }
.ph .w-wave { min-height: 116px; justify-content: flex-end; }
.ph .wave-fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--a-soft); }
.ph .wave-fill::before { content: ''; position: absolute; left: 0; right: 0; top: -7px; height: 8px; background: radial-gradient(circle at 8px 8px, var(--a-soft) 7.5px, transparent 8px) 0 0 / 16px 8px repeat-x; }
.ph .wave-c { position: relative; display: flex; flex-direction: column; gap: 2px; }

/* foto del plato */
.ph .cta-btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border-radius: var(--rb); background: var(--a); color: var(--on-a); font-size: 12.5px; font-weight: 700; }
.ph .cta-btn.sm { min-height: 30px; margin-top: 2px; font-size: 11px; }
.ph .cta-btn .i { width: 15px; height: 15px; }
.ph .cam-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--rb); background: var(--a); color: var(--on-a); }

/* rutina */
.ph .w-fill { background: var(--a) !important; color: var(--on-a); }
.ph .w-fill .cap { color: var(--on-a); }
.ph .fill-btn { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 6px; padding: 7px 12px; border-radius: var(--rb); background: var(--on-a); color: var(--a); font-size: 11.5px; font-weight: 700; }
.ph .fill-btn .i { width: 12px; height: 12px; }
.ph .play { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--rb); background: var(--a); color: var(--on-a); }
.ph .play .i { width: 14px; height: 14px; }
.ph .gif { position: relative; display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: calc(var(--r) * .7); background: var(--a-soft); color: var(--a-tx); }
.ph .gif svg { width: 34px; height: 34px; }
.ph .gif-tag { position: absolute; right: 3px; bottom: 3px; padding: 1px 3px; border-radius: 3px; background: var(--tx); color: var(--bg); font-size: 8px; font-weight: 700; }
.ph .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ph .dy { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ph .dy i { display: grid; place-items: center; width: 100%; max-width: 30px; aspect-ratio: 1; border-radius: var(--rb); background: var(--trk); color: var(--mut); font-style: normal; font-size: 11px; }
.ph .dy.done i { background: var(--a); color: var(--on-a); }
.ph .dy.today i { background: transparent; box-shadow: inset 0 0 0 2px var(--a); }
.ph .dy i .i { width: 12px; height: 12px; stroke-width: 3; }

/* progreso / racha / salud */
.ph .spark { display: block; width: 100%; height: 40px; }
.ph .sp-l { fill: none; stroke: var(--a); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ph .sp-a { fill: var(--a-soft); }
.ph .flame { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--rb); background: var(--a); color: var(--on-a); }
.ph .flame .i { width: 18px; height: 18px; }
.ph .bdg { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--rb); background: var(--a); color: var(--on-a); }
.ph .bdg .i { width: 22px; height: 22px; }
.ph .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ph .cal i { aspect-ratio: 1; border-radius: 3px; background: var(--trk); }
.ph .cal i.on { background: var(--a); }
.ph .cal i.now { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--tx); }
.ph .note { font-style: italic; }
.ph .q { height: 18px; font-size: 46px; line-height: .8; color: var(--a-tx); }
.ph .qt { font-family: var(--ff-d); font-stretch: var(--fst); font-weight: var(--fwd); font-size: 18px; line-height: 1.15; }
.ph .ai-dot { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--a); color: var(--on-a); }
.ph .ai-dot .i { width: 14px; height: 14px; }
.ph .bubble { padding: 8px 10px; border-radius: 4px var(--r) var(--r) var(--r); background: var(--trk); font-size: 11.5px; }
.ph .w-banner { flex-direction: row; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.ph .w-notice { flex-direction: row; align-items: center; gap: 8px; background: var(--trk) !important; border: 0 !important; box-shadow: none !important; font-size: 11px; }
.ph .w-notice .i { color: var(--a-tx); }

/* navegación */
.ph-nav { flex: none; display: flex; align-items: center; justify-content: space-around; color: var(--mut); font-size: 9.5px; font-weight: 650; }
.ph-nav .ni { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ph-nav .ni.on { color: var(--a-tx); }
.ph-nav .i { width: 18px; height: 18px; }
.nav-bar { height: 60px; padding-bottom: 10px; background: var(--sf); border-top: 1px solid var(--trk); }
.ph[data-surface="brutal"] .nav-bar { border-top: 2px solid var(--tx); }
.nav-dock { justify-content: space-between; margin: 0 16px 14px; padding: 5px; border-radius: var(--rb); background: var(--tx); color: var(--bg); }
.nav-dock .ni { flex-direction: row; gap: 5px; padding: 8px 11px; border-radius: var(--rb); }
.nav-dock .ni span { display: none; }
.nav-dock .ni.on { background: var(--a); color: var(--on-a); }
.nav-dock .ni.on span { display: inline; font-size: 11px; }
.nav-tabs { gap: 4px; height: 54px; padding: 0 14px 10px; border-top: 1px solid var(--trk); }
.nav-tabs .ni { flex: 1; padding: 8px 0 0; border-top: 2px solid transparent; font-size: 11px; }
.nav-tabs .ni.on { border-color: var(--a); color: var(--tx); }

/* primitivas (widgets "custom") */
.ph .p-col { display: flex; flex-direction: column; }
.ph .p-row { display: flex; align-items: center; }
.ph .p-stack { display: grid; }
.ph .p-stack > * { grid-area: 1 / 1; }
.ph .p-text { display: block; }
.ph .p-display { font: var(--fwd) 30px/1.05 var(--ff-d); }
.ph .p-title { font: var(--fwd) 17px/1.2 var(--ff-d); font-stretch: var(--fst); }
.ph .p-body { font-size: 12px; }
.ph .p-label { font-size: 11px; font-weight: 650; }
.ph .p-caption { font-size: 10.5px; }
.ph .c-muted { color: var(--mut); } .ph .c-accent { color: var(--a-tx); } .ph .c-primary { color: var(--tx); }
.ph .p-stat { display: flex; flex-direction: column; gap: 1px; }
.ph .p-prog { display: flex; flex-direction: column; gap: 4px; }
.ph .p-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph .p-ring .ring-c b { font-size: 12px; }
.ph .p-icon { display: inline-grid; }
.ph .p-div { width: 100%; margin: 2px 0; border: 0; border-top: 1px solid var(--trk); }

/* widget dentro del chat */
.ph.ph-inline { width: 100%; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; font-family: var(--ff-b); font-size: 13px; }
.ph.ph-inline .ph-grid { grid-template-columns: minmax(0, 1fr); }
.ph.ph-inline .w { padding: 14px; border: 1.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.ph.ph-inline .w-hd { font-size: 12px; color: var(--mut); }

/* Movimiento reducido ----------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* Redes del desarrollador */
.social { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 15px; }
.social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.footer .social a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
