:root {
  --bg: #030611;
  --bg-2: #0a0f1c;
  --surface: rgba(12, 19, 35, 0.65);
  --surface-strong: rgba(18, 25, 45, 0.85);
  --ink: #f7fbff;
  --muted: #a3b8cc;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #2b7fff;
  --cyan: #3edcff;
  --purple: #8b5cf6;
  --violet: #d946ef;
  --glow: 0 0 80px rgba(139, 92, 246, 0.15);
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.18), transparent 40%),
    radial-gradient(circle at 10% 20%, rgba(43, 127, 255, 0.15), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(217, 70, 239, 0.10), transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  letter-spacing: 0;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

a { color: inherit; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 7, 18, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  width: 226px;
  max-width: 58vw;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 720;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: rgba(255,255,255,.07);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero { padding: 78px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 610px;
  margin-bottom: 20px;
  font-size: 2.55rem;
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.72rem;
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.22;
  font-weight: 720;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p,
.feature-list p,
.service-card p,
.statement-card p,
.principle-grid p,
.contact-card p {
  color: var(--muted);
}

.hero-copy p,
.page-hero p {
  max-width: 560px;
  font-size: .94rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 820;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 42px rgba(25, 130, 255, .28);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
  color: #cfe3f8;
  font-size: .82rem;
  font-weight: 760;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(108, 209, 255, .28);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--glow), 0 32px 90px rgba(0,0,0,.38);
  background: var(--surface-strong);
}

.hero-visual img,
.service-card img,
.service-strip img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.hero-visual img {
  height: 100%;
  min-height: 420px;
  filter: saturate(1.08) contrast(1.04);
}

.hero-visual:after,
.service-card:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(2,7,18,.66));
}

.ops-panel {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  padding: 22px;
  border: 1px solid rgba(108, 209, 255, .28);
  border-radius: var(--radius);
  background: rgba(3, 11, 24, .72);
  backdrop-filter: blur(18px);
}

.ops-panel span {
  color: #b9d2ee;
  font-size: .82rem;
  font-weight: 760;
}

.ops-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.ops-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.ops-flow i {
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.section { padding: 72px 0; }

.section.soft {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-strip article,
.service-card,
.statement-card,
.principle-grid article,
.contact-form,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
}

.service-strip img {
  aspect-ratio: 16 / 11;
  border-bottom: 1px solid var(--line);
}

.service-strip h3 { padding: 18px; }

.split-layout,
.page-hero-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list p,
.principle-grid article {
  margin: 0;
  padding: 20px;
}

.page-hero {
  padding: 78px 0 58px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 18%, rgba(25, 130, 255, .20), transparent 31%),
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
}

.page-hero h1 { font-size: 2.2rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card img {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
}

.service-card div {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.service-card h2 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.28;
}

.statement-card h2 {
  font-size: 1.45rem;
  line-height: 1.28;
}

.service-card span,
.statement-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 850;
  letter-spacing: .08em;
}

.service-card:hover {
  border-color: rgba(62, 220, 255, .48);
  transform: translateY(-4px);
  transition: transform .22s ease, border-color .22s ease;
}

.statement-card { padding: 30px; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.principle-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.contact-form,
.contact-card { padding: 30px; }

.contact-form label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  font: inherit;
}

.contact-form select option {
  color: #071426;
}

.contact-card a,
.site-footer a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.form-note {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--cyan);
  font-weight: 800;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(2, 7, 18, .78);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-grid p { margin: 0; }

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .page-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-strip,
  .service-grid,
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 340px;
  }

  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.55rem; }
  .page-hero h1 { font-size: 1.9rem; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 64px; }
  .brand { width: 176px; }
  .nav-toggle { display: inline-block; }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #071426;
    box-shadow: 0 22px 70px rgba(0,0,0,.38);
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px; }

  .hero,
  .section,
  .page-hero { padding: 46px 0; }

  h1 {
    font-size: 1.62rem;
    line-height: 1.14;
  }

  h2 { font-size: 1.32rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .service-card h2,
  .statement-card h2 { font-size: 1.18rem; }

  .service-strip,
  .service-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 300px;
  }

  .ops-panel {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 18px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* MODULOS IANOVA E IA 606 - NUBORIX REDESIGN */

.product-module {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  padding: 60px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  gap: 60px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.glass-card.reverse {
  flex-direction: row-reverse;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.module-content {
  flex: 1;
}

.module-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 16px;
}

.gradient-text-alt {
  background: linear-gradient(135deg, var(--violet), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 16px;
}

.module-content h2 {
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -1px;
}

.module-content p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.benefits-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 15px;
}

.benefits-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--blue);
  font-size: 14px;
}

.ia606-module .benefits-list li::before {
  color: var(--purple);
}

.gradient-btn {
  background: linear-gradient(135deg, var(--blue), #0d5cce);
  border: none;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(25, 130, 255, 0.4);
  text-decoration: none;
  display: inline-flex;
}

.gradient-btn:hover {
  box-shadow: 0 6px 20px rgba(25, 130, 255, 0.6);
  transform: translateY(-2px);
}

.gradient-btn-alt {
  background: linear-gradient(135deg, var(--purple), var(--violet));
  border: none;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  text-decoration: none;
  display: inline-flex;
}

.gradient-btn-alt:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  transform: translateY(-2px);
}

.glass-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
}

.glass-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ABSTRACT UI MOCKUPS */

.glass-panel {
  width: 100%;
  max-width: 480px;
  height: 340px;
  background: rgba(10, 16, 30, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.glass-panel.ai-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(139, 92, 246, 0.2);
  pointer-events: none;
}

.mock-header {
  height: 40px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.mock-header::before {
  content: "";
  width: 40px; height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.mock-body {
  display: flex;
  flex: 1;
}

.mock-sidebar {
  width: 80px;
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-sidebar::before,
.mock-sidebar::after {
  content: "";
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

.mock-sidebar::after { width: 60%; }

.mock-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mock-chart {
  height: 120px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(43,127,255,0.15) 0%, transparent 100%);
  border: 1px dashed rgba(43,127,255,0.3);
  position: relative;
}

.mock-chart::after {
  content: "";
  position: absolute;
  top: 40%; left: 10%; right: 10%;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.mock-lines {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  width: 100%;
}
.mock-lines.short { width: 60%; }

.mock-ai-scan {
  height: 80px;
  margin: 40px 40px 20px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.mock-ai-scan::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
  animation: scan 2.5s infinite linear;
}

@keyframes scan {
  0% { left: -100%; }
  100% { left: 200%; }
}

.mock-data-row {
  height: 12px;
  margin: 0 40px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  width: calc(100% - 80px);
  position: relative;
  overflow: hidden;
}

.mock-data-row::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--purple);
  animation: load-data 3s infinite ease-out;
}

.mock-data-row.delay-1::after { animation-delay: 0.4s; width: 80%; }
.mock-data-row.delay-2::after { animation-delay: 0.8s; width: 60%; }

@keyframes load-data {
  0% { width: 0%; }
  50%, 100% { width: 100%; }
}

@media (max-width: 900px) {
  .glass-card, .glass-card.reverse {
    flex-direction: column;
    padding: 32px 24px;
    gap: 40px;
  }
  .benefits-list {
    grid-template-columns: 1fr;
  }
  .glass-panel {
    height: 240px;
  }
  .module-content h2 {
    font-size: 28px;
  }
}

/* IANOVA HIGHLIGHT EXACT OVERRIDES */
.ianova-highlight {
 margin: 80px auto;
 padding: 72px 32px;
 max-width: 1180px;
 border-radius: 32px;
 position: relative;
 overflow: hidden;
 background:
 radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 32rem),
 radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.26), transparent 30rem),
 rgba(255, 255, 255, 0.08);
 border: 1px solid rgba(255, 255, 255, 0.16);
 box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
 backdrop-filter: blur(18px);
}

.ianova-content {
 position: relative;
 z-index: 1;
 max-width: 920px;
}

.ianova-highlight .eyebrow {
 display: inline-flex;
 margin-bottom: 18px;
 padding: 8px 14px;
 border-radius: 999px;
 color: #67e8f9;
 background: rgba(34, 211, 238, 0.12);
 border: 1px solid rgba(34, 211, 238, 0.24);
 font-weight: 700;
 font-size: 0.88rem;
}

.ianova-highlight h2 {
 margin: 0 0 18px;
 color: #ffffff;
 font-size: clamp(2rem, 5vw, 4.4rem);
 line-height: 1.02;
 letter-spacing: -0.05em;
}

.ianova-highlight p {
 max-width: 780px;
 color: #cbd5e1;
 font-size: 1.16rem;
 line-height: 1.75;
}

.ianova-benefits {
 display: flex;
 flex-wrap: wrap;
 gap: 12px;
 margin: 30px 0;
}

.ianova-benefits span {
 padding: 11px 15px;
 border-radius: 999px;
 color: #f8fafc;
 background: rgba(255, 255, 255, 0.08);
 border: 1px solid rgba(255, 255, 255, 0.14);
}

.ianova-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 14px;
 margin-top: 24px;
}

.ianova-actions a {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 48px;
 padding: 0 22px;
 text-decoration: none;
 font-weight: 800;
}

@media (max-width: 768px) {
 .ianova-highlight {
 margin: 48px 16px;
 padding: 44px 20px;
 border-radius: 24px;
 }

 .ianova-actions {
 flex-direction: column;
 }

 .ianova-actions a {
 width: 100%;
 }
}

