/* =========================================================
   OrbiPOS — hoja de estilos principal
   Orden: variables · base · utilidades · componentes · secciones
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --ink: #14171F;
  --ink-2: #1F2430;
  --ink-3: #2A3040;
  --paper: #F4F5F7;
  --white: #FFFFFF;
  --amber: #E39A2C;
  --amber-text: #A86A10;   /* ámbar legible sobre fondo claro */
  --amber-soft: rgba(227, 154, 44, .14);

  --text: #1A1E28;
  --text-muted: #4A5162;
  --text-on-dark: #F4F5F7;
  --muted-on-dark: #AEB4C1;
  --line: #DDE0E6;
  --line-dark: rgba(244, 245, 247, .12);
  --ok: #2F8F5B;

  --font-title: "Space Grotesk", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 23, 31, .06), 0 8px 24px rgba(20, 23, 31, .07);
  --shadow-dark: 0 20px 50px rgba(0, 0, 0, .35);

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 4.6vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: .7rem 1rem;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Utilidades de layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark-2 { background: var(--ink-2); color: var(--text-on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-title); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-text); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 16px; height: 3px; border-radius: 3px; background: currentColor; }
.section--dark .eyebrow, .section--dark-2 .eyebrow, .hero .eyebrow { color: var(--amber); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.section--dark .section-head p, .section--dark-2 .section-head p { color: var(--muted-on-dark); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.35rem;
  font-family: var(--font-title); font-weight: 600; font-size: 1rem;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #EEA83E; }
.btn--ghost { border-color: rgba(244, 245, 247, .28); color: var(--text-on-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--text-on-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }

/* Aviso "Pronto: agenda por WhatsApp" */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink-2); color: var(--text-on-dark);
  border: 1px solid var(--line-dark); border-radius: 12px;
  padding: .75rem 1.1rem; font-size: .95rem; box-shadow: var(--shadow-dark);
  transition: opacity .25s, transform .25s var(--ease);
  max-width: calc(100vw - 2rem); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.brand b { color: #A9AFBB; font-weight: 400; }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--text-on-dark);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-solid { background: rgba(20, 23, 31, .94); box-shadow: 0 1px 0 var(--line-dark); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid { background: rgba(20, 23, 31, .82); backdrop-filter: blur(10px); }
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; background: transparent;
  border: 1px solid var(--line-dark); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: fixed; inset: 68px 0 auto 0; background: var(--ink);
  padding: 1rem var(--gutter) 1.6rem; border-bottom: 1px solid var(--line-dark);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; display: grid; gap: .25rem; }
.site-nav a:not(.btn) {
  display: block; padding: .8rem .2rem; text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--line-dark); color: var(--text-on-dark);
}
.site-nav a:not(.btn):hover { color: var(--amber); }
.site-nav .btn { margin-top: 1rem; width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; padding: 0; border: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 1.6rem; }
  .site-nav a:not(.btn) { border: 0; padding: .4rem 0; font-size: .95rem; color: var(--muted-on-dark); }
  .site-nav a:not(.btn):hover { color: var(--text-on-dark); }
  .site-nav .btn { margin: 0; width: auto; }
}

/* ---------- Héroe ---------- */
.hero {
  background: var(--ink); color: var(--text-on-dark);
  padding: calc(68px + clamp(2.5rem, 7vw, 5rem)) 0 clamp(3.5rem, 8vw, 6rem);
  position: relative; overflow: hidden;
}
.hero::after { /* trama sutil de puntos */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(244, 245, 247, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted-on-dark); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.2rem; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .93rem; color: var(--muted-on-dark); }
.hero-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts .icon { width: 18px; height: 18px; color: var(--amber); }

