/* =========================================================================
   NOXTIUM · style.css
   -------------------------------------------------------------------------
   Guía rápida para un desarrollador junior:
   - Todas las variables de marca (colores, tipografías, espaciados) están
     definidas arriba, en :root. Si necesitas cambiar un color en todo el
     sitio, cámbialo ahí y se actualiza en todas partes.
   - El archivo está dividido por secciones con comentarios en MAYÚSCULAS.
   ========================================================================= */

:root {
  /* Paleta de marca (tomada del manual corporativo de NOXTIUM) */
  --color-bg: #0A0A0A;            /* negro oscuro: fondo principal */
  --color-bg-elevated: #121216;    /* un poco más claro, para tarjetas/secciones */
  --color-accent: #00C2FF;         /* celeste principal: CTA, acentos, enlaces */
  --color-accent-light: #8AE7FF;   /* celeste claro: apoyos, degradados */
  --color-border: #262629;         /* derivado del gris de marca, para bordes sutiles */
  --color-text: #F5F6F7;           /* texto principal sobre fondo oscuro */
  --color-text-muted: #A6A8AD;     /* texto secundario */
  --color-white: #FFFFFF;

  /* Tipografía */
  --font-heading: 'Exo 2', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius: 10px;
  --nav-height: 76px;
}

/* =========================== RESET BÁSICO =========================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.2;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; color: var(--color-text-muted); }

a {
  color: var(--color-accent);
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Foco visible para accesibilidad de teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

/* =========================== BOTONES =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #041016;
}
.btn--primary:hover { background: var(--color-accent-light); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent-light); }

.btn--lg { padding: 14px 28px; font-size: 1rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* =========================== NAVBAR =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-right: auto;
}
.navbar__logo { width: 28px; height: 28px; }

.navbar__links {
  display: flex;
  gap: 28px;
}
.navbar__links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.navbar__links a:hover { color: var(--color-white); }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navbar__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-white);
  display: block;
}

/* =========================== FLASH MESSAGES =========================== */
.flash-container {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 0 24px;
}
.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.flash--success {
  background: rgba(0, 194, 255, 0.12);
  border: 1px solid var(--color-accent);
  color: var(--color-accent-light);
}
.flash--error {
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid #ff5a5a;
  color: #ff9b9b;
}

/* =========================== HERO =========================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 130px;
}

.hero__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__kicker {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 20px;
}

.hero__subtitle {
  max-width: 46ch;
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================== SOBRE NOSOTROS =========================== */
.about {
  padding: 100px 24px;
  border-top: 1px solid var(--color-border);
}

.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about__intro { max-width: 62ch; margin-bottom: 56px; }
.about__intro h2 { font-size: 2rem; }

.about__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.pillar {
  padding-left: 20px;
  border-left: 2px solid var(--color-border);
}
.pillar__mark {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-bottom: 14px;
  margin-left: -25px;
}
.pillar h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar p { margin-bottom: 0; font-size: 0.95rem; }

/* Flujo modular: representa la arquitectura real de módulos conectados */
.modules__title {
  font-size: 1.4rem;
  margin-bottom: 32px;
}

.modules__flow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
}

.module-node {
  flex: 1 1 auto;
  min-width: 140px;
  text-align: center;
  padding: 18px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-elevated);
  position: relative;
}
.module-node span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
}
.module-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-border));
  z-index: 1;
}

.modules__note {
  margin-top: 28px;
  font-size: 0.95rem;
  max-width: 55ch;
}

/* =========================== CONTACTO =========================== */
.contact {
  padding: 100px 24px 120px;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__text h2 { font-size: 2rem; }
.contact__text p { max-width: 42ch; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 14px;
}
.contact__form label:first-child { margin-top: 0; }

.contact__form input,
.contact__form textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--color-accent);
}

.contact__form button { margin-top: 24px; align-self: flex-start; }

/* =========================== PÁGINAS SIMPLES (login / soporte) ======== */
.simple-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.simple-page__card {
  max-width: 480px;
  width: 100%;
  text-align: left;
}

.simple-page__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}
.simple-page__form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.simple-page__form input {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--color-text);
}

