/* ═══ DESIGN TOKENS ═══ */
:root {
  color-scheme: only dark;
  --slate:     #0F0F12;
  --slate-1:   #141418;
  --slate-2:   #1A1A22;
  --slate-3:   #222230;
  --sky:       #63CFEC;
  --sky-dim:   rgba(99,207,236,.07);
  --sky-brd:   rgba(99,207,236,.28);
  --sky-glow:  rgba(99,207,236,.12);
  --white:     #FAFAF8;
  --muted:     #B0B0C0;
  --dim:       #8A8A9E;
  --ff:        'DM Sans', sans-serif;
  --mono:      'DM Mono', monospace;
  --ease:      cubic-bezier(.22,1,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --grid-dot:  rgba(99,207,236,.035);
  --border:    rgba(255,255,255,.04);
  --border-hi: rgba(255,255,255,.10);
  --gutter:    clamp(20px, 4vw, 48px);
  --grad-dark: linear-gradient(158deg, #0F0F12 0%, #13131E 100%);
}

/* ═══ RESET & BODY ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:visited { color: inherit; }
a.btn-p, a.btn-p:visited { color: var(--slate); }
a.btn-s, a.btn-s:visited { color: var(--sky); }
a.nav-cta, a.nav-cta:visited { color: var(--slate); }
a.nav-login, a.nav-login:visited { color: var(--sky); }
a.bn-cta, a.bn-cta:visited { color: var(--slate); }
html { scroll-behavior: smooth; }
body {
  background: var(--slate);
  color: var(--white);
  font-family: var(--ff);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
  opacity: .3;
}

/* ═══ UTILITY ═══ */
.label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sky);
  display: inline-flex; align-items: center; gap: 8px;
}
.label::before {
  content: ''; width: 6px; height: 6px;
  background: var(--sky); box-shadow: 0 0 8px var(--sky-glow);
  border-radius: 50%; flex-shrink: 0;
}
.mt-section { margin-top: 16px; }

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px; display: flex; align-items: center;
  background: rgba(15,15,18,.2);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--border);
  transition: background .4s, border-color .4s;
}
nav.has-feed { top: 28px; }
nav.scrolled { background: rgba(15,15,18,.94); border-bottom-color: rgba(99,207,236,.06); }
.nav-w {
  max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-mark { display: flex; align-items: center; text-decoration: none; color: var(--white); }
.nav-logo { height: 22px; width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--ff); font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--dim); text-decoration: none;
  transition: color .25s; padding: 4px 0;
}
.nav-links a::before { content: '[ '; opacity: 0; color: var(--sky); transition: opacity .2s; }
.nav-links a::after  { content: ' ]'; opacity: 0; color: var(--sky); transition: opacity .2s; }
@media (hover: hover) {
  .nav-links a:hover { color: var(--white); }
  .nav-links a:hover::before, .nav-links a:hover::after { opacity: 1; }
}
.nav-links a.active { color: var(--white); }
.nav-links a.active::before, .nav-links a.active::after { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); background: var(--sky);
  padding: 8px 20px; text-decoration: none;
  transition: all .3s var(--ease);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
@media (hover: hover) { .nav-cta:hover { background: var(--white); color: var(--slate); box-shadow: 0 0 20px var(--sky-glow); } }
.nav-login {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); text-decoration: none;
  padding: 8px 16px; box-shadow: inset 0 0 0 1px var(--sky-brd);
  transition: all .3s var(--ease);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
@media (hover: hover) { .nav-login:hover { background: var(--sky-dim); box-shadow: inset 0 0 0 1px var(--sky); } }