.hero-visual { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1; }
/* Motivo de marca: tres arcos en ciclo (mesa → cocina → caja) que se llenan uno tras otro */
.ciclo { position: absolute; inset: 0; width: 100%; height: 100%; }
.ciclo-gira { transform-box: view-box; transform-origin: center; animation: girar 70s linear infinite; }
.ciclo-gira--lento { animation-duration: 120s; }
@keyframes girar { to { transform: rotate(360deg); } }
.ciclo-arco { stroke-dasharray: 100; stroke-dashoffset: 0; animation: llenar 9s var(--ease) infinite; }
.ciclo-arco--2 { animation-delay: 1s; }
.ciclo-arco--3 { animation-delay: 2s; }
@keyframes llenar {
  0% { stroke-dashoffset: 100; opacity: 1; }
  14% { stroke-dashoffset: 0; }
  72% { stroke-dashoffset: 0; opacity: 1; }
  86%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.hero-cards { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-cards .mock { position: absolute; }
.hero-cards .mock--ticket { width: 52%; left: 9%; top: 22%; transform: rotate(-4deg); }
.hero-cards .mock--invoice { width: 54%; right: 7%; bottom: 20%; transform: rotate(3deg); }
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 8s ease-in-out -3s infinite; }
@keyframes floaty { 50% { translate: 0 -8px; } }

@media (max-width: 559px) {
  .hero-visual { max-width: 380px; }
  .hero-cards .mock { font-size: .7rem; padding: .8rem; }
  .hero-cards .mock--ticket { width: 70%; left: 0; top: 12%; }
  .hero-cards .mock--invoice { width: 72%; right: 0; bottom: 12%; }
  .hero-cards .mock--ticket .mock-row span:last-child { display: none; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 2rem; }
}

/* ---------- Maquetas ilustrativas (pantallas del producto) ---------- */
.mock {
  background: var(--white); color: var(--text); border-radius: 16px;
  box-shadow: var(--shadow-dark); padding: 1rem; font-size: .8rem; line-height: 1.35;
}
.mock--dark { background: var(--ink-2); color: var(--text-on-dark); border: 1px solid var(--line-dark); }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.mock-title { font-family: var(--font-title); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.mock-sub { color: var(--text-muted); font-size: .72rem; }
.mock--dark .mock-sub { color: var(--muted-on-dark); }
.mock-row { display: flex; justify-content: space-between; gap: .6rem; padding: .42rem 0; border-top: 1px dashed var(--line); }
.mock--dark .mock-row { border-top-color: var(--line-dark); }
.mock-row:first-of-type { border-top: 0; }
.mock-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-total { display: flex; justify-content: space-between; font-family: var(--font-title); font-weight: 700; font-size: .95rem; padding-top: .55rem; margin-top: .3rem; border-top: 1px solid var(--line); }
.mock--dark .mock-total { border-top-color: var(--line-dark); }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem;
  border-radius: 999px; font-size: .68rem; font-weight: 600; white-space: nowrap;
  background: var(--paper); color: var(--text);
}
.chip--ok { background: rgba(47, 143, 91, .13); color: #1F6B42; }
.chip--amber { background: var(--amber-soft); color: #7A4C08; }
.mock--dark .chip { background: rgba(244, 245, 247, .1); color: var(--text-on-dark); }
.mock--dark .chip--amber { background: rgba(227, 154, 44, .2); color: #F3C47A; }
.mock--dark .chip--ok { background: rgba(80, 190, 130, .18); color: #8FE0B2; }
.mock-btn { margin-top: .7rem; background: var(--amber); color: var(--ink); text-align: center; font-weight: 700; padding: .5rem; border-radius: 10px; font-family: var(--font-title); }
.mock-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; }
.mock-check svg { width: 14px; height: 14px; }

.phone {
  width: min(240px, 100%); margin: 0 auto; border-radius: 30px; padding: 10px;
  background: #0C0E13; box-shadow: var(--shadow-dark); border: 1px solid #2B3142;
}
.phone .mock { border-radius: 22px; box-shadow: none; min-height: 330px; }
.phone-notch { width: 70px; height: 6px; border-radius: 6px; background: #2B3142; margin: 4px auto 10px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin: .6rem 0 .4rem; }
.bars i { flex: 1; background: rgba(244, 245, 247, .18); border-radius: 4px 4px 2px 2px; }
.bars i.on { background: var(--amber); }

.mock-note { font-size: .78rem; color: var(--muted-on-dark); margin-top: 1rem; text-align: center; }
.section--paper .mock-note, .section .mock-note--light { color: var(--text-muted); }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

/* ---------- Dolores ---------- */
.pain-grid { display: grid; gap: 1rem; }
.pain {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.pain-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--amber); margin-bottom: 1.1rem; }
.pain h3 { font-size: 1.15rem; }
.pain p { color: var(--text-muted); font-size: .97rem; }
.pain-fix { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .93rem; display: flex; gap: .5rem; }
.pain-fix .icon { width: 20px; height: 20px; color: var(--amber-text); margin-top: .1rem; }
.pain-fix strong { color: var(--text); }
@media (min-width: 640px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pain-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Flujo interactivo ---------- */
.flow-track { position: relative; margin: 0 0 2.2rem; }
.flow-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; position: relative; z-index: 1; }
.flow-line, .flow-line-fill {
  position: absolute; left: 10%; right: 10%; top: 23px; height: 2px; background: var(--line-dark);
}
.flow-line-fill { right: auto; width: 0; background: var(--amber); transition: width .6s var(--ease); }
.flow-runner {
  position: absolute; top: 17px; left: 10%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 6px rgba(227, 154, 44, .2);
  transition: left .6s var(--ease); z-index: 2; pointer-events: none;
}
.flow-tab {
  width: 100%; background: none; border: 0; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  color: var(--muted-on-dark); font-size: .78rem; font-weight: 600; text-align: center;
}
.flow-dot {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); border: 2px solid var(--line-dark); transition: border-color .3s, background-color .3s, color .3s;
}
.flow-dot .icon { width: 22px; height: 22px; }
.flow-tab[aria-selected="true"] { color: var(--text-on-dark); }
.flow-tab[aria-selected="true"] .flow-dot { border-color: var(--amber); color: var(--amber); background: var(--ink-2); }
.flow-tab.is-done .flow-dot { border-color: rgba(227, 154, 44, .55); color: var(--amber); }
.flow-tab-label { display: none; }
@media (min-width: 560px) { .flow-tab-label { display: block; } }

.flow-stage { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(1.3rem, 4vw, 2.6rem); }
.flow-panel { display: grid; gap: 2rem; align-items: center; }
.flow-panel[hidden] { display: none; }
.flow-panel.is-entering .flow-copy, .flow-panel.is-entering .flow-art { animation: panel-in .5s var(--ease) both; }
.flow-panel.is-entering .flow-art { animation-delay: .06s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.flow-num { font-family: var(--font-title); color: var(--amber); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.flow-copy h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: .4rem; }
.flow-copy p { color: var(--muted-on-dark); }
.flow-points { list-style: none; display: grid; gap: .55rem; margin-top: 1rem; }
.flow-points li { display: flex; gap: .6rem; color: var(--text-on-dark); font-size: .96rem; }
.flow-points .icon { width: 20px; height: 20px; color: var(--amber); margin-top: .15rem; }
.flow-art { display: grid; place-items: center; min-height: 300px; }
.flow-art .mock { width: min(340px, 100%); }
.flow-controls { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.flow-controls .group { display: flex; gap: .6rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-width: 46px; height: 46px; padding: 0 .9rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-dark); color: var(--text-on-dark); font-weight: 600; font-size: .9rem;
}
.icon-btn:hover { border-color: var(--text-on-dark); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn .i-play { display: none; }
.icon-btn.is-paused .i-play { display: block; }
.icon-btn.is-paused .i-pause { display: none; }
@media (min-width: 860px) { .flow-panel { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- Selector de negocio + funciones ---------- */
.picker { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 2rem; }
.picker-q { font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; }
.picker-opts { display: grid; gap: .6rem; }
.picker-opt {
  display: flex; align-items: center; gap: .8rem; text-align: left; cursor: pointer;
  padding: .9rem 1rem; border-radius: 14px; background: var(--paper); border: 2px solid transparent;
  font-weight: 600; transition: border-color .2s, background-color .2s;
}
.picker-opt .icon { color: var(--amber-text); }
.picker-opt:hover { border-color: var(--line); }
.picker-opt[aria-checked="true"] { border-color: var(--ink); background: var(--white); }
.picker-opt small { display: block; font-weight: 400; color: var(--text-muted); font-size: .85rem; }
.picker-result { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: none; gap: 1rem; }
.picker-result.is-on { display: grid; }
.picker-result p { margin: 0; color: var(--text-muted); }
.picker-result strong { color: var(--text); }
.picker-plan { font-family: var(--font-title); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.picker-plan span { color: var(--amber-text); }
@media (min-width: 720px) {
  .picker-opts { grid-template-columns: repeat(3, 1fr); }
  .picker-result.is-on { grid-template-columns: 1fr auto; align-items: center; }
}

.feature-grid { display: grid; gap: 1rem; }
.feature {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow); position: relative;
  transition: opacity .35s, transform .35s var(--ease), box-shadow .35s;
}
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--ink); margin-bottom: 1rem; transition: background-color .3s, color .3s; }
.feature h3 { margin-bottom: .45rem; }
.feature p { color: var(--text-muted); font-size: .96rem; margin-bottom: .9rem; }
.feature-tag { font-size: .78rem; font-weight: 600; color: var(--amber-text); letter-spacing: .02em; }
.feature-art { margin: -.2rem 0 1.1rem; border-radius: 14px; background: var(--ink); padding: 1rem; display: grid; place-items: center; }
.feature-art svg { width: 100%; max-width: 280px; height: auto; }
.feature.is-dim { opacity: .38; transform: scale(.985); }
.feature.is-match { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.feature.is-match .feature-icon { background: var(--ink); color: var(--amber); }
.feature-match { position: absolute; top: 1.1rem; right: 1.1rem; display: none; }
.feature.is-match .feature-match { display: inline-flex; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature--wide { grid-column: span 1; }
}

/* ---------- Sin internet ---------- */
.offline-grid { display: grid; gap: 2.5rem; align-items: center; }
.net-demo { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2rem); }
.net-diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: .4rem; margin-bottom: 1.4rem; }
.net-node { text-align: center; font-size: .78rem; color: var(--muted-on-dark); }
.net-node .box { width: 58px; height: 58px; margin: 0 auto .5rem; border-radius: 16px; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line-dark); color: var(--text-on-dark); transition: color .3s, border-color .3s; }
.net-node--server .box { border-color: var(--amber); color: var(--amber); }
.net-link { width: clamp(20px, 6vw, 60px); height: 2px; margin-top: 29px; background: var(--amber); position: relative; transition: background-color .3s; }
.net-link--net.is-cut { background: repeating-linear-gradient(90deg, var(--muted-on-dark) 0 5px, transparent 5px 10px); }
.net-node--cloud.is-cut .box { color: var(--muted-on-dark); border-style: dashed; }
.net-status { border-radius: 14px; background: var(--ink); padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: flex-start; min-height: 96px; }
.net-status .led { width: 10px; height: 10px; border-radius: 50%; background: #50BE82; margin-top: .45rem; flex: none; box-shadow: 0 0 0 4px rgba(80, 190, 130, .18); }
.net-status.is-off .led { background: var(--amber); box-shadow: 0 0 0 4px rgba(227, 154, 44, .2); }
.net-status p { margin: 0; color: var(--text-on-dark); font-size: .95rem; }
.net-status small { display: block; color: var(--muted-on-dark); margin-top: .25rem; font-size: .85rem; }
.queue { display: inline-flex; gap: 4px; margin-left: .3rem; vertical-align: middle; }
.queue i { width: 10px; height: 13px; border-radius: 2px; background: var(--amber); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.queue i.on { opacity: 1; transform: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.switch-row label { font-weight: 600; font-size: .95rem; cursor: pointer; }
.switch {
  position: relative; width: 58px; height: 32px; border-radius: 999px; flex: none; cursor: pointer;
  background: var(--ink-3); border: 1px solid var(--line-dark);
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text-on-dark); transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--amber); }
.switch[aria-checked="true"]::after { transform: translateX(26px); background: var(--ink); }

.assure { list-style: none; display: grid; gap: 1.2rem; }
.assure li { display: flex; gap: 1rem; }
.assure .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--ink-2); color: var(--amber); border: 1px solid var(--line-dark); }
.assure h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.assure p { color: var(--muted-on-dark); font-size: .95rem; margin: 0; }
@media (min-width: 900px) { .offline-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- Casos ---------- */
.cases { display: grid; gap: 1rem; }
.case { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.case-ciclo { position: absolute; right: 1.2rem; top: 1.2rem; width: 52px; height: 52px; pointer-events: none; }
.case-num { font-family: var(--font-title); font-weight: 700; font-size: clamp(3rem, 9vw, 4.6rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.case-num small { font-size: .5em; color: var(--amber-text); margin-right: .1em; }
.case-unit { font-weight: 600; margin: .4rem 0 1rem; }
.case p { color: var(--text-muted); margin: 0; }
.cases-note { margin-top: 1.6rem; display: flex; gap: .7rem; align-items: center; color: var(--text-muted); }
.cases-note .icon { color: var(--amber-text); }
@media (min-width: 760px) { .cases { grid-template-columns: 1fr 1fr; } }

/* ---------- Planes ---------- */
.plans { display: grid; gap: 1.1rem; align-items: stretch; }
.plan {
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); background: var(--paper);
  display: flex; flex-direction: column; position: relative; transition: box-shadow .3s, transform .3s var(--ease);
}
.plan--dark { background: var(--ink); color: var(--text-on-dark); }
.plan-name { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; margin: 0 0 .2rem; }
.plan-for { color: var(--text-muted); font-size: .95rem; min-height: 3em; }
.plan--dark .plan-for { color: var(--muted-on-dark); }
.plan-price { display: flex; align-items: baseline; gap: .3rem; margin: .8rem 0 .2rem; font-family: var(--font-title); }
.plan-price strong { font-size: 2.8rem; letter-spacing: -.03em; line-height: 1; }
.plan-price span { font-size: .95rem; color: var(--text-muted); }
.plan--dark .plan-price span { color: var(--muted-on-dark); }
.plan-tax { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.3rem; }
.plan--dark .plan-tax { color: var(--muted-on-dark); }
.plan-list { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.6rem; font-size: .94rem; }
.plan-list li { display: flex; gap: .55rem; }
.plan-list .icon { width: 18px; height: 18px; color: var(--amber-text); margin-top: .2rem; }
.plan--dark .plan-list .icon { color: var(--amber); }
.plan-list .plan-base { font-weight: 600; }
.plan .btn { margin-top: auto; }
.plan-badge { position: absolute; top: 1.2rem; right: 1.2rem; display: none; }
.plan.is-recommended { box-shadow: 0 0 0 3px var(--amber); transform: translateY(-4px); }
.plan.is-recommended .plan-badge { display: inline-flex; }
.plans-notes { display: grid; gap: 1rem; margin-top: 1.6rem; }
.plans-note { display: flex; gap: .8rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--paper); font-size: .94rem; color: var(--text-muted); }
.plans-note strong { color: var(--text); }
.plans-note .icon { color: var(--amber-text); margin-top: .1rem; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .plans-notes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: paso; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); position: relative; }
.step-n { font-family: var(--font-title); font-weight: 700; color: var(--amber-text); font-size: .9rem; letter-spacing: .08em; display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.step-n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--text-muted); font-size: .96rem; margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Preguntas frecuentes ---------- */
.faq-grid { display: grid; gap: 2rem; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1.05rem; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; padding: 1.2rem 0; text-align: left; cursor: pointer;
  font-family: var(--font-title); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em;
}
.faq-q .plus { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: transform .3s var(--ease), background-color .3s; }
.faq-q .plus .icon { width: 16px; height: 16px; }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--amber); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s var(--ease), visibility .35s; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--text-muted); padding-right: 2.5rem; margin: 0 0 1.2rem; }
.faq-item.is-open .faq-a, .no-js .faq-a { grid-template-rows: 1fr; visibility: visible; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }

/* ---------- CTA final ---------- */
.cta { text-align: center; overflow: hidden; }
.cta-ciclo { position: absolute; left: 50%; top: 50%; width: min(900px, 160vw); height: auto; transform: translate(-50%, -50%); opacity: .5; pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta p { color: var(--muted-on-dark); max-width: 38rem; margin: 0 auto 2rem; font-size: 1.08rem; }
.cta-meta { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin-top: 2rem; color: var(--muted-on-dark); font-size: .93rem; }
.cta-meta li { display: inline-flex; align-items: center; gap: .45rem; }
.cta-meta .icon { width: 18px; height: 18px; color: var(--amber); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); border-top: 1px solid var(--line-dark); padding: 3rem 0 2.2rem; font-size: .93rem; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer .brand { color: var(--text-on-dark); }
.site-footer p { margin: .8rem 0 0; max-width: 28rem; }
.footer-links { list-style: none; display: grid; gap: .5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text-on-dark); text-decoration: underline; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .85rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: inline-flex; align-items: center; gap: .55rem;
  height: 56px; padding: 0 1.1rem 0 1rem; border-radius: 999px;
  background: var(--amber); color: var(--ink); text-decoration: none;
  font-family: var(--font-title); font-weight: 700; box-shadow: 0 10px 30px rgba(20, 23, 31, .35);
  transform: translateY(120%); opacity: 0; transition: transform .35s var(--ease), opacity .35s;
}
.wa-float.is-on { transform: none; opacity: 1; }
.wa-float .icon { width: 24px; height: 24px; }
.wa-float-text { display: none; }
@media (min-width: 640px) { .wa-float-text { display: inline; } .wa-float { right: 1.5rem; bottom: 1.5rem; } }