/* =========================================================
   IANOVA DEMO FRONTEND
   ========================================================= */

.dashboard-nav button,
.ianova-actions-grid button,
.ianova-form button,
.ianova-table button,
.export-actions button,
.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  cursor: pointer;
}

.dashboard-nav button:hover,
.dashboard-nav button.active,
.ianova-actions-grid button:hover,
.ianova-form button:hover,
.ianova-table button:hover,
.ghost-button:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(124, 58, 237, 0.26));
}

.ianova-panel {
  display: grid;
  gap: 24px;
}

.ianova-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ianova-section-head h2 {
  margin: 8px 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.06;
}

.ianova-section-head p,
.empty-state {
  color: #cbd5e1;
}

.ianova-stats-grid,
.ianova-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.ianova-stat-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ianova-stat-card span {
  display: block;
  margin-bottom: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.ianova-stat-card strong {
  color: #ffffff;
  font-size: 1.5rem;
}

.ianova-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(7, 11, 26, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ianova-form label {
  display: grid;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 800;
}

.ianova-form .full {
  grid-column: 1 / -1;
}

.ianova-form input,
.ianova-form select,
.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  outline: none;
}

.ianova-form input:focus,
.ianova-form select:focus,
.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-box {
  display: grid;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 800;
}

.ianova-form button[type="submit"] {
  grid-column: 1 / -1;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, #22d3ee, #2563eb, #7c3aed);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.34);
}

.success-message {
  grid-column: 1 / -1;
  color: #67e8f9;
  font-weight: 900;
}

.ianova-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ianova-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.ianova-table th,
.ianova-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ianova-table th {
  color: #67e8f9;
  background: rgba(15, 23, 42, 0.78);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.ianova-table td {
  color: #e2e8f0;
}

.empty-state {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.print-document {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.print-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.print-head img {
  max-width: 140px;
  max-height: 72px;
  object-fit: contain;
}

.totals-box {
  margin-left: auto;
  min-width: 240px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.export-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.dashboard-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  flex: 1;
}

.dashboard-meta div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-meta span {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-meta strong {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
  margin-top: 3px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.plan-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.plan-card.selected {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.14);
}

.plan-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

.plan-card strong {
  display: block;
  margin-bottom: 14px;
  color: #67e8f9;
}

.plan-card li {
  color: #cbd5e1;
  margin-bottom: 8px;
}

.plan-card button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #2563eb, #7c3aed);
}

@media (max-width: 760px) {
  .dashboard-header,
  .ianova-section-head,
  .print-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ianova-form {
    grid-template-columns: 1fr;
  }

  .dashboard-container {
    padding: 16px;
    margin: 48px auto;
  }

  .dashboard-meta {
    grid-template-columns: 1fr;
  }
}



/* =========================================================
   NUBORIX LIGHT FRONTPAGE REDESIGN
   Scoped to body.nuborix-light-page so IANOVA keeps its app styling
   ========================================================= */

body.nuborix-light-page {
  --bg: #f8fbff;
  --bg-2: #eef6ff;
  --surface: rgba(255,255,255,0.88);
  --surface-strong: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbeafe;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --purple: #7c3aed;
  --violet: #7c3aed;
  color: #0f172a;
  background:
    radial-gradient(circle at 12% 8%, rgba(6, 182, 212, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(124, 58, 237, 0.14), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 52%, #ffffff 100%);
  background-attachment: fixed;
}

body.nuborix-light-page::before,
body.nuborix-light-page .nuborix-animated-bg {
  display: none;
}

.nuborix-light-page .light-header {
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid #dbeafe;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.nuborix-light-page .site-nav a,
.nuborix-light-page .dropdown-toggle {
  color: #475569;
}

.nuborix-light-page .site-nav a:hover,
.nuborix-light-page .site-nav a.active,
.nuborix-light-page .dropdown:hover .dropdown-toggle,
.nuborix-light-page .dropdown:focus-within .dropdown-toggle {
  color: #0f172a;
  background: #eef6ff;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  display: none;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: grid;
}

.nuborix-light-page .dropdown-menu a {
  color: #0f172a;
  border-radius: 12px;
}

.nuborix-light-page .nav-cta {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.light-hero {
  padding: 92px 0 72px;
}

.light-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}

.light-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #0f172a;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 850;
}

.light-hero-copy p,
.section-heading p,
.solution-card p,
.why-grid p,
.plans-light-grid p {
  color: #475569;
}

.light-hero-copy p {
  max-width: 660px;
  font-size: 1.12rem;
}

.nuborix-light-page .button {
  border-radius: 999px;
}

.nuborix-light-page .button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
}

.nuborix-light-page .button.secondary {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.light-hero-card,
.solution-card,
.why-grid article,
.plans-light-grid article,
.light-cta-box {
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.light-hero-card {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
}

.metric-row span {
  color: #475569;
  font-weight: 800;
}

.metric-row strong {
  color: #2563eb;
}

.soft-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
  min-height: 170px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(6,182,212,.12));
}

.soft-chart i {
  display: block;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #06b6d4, #2563eb);
}

.soft-chart i:nth-child(1) { height: 42%; }
.soft-chart i:nth-child(2) { height: 68%; }
.soft-chart i:nth-child(3) { height: 52%; }
.soft-chart i:nth-child(4) { height: 86%; background: linear-gradient(180deg, #7c3aed, #2563eb); }

.light-section {
  padding: 76px 0;
}

.light-section.tinted {
  background: rgba(238, 246, 255, 0.72);
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.centered {
  max-width: 780px;
}

.section-heading h2 {
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.solution-grid,
.why-grid,
.plans-light-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.solution-card,
.why-grid article,
.plans-light-grid article {
  padding: 28px;
}

.solution-card h3,
.why-grid strong,
.plans-light-grid h3,
.light-cta-box h2 {
  color: #0f172a;
}

.solution-card h3 {
  font-size: 1.55rem;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #2563eb;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.why-grid {
  grid-template-columns: repeat(4, 1fr);
}

.why-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.plans-light-grid article strong {
  display: inline-flex;
  margin-top: 14px;
  color: #7c3aed;
  font-size: 1.1rem;
}

.light-cta {
  padding: 36px 0 82px;
}

.light-cta-box {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nuborix-light-page .light-footer {
  color: #475569;
  background: #ffffff;
  border-top: 1px solid #dbeafe;
}

.nuborix-light-page .light-footer a {
  color: #2563eb;
}

.top-promo {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.promo-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  font-size: .9rem;
  font-weight: 760;
}

.promo-inner a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-inline {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nuborix-logo {
  flex-shrink: 0;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.18));
  border: 1px solid #dbeafe;
}

.brand-symbol svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #2563eb;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-symbol svg path:nth-child(2),
.brand-symbol svg circle {
  stroke: #7c3aed;
}

.brand-text {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.08));
  border: 1px solid #dbeafe;
}

.hero-card-head span {
  color: #475569;
  font-weight: 800;
}

.hero-card-head strong {
  color: #0f172a;
}

.trust-row,
.hero-mini-grid {
  display: grid;
  gap: 12px;
}

.trust-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.trust-row span,
.mini-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid #dbeafe;
  box-shadow: 0 14px 30px rgba(15,23,42,.06);
}

.trust-row span {
  color: #475569;
  font-size: .9rem;
  font-weight: 800;
}

.hero-mini-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
}

.mini-card strong {
  display: block;
  color: #0f172a;
  margin-bottom: 6px;
}

.mini-card span {
  color: #475569;
  font-size: .92rem;
}

.solution-card,
.mini-card,
.control-grid article,
.metrics-grid article {
  position: relative;
  overflow: hidden;
}

.solution-card::before,
.control-grid article::before,
.mini-card::before,
.plans-light-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #2563eb;
}

.solution-card {
  padding: 34px;
}

.solution-ianova {
  border-color: rgba(37,99,235,.28);
}

.solution-ianova::before,
.accent-blue::before,
.plan-basic::before {
  background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.solution-ia {
  border-color: rgba(124,58,237,.28);
}

.solution-ia::before,
.accent-purple::before,
.accent-violet::before,
.plan-company::before {
  background: linear-gradient(180deg, #7c3aed, #a855f7);
}

.accent-teal::before,
.plan-pro::before {
  background: linear-gradient(180deg, #14b8a6, #06b6d4);
}

.accent-gold::before {
  background: linear-gradient(180deg, #f59e0b, #facc15);
}

.accent-cyan::before {
  background: linear-gradient(180deg, #06b6d4, #67e8f9);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  color: #0f172a;
  font-weight: 760;
}

.check-list li::before {
  content: "✓";
  margin-right: 8px;
  color: #14b8a6;
  font-weight: 900;
}

.control-grid,
.feature-chip-grid,
.metrics-grid {
  display: grid;
  gap: 16px;
}

.control-grid {
  grid-template-columns: repeat(3, 1fr);
}

.control-grid article,
.metrics-grid article {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid #dbeafe;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 18px 42px rgba(15,23,42,.07);
}

.control-grid strong,
.metrics-grid strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
}

.control-grid p,
.metrics-grid span {
  color: #475569;
}

.feature-chip-grid {
  grid-template-columns: repeat(5, 1fr);
}

.feature-chip-grid span {
  padding: 16px;
  border-radius: 18px;
  color: #0f172a;
  background: rgba(255,255,255,.9);
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 30px rgba(15,23,42,.05);
  font-weight: 850;
  text-align: center;
}

.plans-light-grid article {
  position: relative;
  overflow: hidden;
}

.plans-light-grid ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #475569;
}

.metrics-grid {
  grid-template-columns: repeat(4, 1fr);
}

.light-cta-box p {
  max-width: 680px;
  margin: 0;
  color: #475569;
}

@media (max-width: 920px) {
  .light-hero-grid,
  .solution-grid,
  .why-grid,
  .plans-light-grid,
  .trust-row,
  .hero-mini-grid,
  .control-grid,
  .feature-chip-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .light-cta-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .nuborix-light-page .site-nav {
    background: rgba(255,255,255,0.98);
  }

  .dropdown,
  .dropdown-menu {
    position: static;
  }

  .dropdown-menu {
    display: none;
    margin-top: 6px;
    box-shadow: none;
    background: #f8fbff;
  }

  .dropdown.open .dropdown-menu {
    display: grid;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .light-hero {
    padding: 54px 0 42px;
  }
}

/* Public Nuborix polish: shared pages, technology mockups and stronger SaaS cards */

.nuborix-light-page .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.nuborix-light-page .site-logo .brand-symbol {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 12px 24px rgba(37, 99, 235, 0.12);
}

.nuborix-light-page .light-hero,
.nuborix-light-page .subpage-hero {
  position: relative;
  overflow: hidden;
}

.nuborix-light-page .light-hero::before,
.nuborix-light-page .subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, rgba(6, 182, 212, 0.22), transparent 20rem),
    radial-gradient(circle at 76% 68%, rgba(124, 58, 237, 0.16), transparent 22rem);
  background-size: 44px 44px, 44px 44px, auto, auto;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.82), transparent 92%);
}

.nuborix-light-page .light-hero > *,
.nuborix-light-page .subpage-hero > * {
  position: relative;
}

.tech-dashboard-mockup {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 440px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(238,246,255,0.88)),
    radial-gradient(circle at 20% 20%, rgba(6,182,212,0.18), transparent 16rem);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  animation: mockupFloat 8s ease-in-out infinite;
}

.tech-dashboard-mockup::before {
  content: "";
  position: absolute;
  inset: 56px 18px 18px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.52;
}

.tech-dashboard-mockup.compact-mockup {
  min-height: 360px;
}

.mockup-toolbar,
.mockup-grid,
.mockup-panel {
  position: relative;
  z-index: 1;
}

.mockup-toolbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
}

.mockup-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #06b6d4;
}

.mockup-toolbar span:nth-child(2) {
  background: #7c3aed;
}

.mockup-toolbar span:nth-child(3) {
  background: #f59e0b;
}

.mockup-toolbar strong {
  margin-left: auto;
  color: #0f172a;
  font-size: .92rem;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mockup-panel {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 18px 46px rgba(15,23,42,.08);
  overflow: hidden;
}

.mockup-panel.wide {
  grid-column: span 2;
  min-height: 170px;
}

.mockup-panel small {
  color: #475569;
  font-weight: 900;
  text-transform: uppercase;
}

.mockup-panel strong {
  color: #0f172a;
  font-size: 1.35rem;
}

.mockup-line {
  height: 8px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.mockup-line i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.mockup-nodes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-nodes i {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #7c3aed;
  box-shadow: 0 0 0 8px rgba(124,58,237,.1);
}

.mockup-nodes i:nth-child(2) {
  background: #06b6d4;
  box-shadow: 0 0 0 8px rgba(6,182,212,.1);
}

.mockup-nodes i:nth-child(3) {
  background: #f59e0b;
  box-shadow: 0 0 0 8px rgba(245,158,11,.12);
}

.mockup-orbit span {
  position: absolute;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 7px rgba(37,99,235,.12);
  animation: nodePulse 2.8s ease-in-out infinite;
}

.mockup-orbit span:nth-child(1) { right: 22px; top: 92px; }
.mockup-orbit span:nth-child(2) { left: 28px; bottom: 92px; background: #7c3aed; animation-delay: .4s; }
.mockup-orbit span:nth-child(3) { right: 88px; bottom: 32px; background: #14b8a6; animation-delay: .8s; }

.soft-chart.compact {
  min-height: 96px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(20,184,166,.09), rgba(6,182,212,.13));
}

.nuborix-light-page .solution-card,
.nuborix-light-page .mini-card,
.nuborix-light-page .control-grid article,
.nuborix-light-page .metrics-grid article,
.nuborix-light-page .plans-light-grid article,
.nuborix-light-page .service-light-card,
.nuborix-light-page .light-statement,
.nuborix-light-page .about-visual-card,
.nuborix-light-page .contact-info-panel,
.nuborix-light-page .light-contact-form,
.nuborix-light-page .light-contact-card {
  border-color: rgba(15, 23, 42, 0.18);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.nuborix-light-page .solution-ianova {
  border-color: rgba(37, 99, 235, 0.48);
}

.nuborix-light-page .solution-ia {
  border-color: rgba(109, 40, 217, 0.48);
}

.nuborix-light-page .accent-teal {
  border-color: rgba(13, 148, 136, 0.48);
}

.nuborix-light-page .accent-gold {
  border-color: rgba(245, 158, 11, 0.48);
}

.nuborix-light-page .solution-card:hover,
.nuborix-light-page .mini-card:hover,
.nuborix-light-page .control-grid article:hover,
.nuborix-light-page .metrics-grid article:hover,
.nuborix-light-page .plans-light-grid article:hover,
.nuborix-light-page .service-light-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(15,23,42,.12);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 15px;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(15,23,42,.12);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #2563eb;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accent-purple .card-icon svg,
.accent-violet .card-icon svg {
  stroke: #7c3aed;
}

.accent-teal .card-icon svg,
.accent-cyan .card-icon svg {
  stroke: #0d9488;
}

.accent-gold .card-icon svg {
  stroke: #f59e0b;
}

.subpage-hero {
  padding: 86px 0 70px;
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}

.subpage-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #0f172a;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.04;
}

.subpage-hero p {
  max-width: 680px;
  color: #475569;
  font-size: 1.08rem;
}

.service-light-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-light-card,
.about-visual-card,
.contact-info-panel,
.light-contact-form,
.light-contact-card,
.light-statement {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(15,23,42,.18);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 22px 54px rgba(15,23,42,.08);
}

.service-light-card::before,
.light-statement::before,
.about-visual-card::before,
.contact-info-panel::before,
.light-contact-form::before,
.light-contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.service-light-card h3,
.light-contact-card h2 {
  color: #0f172a;
  font-size: 1.18rem;
}

.service-light-card p,
.service-light-card a,
.about-visual-card span,
.light-contact-card p,
.contact-info-panel p {
  color: #475569;
}

.service-light-card a,
.contact-info-panel a {
  color: #2563eb;
  font-weight: 900;
}

.light-split {
  align-items: stretch;
}

.light-statement span {
  color: #2563eb;
  font-weight: 900;
  text-transform: uppercase;
}

.light-statement h2 {
  color: #0f172a;
}

.principle-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.principle-stack article {
  padding: 18px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 18px;
  background: #f8fbff;
}

.principle-stack strong {
  display: block;
  color: #0f172a;
}

.contact-light-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.light-contact-form label {
  display: grid;
  gap: 8px;
  color: #0f172a;
  font-weight: 850;
}

.light-contact-form input,
.light-contact-form select,
.light-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15,23,42,.18);
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.light-contact-form input,
.light-contact-form select {
  min-height: 48px;
  padding: 0 14px;
}

.light-contact-form textarea {
  padding: 14px;
  resize: vertical;
}

.light-contact-form input:focus,
.light-contact-form select:focus,
.light-contact-form textarea:focus {
  border-color: rgba(37,99,235,.54);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.stacked-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: .86; }
  50% { transform: scale(1.18); opacity: 1; }
}

@media (max-width: 1080px) {
  .service-light-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .subpage-hero-grid,
  .contact-light-grid {
    grid-template-columns: 1fr;
  }

  .tech-dashboard-mockup {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .service-light-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .mockup-panel.wide {
    grid-column: auto;
  }

  .subpage-hero {
    padding: 54px 0 44px;
  }
}

/* =========================================================
   IANOVA SaaS app shell - light mint dashboard inspired by
   modern accounting tools, scoped to body.ianova-app-page
   ========================================================= */

body.ianova-app-page {
  --ianova-bg: #c9f5ef;
  --ianova-shell: rgba(255,255,255,0.92);
  --ianova-panel: #ffffff;
  --ianova-soft: #f5fbfb;
  --ianova-line: #e3edf2;
  --ianova-ink: #1f2937;
  --ianova-muted: #64748b;
  --ianova-teal: #14b8a6;
  --ianova-blue: #2563eb;
  --ianova-purple: #7c3aed;
  min-height: 100vh;
  color: var(--ianova-ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(255,255,255,.86), transparent 16rem),
    radial-gradient(circle at 88% 24%, rgba(20,184,166,.22), transparent 24rem),
    linear-gradient(135deg, #c9f5ef, #eefbff 54%, #ffffff);
}

body.ianova-app-page .dashboard-main {
  min-height: 100vh;
  margin: 0;
  padding: 28px;
}

body.ianova-app-page .dashboard-container {
  width: min(100%, 1480px);
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: var(--ianova-shell);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.ianova-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px 14px;
  background: rgba(255,255,255,0.9);
  border-right: 1px solid var(--ianova-line);
}

.ianova-sidebar-brand {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--ianova-ink);
  text-decoration: none;
}

.ianova-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 950;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 10px 24px rgba(20,184,166,.25);
}

.ianova-sidebar-brand strong {
  color: var(--ianova-ink);
  font-size: 1.15rem;
  letter-spacing: 0;
}

body.ianova-app-page .dashboard-nav {
  align-content: start;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

body.ianova-app-page .dashboard-nav button {
  width: 100%;
  min-height: 38px;
  justify-content: flex-start;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ianova-muted);
  background: transparent;
  box-shadow: none;
  font-size: .88rem;
  font-weight: 760;
}

body.ianova-app-page .dashboard-nav button:hover,
body.ianova-app-page .dashboard-nav button.active {
  color: #0f766e;
  background: #e9fbf7;
  border-color: #c8f4ea;
  transform: none;
}

.ianova-sidebar-note {
  padding: 14px;
  border: 1px solid #d7f3ee;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0fffb, #f7fbff);
}

.ianova-sidebar-note span {
  display: block;
  margin-bottom: 6px;
  color: #0f766e;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ianova-sidebar-note strong {
  display: block;
  color: var(--ianova-ink);
  font-size: .9rem;
  line-height: 1.35;
}

.ianova-workspace {
  min-width: 0;
  padding: 22px 24px 28px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.ianova-topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ianova-search {
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--ianova-line);
  border-radius: 14px;
  background: #ffffff;
}

.ianova-search span {
  color: var(--ianova-muted);
  font-size: .82rem;
  font-weight: 850;
}

.ianova-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  color: var(--ianova-ink);
  background: transparent;
}

.ianova-help {
  color: #0f766e;
  font-weight: 900;
  text-decoration: none;
}

body.ianova-app-page .dashboard-header {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.5fr) auto;
  gap: 18px;
  align-items: start;
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--ianova-line);
  border-radius: 20px;
  background: linear-gradient(135deg, #eef7ff, #ffffff);
}