/* ═══ BUTTONS ═══ */
.btn-p {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; background: var(--sky); color: var(--slate);
  font-family: var(--ff); font-size: 14px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; transition: all .3s var(--ease);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
@media (hover: hover) { .btn-p:hover { background: var(--white); color: var(--slate); box-shadow: 0 0 28px var(--sky-glow); } }
.btn-s {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; background: transparent; color: var(--sky);
  font-family: var(--ff); font-size: 14px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; box-shadow: inset 0 0 0 1px var(--sky-brd);
  transition: all .3s var(--ease);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
@media (hover: hover) { .btn-s:hover { background: var(--sky-dim); box-shadow: inset 0 0 0 1px var(--sky); } }

/* ═══ SECTION DIVIDERS ═══ */
.section-div {
  display: flex; align-items: center; gap: 16px;
  padding: 12px var(--gutter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--slate-1);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim);
  max-width: 100%; overflow: hidden;
}
.section-div .div-line {
  flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, var(--dim) 0px, var(--dim) 2px, transparent 2px, transparent 6px);
  opacity: .2;
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.section-div.active .div-line { transform: scaleX(1); }
.section-div .div-dot { width: 4px; height: 4px; background: var(--sky); opacity: .4; flex-shrink: 0; }

/* ═══ FOOTER ═══ */
footer { padding: 16px var(--gutter); position: relative; border-top: 1px solid var(--border); }
footer::before {
  content: ''; position: absolute; top: -1px; left: var(--gutter);
  width: 44px; height: 3px; background: var(--sky); border-radius: 2px;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-copy { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--dim); text-decoration: none; transition: color .2s; }
@media (hover: hover) { .footer-links a:hover { color: var(--sky); } }
.footer-email { font-family: var(--mono); font-size: 11px; color: var(--dim); text-decoration: none; transition: color .2s; }
@media (hover: hover) { .footer-email:hover { color: var(--sky); } }

/* ═══ BOTTOM NAV (mobile only) ═══ */
.bottom-nav { display: none; }

/* ═══ FAQ (shared) ═══ */
.faq { padding: 100px var(--gutter); }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 48px; }
.faq-head h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; letter-spacing: -.04em; line-height: .92; }
.faq-head .sub { font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.faq-list { display: flex; flex-direction: column; border: 1px solid var(--border); }
details.faq-item { border-bottom: 1px solid var(--border); }
details.faq-item:last-child { border-bottom: none; }
details.faq-item summary {
  padding: 20px 24px; cursor: pointer;
  font-size: 15px; font-weight: 500; line-height: 1.4;
  list-style: none; display: flex; justify-content: space-between; align-items: flex-start;
  transition: color .2s; gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) { details.faq-item summary:hover { color: var(--sky); } }
.faq-toggle { font-family: var(--mono); font-size: 11px; color: var(--sky); flex-shrink: 0; transition: transform .3s var(--ease); }
details[open] .faq-toggle { transform: rotate(45deg); }
details.faq-item summary .ei { transition: transform .3s var(--ease); }
details[open] summary .ei { transform: rotate(180deg); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
details[open] .faq-body { grid-template-rows: 1fr; }
details.faq-closing .faq-body { grid-template-rows: 0fr; }
.faq-body > div { overflow: hidden; }
.faq-body > div > p { padding: 0 24px 20px; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.7; }

/* ═══ CTA BOTTOM (shared) ═══ */
.cta-bottom { padding: 80px var(--gutter); text-align: center; border-top: 1px solid var(--border); }
.cta-bottom h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 16px; }
.cta-bottom p { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.cta-bottom .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══ REVEAL ═══ */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.rv.vis { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: .12s; }
.rv-d2 { transition-delay: .24s; }
.rv-d3 { transition-delay: .36s; }

/* ═══ SHARED LAYOUT ═══ */
.inner { max-width: 1080px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h1, .section-head h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; letter-spacing: -.04em; line-height: .92; }
.section-head .sub { font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 14px; line-height: 1.6; }

/* ═══ RESPONSIVE SHARED ═══ */
@media (max-width: 768px) {
  .btn-p, .btn-s { font-size: 13px; padding: 12px 24px; }
  .cta-bottom { padding: 60px var(--gutter); }
  .cta-bottom h2 { font-size: clamp(20px, 5vw, 30px); }
  .faq { padding: 60px var(--gutter); }
  .faq-inner { max-width: 100%; }
}
@media (max-width: 600px) {
  /* ─ Body: space for fixed bottom nav ─ */
  body { padding-bottom: 56px; }

  /* ─ Header: minimal — logo + login link only ─ */
  nav { top: 0 !important; height: 44px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-login {
    display: inline-flex; font-size: 10px; padding: 4px 0;
    box-shadow: none; clip-path: none; color: var(--sky);
    letter-spacing: .1em;
  }
  @media (hover: hover) { .nav-login:hover { background: none; } }

  /* ─ Bottom tab nav ─ */
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 200; height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--slate);
    border-top: 1px solid rgba(99,207,236,.08);
  }
  .bn-item {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 9px; font-weight: 500;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--dim); text-decoration: none; height: 100%;
    border-right: 1px solid var(--border);
    transition: color .2s; position: relative;
  }
  .bn-item:last-child { border-right: none; }
  .bn-item.active { color: var(--sky); }
  .bn-item.active::after {
    content: ''; position: absolute; top: 0; left: 20%; right: 20%;
    height: 2px; background: var(--sky);
  }
  .bn-item.bn-cta {
    background: var(--sky); color: var(--slate);
    font-weight: 500;
  }
  .bn-cta::after { display: none !important; }
  .bn-cta.active { background: var(--sky); }

  /* ─ Footer: ultra-minimal ─ */
  footer { padding: 12px var(--gutter); }
  .footer-inner { justify-content: center; gap: 8px; }
  .footer-links { display: none; }
  .footer-email { display: none; }

  /* ─ Section dividers ─ */
  .section-div { display: none; }

  /* ─ Buttons ─ */
  .btn-p, .btn-s { font-size: 13px; padding: 12px 20px; width: 100%; text-align: center; }

  /* ─ CTA bottom ─ */
  .cta-bottom { padding: 48px var(--gutter); }
  .cta-bottom h2 { font-size: 22px; }
  .cta-bottom p { font-size: 13px; margin-bottom: 24px; }
  .cta-bottom .cta-btns { flex-direction: column; gap: 10px; }

  /* ─ Section head ─ */
  .section-head h1, .section-head h2 { font-size: 22px; }
  .section-head .sub { font-size: 13px; }
  .section-head { margin-bottom: 32px; }

  /* ─ FAQ ─ */
  .faq { padding: 48px var(--gutter); }
  .faq-inner { max-width: 100%; }
  .faq-head h2 { font-size: 22px; }
  details.faq-item summary { padding: 16px 16px; font-size: 14px; }
  .faq-body > div > p { padding: 0 16px 16px; font-size: 13px; }

}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══ ENMA ICONS ═══ */
.ei { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ei svg { width: 100%; height: 100%; display: block; }

/* ─ Per-icon hover animations ─ */
.ei-sync svg { transition: transform .4s var(--ease); }
.ei-sync:hover svg { transform: rotate(-360deg); }
.ei-sync.active svg { animation: ei-spin 1s linear infinite; }

.ei-config svg { transition: transform .5s var(--ease); }
.ei-config:hover svg { transform: rotate(90deg); }
.ei-config.active svg { animation: ei-spin 2s linear infinite; }

.ei-bell svg { transition: transform .3s var(--ease); transform-origin: 50% 4px; }
.ei-bell:hover svg { animation: ei-ring .5s var(--ease); }

.ei-check svg { transition: color .3s var(--ease); }
.ei-check:hover svg { color: var(--sky); }
.ei-check polyline { stroke-dasharray: 24; stroke-dashoffset: 24; animation: ei-draw .5s var(--ease) forwards; }

.ei-chart rect:not(:first-child) { transform-origin: bottom; transition: transform .4s var(--ease); }
.ei-chart:hover rect:nth-child(2) { transform: scaleY(1.08); }
.ei-chart:hover rect:nth-child(3) { transform: scaleY(1.12); }
.ei-chart:hover rect:nth-child(4) { transform: scaleY(1.06); }

.ei-eye svg { transition: transform .3s var(--ease); }
.ei-eye:hover svg { animation: ei-blink .4s var(--ease); }

.ei-alert svg { transition: transform .3s var(--ease); }
.ei-alert:hover svg { animation: ei-shake .4s var(--ease); }

.ei-truck svg { transition: transform .4s var(--ease); }
.ei-truck:hover svg { transform: translateX(2px); }

.ei-package svg { transition: transform .3s var(--ease); }
.ei-package:hover svg { transform: translateY(-2px); }

.ei-lock svg { transition: transform .3s var(--ease); }
.ei-lock path:last-of-type { transition: transform .3s var(--ease); transform-origin: center bottom; }
.ei-lock:hover path:last-of-type { transform: translateY(-2px); }

.ei-user svg { transition: transform .3s var(--ease); }
.ei-user:hover svg { transform: translateY(-1px); }

.ei-search svg { transition: transform .3s var(--ease); }
.ei-search:hover svg { transform: rotate(-15deg) scale(1.05); }

.ei-download svg { transition: transform .3s var(--ease); }
.ei-download:hover svg { animation: ei-bounce-down .4s var(--ease); }

.ei-upload svg { transition: transform .3s var(--ease); }
.ei-upload:hover svg { animation: ei-bounce-up .4s var(--ease); }

.ei-ayuda svg { transition: transform .3s var(--ease); }
.ei-ayuda:hover svg { animation: ei-wobble .4s var(--ease); }

.ei-grid svg { transition: color .3s var(--ease); }
.ei-grid:hover svg { color: var(--sky); }

.ei-pedidos svg { transition: transform .3s var(--ease); }
.ei-pedidos:hover svg { animation: ei-pulse .5s var(--ease); }

.ei-scroll svg { transition: transform .3s var(--ease); }
.ei-scroll:hover svg { transform: translateY(-1px); }

.ei-calendar svg { transition: color .3s var(--ease); }
.ei-calendar:hover svg { color: var(--sky); }

.ei-add svg { transition: transform .3s var(--ease); }
.ei-add:hover svg { transform: rotate(90deg); }

.ei-close svg { transition: transform .3s var(--ease); }
.ei-close:hover svg { transform: rotate(90deg); }

.ei-edit svg { transition: transform .3s var(--ease); }
.ei-edit:hover svg { transform: rotate(-12deg); }

.ei-trash svg { transition: transform .3s var(--ease); }
.ei-trash:hover svg { animation: ei-shake .3s var(--ease); }

.ei-external-link svg { transition: transform .3s var(--ease); }
.ei-external-link:hover svg { transform: translate(1px, -1px); }

.ei-arrow-right svg { transition: transform .3s var(--ease); }
.ei-arrow-right:hover svg { transform: translateX(3px); }

.ei-arrow-left svg { transition: transform .3s var(--ease); }
.ei-arrow-left:hover svg { transform: translateX(-3px); }

.ei-link svg { transition: transform .3s var(--ease); }
.ei-link:hover svg { transform: rotate(15deg); }

.ei-filter svg { transition: color .3s var(--ease); }
.ei-filter:hover svg { color: var(--sky); }

.ei-logout svg { transition: transform .3s var(--ease); }
.ei-logout:hover svg { transform: translateX(3px); }

/* ─ Keyframes ─ */
@keyframes ei-spin { to { transform: rotate(-360deg); } }
@keyframes ei-ring { 20% { transform: rotate(12deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes ei-draw { to { stroke-dashoffset: 0; } }
@keyframes ei-blink { 40% { transform: scaleY(.1); } 60% { transform: scaleY(.1); } 100% { transform: scaleY(1); } }
@keyframes ei-shake { 20% { transform: translateX(-2px); } 40% { transform: translateX(2px); } 60% { transform: translateX(-1px); } 80% { transform: translateX(1px); } 100% { transform: translateX(0); } }
@keyframes ei-bounce-down { 50% { transform: translateY(3px); } 100% { transform: translateY(0); } }
@keyframes ei-bounce-up { 50% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
@keyframes ei-wobble { 25% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes ei-pulse { 50% { opacity: .5; } 100% { opacity: 1; } }

/* ═══ LIVE FEED ═══ */
.live-feed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 28px; background: rgba(15,15,18,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: center;
}
.feed-track { display: flex; white-space: nowrap; animation: feed-scroll 180s linear infinite; will-change: transform; }
@keyframes feed-scroll { to { transform: translateX(-50%); } }
.feed-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 24px; height: 28px; flex-shrink: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  border-right: 1px solid var(--border);
}
.feed-dot { width: 4px; height: 4px; border-radius: 0; flex-shrink: 0; }
.feed-dot.ok { background: var(--sky); box-shadow: 0 0 6px var(--sky-glow); }
.feed-dot.warn { background: var(--muted); }
.feed-type { color: var(--dim); }
.feed-val { color: var(--muted); }
.feed-src { color: var(--dim); opacity: .4; }
@media (max-width: 600px) { .live-feed { display: none; } }