.simple-page__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.simple-page__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.simple-page__back {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.simple-page__back:hover { color: var(--color-accent); }

/* =========================== FOOTER =========================== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 24px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer__brand { max-width: 32ch; }
.footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  font-size: 1.1rem;
}
.footer__brand p { font-size: 0.9rem; margin-top: 10px; }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.footer__col a, .footer__col span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.footer__col a:hover { color: var(--color-accent); }

.footer__bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 860px) {
  .about__pillars { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .module-node:not(:last-child)::after { display: none; }
  .modules__flow { flex-direction: column; align-items: stretch; }
}

@media (max-width: 720px) {
  .navbar__links, .navbar__actions { display: none; }
  .navbar__toggle { display: flex; }

  .navbar.is-open .navbar__links,
  .navbar.is-open .navbar__actions {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 20px 24px;
  }
  .navbar.is-open .navbar__actions { top: calc(var(--nav-height) + 168px); }

  .hero { padding: 80px 20px 90px; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* =========================== PORTAL NOXTIUM =========================== */
.brand-mark{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--color-accent);border-radius:8px;color:var(--color-accent);font-family:var(--font-heading);font-weight:700;box-shadow:0 0 18px rgba(0,194,255,.12)}
.account-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid var(--color-border);border-radius:999px;color:var(--color-text-muted);font-size:.78rem}.status-dot{width:7px;height:7px;border-radius:50%;background:#00d084;display:inline-block;box-shadow:0 0 10px rgba(0,208,132,.55)}
.eyebrow{font-size:.72rem;letter-spacing:.16em;color:var(--color-accent);font-weight:700;margin-bottom:10px}.hero-glow{position:absolute;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,rgba(0,194,255,.13),transparent 65%);right:-160px;top:-180px;pointer-events:none}
.public-service{padding:40px 24px 100px}.public-service__card{max-width:var(--max-width);margin:auto;padding:34px;border:1px solid rgba(0,194,255,.25);background:linear-gradient(135deg,#0e151d,#0d0f15);border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:30px;box-shadow:0 18px 60px rgba(0,0,0,.2)}
.dashboard-shell,.service-detail,.payment-page{max-width:1180px;margin:0 auto;padding:50px 24px 100px}.dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:28px}.dashboard-head h1{font-size:2.35rem}.account-state{display:flex;align-items:center;gap:9px;border:1px solid var(--color-border);padding:10px 14px;border-radius:999px;font-size:.8rem}.state-pending .status-dot{background:#ffb020;box-shadow:0 0 10px rgba(255,176,32,.45)}
.notice-card{display:flex;align-items:center;gap:16px;padding:18px 20px;border:1px solid var(--color-border);border-radius:14px;background:#0d1017;margin-bottom:28px}.notice-card>div:nth-child(2){flex:1}.notice-card p{margin:4px 0 0;font-size:.84rem}.notice-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:rgba(0,194,255,.1);color:var(--color-accent);font-weight:700}.notice-card--warning{border-color:rgba(255,176,32,.35)}.notice-card--warning .notice-icon{color:#ffb020;background:rgba(255,176,32,.1)}
.hero-service-card{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:30px;border:1px solid rgba(0,194,255,.28);background:linear-gradient(135deg,rgba(0,194,255,.09),#10131b);border-radius:16px;margin-bottom:28px}.hero-service-card h2{margin:10px 0 8px}.hero-service-card p{max-width:650px}.service-badge{display:inline-block;font-size:.64rem;letter-spacing:.12em;color:#051018;background:var(--color-accent);padding:5px 8px;border-radius:999px;font-weight:800}.service-card-actions{text-align:right}.price{display:block;font-family:var(--font-heading);font-size:1.5rem;font-weight:700;margin-bottom:14px}.price small{font-family:var(--font-body);font-size:.7rem;color:var(--color-text-muted);font-weight:500}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:50px 0 18px}.section-heading h2{margin:0}.section-heading>span{font-size:.8rem;color:var(--color-text-muted)}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.service-card{position:relative;padding:24px;border:1px solid var(--color-border);background:var(--color-bg-elevated);border-radius:14px;min-height:300px;display:flex;flex-direction:column}.service-card--featured{border-color:rgba(0,194,255,.4);box-shadow:0 20px 50px rgba(0,194,255,.06)}.featured-label{position:absolute;right:14px;top:14px;font-size:.58rem;letter-spacing:.1em;color:var(--color-accent);border:1px solid rgba(0,194,255,.35);padding:5px 7px;border-radius:999px}.service-icon{font-size:1.8rem;width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:rgba(0,194,255,.08);border:1px solid rgba(0,194,255,.18);margin-bottom:18px}.service-card h3{font-size:1.2rem}.service-card p{font-size:.84rem}.service-card ul{list-style:none;padding:0;margin:8px 0 20px;color:var(--color-text-muted);font-size:.76rem;line-height:1.9}.service-card .full{margin-top:auto}.full{width:100%}
.whatsapp-module{display:flex;align-items:center;gap:18px;padding:24px;border:1px dashed rgba(0,194,255,.3);border-radius:14px;background:#0b1015}.whatsapp-module.is-connected{border-style:solid}.wa-symbol{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:rgba(0,208,132,.1);color:#00d084;font-size:1.5rem}.wa-content{flex:1}.wa-content h3{margin-bottom:4px}.wa-content p{margin:0;font-size:.8rem}.locked{font-size:.75rem;color:var(--color-text-muted);padding:9px 12px;border:1px solid var(--color-border);border-radius:999px}
.auth-page,.locked-page{min-height:calc(100vh - var(--nav-height));display:grid;place-items:center;padding:70px 24px}.auth-card,.locked-card{width:min(500px,100%);padding:34px;border:1px solid var(--color-border);background:linear-gradient(145deg,#10131b,#0b0d12);border-radius:18px;box-shadow:0 25px 80px rgba(0,0,0,.3)}.auth-card h1,.locked-card h1{font-size:2rem}.auth-form{display:flex;flex-direction:column;gap:7px;margin-top:24px}.auth-form label{font-size:.75rem;color:var(--color-text-muted);font-weight:600;margin-top:10px}.auth-form input{background:#080a0f;border:1px solid var(--color-border);border-radius:9px;padding:13px;color:var(--color-text);font:inherit}.auth-form input:focus{border-color:var(--color-accent);outline:none}.auth-foot{font-size:.78rem;margin:20px 0 0}.lock-icon,.payment-icon{font-size:2rem;margin-bottom:16px}.locked-card{text-align:center}.locked-card .simple-page__back{display:block}
.service-detail{padding-top:65px}.detail-hero{display:flex;gap:22px;align-items:center;padding:28px;border:1px solid rgba(0,194,255,.25);background:linear-gradient(135deg,rgba(0,194,255,.08),#10131b);border-radius:18px}.service-icon--large{width:70px;height:70px;font-size:2.3rem;flex:none}.detail-hero h1{font-size:2.5rem;margin-bottom:8px}.detail-grid{display:grid;grid-template-columns:1.4fr .7fr;gap:25px;margin-top:25px}.detail-copy,.plan-box{padding:28px;border:1px solid var(--color-border);background:var(--color-bg-elevated);border-radius:16px}.feature-list{margin-top:22px;display:grid;gap:11px}.feature-list div{padding:12px;border-bottom:1px solid var(--color-border);font-size:.86rem}.feature-list span{color:var(--color-accent);margin-right:8px}.plan-box{align-self:start}.plan-box h2{font-size:2.2rem;margin:18px 0 0}.plan-box>p{font-size:.75rem}.plan-box small{display:block;margin-top:15px;color:var(--color-text-muted);font-size:.68rem;line-height:1.5}
.payment-card{max-width:700px;margin:auto;padding:36px;border:1px solid rgba(0,194,255,.25);background:linear-gradient(145deg,#10141c,#0a0c11);border-radius:18px}.payment-card>h1{font-size:2.2rem}.payment-summary{display:flex;justify-content:space-between;align-items:center;padding:18px;border:1px solid var(--color-border);border-radius:12px;margin:24px 0;font-size:.9rem}.payment-summary strong{font-family:var(--font-heading);font-size:1.5rem}.payment-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:24px 0}.payment-steps>div{font-size:.65rem;color:var(--color-text-muted);padding:10px;border:1px solid var(--color-border);border-radius:8px}.payment-steps span{display:block;margin-bottom:5px;color:var(--color-text)}.payment-steps .done{border-color:rgba(0,208,132,.35)}.payment-steps .done span{color:#00d084}.payment-steps .current{border-color:rgba(0,194,255,.4);color:var(--color-accent)}.payment-provider,.dev-payment{padding:20px;border-radius:12px;border:1px solid var(--color-border);margin-top:16px}.payment-provider h3{margin-bottom:7px}.payment-provider p,.dev-payment p{font-size:.75rem}.dev-payment{border-style:dashed}.dev-payment strong{font-size:.75rem;color:#ffb020}
@media(max-width:900px){.service-grid{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}.hero-service-card{align-items:flex-start;flex-direction:column}.service-card-actions{text-align:left}.public-service__card{flex-direction:column;align-items:flex-start}.payment-steps{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.dashboard-head{align-items:flex-start;flex-direction:column}.service-grid{grid-template-columns:1fr}.notice-card,.whatsapp-module{align-items:flex-start;flex-wrap:wrap}.notice-card .btn,.whatsapp-module .btn{width:100%}.detail-hero{align-items:flex-start;flex-direction:column}.payment-card{padding:24px}.navbar__links,.navbar__actions{display:none}.navbar__toggle{display:flex}.account-pill{display:none}}


/* ================= AGENTE: ASISTENTE GUIADO ================= */
.agent-wizard-intro { margin: 22px 0 18px; }
.agent-progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 18px; }
.agent-progress__step { display:flex; align-items:center; gap:12px; min-width:0; padding:14px 16px; border:1px solid var(--color-border); border-radius:14px; background:var(--color-bg-elevated); opacity:.72; transition:border-color .2s, opacity .2s, background .2s; }
.agent-progress__step > span { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; border:1px solid var(--color-border); border-radius:50%; color:var(--color-text-muted); font-weight:700; }
.agent-progress__step strong,.agent-progress__step small { display:block; }
.agent-progress__step strong { color:var(--color-text); font-size:.9rem; }
.agent-progress__step small { color:var(--color-text-muted); font-size:.78rem; }
.agent-progress__step.is-current { opacity:1; border-color:var(--color-accent); background:rgba(0,194,255,.08); }
.agent-progress__step.is-current > span,.agent-progress__step.is-done > span { border-color:var(--color-accent); background:var(--color-accent); color:#041016; }
.agent-progress__step.is-done { opacity:1; }
.agent-wizard-hint { padding:14px 16px; border-left:3px solid var(--color-accent); border-radius:0 10px 10px 0; background:var(--color-bg-elevated); font-size:.92rem; }
.agent-wizard-panel[hidden] { display:none !important; }
.agent-wizard-panel { animation:agent-step-in .22s ease-out; }
.agent-wizard-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.agent-wizard-step-label { margin-right:auto; color:var(--color-text-muted); font-size:.88rem; }
.agent-form .agent-panel { scroll-margin-top:100px; }
.agent-form input:focus,.agent-form select:focus,.agent-form textarea:focus { outline:2px solid rgba(0,194,255,.25); outline-offset:1px; border-color:var(--color-accent); }
.agent-connect-panel,.agent-launch { margin-top:22px; }
.agent-launch { border:1px solid rgba(0,194,255,.4); background:linear-gradient(135deg,rgba(0,194,255,.09),rgba(18,18,22,.95)); border-radius:16px; padding:24px; }
.agent-launch h2 { margin-top:10px; }
@keyframes agent-step-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:700px) {
 .agent-progress { grid-template-columns:1fr; gap:8px; }
 .agent-progress__step { padding:10px 12px; }
 .agent-wizard-actions .btn { flex:1 1 auto; }
 .agent-wizard-step-label { flex-basis:100%; }
}


/* ================= NOXTIUM: MANIFIESTO Y CATALOGO ================= */
.hero--nox{min-height:640px;display:flex;align-items:center;position:relative;overflow:hidden;padding-top:90px;padding-bottom:90px}.hero--nox .hero__content{max-width:820px;position:relative;z-index:2}.hero--nox .hero__title span{color:var(--color-accent)}.hero-proof{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:28px;color:var(--color-text-muted);font-size:.75rem}.hero-side-note{position:absolute;right:8%;top:27%;width:230px;display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--color-accent);font-size:.7rem;letter-spacing:.16em;text-align:center}.hero-side-note__orb{display:grid;place-items:center;width:132px;height:132px;border:1px solid rgba(0,194,255,.5);border-radius:38px;font-family:var(--font-heading);font-size:4.3rem;color:#eafaff;background:linear-gradient(145deg,rgba(0,194,255,.18),rgba(0,194,255,.015));box-shadow:0 0 90px rgba(0,194,255,.12);transform:rotate(-8deg)}.hero-side-note small{max-width:190px;line-height:1.6;color:var(--color-text-muted);letter-spacing:0}.manifesto{display:grid;grid-template-columns:.7fr 1.3fr;gap:55px;max-width:var(--max-width);margin:0 auto;padding:88px 24px;border-top:1px solid var(--color-border)}.manifesto__tag{color:var(--color-accent);font-size:.72rem;font-weight:800;letter-spacing:.16em}.manifesto__body h2{font-family:var(--font-heading);font-size:clamp(2rem,4vw,3.5rem);line-height:1.12;margin-bottom:22px}.manifesto__body h2 span{color:var(--color-accent)}.manifesto__body p{max-width:760px;color:var(--color-text-muted);line-height:1.9}.catalog-section,.how-section{max-width:var(--max-width);margin:0 auto;padding:70px 24px}.section-heading--intro{margin-top:0;align-items:end}.section-heading--intro h2{font-size:clamp(1.8rem,3vw,2.6rem);margin-bottom:8px}.section-heading--intro p{color:var(--color-text-muted);max-width:650px;margin:0}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:30px}.product-card{display:flex;flex-direction:column;min-height:440px;padding:27px;border:1px solid var(--color-border);border-radius:18px;background:linear-gradient(160deg,var(--color-bg-elevated),rgba(11,15,22,.9));transition:transform .2s,border-color .2s}.product-card:hover{transform:translateY(-4px);border-color:rgba(0,194,255,.45)}.product-card--crm{background:radial-gradient(circle at 90% 0,rgba(0,194,255,.11),transparent 42%),var(--color-bg-elevated)}.product-card--inventory{background:radial-gradient(circle at 90% 0,rgba(80,220,160,.09),transparent 42%),var(--color-bg-elevated)}.product-card--restaurant{background:radial-gradient(circle at 90% 0,rgba(255,166,77,.1),transparent 42%),var(--color-bg-elevated)}.product-card__top{display:flex;align-items:center;justify-content:space-between;gap:10px}.product-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:rgba(0,194,255,.1);color:var(--color-accent);font-size:1.7rem}.product-tag{font-size:.58rem;letter-spacing:.12em;color:var(--color-text-muted);text-align:right}.product-card__index{font-size:.65rem;letter-spacing:.14em;color:var(--color-accent);margin:26px 0 8px}.product-card h3{font-family:var(--font-heading);font-size:1.45rem;line-height:1.25}.product-card>p:not(.product-card__index){font-size:.85rem;color:var(--color-text-muted);line-height:1.8}.product-card ul{padding-left:18px;margin:12px 0 24px;color:var(--color-text-muted);font-size:.8rem;line-height:2}.product-card__bottom{display:flex;flex-direction:column;gap:16px;margin-top:auto;padding-top:18px;border-top:1px solid var(--color-border)}.product-card__bottom>span{font-size:.68rem;color:var(--color-text-muted)}.text-link{display:flex;justify-content:space-between;align-items:center;color:var(--color-accent);font-weight:800;font-size:.85rem}.text-link span{font-size:1.2rem}.catalog-note{margin-top:22px;padding:16px 18px;border-left:3px solid var(--color-accent);background:var(--color-bg-elevated);color:var(--color-text-muted);font-size:.8rem;line-height:1.8}.idea-section{position:relative;overflow:hidden;padding:95px 24px;background:linear-gradient(120deg,#0c1118,#0a111a 60%,#10131b);border-top:1px solid rgba(0,194,255,.2);border-bottom:1px solid rgba(0,194,255,.2)}.idea-section__content{position:relative;z-index:1;max-width:900px;margin:auto}.idea-section h2{font-family:var(--font-heading);font-size:clamp(2.2rem,4.5vw,3.8rem);line-height:1.12;margin:14px 0 20px}.idea-section__content>p{max-width:780px;color:var(--color-text-muted);line-height:1.9}.idea-orbit{position:absolute;border:1px solid rgba(0,194,255,.13);border-radius:50%;pointer-events:none}.idea-orbit--one{width:540px;height:540px;right:-150px;top:-220px}.idea-orbit--two{width:360px;height:360px;right:-60px;top:-130px}.idea-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:32px 0}.idea-steps>div{padding:16px;border:1px solid var(--color-border);border-radius:12px;background:rgba(255,255,255,.02)}.idea-steps b{display:block;color:var(--color-accent);font-size:.72rem;margin-bottom:8px}.idea-steps span{font-size:.8rem}.idea-footnote{font-size:.72rem!important;margin-top:20px}.how-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.how-grid article{padding:22px;border-top:1px solid rgba(0,194,255,.35);background:var(--color-bg-elevated)}.how-grid article>span{color:var(--color-accent);font-size:.75rem;font-weight:800}.how-grid h3{margin:18px 0 8px}.how-grid p{font-size:.8rem;color:var(--color-text-muted);line-height:1.8}.contact-promises{display:flex;flex-direction:column;gap:10px;margin-top:25px;color:var(--color-text-muted);font-size:.8rem}.contact__form small{font-size:.68rem;color:var(--color-text-muted);line-height:1.6}
@media(max-width:1000px){.hero-side-note{right:4%;opacity:.45}.product-grid{grid-template-columns:1fr 1fr}.product-card:last-child{grid-column:1/-1}.how-grid{grid-template-columns:1fr 1fr}.manifesto{gap:30px}}
@media(max-width:680px){.hero--nox{min-height:auto;padding-top:65px;padding-bottom:65px}.hero-side-note{display:none}.hero-proof{flex-direction:column;gap:8px}.manifesto{grid-template-columns:1fr;gap:18px;padding-top:60px;padding-bottom:60px}.catalog-section,.how-section{padding-top:52px;padding-bottom:52px}.product-grid{grid-template-columns:1fr}.product-card:last-child{grid-column:auto}.product-card{min-height:unset}.idea-section{padding-top:65px;padding-bottom:65px}.idea-steps{grid-template-columns:1fr}.how-grid{grid-template-columns:1fr}.section-heading--intro{align-items:flex-start;flex-direction:column}.hero__cta .btn{width:100%;justify-content:center}}

.lead-message{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border-radius:10px;background:rgba(255,255,255,.025);line-height:1.75}


/* NOXTIUM product expansion + consultation polish */
.navbar__upgrade {
  color: var(--text, #f7f8fc) !important;
  background: rgba(124, 92, 255, .16);
  border: 1px solid rgba(155, 135, 255, .42);
  border-radius: 999px;
  padding: .58rem .85rem;
  font-weight: 700;
  white-space: nowrap;
}
.navbar__upgrade:hover { background: rgba(124, 92, 255, .28); }
.navbar__support {
  color: var(--text, #f7f8fc) !important;
  font-weight: 700;
  text-decoration: none;
}
.navbar__support::before { content: "●"; color: #38d996; font-size: .65rem; margin-right: .42rem; vertical-align: .12rem; }

.plan-discovery-banner {
  display: flex; align-items: center; gap: 1.15rem;
  margin: 1.35rem 0 1.75rem; padding: 1.25rem 1.4rem;
  border: 1px solid rgba(139, 119, 255, .28); border-radius: 22px;
  background: linear-gradient(115deg, rgba(116, 87, 255, .12), rgba(31, 198, 177, .055));
}
.plan-discovery-banner__icon {
  flex: 0 0 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(124, 92, 255, .17);
  font-size: 1.45rem; color: #aa9aff;
}
.plan-discovery-banner__copy { flex: 1; min-width: 0; }
.plan-discovery-banner__copy .eyebrow { display: block; margin-bottom: .35rem; }
.plan-discovery-banner__copy strong { display: block; font-size: 1.05rem; }
.plan-discovery-banner__copy p { margin: .35rem 0 0; color: var(--muted, #aeb5c7); line-height: 1.55; }
.plan-discovery-banner .btn { flex-shrink: 0; }

.consultation-page { padding: clamp(2rem, 5vw, 4.75rem) 1.2rem; }
.consultation-shell {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start;
}
.consultation-intro { padding: 1.25rem 0; }
.consultation-intro h1 { margin: .8rem 0 1rem; max-width: 620px; font-size: clamp(2.1rem, 4.2vw, 3.7rem); line-height: 1.06; letter-spacing: -.04em; }
.consultation-intro > p { max-width: 560px; color: var(--muted, #aeb5c7); font-size: 1.05rem; line-height: 1.8; }
.consultation-benefits { display: grid; gap: 1.1rem; margin: 2rem 0; }
.consultation-benefits > div { display: flex; align-items: flex-start; gap: .9rem; }
.consultation-benefits > div > span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; color: #b9acff; background: rgba(124, 92, 255, .15); font-weight: 800; font-size: .82rem; }
.consultation-benefits strong, .consultation-benefits small { display: block; }
.consultation-benefits strong { margin: .1rem 0 .25rem; }
.consultation-benefits small { color: var(--muted, #aeb5c7); line-height: 1.5; }
.consultation-assurance { display: flex; gap: .75rem; align-items: flex-start; max-width: 560px; border: 1px solid rgba(56, 217, 150, .22); background: rgba(56, 217, 150, .06); border-radius: 16px; padding: 1rem; }
.consultation-assurance__icon { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: rgba(56, 217, 150, .16); color: #38d996; font-weight: 800; }
.consultation-assurance p { margin: 0; color: var(--muted, #aeb5c7); line-height: 1.6; font-size: .9rem; }
.consultation-assurance strong { color: var(--text, #f7f8fc); }
.consultation-form-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 24px; background: var(--card, rgba(18,22,37,.92)); box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.consultation-form-heading { margin-bottom: 1.35rem; }
.form-step { display: inline-block; padding: .35rem .6rem; border-radius: 8px; background: rgba(124, 92, 255, .15); color: #b9acff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.consultation-form-heading h2 { margin: .75rem 0 .35rem; font-size: 1.65rem; }
.consultation-form-heading p { margin: 0; color: var(--muted, #aeb5c7); line-height: 1.6; }
.consultation-form { display: grid; gap: 1.05rem; }
.consultation-form .form-field { display: grid; gap: .45rem; }
.consultation-form label, .module-picker legend { font-weight: 700; font-size: .9rem; }
.consultation-form input:not([type=checkbox]), .consultation-form select, .consultation-form textarea { width: 100%; min-width: 0; border-radius: 12px; border: 1px solid var(--border, rgba(255,255,255,.14)); background: rgba(255,255,255,.035); color: inherit; padding: .82rem .9rem; font: inherit; }
.consultation-form textarea { resize: vertical; line-height: 1.6; }
.consultation-form input:focus, .consultation-form select:focus, .consultation-form textarea:focus { outline: 2px solid rgba(124,92,255,.55); outline-offset: 1px; }
.consultation-form select option { color: #171827; }
.module-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.module-picker legend { margin-bottom: .35rem; }
.module-picker > p { margin: 0 0 .8rem; color: var(--muted, #aeb5c7); font-size: .85rem; }
.module-picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.module-option { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .8rem; border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 13px; cursor: pointer; transition: border-color .18s, background .18s; }
.module-option:has(input:checked) { border-color: rgba(124,92,255,.7); background: rgba(124,92,255,.11); }
.module-option input { accent-color: #8b75ff; flex-shrink: 0; }
.module-option__icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; background: rgba(124,92,255,.13); color: #b9acff; font-weight: 800; }
.module-option strong, .module-option small { display: block; }
.module-option strong { font-size: .82rem; line-height: 1.35; }
.module-option small { margin-top: .18rem; color: var(--muted, #aeb5c7); font-size: .72rem; line-height: 1.4; }
.field-hint { color: var(--muted, #aeb5c7); font-size: .78rem; }
.consultation-form__optional { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.consultation-privacy { margin: -.35rem 0 0; text-align: center; color: var(--muted, #aeb5c7); font-size: .75rem; line-height: 1.5; }
@media (max-width: 900px) {
  .consultation-shell { grid-template-columns: 1fr; gap: 1.5rem; }
  .consultation-intro { padding: .25rem 0; }
  .consultation-intro h1 { max-width: 760px; }
}
@media (max-width: 680px) {
  .plan-discovery-banner { align-items: flex-start; flex-wrap: wrap; padding: 1rem; }
  .plan-discovery-banner__copy { flex-basis: calc(100% - 65px); }
  .plan-discovery-banner > .btn { width: 100%; }
  .module-picker__grid, .consultation-form__optional { grid-template-columns: 1fr; }
  .navbar__upgrade { white-space: normal; }
}


/* Layout refinement: spacious header and consistent agent setup form */
.navbar { height:auto; min-height:var(--nav-height); }
.navbar__inner {
  width:min(100% - 40px, 1440px);
  max-width:1440px;
  min-height:var(--nav-height);
  padding:12px 0;
  gap:24px;
}
.navbar__brand { flex:0 0 auto; margin-right:0; white-space:nowrap; }
.navbar__links {
  flex:1 1 auto;
  min-width:0;
  align-items:center;
  justify-content:center;
  gap:clamp(10px, 1.3vw, 22px);
}
.navbar__links a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1.3;
  white-space:nowrap;
  font-size:clamp(.76rem, .82vw, .9rem);
}
.navbar__actions { flex:0 0 auto; gap:10px; }
.navbar__upgrade { padding:.62rem .85rem; border-radius:12px; text-align:center; }
.navbar__support { white-space:nowrap; }
.account-pill { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:1120px) and (min-width:681px) {
  .navbar__inner { width:calc(100% - 32px); gap:16px; }
  .navbar__links { gap:10px; flex-wrap:wrap; }
  .navbar__links a { white-space:normal; text-align:center; }
  .navbar__actions .btn { padding:10px 12px; }
  .account-pill { display:none; }
}
@media(max-width:680px) {
  .navbar { min-height:var(--nav-height); }
  .navbar__inner { width:100%; padding:10px 16px; gap:12px; }
  .navbar__brand { margin-right:auto; }
  .navbar.is-open .navbar__links {
    position:absolute; left:12px; right:12px; top:calc(var(--nav-height) + 8px);
    display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start;
    gap:5px; padding:12px; border:1px solid var(--color-border);
    border-radius:16px; background:#0b0d12; box-shadow:0 18px 48px rgba(0,0,0,.45);
  }
  .navbar.is-open .navbar__links a { justify-content:flex-start; text-align:left; padding:11px 12px; white-space:normal; }
  .navbar.is-open .navbar__actions { position:absolute; left:12px; right:12px; top:auto; display:flex; justify-content:stretch; padding:0 12px 12px; background:#0b0d12; }
}

/* Agent wizard: prevent labels and inputs from colliding or shrinking */
.agent-wizard-intro, .agent-wizard-form, .agent-connect-panel, .agent-launch {
  width:min(100%, 1180px); margin-left:auto; margin-right:auto;
}
.agent-wizard-intro { margin-top:28px; margin-bottom:22px; }
.agent-wizard-intro h1 { font-size:clamp(1.8rem,3vw,2.65rem); line-height:1.12; margin-bottom:12px; }
.agent-progress { gap:14px; margin:22px 0; }
.agent-progress__step { min-height:74px; padding:16px 18px; border-radius:15px; }
.agent-wizard-hint { margin:0 0 24px; padding:15px 18px; line-height:1.65; }
.agent-wizard-form, .agent-panel { min-width:0; }
.agent-wizard-panel { padding:clamp(18px,2.5vw,30px); border:1px solid var(--color-border); border-radius:18px; background:linear-gradient(145deg,rgba(18,23,33,.98),rgba(11,14,20,.98)); }
.agent-panel__heading { display:flex; align-items:flex-start; gap:15px; margin-bottom:24px; }
.agent-panel__heading h2 { font-size:clamp(1.25rem,2.2vw,1.7rem); line-height:1.25; margin:0 0 7px; }
.agent-panel__heading p { margin:0; line-height:1.6; color:var(--color-text-muted); }
.agent-step-number { flex:0 0 auto; }
.agent-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
.agent-fields > label { display:flex; flex-direction:column; gap:8px; min-width:0; margin:0; color:var(--color-text); font-size:.9rem; font-weight:650; }
.agent-fields > label input,
.agent-fields > label select,
.agent-fields > label textarea {
  display:block; width:100%; max-width:100%; min-width:0; box-sizing:border-box;
  border:1px solid var(--color-border); border-radius:11px; padding:12px 13px;
  background:#080b11; color:var(--color-text); font:inherit; line-height:1.5;
}
.agent-fields > label input, .agent-fields > label select { min-height:46px; }
.agent-fields > label textarea { resize:vertical; min-height:100px; }
.agent-fields > label input:focus, .agent-fields > label select:focus, .agent-fields > label textarea:focus { outline:2px solid rgba(0,194,255,.45); outline-offset:1px; border-color:var(--color-accent); }
.agent-fields .field-wide { grid-column:1 / -1; }
.menu-editor { display:grid; gap:12px; width:100%; }
.menu-editor__header, .menu-row { display:grid; grid-template-columns:minmax(150px,1fr) minmax(110px,.45fr) minmax(180px,1.2fr) 42px; gap:12px; align-items:center; }
.menu-editor__header { color:var(--color-text-muted); font-size:.78rem; font-weight:700; padding:0 4px; }
.menu-row input { box-sizing:border-box; width:100%; min-width:0; padding:12px; border-radius:10px; border:1px solid var(--color-border); background:#080b11; color:var(--color-text); font:inherit; }
.remove-menu-row { min-height:42px; border:1px solid var(--color-border); border-radius:10px; background:transparent; color:#ff8d8d; cursor:pointer; font-size:1.25rem; }
.agent-wizard-actions { margin-top:24px; padding-top:20px; border-top:1px solid var(--color-border); gap:12px; }
.agent-wizard-actions .btn { min-width:135px; }
.agent-connect-panel, .agent-launch { margin-top:22px; padding:clamp(18px,2.5vw,28px); border-radius:18px; }
.agent-launch { display:flex; justify-content:space-between; align-items:center; gap:24px; }
.agent-launch p { max-width:720px; line-height:1.65; }
@media(max-width:760px) {
  .agent-progress { grid-template-columns:1fr; gap:9px; }
  .agent-progress__step { min-height:unset; }
  .agent-fields { grid-template-columns:1fr; gap:16px; }
  .agent-fields .field-wide { grid-column:auto; }
  .menu-editor__header { display:none; }
  .menu-row { grid-template-columns:minmax(0,1fr) minmax(90px,.45fr) 42px; gap:8px; }
  .menu-row input[name="item_description[]"] { grid-column:1 / 3; grid-row:2; }
  .menu-row .remove-menu-row { grid-column:3; grid-row:1 / 3; height:100%; }
  .agent-wizard-actions { justify-content:stretch; }
  .agent-wizard-actions .btn { flex:1 1 140px; }
  .agent-launch { align-items:flex-start; flex-direction:column; }
}


/* Neutralize the plan CTA: no purple filled background */
.navbar__upgrade {
  background: transparent !important;
  border: 1px solid var(--color-border, rgba(255,255,255,.18)) !important;
  box-shadow: none !important;
  color: var(--color-text, #f7f8fc) !important;
}
.navbar__upgrade:hover,
.navbar__upgrade:focus-visible {
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.32) !important;
  color: var(--color-text, #f7f8fc) !important;
}

/* NOXTIUM · Loyalty module visual refresh */
.loyalty-page{max-width:1240px;margin:0 auto;padding:34px 0 70px;color:var(--text,#f4f6fb)}
.loyalty-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:34px;border:1px solid rgba(148,163,184,.18);border-radius:26px;background:radial-gradient(circle at 90% 0%,rgba(14,165,233,.18),transparent 35%),linear-gradient(135deg,rgba(15,23,42,.96),rgba(8,15,30,.96));margin-bottom:24px}
.loyalty-hero h1{font-size:clamp(30px,4vw,44px);line-height:1.08;margin:10px 0}.loyalty-hero p{margin:0;color:#aab6c8;max-width:650px}.loyalty-kicker{font-size:11px;font-weight:800;letter-spacing:.16em;color:#22c7e8}.loyalty-hero-icon{width:86px;height:86px;flex:0 0 86px;border-radius:24px;display:grid;place-items:center;font-size:42px;background:linear-gradient(145deg,#0ea5e9,#6366f1);box-shadow:0 18px 45px #0284c744}
.loyalty-trial{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 22px;margin:18px 0 24px;border:1px solid rgba(34,211,238,.28);border-radius:18px;background:rgba(8,145,178,.10)}.loyalty-trial p{margin:5px 0 0;color:#9fb2c6}
.loyalty-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.loyalty-stats article,.loyalty-actions article,.loyalty-panel{border:1px solid rgba(148,163,184,.17);border-radius:20px;background:linear-gradient(160deg,rgba(20,31,49,.94),rgba(11,19,33,.96));padding:22px;box-shadow:0 14px 35px rgba(0,0,0,.13)}.loyalty-stats article span,.loyalty-stats article small{display:block;color:#9aabc0}.loyalty-stats article strong{display:block;font-size:28px;margin:8px 0;color:#f8fafc}.loyalty-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 38px}.loyalty-actions article>span{font-size:30px}.loyalty-actions h3{margin:10px 0 7px}.loyalty-actions p{color:#9aabc0;min-height:44px}.loyalty-qr{display:block;width:112px;height:112px;object-fit:contain;background:white;padding:7px;border-radius:12px;margin:10px 0 14px}
.loyalty-section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:32px 0 16px}.loyalty-section-head h2{margin:6px 0}.loyalty-section-head p{color:#9aabc0;margin:0}.loyalty-count,.loyalty-status{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:rgba(14,165,233,.14);color:#67e8f9;font-size:12px;font-weight:700;white-space:nowrap}.loyalty-status.is-stale{background:rgba(245,158,11,.14);color:#fbbf24}.loyalty-table-wrap{overflow:auto;border:1px solid rgba(148,163,184,.18);border-radius:18px;background:#0e1727}.loyalty-table{width:100%;border-collapse:collapse;min-width:850px}.loyalty-table th{text-align:left;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#8fa1b8;background:#111e31;padding:16px}.loyalty-table td{padding:16px;border-top:1px solid rgba(148,163,184,.12);color:#d9e2ef}.loyalty-row-actions{display:flex;gap:8px}.loyalty-row-actions .btn{white-space:nowrap}.loyalty-empty{text-align:center!important;padding:42px!important;color:#9aabc0!important}.loyalty-empty p{margin:7px 0 0}.loyalty-footer-link{margin-top:22px}
.loyalty-campaign-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.loyalty-form{display:grid;gap:15px}.loyalty-form label{display:grid;gap:7px;color:#dce6f4;font-weight:650}.loyalty-form input,.loyalty-form select,.loyalty-form textarea{width:100%;min-width:0;padding:12px 14px;border:1px solid rgba(148,163,184,.28);border-radius:12px;background:#0b1423;color:#f8fafc;outline:none}.loyalty-form input:focus,.loyalty-form select:focus,.loyalty-form textarea:focus{border-color:#22c7e8;box-shadow:0 0 0 3px rgba(34,199,232,.12)}.loyalty-form small,.loyalty-panel>p{color:#9aabc0;line-height:1.55}.loyalty-campaign-item{padding:15px 0;border-bottom:1px solid rgba(148,163,184,.13)}.loyalty-campaign-item p{color:#aab6c8}.loyalty-campaign-item small{color:#7f91a8}.loyalty-live-card{margin:18px 0;padding:30px 22px;border-radius:26px;color:white;text-align:center;background:linear-gradient(145deg,var(--loyalty-color),#111827);box-shadow:0 22px 55px rgba(0,0,0,.28);overflow:hidden}.loyalty-live-card>span{display:block;font-size:52px;margin-bottom:12px}.loyalty-live-card small{font-weight:800;letter-spacing:.12em;text-transform:uppercase}.loyalty-live-card h2{color:white;margin:8px 0 20px}.loyalty-live-card p{color:white}.preview-stamps{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:20px 0}.preview-stamps i{font-style:normal;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ffffff30;border:1px solid #ffffff80}
.loyalty-enroll{max-width:620px}.loyalty-enroll-card{overflow:hidden;border:1px solid rgba(148,163,184,.18);border-radius:26px;background:#101a2b;box-shadow:0 22px 70px rgba(0,0,0,.22)}.loyalty-enroll-brand{padding:34px 28px;text-align:center;color:white;background:linear-gradient(145deg,var(--loyalty-color),#111827)}.loyalty-enroll-brand>span{font-size:54px;display:block}.loyalty-enroll-brand small{letter-spacing:.12em;text-transform:uppercase;font-weight:800}.loyalty-enroll-brand h1{color:white;margin:8px}.loyalty-enroll-brand p{color:#eef2ff}.loyalty-enroll-card .loyalty-form{padding:26px}.consent-panel{padding:16px;border:1px solid rgba(148,163,184,.2);border-radius:14px;background:#0a1423}.consent-panel>p,.consent-panel small{color:#9aabc0;font-size:12px;line-height:1.5}.consent-option{display:flex!important;grid-template-columns:18px 1fr;align-items:center;gap:10px!important;margin:10px 0;font-weight:500!important}.consent-option input{width:17px;height:17px;accent-color:#06b6d4}
@media(max-width:850px){.loyalty-page{padding:20px 12px 50px}.loyalty-actions{grid-template-columns:1fr 1fr}.loyalty-campaign-grid{grid-template-columns:1fr}}
@media(max-width:600px){.loyalty-hero{padding:23px;border-radius:20px}.loyalty-hero-icon{width:60px;height:60px;flex-basis:60px;font-size:30px}.loyalty-stats{grid-template-columns:1fr 1fr}.loyalty-stats article:last-child{grid-column:1/-1}.loyalty-actions{grid-template-columns:1fr}.loyalty-trial,.loyalty-section-head{align-items:flex-start;flex-direction:column}.loyalty-row-actions{flex-direction:column}}


/* Panel principal: menú desplegable preparado para agregar nuevos módulos */
.nav-dropdown { position:relative; display:inline-flex; align-items:center; }
.nav-dropdown > summary {
  display:inline-flex; align-items:center; gap:8px; list-style:none; cursor:pointer;
  color:var(--color-text-muted); font-size:clamp(.76rem, .82vw, .9rem); font-weight:600;
  line-height:1.3; white-space:nowrap; padding:10px 13px; border:1px solid var(--color-border);
  border-radius:11px; background:rgba(255,255,255,.025); transition:.18s ease;
}
.nav-dropdown > summary::-webkit-details-marker { display:none; }
.nav-dropdown > summary:hover, .nav-dropdown[open] > summary {
  color:var(--color-white); border-color:var(--color-accent); background:rgba(0,194,255,.08);
}
.nav-dropdown__chevron { color:var(--color-accent); transition:transform .18s ease; }
.nav-dropdown[open] .nav-dropdown__chevron { transform:rotate(180deg); }
.nav-dropdown__menu {
  position:absolute; z-index:120; top:calc(100% + 12px); left:0; width:285px; padding:8px;
  display:grid; gap:4px; border:1px solid var(--color-border); border-radius:15px;
  background:#101116; box-shadow:0 18px 48px rgba(0,0,0,.48);
}
.nav-dropdown__menu a {
  display:flex !important; align-items:center !important; justify-content:flex-start !important;
  gap:11px; padding:11px 12px !important; border-radius:10px; white-space:normal !important;
  color:var(--color-text) !important; font-size:.88rem !important; text-align:left !important;
}
.nav-dropdown__menu a:hover { background:rgba(0,194,255,.09); color:var(--color-white) !important; }
.nav-dropdown__menu a > span:first-child { width:32px; height:32px; flex:0 0 32px; display:grid; place-items:center; border-radius:9px; background:rgba(0,194,255,.10); }
.nav-dropdown__menu strong, .nav-dropdown__menu small { display:block; }
.nav-dropdown__menu strong { font-size:.84rem; line-height:1.3; }
.nav-dropdown__menu small { margin-top:3px; color:var(--color-text-muted); font-size:.7rem; line-height:1.35; }
@media(max-width:1120px) and (min-width:681px) {
  .nav-dropdown > summary { font-size:.82rem; padding:9px 10px; }
}
@media(max-width:680px) {
  .navbar.is-open .nav-dropdown { display:block; width:100%; }
  .navbar.is-open .nav-dropdown > summary { width:100%; justify-content:space-between; padding:12px; font-size:.95rem; }
  .navbar.is-open .nav-dropdown__menu {
    position:static; width:100%; margin:6px 0 4px; box-shadow:none; background:#11131a;
  }
  .navbar.is-open .nav-dropdown__menu a { padding:10px 12px !important; }
}

/* Escáner QR y personalización del sello */
.loyalty-scan-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:20px;align-items:start}.loyalty-scanner{min-width:0}.loyalty-scanner #reader{width:100%;max-width:560px;margin:0 auto;overflow:hidden;border:1px solid rgba(34,199,232,.25);border-radius:18px;background:#07111f}.loyalty-scanner #reader video{border-radius:14px;object-fit:cover}.loyalty-scanner #reader__dashboard_section_csr button{margin:8px!important;padding:9px 14px!important;border:1px solid rgba(34,199,232,.35)!important;border-radius:10px!important;background:#10233a!important;color:#eaf7ff!important}.loyalty-scan-status{color:#a9bad0;line-height:1.5;min-height:44px}.loyalty-manual{margin-top:18px;padding-top:16px;border-top:1px solid rgba(148,163,184,.16);color:#dce6f4}.loyalty-manual summary{cursor:pointer;font-weight:700}.loyalty-manual form{display:grid;gap:10px;margin-top:14px}.loyalty-manual input{width:100%;padding:12px;border:1px solid rgba(148,163,184,.28);border-radius:12px;background:#0b1423;color:white}.loyalty-scan-result{text-align:center}.loyalty-scan-avatar{width:74px;height:74px;margin:20px auto 12px;display:grid;place-items:center;border-radius:22px;background:rgba(34,199,232,.13);font-size:38px}.loyalty-scan-result h2{margin:8px 0}.loyalty-scan-result p{color:#9aabc0}.loyalty-scan-count{display:flex;align-items:baseline;justify-content:center;gap:6px;margin:18px 0}.loyalty-scan-count strong{font-size:42px;color:#fff}.loyalty-scan-count span{color:#8ea4bd}.loyalty-scan-result .btn{margin-top:9px}.loyalty-scan-action{border-color:rgba(34,199,232,.38)!important;background:radial-gradient(circle at 90% 0%,rgba(14,165,233,.18),transparent 55%),linear-gradient(160deg,rgba(20,31,49,.97),rgba(11,19,33,.98))!important}.loyalty-scan-action>span{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:15px;background:rgba(34,199,232,.14)}.preview-stamps i{font-size:18px}.loyalty-live-card .preview-stamps i{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#ffffff30;border:1px solid #ffffff80}
@media(max-width:700px){.loyalty-scan-layout{grid-template-columns:1fr}.loyalty-scanner #reader{min-height:260px}.loyalty-scan-result{order:-1}}