.dashboard-title-group {
  display: grid;
  gap: 6px;
}

.ianova-breadcrumb {
  color: #0f766e;
  font-size: .78rem;
  font-weight: 900;
}

body.ianova-app-page .dashboard-header h1 {
  margin: 0;
  color: var(--ianova-ink);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
}

body.ianova-app-page .dashboard-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.ianova-app-page .dashboard-meta div {
  padding: 10px 12px;
  border: 1px solid #e7eef3;
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
}

body.ianova-app-page .dashboard-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--ianova-muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.ianova-app-page .dashboard-meta strong {
  display: block;
  overflow: hidden;
  color: var(--ianova-ink);
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ianova-app-page .logout-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  font-weight: 900;
}

body.ianova-app-page .logout-button:hover {
  color: #ffffff;
  background: #14b8a6;
}

body.ianova-app-page .dashboard-content {
  padding: 0;
  border: 0;
  background: transparent;
}

body.ianova-app-page .ianova-panel,
body.ianova-app-page .print-document {
  border: 1px solid var(--ianova-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(15,23,42,.07);
}

body.ianova-app-page .ianova-panel {
  padding: 24px;
}

body.ianova-app-page .ianova-section-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f7;
}

body.ianova-app-page .ianova-section-head h2 {
  color: var(--ianova-ink);
  font-size: 1.45rem;
}