/* ---------- Páginas de texto (privacidad, 404) ---------- */
.page-hero { background: var(--ink); color: var(--text-on-dark); padding: calc(68px + 3.5rem) 0 3rem; position: relative; overflow: hidden; }
.page-hero p { color: var(--muted-on-dark); max-width: 40rem; }
.page-hero .ciclo-deco { position: absolute; right: -120px; top: 20px; width: 380px; opacity: .6; pointer-events: none; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: 2.4rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.2rem; margin-bottom: 1em; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--text); }
.placeholder { background: var(--amber-soft); color: #6E4507; padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.prose-meta { font-size: .9rem; padding: 1rem 1.2rem; background: var(--paper); border-radius: var(--radius); }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--text-on-dark); padding: 6rem var(--gutter) 3rem; position: relative; overflow: hidden; }
.notfound h1 { font-size: clamp(4rem, 18vw, 9rem); margin: 0; }
.notfound p { color: var(--muted-on-dark); }
.notfound .ciclo { position: absolute; inset: 50% auto auto 50%; width: min(700px, 150vw); height: auto; transform: translate(-50%, -50%); opacity: .55; }
.notfound > div { position: relative; z-index: 1; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.mock-big { font-size: 1.6rem; }

/* ---------- Héroe: panel del dueño en el celular ---------- */
.hero-visual--panel { aspect-ratio: auto; }
.hero-cards--panel { position: relative; inset: auto; display: flex; justify-content: flex-end; align-items: center; padding: 2.5rem 6% 2.5rem 0; }
.hero-cards--panel .phone--hero { position: relative; width: 264px; margin: 0; }
.hero-cards--panel .phone--hero .mock { position: relative; min-height: 0; font-size: .74rem; }
.hero-cards--panel .mock--arqueo { position: absolute; left: 0; top: 44%; width: 215px; transform: rotate(-3deg); }
.mock-sec { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-dark); margin: .9rem 0 .2rem; }
.mock-bar { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .5rem; align-items: center; padding: .22rem 0; font-variant-numeric: tabular-nums; }
.mock-bar i { position: relative; height: 6px; border-radius: 3px; background: rgba(244, 245, 247, .14); }
.mock-bar b { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--amber); }
.mock-alert { display: flex; gap: .5rem; align-items: flex-start; margin-top: .85rem; padding: .55rem .65rem; border-radius: 10px; background: rgba(227, 154, 44, .16); color: #F3C47A; font-weight: 600; }
.mock-alert .icon { width: 16px; height: 16px; margin-top: .05rem; }
.mock-alert small { display: block; font-weight: 400; color: var(--muted-on-dark); margin-top: .1rem; }
@media (max-width: 559px) {
  .hero-cards--panel { justify-content: center; padding: 1.5rem 0; }
  .hero-cards--panel .phone--hero { width: 250px; }
  .hero-cards--panel .mock--arqueo { display: none; }
}

/* ---------- Control: franja de acceso ---------- */
.access-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.6rem; }
.access-list li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--paper); color: var(--text-muted); font-size: .95rem; }
.access-list strong { color: var(--text); }
.access-list .ic { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--amber); }
#control .feature { background: var(--paper); box-shadow: none; }
#control .feature-icon { background: var(--ink); color: var(--amber); }
@media (min-width: 860px) { .access-list { grid-template-columns: repeat(3, 1fr); } }
