/* cartalogoo · landing. Tokens de marca del core (cartalogoo-core/src/styles/tokens.css) con estética editorial cálida. */
:root {
  --p: #f2600c;
  --p-hover: #d9520a;
  --p-ink: #c2410c;
  --p-2: #ff8a4c;
  --p-soft: #fdede2;
  --ink: #1d1f2c;
  --ink-2: #2a2d3e;
  --mute: #5c6070;
  --subtle: #8a8ea0;
  --line: #ebe4da;
  --cream: #faf7f2;
  --sand: #f4ede4;
  --paper: #ffffff;
  --publish: #f5b800;
  --ok: #1f8a5b;
  --wa: #25d366;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-sm: 0 1px 2px rgb(29 31 44 / 0.06), 0 2px 8px rgb(29 31 44 / 0.05);
  --shadow-md: 0 6px 16px rgb(29 31 44 / 0.07), 0 18px 40px rgb(29 31 44 / 0.08);
  --shadow-lg: 0 30px 80px rgb(29 31 44 / 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(1rem, 4vw, 2rem);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-family: 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { overflow-x: hidden; line-height: 1.6; background: var(--cream); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.1; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--mute); }
::selection { background: var(--p); color: #fff; }

.container { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 52rem; }

/* ---------- Tipografía editorial ---------- */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.9rem, 8vw, 6rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--ink); }
.display em { font-style: italic; color: var(--p); }
.display--md { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; }
.display--lg { font-size: clamp(2.5rem, 6.5vw, 4.6rem); }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-ink); margin-bottom: 1rem; }
.eyebrow--light { color: var(--p-2); }
.link { color: var(--p-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Palabras del titular que entran una a una */
.word { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(2deg); filter: blur(8px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.8s var(--ease); transition-delay: calc(var(--w) * 70ms + 150ms); }
.in .word { opacity: 1; transform: none; filter: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.2rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem; white-space: nowrap; transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s, color 0.2s, border-color 0.2s; }
.btn .mdi { font-size: 1.2em; transition: transform 0.25s var(--ease); }
.btn:hover .mdi-arrow-right { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.875rem; }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--p); color: #fff; box-shadow: 0 8px 24px rgb(242 96 12 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25); }
.btn--primary:hover { background: var(--p-hover); transform: translateY(-2px); box-shadow: 0 14px 32px rgb(242 96 12 / 0.45); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--p); transform: translateY(-1px); }
.btn--ghost { background: var(--paper); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ghost .mdi-whatsapp { color: var(--wa); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(0 0 0 / 0.25); }
.btn--outline-light { border: 1.5px solid rgb(255 255 255 / 0.35); color: #fff; }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.1); transform: translateY(-2px); }

/* ---------- Progreso y cabecera ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--p), var(--publish)); transform-origin: left; transform: scaleX(0); }
.nav { position: fixed; top: 0.75rem; left: 0; right: 0; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.nav__inner { pointer-events: auto; max-width: 70rem; margin-inline: auto; display: flex; align-items: center; gap: 1.25rem; height: 3.5rem; padding: 0 0.5rem 0 1.1rem; border-radius: 999px; border: 1px solid transparent; transition: background 0.35s, box-shadow 0.35s, border-color 0.35s, max-width 0.5s var(--ease); }
.nav--scrolled .nav__inner { background: rgb(255 255 255 / 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: rgb(29 31 44 / 0.07); box-shadow: var(--shadow-md); max-width: 62rem; }
.nav__logo img { height: 1.55rem; }
.nav__links { display: none; gap: 1.75rem; margin-inline: auto; font-size: 0.92rem; color: var(--mute); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__login { margin-left: auto; font-size: 0.92rem; color: var(--mute); }
.nav__login:hover { color: var(--ink); }
@media (min-width: 860px) { .nav__links { display: flex; } .nav__login { margin-left: 0; } }
@media (max-width: 420px) { .nav__login { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 8.5rem 0 0; text-align: center; overflow: hidden; }
.hero__glow { position: absolute; inset: -20% -10% auto; height: 80%; background: radial-gradient(40% 50% at 30% 40%, rgb(255 138 76 / 0.26), transparent 70%), radial-gradient(35% 45% at 75% 30%, rgb(245 184 0 / 0.16), transparent 70%); filter: blur(20px); pointer-events: none; animation: glow 14s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
.hero__copy { position: relative; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.85rem 0.3rem 0.3rem; margin-bottom: 1.75rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.85rem; color: var(--mute); box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), border-color 0.2s; }
.pill:hover { transform: translateY(-2px); border-color: var(--p-2); }
.pill__tag { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--p); color: #fff; font-size: 0.75rem; font-weight: 700; }
.hero__lead { max-width: 38rem; margin-top: 1.5rem; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }
.hero__note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.35rem 0.5rem; margin-top: 1.25rem; font-size: 0.875rem; color: var(--subtle); }
.hero__note .mdi { color: var(--ok); }
.hero__note span { opacity: 0.5; }
.modes { display: inline-flex; gap: 0.25rem; margin-top: 1.75rem; padding: 0.3rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.modes button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.9rem; color: var(--mute); transition: background 0.3s var(--ease), color 0.3s; }
.modes button.on { background: var(--ink); color: #fff; }
.modes .mdi { font-size: 1.05rem; }

/* Escenario del celular */
.stage { position: relative; height: clamp(31rem, 62vw, 40rem); margin-top: 3.5rem; display: flex; justify-content: center; }
.stage::before { content: ''; position: absolute; bottom: 0; left: 50%; width: min(64rem, 120vw); height: 75%; translate: -50% 0; border-radius: 50% 50% 0 0 / 30% 30% 0 0; background: linear-gradient(180deg, var(--sand), #ede3d6); }
.stage__card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1rem; background: var(--paper); border-radius: 1rem; box-shadow: var(--shadow-md); text-align: left; font-size: 0.85rem; will-change: transform; }
.stage__card b { display: block; font-size: 0.85rem; }
.stage__card small { color: var(--mute); font-size: 0.78rem; }
.stage__card s { color: var(--subtle); }
.stage__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.7rem; font-size: 1.2rem; color: #fff; flex: none; }
.stage__icon--wa { background: var(--p); }
.stage__icon--ink { background: var(--ink); }
.stage__time { align-self: flex-start; font-size: 0.7rem; color: var(--subtle); }
.stage__card--qr { top: 14%; left: calc(50% - 25rem); animation: bob 6s ease-in-out infinite; }
.stage__card--order { top: 30%; left: calc(50% + 8.5rem); animation: bob 7s ease-in-out infinite -2s; }
.stage__card--order.ping { animation: ping 0.7s var(--spring), bob 7s ease-in-out infinite -2s; }
.stage__card--promo { top: 58%; left: calc(50% - 24rem); animation: bob 6.5s ease-in-out infinite -3s; }
.stage__card--star { top: 64%; left: calc(50% + 10rem); flex-direction: column; align-items: flex-start; gap: 0.1rem; animation: bob 8s ease-in-out infinite -1s; }
.stars { color: #f5b301; letter-spacing: 0.1em; font-size: 0.95rem; }
.qr { width: 2.6rem; height: 2.6rem; border-radius: 0.4rem; background:
  conic-gradient(from 90deg at 30% 30%, var(--ink) 25%, transparent 0) 0 0 / 0.65rem 0.65rem,
  linear-gradient(var(--ink), var(--ink)) 0 0 / 0.9rem 0.9rem no-repeat,
  linear-gradient(var(--ink), var(--ink)) 100% 0 / 0.9rem 0.9rem no-repeat,
  linear-gradient(var(--ink), var(--ink)) 0 100% / 0.9rem 0.9rem no-repeat; opacity: 0.9; }
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes ping { 0% { scale: 0.85; } 60% { scale: 1.06; } 100% { scale: 1; } }
@media (max-width: 860px) {
  .stage__card--qr, .stage__card--promo, .stage__card--star { display: none; }
  .stage__card--order { top: 0.5rem; left: 50%; width: max-content; max-width: calc(100% - 2rem); translate: -50% 0; animation: none; }
  .stage__card--order.ping { animation: ping 0.7s var(--spring); }
  .stage { margin-top: 2.5rem; padding-top: 4.5rem; height: 38rem; }
}

/* ---------- Celular (menú de ejemplo) ---------- */
.phone { --th-bg: #fff; --th-ink: #1d1f2c; --th-mute: #6b6f80; --th-accent: var(--p); --th-card: #f6f7fb; --th-hero: linear-gradient(135deg, #f2600c, #ff8a4c); --th-font: inherit;
  position: relative; z-index: 2; align-self: flex-end; width: 18.5rem; height: 34rem; padding: 0.7rem; margin-bottom: -4rem; border-radius: 2.75rem; background: #14151d; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c2e3c; transition: translate 0.6s var(--ease), rotate 0.6s var(--ease); }
.phone__notch { position: absolute; top: 1.05rem; left: 50%; translate: -50% 0; width: 5.5rem; height: 1.4rem; border-radius: 999px; background: #14151d; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 2.1rem; overflow: hidden; background: var(--th-bg); color: var(--th-ink); font-size: 0.8rem; text-align: left; transition: background 0.5s; }
.m-hero { padding: 2.7rem 1rem 1rem; text-align: center; background: var(--th-hero); color: #fff; transition: background 0.5s; }
.m-logo { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto 0.4rem; border-radius: 50%; background: #fff; color: var(--th-accent); font-weight: 700; box-shadow: 0 4px 10px rgb(0 0 0 / 0.15); transition: color 0.5s; }
.m-name { font-family: var(--th-font); font-weight: 700; font-size: 1.1rem; }
.m-tag { font-size: 0.72rem; opacity: 0.85; }
.m-tabs { display: flex; gap: 0.4rem; padding: 0.75rem 0.75rem 0.5rem; }
.m-tabs span { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--th-card); color: var(--th-mute); font-size: 0.72rem; transition: background 0.5s, color 0.5s; }
.m-tabs span.on { background: var(--th-accent); color: #fff; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; padding: 0.25rem 0.75rem; }
.m-card { position: relative; border-radius: 0.8rem; background: var(--th-card); overflow: hidden; }
.m-img { display: grid; place-items: center; height: 4.8rem; background: linear-gradient(135deg, var(--c1), var(--c2)); color: rgb(255 255 255 / 0.9); font-size: 2rem; }
.m-body { padding: 0.4rem 0.55rem 0.6rem; }
.m-body b { display: block; font-size: 0.75rem; }
.m-body span { font-size: 0.72rem; color: var(--th-mute); }
.m-promo { color: var(--p-ink) !important; font-weight: 700; }
.m-promo s { color: var(--th-mute); font-weight: 400; }
.m-badge { position: absolute; top: 0.4rem; left: 0.4rem; z-index: 1; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.6rem; font-weight: 700; }
.m-add { position: absolute; right: 0.4rem; top: 3.6rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--th-accent); color: #fff; font-weight: 700; box-shadow: 0 3px 8px rgb(0 0 0 / 0.2); }
.m-add.pop { animation: pop 0.45s var(--spring); }
@keyframes pop { 40% { scale: 1.45; } }
.m-cart { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 4.9rem; display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.9rem; border-radius: 999px; background: var(--th-accent); color: #fff; font-size: 0.78rem; box-shadow: 0 8px 20px rgb(0 0 0 / 0.2); transform: translateY(150%); opacity: 0; transition: transform 0.5s var(--spring), opacity 0.3s; }
.m-cart.show { transform: none; opacity: 1; }
.m-cart.bump { animation: bump 0.35s var(--ease); }
@keyframes bump { 50% { scale: 1.05; } }
.m-list { display: grid; gap: 0.5rem; padding: 0.25rem 0.75rem; }
.m-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem; border-radius: 0.8rem; background: var(--th-card); animation: rowIn 0.5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); transition: background 0.5s; }
.m-row .m-img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; font-size: 1.4rem; flex: none; }
.m-row div:last-child { flex: 1; }
.m-row b { display: block; font-family: var(--th-font); font-size: 0.8rem; }
.m-row small { display: block; color: var(--th-mute); font-size: 0.66rem; line-height: 1.3; }
.m-row span { color: var(--th-accent); font-weight: 700; font-size: 0.75rem; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }

/* Temas del demo de diseño */
.phone[data-theme='cafe'] { --th-bg: #fbf6ef; --th-ink: #3b2a20; --th-mute: #8a7564; --th-accent: #7a4b33; --th-card: #f3e7d8; --th-hero: linear-gradient(135deg, #5b3a29, #a0714f); --th-font: var(--serif); }
.phone[data-theme='pizza'] { --th-bg: #fffaf0; --th-ink: #2b1d14; --th-mute: #8a6e5a; --th-accent: #c0392b; --th-card: #fff0d6; --th-hero: linear-gradient(135deg, #c0392b, #e67e22); --th-font: 'Google Sans', sans-serif; }
.phone[data-theme='bar'] { --th-bg: #151824; --th-ink: #f2f0ea; --th-mute: #a3a6b8; --th-accent: #e9b949; --th-card: #22263a; --th-hero: linear-gradient(135deg, #0d0f18, #2d3150); --th-font: var(--serif); }
.phone[data-theme='fresh'] { --th-bg: #f7fdf9; --th-ink: #12372a; --th-mute: #5f7d70; --th-accent: #2f9e6e; --th-card: #e3f5ea; --th-hero: linear-gradient(135deg, #2f9e6e, #8bd17c); --th-font: 'Google Sans', sans-serif; }
.phone[data-theme='store'] { --th-bg: #f2f2f0; --th-ink: #1f2433; --th-mute: #6b6f7d; --th-accent: #1f2433; --th-card: #ffffff; --th-hero: linear-gradient(135deg, #1f2433, #4a5068); --th-font: 'Google Sans', sans-serif; }
.phone[data-theme='boutique'] { --th-bg: #f4ebe4; --th-ink: #3a2a24; --th-mute: #8f776c; --th-accent: #8c5a46; --th-card: #ffffff; --th-hero: linear-gradient(135deg, #8c5a46, #c9a99a); --th-font: var(--serif); }
.phone[data-theme='urban'] { --th-bg: #111111; --th-ink: #f5f5f5; --th-mute: #a0a0a0; --th-accent: #ff4d2e; --th-card: #1e1e1e; --th-hero: linear-gradient(135deg, #111111, #3a3a3a); --th-font: 'Google Sans', sans-serif; }
.phone--sm { align-self: center; margin: 0; width: 17rem; height: 31rem; }
.theme-demo { display: grid; place-items: center; padding: 2rem 1rem; border-radius: var(--radius-xl); background: radial-gradient(circle at 50% 40%, var(--paper), var(--sand)); }

/* ---------- Cinta ---------- */
.ribbon { padding: 2.25rem 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--cream); position: relative; z-index: 3; }
.ribbon__title { text-align: center; font-size: 0.85rem; color: var(--subtle); margin-bottom: 1rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 1.75rem; font-family: var(--serif); font-size: 1.6rem; color: var(--ink-2); white-space: nowrap; }
.marquee__track .mdi { font-size: 1.3rem; color: var(--p); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--tight { padding-top: 2rem; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: #b9bccb; }
.section--dark .display { color: #fff; }
.section--dark .display em { color: var(--p-2); }
.section__head { max-width: 44rem; margin: 0 auto 3.5rem; text-align: center; }
.section__head p { margin-top: 1rem; font-size: 1.1rem; }
.section__head--left { text-align: left; margin: 0; }

/* Aparecer al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-split] { opacity: 1; transform: none; filter: none; }

/* ---------- Manifiesto ---------- */
.manifesto { padding-block: clamp(5rem, 12vw, 9rem); }
.manifesto__text { font-family: var(--serif); font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.18; color: var(--ink); letter-spacing: -0.01em; }
.manifesto__text em { color: var(--p); }
.manifesto__text .mw { opacity: 0.16; transition: opacity 0.3s; }
.manifesto__text .mw.lit { opacity: 1; }

/* ---------- Funciones alternadas ---------- */
.feature { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature__copy p { margin-top: 1.1rem; font-size: 1.08rem; max-width: 30rem; }
.feature__media { min-width: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
  .feature--flip .feature__copy { order: 2; }
}
.ticks { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks .mdi { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; border-radius: 50%; background: var(--p-soft); color: var(--p-ink); font-size: 0.85rem; flex: none; }

/* Tarjeta tipo ventana */
.mock { position: relative; background: var(--paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid rgb(29 31 44 / 0.06); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid #efeff4; font-size: 0.85rem; }
.mock__bar > span { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #e4e4ec; }
.mock__bar b { margin-left: 0.6rem; font-weight: 500; color: var(--mute); }

/* Editor */
.editor__body { display: flex; gap: 1rem; padding: 1.25rem; }
.editor__photo { display: grid; place-items: center; width: 6rem; height: 6rem; flex: none; border-radius: 1rem; background: linear-gradient(135deg, #c9a27e, #8a5a3b); color: #fff; font-size: 2.6rem; }
.editor__fields { flex: 1; display: grid; gap: 0.75rem; }
.editor__field { padding: 0.55rem 0.85rem; border: 1px solid var(--line); border-radius: 0.75rem; }
.editor__field small { display: block; font-size: 0.72rem; color: var(--subtle); }
.editor__field div { font-weight: 500; }
.editor__field--price { border-color: var(--p); box-shadow: 0 0 0 4px var(--p-soft); }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--p); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.editor__toggles { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; padding: 0 1.25rem; font-size: 0.85rem; color: var(--mute); }
.editor__toggles .mdi { font-size: 1.4rem; vertical-align: -0.3em; color: var(--subtle); }
.editor__toggles .on .mdi, .editor__toggles span:first-child .mdi { color: var(--p); }
.editor__foot { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem; }
.editor__pill { padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--p-soft); color: var(--p-ink); font-size: 0.78rem; font-weight: 700; transition: background 0.3s, color 0.3s; }
.editor__pill.live { background: #e6f4ec; color: var(--ok); }
.editor__publish { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--publish); color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.editor__publish.press { animation: press 0.35s var(--ease); }
@keyframes press { 50% { scale: 0.9; } }
.editor__toast { position: absolute; left: 50%; bottom: 5rem; translate: -50% 0; display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.85rem; white-space: nowrap; opacity: 0; transform: translateY(12px) scale(0.95); transition: opacity 0.35s, transform 0.45s var(--spring); }
.editor__toast .mdi { color: #6be3a4; }
.editor__toast.show { opacity: 1; transform: none; }

/* Pantalla de cocina */
.board { --col: calc((100% - 2rem) / 3); }
.board__bell { margin-left: auto; color: var(--subtle); font-size: 1.1rem; }
.board__bell.ring { color: var(--p); animation: ring 0.6s ease; }
@keyframes ring { 20%, 60% { rotate: 15deg; } 40%, 80% { rotate: -15deg; } }
.board__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 1rem 1rem 0; height: 19rem; }
.board__col { border-radius: 0.9rem; background: #f6f6f9; padding: 0.6rem; }
.board__col small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); }
.board__tickets { position: absolute; inset: 5.6rem 1rem 1rem; }
.ticket { position: absolute; left: 0; width: calc((100% - 1rem) / 3 - 1.2rem); margin-left: 0.6rem; padding: 0.6rem 0.65rem; border-radius: 0.7rem; background: var(--paper); box-shadow: var(--shadow-sm); border-left: 3px solid var(--p); font-size: 0.75rem; transition: transform 0.8s var(--ease), opacity 0.4s, border-color 0.4s; }
.ticket b { display: block; font-size: 0.8rem; }
.ticket small { color: var(--mute); font-size: 0.68rem; line-height: 1.3; display: block; }
.ticket[data-col='1'] { border-left-color: var(--publish); }
.ticket[data-col='2'] { border-left-color: var(--ok); }
.ticket[data-col='2'] b::after { content: ' ✓'; color: var(--ok); }
.ticket.enter { opacity: 0; }
.board { padding-bottom: 1rem; }

/* Raspa y gana */
.scratch-wrap { position: relative; display: grid; place-items: center; gap: 1rem; padding: 2.5rem 1rem; border-radius: var(--radius-xl); background: radial-gradient(circle at 50% 30%, #fff4ec, var(--sand)); }
.scratch { position: relative; width: min(20rem, 100%); aspect-ratio: 1.45; border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper); }
.scratch__prize { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.25rem; text-align: center; padding: 1rem; background: linear-gradient(160deg, #fff, #fff6ee); }
.scratch__emoji { font-size: 2.2rem; line-height: 1; }
.scratch__prize b { font-size: 1.05rem; }
.scratch__prize small { color: var(--mute); font-size: 0.78rem; }
.scratch__prize code { margin-top: 0.3rem; padding: 0.25rem 0.75rem; border-radius: 0.5rem; background: var(--ink); color: #fff; font-family: ui-monospace, monospace; letter-spacing: 0.12em; }
.scratch__cover { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity 0.6s; }
.scratch.done .scratch__cover { opacity: 0; pointer-events: none; }
.scratch.done { animation: pop 0.5s var(--spring); }
.scratch__hint { font-size: 0.85rem; color: var(--mute); }
.review-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem; width: min(20rem, 100%); background: var(--paper); border-radius: 1rem; box-shadow: var(--shadow-md); font-size: 0.85rem; }
.review-card b { display: block; }
.review-card div { flex: 1; }
.review-card__g { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); color: #fff; font-weight: 700; }
.review-card__btn { padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--p-soft); color: var(--p-ink); font-size: 0.75rem; font-weight: 700; }
.confetti { position: absolute; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 5; animation: confetti 1.1s var(--ease) forwards; }
@keyframes confetti { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* Importador */
.importer { padding-bottom: 1.25rem; }
.importer__file { display: flex; align-items: center; gap: 0.8rem; margin: 1.25rem 1.25rem 0.9rem; padding: 0.8rem; border: 1px dashed #c9cde0; border-radius: 1rem; background: #fafbff; }
.importer__file .mdi { font-size: 2rem; color: #1d6f42; }
.importer__file b { display: block; font-size: 0.9rem; }
.importer__file small { color: var(--subtle); font-size: 0.78rem; }
.importer__bar { height: 0.45rem; margin: 0 1.25rem 1rem; border-radius: 999px; background: #eef0f6; overflow: hidden; }
.importer__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--p), var(--p-2)); }
.importer__rows { display: grid; gap: 0.4rem; padding: 0 1.25rem; }
.importer__rows li { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; border-radius: 0.7rem; background: #f7f7fa; font-size: 0.85rem; opacity: 0; transform: translateX(-12px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.importer__rows li.show { opacity: 1; transform: none; }
.importer__rows .mdi { color: var(--ok); }
.importer__rows b { margin-left: auto; font-weight: 500; color: var(--mute); }
.importer__done { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 1.25rem 0; padding: 0.7rem 0.9rem; border-radius: 0.8rem; background: #e6f4ec; color: var(--ok); font-size: 0.9rem; opacity: 0; transform: scale(0.96); transition: opacity 0.4s, transform 0.5s var(--spring); }
.importer__done.show { opacity: 1; transform: none; }

/* Temas: botones */
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.swatch { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem 0.45rem 0.45rem; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); font-size: 0.88rem; transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; }
.swatch span { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: linear-gradient(135deg, var(--s1) 50%, var(--s2) 50%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.swatch:hover { transform: translateY(-2px); }
.swatch.on { border-color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Dos modos: menú o catálogo ---------- */
.kinds { display: grid; gap: 1rem; max-width: 60rem; margin: 0 auto; }
@media (min-width: 800px) { .kinds { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.kind { padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius-xl); background: var(--paper); box-shadow: var(--shadow-sm); }
.kind h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.15; }
.kind > p { margin-top: 0.3rem; color: var(--mute); }
.kind__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem; border-radius: 1rem; background: var(--p-soft); color: var(--p); font-size: 1.5rem; }
.kind--dark { background: var(--ink); color: #f2f0ea; }
.kind--dark > p { color: #b9bccb; }
.kind--dark .kind__icon, .kind--dark .ticks .mdi { background: rgb(255 255 255 / 0.1); color: var(--p-2); }
.kinds__note { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 1.5rem; font-size: 0.9rem; color: var(--mute); text-align: center; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 2rem 1.75rem; border-radius: var(--radius-xl); background: var(--paper); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--line); }
.step > .mdi { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem; border-radius: 1rem; background: var(--p-soft); color: var(--p); font-size: 1.5rem; }
.step p { margin-top: 0.4rem; }

/* ---------- Calculadora ---------- */
.calc { display: grid; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2rem; background: var(--paper); box-shadow: var(--shadow-md); border: 1px solid rgb(29 31 44 / 0.05); }
@media (min-width: 900px) { .calc { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; } }
.calc__copy > p { margin: 1rem 0 2rem; font-size: 1.05rem; }
.range { display: block; margin-top: 1.4rem; }
.range span { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; color: var(--mute); margin-bottom: 0.6rem; }
.range b { color: var(--ink); font-variant-numeric: tabular-nums; }
.range input { --pct: 50%; width: 100%; height: 0.45rem; appearance: none; -webkit-appearance: none; border-radius: 999px; background: linear-gradient(90deg, var(--p) var(--pct), #e6e3db var(--pct)); cursor: pointer; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; border: 3px solid var(--p); box-shadow: var(--shadow-sm); transition: scale 0.2s; }
.range input::-webkit-slider-thumb:hover { scale: 1.15; }
.range input::-moz-range-thumb { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; border: 3px solid var(--p); }
.range input:focus-visible { outline: 3px solid var(--p-soft); outline-offset: 6px; }
.calc__result { display: grid; gap: 0.75rem; }
.calc__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 1.1rem; }
.calc__row small { font-size: 0.9rem; }
.calc__row b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.calc__row--bad { background: #fdf0e9; color: #a24a22; }
.calc__row--bad b { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgb(162 74 34 / 0.45); }
.calc__row--good { background: #e6f4ec; color: var(--ok); }
.calc__save { padding: 1.5rem 1.25rem; border-radius: 1.25rem; background: var(--ink); color: #fff; }
.calc__save small { display: block; color: #b9bccb; font-size: 0.9rem; }
.calc__save b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc__fine { font-size: 0.78rem; color: var(--subtle); }

/* ---------- Precio ---------- */
.section--dark { position: relative; overflow: hidden; }
.section--dark::before { content: ''; position: absolute; top: -30%; left: 50%; width: 60rem; height: 40rem; translate: -50% 0; background: radial-gradient(closest-side, rgb(242 96 12 / 0.28), transparent); pointer-events: none; }
.section--dark .container { position: relative; }
.billing { position: relative; display: flex; width: fit-content; margin: 0 auto 2rem; padding: 0.3rem; border-radius: 999px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.1); }
.billing button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.25rem; border-radius: 999px; font-size: 0.92rem; color: #b9bccb; transition: color 0.3s; }
.billing button.on { color: var(--ink); }
.billing__thumb { position: absolute; top: 0.3rem; bottom: 0.3rem; left: 0; border-radius: 999px; background: #fff; transition: translate 0.45s var(--ease), width 0.45s var(--ease); }
.billing__save { padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--ok); color: #fff; font-size: 0.72rem; font-weight: 700; }
.price { display: grid; max-width: 56rem; margin-inline: auto; border-radius: 2rem; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 40px 100px rgb(0 0 0 / 0.35); }
@media (min-width: 820px) { .price { grid-template-columns: 1fr 1.1fr; } }
.section--dark .price p { color: var(--mute); }
.section--dark .price .price__amount { color: var(--ink); }
.price__main { padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; }
.price__main h3 { font-size: 1rem; color: var(--mute); font-weight: 500; }
.price__amount { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.75rem; color: var(--ink); }
.price__amount b { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 9vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price__amount b.flip { animation: flip 0.45s var(--ease); }
@keyframes flip { 40% { opacity: 0; transform: translateY(-14px); filter: blur(4px); } 41% { transform: translateY(14px); } }
.price__amount span { color: var(--mute); font-size: 1rem; }
.price__sub { margin: 0.5rem 0 2rem; min-height: 3.2em; font-size: 0.95rem; }
.price__sub b { color: var(--ok); }
.price__main .btn { margin-top: auto; }
.price__wa { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.9rem; color: var(--mute); }
.price__wa:hover { color: var(--ink); }
.price__wa .mdi { color: var(--wa); font-size: 1.15rem; }
.price__list { display: grid; gap: 0.75rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--cream); font-size: 0.95rem; }
.price__list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.price__list .mdi { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-top: 0.1rem; border-radius: 50%; background: var(--p); color: #fff; font-size: 0.85rem; flex: none; }
.price__note { margin-top: 1.5rem; text-align: center; font-size: 0.88rem; }

/* ---------- Preguntas ---------- */
.faq-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; } .faq-wrap .section__head { position: sticky; top: 7rem; } }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; font-size: 1.08rem; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-size: 1.2rem; transition: rotate 0.35s var(--ease), background 0.2s, color 0.2s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--ink); color: #fff; }
.faq details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq details[open] > div { grid-template-rows: 1fr; }
.faq details > div > p { overflow: hidden; padding-right: 2.5rem; }
.faq details[open] > div > p { padding-bottom: 1.35rem; }

/* ---------- Cierre ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 1.5rem; border-radius: 2.25rem; text-align: center; background: linear-gradient(140deg, var(--p-ink), var(--p) 45%, var(--p-2)); color: #fff; }
.cta p { color: rgb(255 255 255 / 0.85); margin-top: 1rem; font-size: 1.1rem; position: relative; }
.cta .display { color: #fff; position: relative; }
.cta .display em { color: var(--ink); }
.cta__icon { position: relative; width: 3.5rem; margin: 0 auto 1.5rem; border-radius: 1rem; box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); animation: bob 5s ease-in-out infinite; }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.cta__orbs span { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; animation: orb 12s ease-in-out infinite alternate; }
.cta__orbs span:nth-child(1) { width: 22rem; height: 22rem; top: -8rem; left: -6rem; background: var(--publish); }
.cta__orbs span:nth-child(2) { width: 18rem; height: 18rem; bottom: -8rem; right: -4rem; background: #ffb07a; animation-delay: -4s; }
.cta__orbs span:nth-child(3) { width: 14rem; height: 14rem; top: 30%; left: 55%; background: var(--p-ink); animation-delay: -8s; }
@keyframes orb { to { transform: translate(40px, -30px) scale(1.15); } }

/* ---------- Pie ---------- */
.footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__logo { height: 1.6rem; margin-bottom: 0.75rem; }
.footer p { font-size: 0.92rem; }
.footer__contact { display: grid; gap: 0.5rem; font-size: 0.95rem; }
.footer__contact a:hover { color: var(--p); }
.footer__contact .mdi { color: var(--p); margin-right: 0.3rem; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--subtle); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--wa); color: #fff; font-size: 1.8rem; box-shadow: 0 10px 28px rgb(37 211 102 / 0.45); transition: transform 0.3s var(--spring); }
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Accesibilidad: sin animaciones si el usuario lo pidió ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .word { opacity: 1; transform: none; filter: none; }
  .manifesto__text .mw { opacity: 1; }
}