body.ianova-app-page .ianova-section-head p,
body.ianova-app-page .ianova-panel p {
  color: var(--ianova-muted);
}

body.ianova-app-page .ianova-stat-card,
body.ianova-app-page .ianova-actions-grid button,
body.ianova-app-page .plan-card {
  border: 1px solid #e3edf2;
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: none;
}

body.ianova-app-page .ianova-stat-card span {
  color: var(--ianova-muted);
}

body.ianova-app-page .ianova-stat-card strong {
  color: #0f766e;
}

body.ianova-app-page .ianova-actions-grid button,
body.ianova-app-page .ianova-form button,
body.ianova-app-page .ianova-table button,
body.ianova-app-page .export-actions button,
body.ianova-app-page .ghost-button {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  color: #0f766e;
  background: #ffffff;
  box-shadow: none;
}

body.ianova-app-page .ianova-actions-grid button:hover,
body.ianova-app-page .ianova-form button:hover,
body.ianova-app-page .ianova-table button:hover,
body.ianova-app-page .ghost-button:hover {
  color: #ffffff;
  background: #14b8a6;
  transform: translateY(-1px);
}

body.ianova-app-page .ianova-form {
  border: 1px solid #e3edf2;
  border-radius: 18px;
  background: #fbfeff;
}

body.ianova-app-page .ianova-form label {
  color: var(--ianova-ink);
}

body.ianova-app-page .ianova-form input,
body.ianova-app-page .ianova-form select {
  border: 1px solid #dfe8ee;
  color: var(--ianova-ink);
  background: #ffffff;
}

body.ianova-app-page .ianova-form input:focus,
body.ianova-app-page .ianova-form select:focus {
  border-color: rgba(20,184,166,.65);
  box-shadow: 0 0 0 4px rgba(20,184,166,.12);
}

body.ianova-app-page .ianova-form button[type="submit"] {
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
}

body.ianova-app-page .ianova-table-wrap {
  border: 1px solid #e3edf2;
  border-radius: 18px;
  background: #ffffff;
}

body.ianova-app-page .ianova-table th {
  color: var(--ianova-muted);
  background: #f8fbff;
}

body.ianova-app-page .ianova-table td {
  color: var(--ianova-ink);
  border-top: 1px solid #edf2f7;
}

body.ianova-app-page .print-document {
  padding: 24px;
}

body.ianova-app-page .success-message {
  color: #0f766e;
}

@media (max-width: 1080px) {
  body.ianova-app-page .dashboard-container {
    grid-template-columns: 1fr;
  }

  .ianova-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--ianova-line);
  }

  body.ianova-app-page .dashboard-nav {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  body.ianova-app-page .dashboard-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.ianova-app-page .dashboard-main {
    padding: 12px;
  }

  body.ianova-app-page .dashboard-container {
    min-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .ianova-workspace {
    padding: 14px;
  }

  .ianova-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.ianova-app-page .dashboard-meta {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
 NUBORIX ANIMATED PREMIUM BACKGROUND
 Inspired visual direction, original implementation
 ========================================================= */

:root {
 --nx-bg-1: #f6f9ff;
 --nx-bg-2: #0b1026;
 --nx-bg-3: #13091f;
 --nx-cyan: #22d3ee;
 --nx-blue: #2563eb;
 --nx-purple: #7c3aed;
 --nx-violet: #a855f7;
 --nx-pink: #d946ef;
}

html {
 background: var(--nx-bg-1);
}

body {
 position: relative;
 min-height: 100vh;
 overflow-x: hidden;
 background:
 radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.16), transparent 28rem),
 radial-gradient(circle at 78% 8%, rgba(124, 58, 237, 0.20), transparent 32rem),
 radial-gradient(circle at 50% 88%, rgba(217, 70, 239, 0.12), transparent 30rem),
 linear-gradient(135deg, var(--nx-bg-1), var(--nx-bg-2) 48%, var(--nx-bg-3));
 color: #f8fafc;
}

.nuborix-animated-bg {
 position: fixed;
 inset: 0;
 z-index: -1;
 overflow: hidden;
 pointer-events: none;
 background:
 radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.10), transparent 24rem),
 radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.14), transparent 26rem),
 linear-gradient(135deg, #eef6ff, #f8fbff 45%, #ffffff);
}

.bg-orb {
 position: absolute;
 display: block;
 width: 34rem;
 height: 34rem;
 border-radius: 999px;
 filter: blur(70px);
 opacity: 0.44;
 transform: translate3d(0, 0, 0);
 animation: nuborixOrbFloat 18s ease-in-out infinite alternate;
}

.bg-orb-1 {
 top: -10rem;
 left: -8rem;
 background: rgba(34, 211, 238, 0.55);
 animation-duration: 20s;
}

.bg-orb-2 {
 top: 4rem;
 right: -12rem;
 background: rgba(124, 58, 237, 0.60);
 animation-duration: 24s;
 animation-delay: -6s;
}

.bg-orb-3 {
 bottom: -14rem;
 left: 30%;
 background: rgba(217, 70, 239, 0.42);
 animation-duration: 26s;
 animation-delay: -10s;
}

.bg-grid {
 position: absolute;
 inset: 0;
 opacity: 0.18;
 background-image:
 linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
 linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
 background-size: 72px 72px;
 mask-image: radial-gradient(circle at center, black, transparent 72%);
 animation: nuborixGridMove 32s linear infinite;
}

.bg-noise {
 position: absolute;
 inset: 0;
 opacity: 0.08;
 background-image:
 radial-gradient(circle at 20% 30%, rgba(255,255,255,0.45) 0 1px, transparent 1px),
 radial-gradient(circle at 70% 60%, rgba(255,255,255,0.30) 0 1px, transparent 1px);
 background-size: 38px 38px, 54px 54px;
 animation: nuborixNoiseDrift 18s linear infinite;
}

@keyframes nuborixOrbFloat {
 0% {
 transform: translate3d(0, 0, 0) scale(1);
 }
 50% {
 transform: translate3d(4rem, 2rem, 0) scale(1.08);
 }
 100% {
 transform: translate3d(-2rem, 4rem, 0) scale(0.96);
 }
}

@keyframes nuborixGridMove {
 from {
 transform: translate3d(0, 0, 0);
 }
 to {
 transform: translate3d(-72px, -72px, 0);
 }
}

@keyframes nuborixNoiseDrift {
 from {
 transform: translate3d(0, 0, 0);
 }
 to {
 transform: translate3d(38px, -54px, 0);
 }
}

@media (prefers-reduced-motion: reduce) {
 .bg-orb,
 .bg-grid,
 .bg-noise {
 animation: none;
 }
}

@media (max-width: 768px) {
 .bg-orb {
 width: 24rem;
 height: 24rem;
 filter: blur(56px);
 opacity: 0.38;
 }

 .bg-grid {
 background-size: 52px 52px;
 }
}

header,
main,
section,
footer,
.ianova-highlight {
 position: relative;
 z-index: 1;
}

/* =========================================================
   IANOVA DASHBOARD STYLES
   ========================================================= */

.dashboard-main { margin-top: 80px; } /* Ajustar si header es más alto */

.dashboard-container { 
  max-width: 1180px;
  margin: 80px auto;
  padding: 32px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--surface-strong);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.dashboard-header h1 { margin: 0; font-size: 2rem; }

.dashboard-header .logout-button {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dashboard-header .logout-button:hover { background: rgba(255,255,255,0.15); }

.dashboard-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.dashboard-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dashboard-nav a:hover, .dashboard-nav a.active {
  color: var(--cyan);
}

.dashboard-content {
  background: var(--surface-strong);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px;
}

/* Make sure the main content Z-index is correct */
main.dashboard-main { position: relative; z-index: 1; }

/* =========================================================
   FINAL UX POLISH - NUBORIX + IANOVA PREVIEW
   ========================================================= */

.nuborix-light-page .nav-cta {
  white-space: nowrap;
}

.nuborix-light-page .light-hero-copy h1 {
  font-size: clamp(2.35rem, 4.4vw, 4.1rem);
  letter-spacing: 0;
}

.nuborix-light-page .light-hero-copy p,
.nuborix-light-page .subpage-hero p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.nuborix-light-page .section-heading h2,
.nuborix-light-page .subpage-hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: 0;
}

.nuborix-light-page .button,
.nuborix-light-page button.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nuborix-light-page .button:hover,
.nuborix-light-page button.button:hover {
  transform: translateY(-2px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s ease, transform .62s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nuborix-light-page .light-hero.reveal-on-scroll,
.nuborix-light-page .tech-hero.reveal-on-scroll,
.nuborix-light-page .subpage-hero.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.float-animation {
  animation: mockupFloat 8s ease-in-out infinite;
}

.tech-glow {
  box-shadow: 0 20px 55px rgba(15, 23, 42, .08), 0 0 0 1px rgba(6, 182, 212, .14);
}

.animated-border {
  position: relative;
}

.animated-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37,99,235,.34), rgba(6,182,212,.28), rgba(124,58,237,.24));
  opacity: .42;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.soft-pulse {
  animation: softPulse 3.8s ease-in-out infinite;
}

.hero-access-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 32px;
}

.frontpage-access-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
}

.frontpage-access-card h2 {
  margin: 4px 0;
  color: #0f172a;
  font-size: 1.3rem;
}

.frontpage-access-card p {
  margin: 0;
  color: #475569;
  font-size: .95rem;
}

.frontpage-access-card label {
  display: grid;
  gap: 7px;
  color: #0f172a;
  font-size: .86rem;
  font-weight: 850;
}

.frontpage-access-card input {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 13px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.frontpage-access-card input:focus {
  border-color: rgba(6, 182, 212, .58);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .12);
}

.network-visual {
  position: relative;
  min-height: 218px;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 28%, rgba(6,182,212,.18), transparent 9rem),
    radial-gradient(circle at 78% 34%, rgba(124,58,237,.12), transparent 10rem),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(238,246,255,.82));
  overflow: hidden;
}

.network-visual::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 28%, rgba(37,99,235,.2) 28% 29%, transparent 29% 70%, rgba(20,184,166,.22) 70% 71%, transparent 71%),
    linear-gradient(0deg, transparent 40%, rgba(124,58,237,.18) 40% 41%, transparent 41%);
}

.network-visual span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #06b6d4;
  box-shadow: 0 0 0 10px rgba(6,182,212,.11);
  animation: nodePulse 3s ease-in-out infinite;
}

.network-visual span:nth-child(1) { left: 16%; top: 28%; }
.network-visual span:nth-child(2) { left: 58%; top: 24%; background: #7c3aed; animation-delay: .35s; }
.network-visual span:nth-child(3) { left: 35%; top: 66%; background: #14b8a6; animation-delay: .7s; }
.network-visual span:nth-child(4) { right: 14%; bottom: 25%; background: #f59e0b; animation-delay: 1s; }

.network-visual strong {
  position: absolute;
  z-index: 1;
  padding: 8px 10px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255,255,255,.9);
  font-size: .8rem;
}

.network-visual strong:nth-of-type(1) { left: 10%; bottom: 18%; }
.network-visual strong:nth-of-type(2) { right: 12%; top: 20%; }
.network-visual strong:nth-of-type(3) { left: 44%; bottom: 12%; }

.mockup-card.floating-document {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 26px;
  width: 150px;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(15,23,42,.14);
}

.mockup-card small,
.mockup-card span {
  color: #475569;
  font-size: .78rem;
  font-weight: 850;
}

.mockup-card strong {
  color: #0f172a;
  font-size: 1.1rem;
}

@keyframes softPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.02); }
}

/* IANOVA final accounting dashboard pass */

body.ianova-app-page {
  --ianova-bg: #f7fafc;
  --ianova-shell: #ffffff;
  --ianova-panel: #ffffff;
  --ianova-soft: #f7fafc;
  --ianova-line: #d9e4ea;
  --ianova-active-line: rgba(15,159,154,0.45);
  --ianova-ink: #172033;
  --ianova-muted: #64748b;
  --ianova-teal: #0f9f9a;
  --ianova-teal-2: #14b8a6;
  background:
    radial-gradient(circle at 8% 8%, rgba(20,184,166,.16), transparent 22rem),
    radial-gradient(circle at 92% 14%, rgba(37,99,235,.10), transparent 28rem),
    #f7fafc;
}

body.ianova-app-page .dashboard-main {
  padding: 18px;
}

body.ianova-app-page .dashboard-container {
  max-width: 1540px;
  min-height: calc(100vh - 36px);
  grid-template-columns: 238px minmax(0, 1fr);
  border-radius: 26px;
  border-color: var(--ianova-line);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ianova-sidebar {
  padding: 18px 12px;
  background: #ffffff;
}

.ianova-sidebar-brand {
  min-height: 52px;
  padding: 0 10px 14px;
  border-bottom: 1px solid #edf2f7;
}

.ianova-sidebar-brand span:last-child {
  display: grid;
  gap: 2px;
}

.ianova-sidebar-brand small {
  color: var(--ianova-muted);
  font-size: .72rem;
  font-weight: 800;
}

body.ianova-app-page .dashboard-nav button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 780;
  text-align: left;
}

body.ianova-app-page .dashboard-nav button.active,
body.ianova-app-page .dashboard-nav button:hover {
  border-color: var(--ianova-active-line);
  color: #0f766e;
  background: linear-gradient(135deg, #e9fbf7, #f7fafc);
}

body.ianova-app-page .dashboard-nav .nav-logout {
  margin-top: 10px;
  border-color: rgba(239,68,68,.18);
  color: #b91c1c;
  background: #fff7f7;
}

.ianova-workspace {
  padding: 18px 20px 24px;
  background: #f7fafc;
}

.ianova-topbar {
  min-height: 58px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--ianova-line);
  border-radius: 18px;
  background: #ffffff;
}

.ianova-account-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ianova-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f9f9a, #2563eb);
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(15,159,154,.18);
}

body.ianova-app-page .dashboard-header {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #eefbf8);
}

body.ianova-app-page .dashboard-header h1 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

body.ianova-app-page .dashboard-meta {
  width: min(840px, 100%);
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  gap: 6px;
}

body.ianova-app-page .dashboard-meta div {
  min-width: 0;
  padding: 7px 9px;
  border-radius: 11px;
  background: #f8fbff;
}

body.ianova-app-page .dashboard-meta span {
  font-size: .6rem;
}

body.ianova-app-page .dashboard-meta strong {
  font-size: .76rem;
}

body.ianova-app-page .logout-button,
body.ianova-app-page .ianova-actions-grid button,
body.ianova-app-page .ianova-form button,
body.ianova-app-page .ianova-table button,
body.ianova-app-page .export-actions button,
body.ianova-app-page .ghost-button,
body.ianova-app-page .plan-card button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 850;
}

body.ianova-app-page .logout-button {
  flex: 0 0 auto;
  color: #b91c1c;
  border-color: rgba(239,68,68,.22);
  background: #fff7f7;
}

body.ianova-app-page .ianova-panel {
  padding: 20px;
  border-radius: 18px;
}

body.ianova-app-page .ianova-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.ianova-app-page .ianova-section-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

body.ianova-app-page .ianova-stats-grid {
  gap: 12px;
}

body.ianova-app-page .ianova-stat-card {
  min-height: 92px;
  padding: 16px;
  border-color: var(--ianova-line);
  background: #ffffff;
}

body.ianova-app-page .ianova-stat-card strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

body.ianova-app-page .ianova-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

body.ianova-app-page .ianova-actions-grid button:first-child,
body.ianova-app-page .ianova-form button[type="submit"] {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f9f9a, #2563eb);
  box-shadow: 0 12px 24px rgba(15,159,154,.18);
}

body.ianova-app-page .ianova-table td:last-child {
  min-width: 240px;
}

body.ianova-app-page .ianova-table td:last-child button {
  margin: 3px;
}

body.ianova-app-page .ianova-table button[data-status-doc][data-status="anulada"],
body.ianova-app-page .ianova-table button[data-delete-client] {
  color: #b91c1c;
  border-color: rgba(239,68,68,.22);
  background: #fff7f7;
}

body.ianova-app-page .ianova-table button[data-status-doc][data-status="pagada"] {
  color: #0f766e;
  border-color: rgba(15,159,154,.28);
  background: #effdf9;
}

body.ianova-app-page .ianova-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

body.ianova-app-page .ianova-form label {
  gap: 7px;
  font-size: .84rem;
  font-weight: 820;
}

body.ianova-app-page .ianova-form input,
body.ianova-app-page .ianova-form select {
  min-height: 40px;
  border-radius: 10px;
}

body.ianova-app-page .ianova-form .full {
  grid-column: 1 / -1;
}

body.ianova-app-page .ianova-table-wrap {
  overflow: auto;
  border-radius: 16px;
}

body.ianova-app-page .ianova-table {
  min-width: 760px;
  font-size: .88rem;
}

body.ianova-app-page .ianova-table th {
  padding: 12px 14px;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.ianova-app-page .ianova-table td {
  padding: 12px 14px;
}

body.ianova-app-page .ianova-table td:nth-child(5),
body.ianova-app-page .totals-box p {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.ianova-app-page .plans-grid {
  gap: 14px;
}

body.ianova-app-page .plan-card {
  padding: 18px;
}

body.ianova-app-page .plan-card h3 {
  font-size: 1.08rem;
}

@media (max-width: 1120px) {
  body.ianova-app-page .dashboard-meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .ianova-account-area {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 920px) {
  .hero-access-grid {
    grid-template-columns: 1fr;
  }

  body.ianova-app-page .dashboard-container {
    grid-template-columns: 1fr;
  }

  .ianova-sidebar {
    position: static;
  }

  body.ianova-app-page .ianova-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nuborix-light-page .light-hero-copy h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .frontpage-access-card,
  .network-visual {
    border-radius: 18px;
  }

  body.ianova-app-page .dashboard-main {
    padding: 8px;
  }

  body.ianova-app-page .dashboard-container {
    min-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  body.ianova-app-page .dashboard-meta {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   IANOVA DASHBOARD STYLES
   ========================================================= */

.dashboard-main { margin-top: 80px; } /* Ajustar si header es más alto */

.dashboard-container { 
  max-width: 1180px;
  margin: 80px auto;
  padding: 32px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--surface-strong);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.dashboard-header h1 { margin: 0; font-size: 2rem; }

.dashboard-header .logout-button {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dashboard-header .logout-button:hover { background: rgba(255,255,255,0.15); }

.dashboard-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.dashboard-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dashboard-nav a:hover, .dashboard-nav a.active {
  color: var(--cyan);
}

.dashboard-content {
  background: var(--surface-strong);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px;
}

/* Make sure the main content Z-index is correct */
main.dashboard-main { position: relative; z-index: 1; }

/* Styles for login error message */
.login-error-message {
  color: #f87171; /* Red-500 */
  font-size: 0.875rem;
  margin-top: 10px;
  text-align: center;
  display: none;
}

/* Adjusted styles for input focus to match prompt */
.login-form input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

/* Add login error message to ianova/index.html */
/* The login form in ianova/index.html should have an element like <div id="login-error" class="login-error-message">Correo o contraseña incorrectos.</div> */

/* Add login screen styles to styles.css if not present */

/* =========================================================
   IANOVA DEMO FRONTEND STYLES
   ========================================================= */

/* Styles for Login/Register screens */
.login-screen, .registration-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.28), transparent 30rem),
    linear-gradient(135deg, #eef6ff, #f8fbff 45%, #ffffff);
  color: #f8fafc;
}

.login-card, .registration-card {
  width: min(100%, 460px);
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.login-brand span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.24);
  font-weight: 800;
}

.login-brand h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.login-brand p {
  margin: 0 0 26px;
  color: #cbd5e1;
  line-height: 1.6;
}

.login-form, .registration-form {
  display: grid;
  gap: 16px;
}

.login-form label, .registration-form label {
  display: grid;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 700;
}

.login-form input, .registration-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  outline: none;
}

.login-form input:focus, .registration-form input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.login-form button, .registration-form button {
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #2563eb, #7c3aed);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.34);
}
.login-form button:hover, .registration-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.login-switch, .registration-switch {
  display: block;
  margin-top: 18px;
  text-align: center;
  color: #67e8f9;
  font-weight: 800;
  text-decoration: none;
}

.error-message {
  color: #f87171; /* Red-500 */
  font-size: 0.875rem;
  margin-top: 10px;
  text-align: center;
  display: none;
}

/* Hide registration form by default */
.registration-screen { display: none; }

/* Styles for Dashboard */
.dashboard-main { margin-top: 80px; }
.dashboard-container {
  max-width: 1180px;
  margin: 80px auto;
  padding: 32px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--surface-strong);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.dashboard-header h1 { margin: 0; font-size: 2rem; }
.dashboard-header .logout-button {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}
.dashboard-header .logout-button:hover { background: rgba(255,255,255,0.15); }
.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.dashboard-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.dashboard-nav a:hover, .dashboard-nav a.active {
  color: var(--cyan);
}
.dashboard-content {
  background: var(--surface-strong);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px;
}
.dashboard-content h2 { font-size: 1.8rem; margin-bottom: 20px; }
.dashboard-content p { color: var(--muted); margin-bottom: 24px; }
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.quick-action-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.quick-action-card:hover { background: var(--surface-strong); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.quick-action-card span { font-size: 1.2rem; font-weight: 600; color: var(--cyan); display: block; margin-bottom: 10px; }
.quick-action-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Ensure main content has correct z-index */
main.dashboard-main { position: relative; z-index: 1; }

/* --- NEW UI CLASES --- */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d9e4ea;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #d9e4ea;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: #0f9f9a;
  color: white;
}
.btn-primary:hover {
  background: #0d8a86;
  box-shadow: 0 4px 12px rgba(15, 159, 154, 0.2);
}
.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  background: #e2e8f0;
}
.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.btn-danger:hover {
  background: #fecaca;
}
.btn-ghost {
  background: transparent;
  color: #0f9f9a;
}
.btn-ghost:hover {
  background: rgba(15, 159, 154, 0.05);
}

/* --- ANIMATIONS --- */
.premium-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.soft-float {
  animation: softFloat 4s ease-in-out infinite alternate;
}
@keyframes softFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
.glow-border {
  border: 1px solid rgba(15, 159, 154, 0.4);
  box-shadow: 0 0 15px rgba(15, 159, 154, 0.1);
}
.animated-panel {
  animation: panelSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- COMPACT LOGIN FRONTPAGE --- */
.compact-login-box {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 400px;
  width: 100%;
}
.compact-login-box h3 { margin: 0 0 8px; font-size: 1.25rem; color: #0f172a; }
.compact-login-box p { font-size: 0.9rem; color: #475569; margin-bottom: 16px; }
.compact-login-form { display: grid; gap: 12px; }
.compact-login-form input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
}
.login-error-msg {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* IANOVA ENHANCED BUTTONS & ACTION BARS */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d9e4ea;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #d9e4ea;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: #0f9f9a;
  color: white;
}
.btn-primary:hover {
  background: #0d8a86;
  box-shadow: 0 4px 12px rgba(15, 159, 154, 0.2);
}
.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  background: #e2e8f0;
}
.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.btn-danger:hover {
  background: #fecaca;
}
.btn-ghost {
  background: transparent;
  color: #0f9f9a;
}
.btn-ghost:hover {
  background: rgba(15, 159, 154, 0.05);
}

/* Also ensure .ianova-section-head flex properties align buttons to the right */
.ianova-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.light-hero-copy h1 { font-size: clamp(2.6rem, 5vw, 4.0rem); line-height: 1.1; margin-bottom: 24px; }
/* IANOVA TYPOGRAPHY FIXES */
.dashboard-title-group h1, #dashboard-title {
  font-size: 1.75rem !important;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}
.ianova-section-head h2 {
  font-size: 1.25rem !important;
  margin-top: 4px;
  margin-bottom: 4px;
  color: #1e293b;
}
.ianova-section-head p {
  font-size: 0.9rem !important;
  color: #64748b;
}
.ianova-card h3, .mockup-panel h3 {
  font-size: 1.1rem !important;
  color: #334155;
  margin-bottom: 12px;
}
.ianova-breadcrumb {
  font-size: 0.85rem !important;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ianova-sidebar-brand strong {
  font-size: 1.1rem !important;
}
.ianova-sidebar-brand small {
  font-size: 0.75rem !important;
}


/* --- TECH ANIMATED BACKGROUND --- */
#tech-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: #f4f8ff;
}

.nuborix-light-page {
  background: transparent !important; /* Let canvas show through */
}

/* Hide old animated bg elements if they exist */
.nuborix-animated-bg { display: none !important; }
.light-hero { background: transparent !important; }
.light-section { background: rgba(255, 255, 255, 0.4) !important; backdrop-filter: blur(10px); }
.light-section.tinted { background: rgba(238, 244, 255, 0.4) !important; }

/* --- PREMIUM BUTTONS --- */


/* --- IANOVA INTERNAL FIXES --- */
.ianova-app-page h1, .ianova-app-page h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
}
.ianova-app-page h3 {
  font-size: 1.1rem !important;
}
.ianova-sidebar {
  background: #ffffff;
  border-right: 1px solid #d9e4ea;
}
.ianova-topbar {
  background: #ffffff;
  border-bottom: 1px solid #d9e4ea;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.dashboard-nav button {
  text-align: left;
  padding: 10px 16px;
  margin: 4px 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.dashboard-nav button:hover {
  background: #f1f5f9;
  color: #0f9f9a;
}
.dashboard-nav button.active {
  background: #e0f2fe;
  color: #0369a1;
}

/* Make action bars and layout tighter */
.action-bar { margin-bottom: 16px; padding: 12px 16px; }
.form-actions { margin-top: 16px; padding-top: 12px; }

/* --- SOFTWARE MOCKUP --- */
.software-mockup {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
}
.mockup-topbar {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}
.mockup-dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}
.mockup-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mockup-dots span:nth-child(1) { background: #fca5a5; }
.mockup-dots span:nth-child(2) { background: #fcd34d; }
.mockup-dots span:nth-child(3) { background: #86efac; }
.mockup-topbar strong {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}
.mockup-body {
  display: flex;
  height: 350px;
}
.mockup-sidebar {
  width: 140px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 16px 8px;
}
.mockup-nav-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 500;
}
.mockup-nav-item.active {
  background: #e0f2fe;
  color: #0369a1;
}
.mockup-content {
  flex: 1;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mockup-header h3 {
  font-size: 1.2rem;
  color: #0f172a;
  margin: 0;
}
.mockup-metrics {
  display: flex;
  gap: 12px;
}
.mockup-metric-card {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}
.mockup-metric-card small {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.mockup-metric-card strong {
  display: block;
  font-size: 1.1rem;
  color: #0f172a;
}
.mockup-table-area {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.mockup-table-row {
  display: flex;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #334155;
  align-items: center;
}
.mockup-table-row:last-child {
  border-bottom: none;
}
.mockup-table-row.header {
  background: #f8fafc;
  font-weight: 600;
  color: #64748b;
}
.mockup-table-row span {
  flex: 1;
}
.status-pill {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
  text-align: center;
}
.status-pill.pagada {
  background: #dcfce7;
  color: #166534;
}
.status-pill.pendiente {
  background: #fef9c3;
  color: #854d0e;
}

/* Custom SVGs and Tech tweaks */
.tech-node { fill: #0891b2; }
.network-lines { stroke: #1d4ed8; stroke-width: 1.5; stroke-dasharray: 4; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: 1000; } }

/* Ensure canvas works well */
#tech-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: #f4f8ff; /* Fallback base */
}

/* --- PREMIUM BUTTONS --- */
.premium-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.45);
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(29, 78, 216, 0.24);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  cursor: pointer;
}

.premium-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(29, 78, 216, 0.32);
  color: #ffffff;
}

.premium-button.secondary {
  background: linear-gradient(135deg, #0f766e, #6d28d9);
  border-color: rgba(109, 40, 217, 0.45);
  box-shadow: 0 16px 38px rgba(109, 40, 217, 0.24);
}
.premium-button.secondary:hover {
  box-shadow: 0 22px 55px rgba(109, 40, 217, 0.32);
}

.button-icon {
  display: flex;
  align-items: center;
}
.button-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button-arrow {
  transition: transform 220ms ease;
  font-weight: bold;
}

.premium-button:hover .button-arrow {
  transform: translateX(4px);
}

/* --- FRONTPAGE LOGIN CARD --- */
.frontpage-login-card {
  width: min(100%, 320px);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
  margin: 0 auto;
}

.frontpage-login-card h3 {
  font-size: 1rem;
  margin: 0 0 5px;
  color: #0f172a;
  font-weight: 700;
}

.frontpage-login-card p {
  font-size: 0.82rem;
  margin: 0 0 10px;
  color: #334155;
}

.frontpage-login-form {
  display: grid;
  gap: 8px;
}

.frontpage-login-form input {
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  padding: 0 11px;
  font-size: 0.88rem;
  width: 100%;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.2s;
  box-sizing: border-box;
}

.frontpage-login-form input:focus {
  border-color: #0891b2;
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.frontpage-login-form button {
  height: 40px;
  border-radius: 12px;
  font-size: 0.9rem;
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
  transition: all 0.2s;
}

.frontpage-login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.3);
}

.frontpage-login-message {
  font-size: 0.85rem;
  margin-top: 10px;
  font-weight: 500;
  text-align: center;
}

/* Fix Hero Layout to accommodate the login card next to it */
.light-hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}
.light-hero-copy {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}
.light-hero-form-area {
  flex: 0 0 auto;
}

/* --- PRODUCT REGISTRATION BLOCKS --- */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px;
}

.align-center {
  align-items: center;
}

.section-lead {
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 680px;
}

.compact-list,
.data-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.compact-list span,
.data-chip-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.product-register-card {
  display: grid;
  gap: 11px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(29, 78, 216, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
}

.product-register-card.ia606-card {
  border-color: rgba(109, 40, 217, 0.32);
}

.product-register-card h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 1.18rem;
}

.product-register-card label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

.product-register-card input,
.product-register-card select {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  padding: 0 12px;
  font: inherit;
}

.product-register-card input:focus,
.product-register-card select:focus {
  outline: none;
  border-color: rgba(8, 145, 178, 0.55);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.11);
}

.product-register-card .premium-button {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

/* --- NUBORIX TECHNOLOGY REDESIGN --- */
.tech-background,
#tech-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 16% 18%, rgba(29, 78, 216, 0.16), transparent 34rem),
    radial-gradient(circle at 84% 14%, rgba(109, 40, 217, 0.13), transparent 30rem),
    linear-gradient(135deg, #f4f8ff 0%, #eaf1fb 100%);
}

.tech-hero {
  position: relative;
  padding: clamp(74px, 9vw, 118px) 0 72px;
}

.tech-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.tech-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.45rem, 5vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.tech-hero-copy p,
.subpage-hero p {
  max-width: 720px;
  color: #334155;
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.75;
}

.hero-visual-stack {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.real-image-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.hero-real-image,
.card-real-image {
  display: block;
  width: 100%;
  object-fit: cover;
}

.hero-real-image {
  min-height: 280px;
  aspect-ratio: 16 / 10;
}

.card-real-image {
  height: 168px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.image-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 16px;
  color: #334155;
  font-size: 0.88rem;
}

.image-caption strong {
  color: #0f172a;
}

.tech-card-grid,
.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.service-card,
.product-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.premium-hover:hover,
.service-card:hover,
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 145, 178, 0.45);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.service-card h3,
.product-card h3 {
  color: #0f172a;
  font-size: 1.18rem;
}

.service-card p,
.product-card p {
  color: #475569;
  line-height: 1.65;
}

.featured-product {
  display: grid;
  align-content: start;
  gap: 12px;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.benefit-grid span,
.honest-status {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
  color: #334155;
  font-weight: 700;
}

.center-chips {
  justify-content: center;
}

.honest-status {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  font-weight: 600;
}

.nav-access {
  border: 1px solid rgba(29, 78, 216, 0.32);
  border-radius: 999px;
  padding: 8px 12px !important;
  background: rgba(255, 255, 255, 0.74);
}

.frontpage-login-actions {
  display: grid;
  gap: 8px;
}

.frontpage-login-actions .premium-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .tech-hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Document CSS */
.document-filter-form {
  align-items: end;
  margin-bottom: 18px;
}

.document-lines-wrap {
  overflow-x: auto;
}

.document-lines-table {
  min-width: 920px;
}

.document-lines-table input,
.document-lines-table select,
.document-lines-actions select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border-color, #d8dee8);
  border-radius: 6px;
  padding: 6px 8px;
}

.document-lines-table td:first-child {
  min-width: 220px;
}

.document-lines-table td:first-child select {
  margin-bottom: 6px;
}

.document-lines-actions {
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.document-lines-actions select {
  max-width: 320px;
}

.document-form-totals {
  border-top: 1px solid var(--border-color, #d8dee8);
  margin-top: 14px;
  padding-top: 10px;
  text-align: right;
}

.print-document {
  --print-accent: #1f2a44;
  --print-red: #dc2626;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
  color: #10172f;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11.5px;
  line-height: 1.28;
  margin: 0 auto;
  max-width: 190mm;
  min-height: 260mm;
  overflow: hidden;
  padding: 11mm 14mm 9mm;
  position: relative;
}

.print-template-label {
  color: #64748b;
  font-size: 10px;
  margin-bottom: 6px;
  text-align: right;
}

.print-template-modern {
  --print-accent: #0f766e;
  --print-red: #e11d48;
}

.print-template-compact {
  --print-accent: #334155;
  font-size: 11px;
  min-height: 250mm;
  padding: 9mm 12mm 8mm;
}

.print-template-formal-rd {
  --print-accent: #162039;
  --print-red: #e11d48;
}

.print-logo-row {
  display: flex;
  margin-bottom: 3mm;
  min-height: 16mm;
}

.print-logo {
  display: block;
  max-height: 70px;
  max-width: 120px;
  object-fit: contain;
}

.print-logo.logo-small {
  max-height: 52px;
  max-width: 90px;
}

.print-logo.logo-medium {
  max-height: 70px;
  max-width: 120px;
}

.print-logo.logo-left {
  margin-right: auto;
}

.print-logo.logo-center {
  margin-left: auto;
  margin-right: auto;
}

.print-logo.logo-right {
  margin-left: auto;
}

.print-hero {
  align-items: start;
  display: grid;
  gap: 10mm;
  grid-template-columns: minmax(0, 1fr) 70mm;
  margin-bottom: 8mm;
}

.print-hero h1 {
  color: var(--print-accent);
  font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 39px;
  font-stretch: condensed;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 6mm;
  padding-left: 3mm;
  text-transform: uppercase;
}

.print-company-info {
  max-width: 82mm;
}

.print-company-info strong,
.print-party-block strong {
  display: block;
  font-size: 12px;
  margin-bottom: 1mm;
}

.print-company-info p,
.print-party-block p,
.print-doc-info p {
  margin: 1mm 0;
}

.print-meta-list {
  padding-top: 32mm;
}

.print-meta-list div {
  align-items: baseline;
  display: grid;
  gap: 5mm;
  grid-template-columns: minmax(28mm, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 2.2mm;
}

.print-meta-list span,
.print-party-block h3 {
  color: var(--print-accent);
  font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.print-meta-list strong {
  font-size: 10.8px;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
  text-align: left;
}

.print-party-grid {
  display: grid;
  gap: 9mm;
  grid-template-columns: 1fr 1fr 0.9fr;
  margin-bottom: 6mm;
}

.print-party-block h3 {
  margin: 0 0 2mm;
}

.print-party-status {
  text-align: right;
}

.print-star-rule {
  border-bottom: 1.5px solid var(--print-red);
  height: 5mm;
  margin-bottom: 3mm;
  overflow: hidden;
  position: relative;
}

.print-star-rule::before {
  color: var(--print-accent);
  content: "★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★";
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

.print-notice-row {
  border: 1px dashed #cbd5e1;
  color: #334155;
  display: flex;
  flex-wrap: wrap;
  gap: 3mm;
  justify-content: center;
  margin-bottom: 3mm;
  padding: 2mm 3mm;
}

.print-notice-row span {
  font-weight: 700;
}

.print-table {
  border-collapse: collapse;
  margin-bottom: 6mm;
  width: 100%;
}

.print-table th,
.print-table td {
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 3mm 2mm;
  text-align: left;
  vertical-align: top;
}

.print-table th {
  background: transparent;
  border-bottom: 1.4px solid var(--print-red);
  color: var(--print-accent);
  font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.print-table th:nth-child(1),
.print-table td:nth-child(1) {
  text-align: center;
  width: 14mm;
}

.print-table th:nth-child(3),
.print-table th:nth-child(4),
.print-table th:nth-child(5),
.print-table th:nth-child(6),
.print-table td:nth-child(3),
.print-table td:nth-child(4),
.print-table td:nth-child(5),
.print-table td:nth-child(6) {
  text-align: right;
  white-space: nowrap;
}

.print-totals {
  border: 0;
  margin: 0 0 7mm auto;
  max-width: 62mm;
  width: 100%;
}

.print-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 2mm 1mm;
}

.print-totals-row + .print-totals-row {
  border-top: 0;
}

.print-grand-total {
  background: transparent;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.print-reference-total {
  color: #475569;
  font-size: 10.5px;
}

.print-ecf-qr {
  border: 1px dashed #94a3b8;
  font-size: 10px;
  margin-left: auto;
  max-width: 46mm;
  padding: 2mm;
  text-align: center;
}

.print-footer {
  align-items: end;
  border-top: 0;
  display: grid;
  gap: 8mm;
  font-size: 11px;
  grid-template-columns: minmax(42mm, 0.75fr) minmax(70mm, 1.1fr) minmax(34mm, 0.45fr);
  margin-top: 4mm;
  min-height: 38mm;
  padding-top: 0;
  position: relative;
}

.print-footer-art {
  background:
    radial-gradient(circle at 32% 40%, rgba(255,255,255,0.95) 0 2.2mm, transparent 2.4mm),
    linear-gradient(166deg, transparent 0 22%, rgba(31,42,68,0.2) 23% 38%, transparent 39%),
    linear-gradient(160deg, transparent 0 40%, rgba(220,38,38,0.18) 41% 56%, transparent 57%);
  grid-column: 1 / -1;
  height: 36mm;
  left: -14mm;
  pointer-events: none;
  position: absolute;
  right: -14mm;
  top: -7mm;
  z-index: 0;
}

.print-payment-box,
.print-signatures,
.print-thanks,
.print-ecf-qr {
  position: relative;
  z-index: 1;
}

.print-payment-box {
  border-left: 1px solid var(--print-accent);
  grid-column: 2;
  padding-left: 3mm;
}

.print-payment-box h3 {
  color: var(--print-red);
  font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 4mm;
  text-transform: uppercase;
}

.print-payment-box p {
  margin: 2mm 0;
}

.print-signatures {
  align-self: center;
  display: block;
  grid-column: 3;
  margin: 0;
  text-align: center;
}

.print-signatures p {
  color: var(--print-accent);
  margin: 1mm 0;
}

.print-thanks {
  align-self: end;
  border-top: 0;
  color: var(--print-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-style: italic;
  grid-column: 1;
  margin: 0;
  padding-top: 0;
  text-align: center;
}

.print-thanks span {
  color: #475569;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  font-style: normal;
  margin-top: 1mm;
}

@media print {
  @page {
    size: letter portrait;
    margin: 12mm;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    background: white !important;
    overflow: visible !important;
    display: block !important;
  }

  html,
  body,
  main,
  .dashboard-main,
  .dashboard-container,
  .ianova-workspace,
  #ianova-app,
  .ianova-panel {
    background: white !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    position: static !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
  }

  /* Ocultar hermanos que no sean la cadena de impresion */
  .ianova-sidebar,
  .dashboard-nav,
  .ianova-sidebar-note,
  .ianova-topbar,
  .dashboard-header,
  .action-bar,
  .no-print {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body * {
    visibility: hidden;
  }

  .print-document,
  .print-document * {
    visibility: visible;
  }

  #print-document,
  .print-document {
    background: white !important;
    border: none !important;
    box-sizing: border-box;
    box-shadow: none !important;
    color: #10172f !important;
    display: block !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    left: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
    position: absolute !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
    break-inside: avoid !important;
  }

  .print-template-label {
    display: none;
  }

  .print-logo,
  .document-logo,
  .invoice-logo,
  .quote-logo {
    max-height: 60px !important;
    max-width: 110px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .print-document img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .print-logo-row {
    margin-bottom: 1.5mm !important;
    min-height: 0 !important;
  }

  .print-hero {
    gap: 4mm !important;
    grid-template-columns: minmax(0, 1fr) 62mm !important;
    margin-bottom: 2.5mm !important;
    margin-top: 0 !important;
  }

  .print-hero h1 {
    font-size: 32px !important;
    margin-bottom: 2mm !important;
    padding-left: 0 !important;
  }

  .print-company-info p,
  .print-party-block p,
  .print-doc-info p {
    margin: 0.5mm 0 !important;
  }

  .print-meta-list {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .print-meta-list div {
    gap: 3mm !important;
    margin-bottom: 1mm !important;
  }

  .print-meta-list span,
  .print-party-block h3 {
    font-size: 12.5px !important;
  }

  .print-party-grid {
    gap: 4mm !important;
    margin-bottom: 2.5mm !important;
    margin-top: 1.5mm !important;
  }

  .print-party-block h3 {
    margin-bottom: 1mm !important;
  }

  .print-star-rule {
    height: 2mm !important;
    margin-bottom: 1.5mm !important;
  }

  .print-notice-row {
    margin-bottom: 1.5mm !important;
    padding: 1mm 2mm !important;
  }

  .print-table {
    border-collapse: collapse !important;
    margin-bottom: 3mm !important;
    width: 100% !important;
  }

  .print-table th,
  .print-table td {
    font-size: 10px !important;
    line-height: 1.15 !important;
    padding: 3px 5px !important;
    vertical-align: top !important;
  }

  table,
  tr,
  td,
  th,
  tbody,
  thead,
  tfoot {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-totals,
  .totals-section,
  .signature-section,
  .document-footer,
  .print-footer,
  .print-signatures,
  .print-payment-box {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-totals {
    margin-bottom: 2.5mm !important;
    max-width: 58mm !important;
  }

  .print-totals-row {
    padding: 1mm 0.5mm !important;
  }

  .print-grand-total {
    font-size: 14px !important;
  }

  .print-client-info {
    background: transparent;
  }

  .print-footer {
    gap: 4mm !important;
    margin-top: 2mm !important;
    min-height: 28mm !important;
  }

  .print-footer-art {
    height: 28mm !important;
    top: -4mm !important;
  }

  .print-payment-box {
    padding-left: 2mm !important;
  }

  .print-payment-box h3 {
    font-size: 11px !important;
    margin-bottom: 1.5mm !important;
  }

  .print-payment-box p {
    margin: 1mm 0 !important;
  }

  .print-signatures {
    margin-top: 0 !important;
  }

  .print-thanks {
    font-size: 24px !important;
  }
}
