:root {
  --black: #111111;
  --dark: #1b1b1b;
  --graphite: #2a2a28;
  --muted: #6f6c66;
  --line: #ded9cf;
  --paper: #f6f2ea;
  --white: #ffffff;
  --amber: #f5a400;
  --amber-dark: #bd7600;
  --green: #2f7d57;
  --radius: 4px;
}

* { box-sizing: border-box; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bars i,
  .mini-bars i,
  #dashRing,
  #floatRing,
  .dash-live i {
    transition: none !important;
    animation: none !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: #fbfaf7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: absolute;
  top: 26px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  width: min(1240px, calc(100% - 48px));
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: Rajdhani, Inter, sans-serif;
  text-transform: uppercase;
}

.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 20, 20, 0.52);
  backdrop-filter: blur(12px);
}

.nav a {
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav a:last-child { border-right: 0; }
.nav a:hover { background: rgba(255, 255, 255, 0.1); }

.header-cta {
  justify-self: end;
  min-width: 190px;
  padding: 22px 26px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 980px;
  padding: 150px 0 0;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.88), rgba(15, 15, 15, 0.58) 48%, rgba(15, 15, 15, 0.3)),
    linear-gradient(180deg, rgba(15, 15, 15, 0.18), rgba(15, 15, 15, 0.92)),
    url("assets/industry-hero.png") center / cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.55fr);
  gap: 70px;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--amber-dark); }

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

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(58px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 span {
  color: var(--amber);
}

.hero-text {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary {
  background: var(--amber);
  color: var(--black);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.hero-panel {
  align-self: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(75, 75, 72, 0.58);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.hero-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.6;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 96px auto 0;
  padding: 36px 0 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.68);
}

.hero-bottom h2 {
  margin-bottom: 16px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 34px;
  line-height: 1.08;
  text-transform: uppercase;
}

.hero-bottom p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.intro,
.logos,
.metrics,
.platform-section,
.testimonial,
.services,
.process,
.contact,
.footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.logos {
  padding: 56px 0 8px;
  text-align: center;
}

.logos-kicker {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px 56px;
}

.logos-row span {
  color: #aeb4bd;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color 200ms ease;
}

.logos-row span:hover {
  color: var(--graphite);
}

.intro {
  padding: 70px 0 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 90px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.metrics article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 44px 32px;
  background: var(--white);
  text-align: left;
}

.metrics strong {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(44px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1;
  color: var(--black);
}

.metrics span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.testimonial {
  margin-top: 96px;
  padding: 64px 0;
  text-align: center;
}

.testimonial .eyebrow {
  margin-bottom: 24px;
}

.testimonial blockquote {
  max-width: 880px;
  margin: 0 auto;
}

.testimonial blockquote p {
  margin: 0 0 28px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--black);
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial footer strong {
  font-size: 16px;
}

.testimonial footer span {
  color: var(--muted);
  font-size: 14px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.intro-grid article {
  position: relative;
  min-height: 260px;
  padding: 30px 26px 34px;
  background: var(--white);
}

.process-steps .step-icon {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
}

.process-steps .step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.process-steps .step-num {
  display: block;
  margin-bottom: 12px;
  color: var(--amber-dark);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.intro-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 34px;
  border-radius: var(--radius);
  overflow: hidden;
}

.intro-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.intro-grid h3,
.services-grid h3,
.process-steps h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.intro-grid p,
.section-heading p,
.services-grid p,
.process p,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.platform-section,
.services {
  padding: 110px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.5fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading h2,
.process h2,
.contact h2 {
  margin-bottom: 0;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.98;
  text-transform: uppercase;
}

.erp-showcase {
  position: relative;
  padding: clamp(18px, 4vw, 56px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 120% at 6% 0%, rgba(245, 164, 0, 0.16), transparent 42%),
    radial-gradient(120% 120% at 100% 100%, rgba(37, 99, 235, 0.12), transparent 46%),
    linear-gradient(180deg, #f4f7fb, #e9eef5);
}

.browser-frame {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e3e8ef;
  box-shadow: 0 44px 110px rgba(17, 24, 39, 0.24);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: #eef1f6;
  border-bottom: 1px solid #e5e9f0;
}

.browser-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d3d9e2;
}

.browser-bar .dot:nth-child(1) { background: #fc6058; }
.browser-bar .dot:nth-child(2) { background: #fdbc40; }
.browser-bar .dot:nth-child(3) { background: #2fc850; }

.browser-url {
  flex: 1;
  max-width: 340px;
  margin-left: 4px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #e1e6ee;
  background: var(--white);
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Panel General propio (renderizado, animado) */
.showcase-stage {
  position: relative;
}

.dash {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 540px;
  background: #f6f8fb;
}

.dash-side {
  padding: 18px 14px;
  background: var(--white);
  border-right: 1px solid #e8ecf3;
}

.dash-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.dash-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #667085;
  font-size: 12.5px;
  font-weight: 800;
}

.dash-nav a .nd {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #ccd5e1;
}

.dash-nav a.is-active {
  background: #111827;
  color: var(--white);
}

.dash-nav a.is-active .nd { background: var(--amber); }

.dash-main {
  min-width: 0;
  padding: 22px;
}

.dash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.dash-top small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-top h3 {
  margin: 5px 0 0;
  font-size: 23px;
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #e7f8ee;
  color: #079455;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.dash-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b76a;
}

.dash-live i { animation: livePulse 1.8s ease-out infinite; }

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dash-kpis article {
  padding: 14px;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: var(--white);
}

.dash-kpis span {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.dash-kpis strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 23px;
}

.dash-kpis small {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
}

.dash-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 14px;
}

.dash-card {
  padding: 16px;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: var(--white);
}

.dash-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-card header strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.dash-card em {
  font-style: normal;
  color: #98a2b3;
  font-weight: 900;
  font-size: 11px;
}

.mini-label {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  height: 168px;
}

.bars i {
  height: 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--amber), #35c26b);
  transition: height 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-stage.is-animated .bars i { height: var(--h); }
.showcase-stage.is-animated .bars i:nth-child(1) { transition-delay: 120ms; }
.showcase-stage.is-animated .bars i:nth-child(2) { transition-delay: 190ms; }
.showcase-stage.is-animated .bars i:nth-child(3) { transition-delay: 260ms; }
.showcase-stage.is-animated .bars i:nth-child(4) { transition-delay: 330ms; }
.showcase-stage.is-animated .bars i:nth-child(5) { transition-delay: 400ms; }
.showcase-stage.is-animated .bars i:nth-child(6) { transition-delay: 470ms; }
.showcase-stage.is-animated .bars i:nth-child(7) { transition-delay: 540ms; }

.bars-x {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 8px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.dash-quality {
  display: flex;
  flex-direction: column;
}

.ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 4px auto 16px;
}

.ring svg { transform: rotate(-90deg); }

#dashRing { transition: stroke-dashoffset 900ms cubic-bezier(0.2, 0.8, 0.2, 1); }

.ring-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 800;
}

.ring-legend {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.ring-legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.ring-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.ring-legend b {
  margin-left: auto;
  color: #111827;
  font-weight: 800;
}

/* Tarjetas flotantes con datos vivos */
.float-card {
  position: absolute;
  z-index: 3;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid #e7ebf2;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.22);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.showcase-stage.is-animated .float-card {
  opacity: 1;
  transform: none;
}

.float-a {
  left: clamp(-12px, -1vw, 0px);
  bottom: -26px;
  transition-delay: 220ms;
}

.float-a .mini-label { margin-bottom: 8px; }

.float-a strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1;
}

.float-b {
  right: clamp(-10px, -1vw, 0px);
  top: -28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition-delay: 400ms;
}

.float-b strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.float-ring svg { transform: rotate(-90deg); }
#floatRing { transition: stroke-dashoffset 900ms cubic-bezier(0.2, 0.8, 0.2, 1); }

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 56px;
}

.mini-bars i {
  width: 11px;
  height: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--amber), #35c26b);
  transition: height 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-stage.is-animated .mini-bars i { height: var(--h); }

.trust-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.trust-strip img {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  object-fit: contain;
}

.trust-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.erp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 12px;
  border-right: 1px solid #e5e9f0;
  background: var(--white);
  color: #7b8798;
}

.erp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin-bottom: 10px;
}

.erp-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.erp-nav-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.erp-nav-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #f1f4f8;
  color: #98a2b3;
  font-size: 10px;
}

.erp-nav-button:hover {
  background: #f6f8fb;
  color: #111827;
}

.erp-nav-button.active {
  border-color: #d7dee9;
  background: #111827;
  color: var(--white);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.13);
}

.erp-nav-button.active span {
  background: var(--amber);
  color: var(--black);
}

.erp-main {
  min-width: 0;
  padding: 22px;
}

.erp-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  background: var(--white);
}

.erp-topbar small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.erp-topbar h3 {
  margin: 4px 0 0;
  font-size: 25px;
}

.erp-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.erp-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.erp-actions .primary-mini {
  border-color: var(--amber);
  background: var(--amber);
}

.erp-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.erp-kpis article {
  min-height: 108px;
  padding: 14px 14px 16px;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  background: var(--white);
}

.erp-kpis span,
.erp-kpis small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.erp-kpis strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 25px;
}

.platform-canvas {
  min-width: 0;
}

.platform-canvas.is-changing {
  animation: viewIn 220ms ease both;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.platform-card,
.invoice-paper,
.side-panel,
.warehouse-map,
.kanban-column {
  min-width: 0;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  background: var(--white);
}

.dashboard-layout,
.operations-layout,
.inventory-layout,
.team-layout,
.cash-layout,
.accounting-layout,
.invoice-layout {
  display: grid;
  gap: 14px;
}

.dashboard-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
}

.hero-card,
.pending-card,
.flow-card,
.split-card,
.timeline-card,
.process-map,
.stock-card,
.team-table,
.request-card,
.cash-card,
.bank-card,
.ledger-card,
.fiscal-card {
  padding: 18px;
}

.hero-card {
  min-height: 314px;
  background: #111827;
  color: var(--white);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.card-head span,
.mini-label {
  display: block;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.card-head em {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(245, 164, 0, 0.18);
  color: var(--amber);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.hero-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  height: 205px;
  padding: 18px 14px 0;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.hero-chart div {
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f5a400, #35c26b);
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 8px;
  color: #9aa4b2;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.action-list,
.timeline-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.action-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
}

.action-list b {
  font-size: 22px;
}

.action-list span,
.kanban-card span,
.kanban-card small,
.simple-table span,
.panel-list dt,
.invoice-paper span,
.invoice-paper small,
.request-card small {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  justify-content: center;
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.status.ok { background: #e7f8ee; color: #079455; }
.status.warn { background: #fff4dc; color: #b76e00; }
.status.danger { background: #ffe8e8; color: #c42121; }
.status.info { background: #e9f1ff; color: #1d5fe8; }

.flow-card {
  grid-column: 1 / -1;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.flow-steps span {
  position: relative;
  padding: 16px 10px;
  border-radius: 8px;
  background: #f6f8fb;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.flow-steps span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 10px;
  height: 2px;
  background: var(--amber);
}

.flow-steps span:last-child::after {
  display: none;
}

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

.split-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 28px;
}

.split-card small {
  color: #079455;
  font-weight: 900;
}

.donut {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(#2563eb 0 42%, #35c26b 42% 68%, #f5a400 68% 84%, #e8edf4 84%);
  box-shadow: inset 0 0 0 20px var(--white);
}

.invoice-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.invoice-paper {
  padding: 26px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

.invoice-top,
.invoice-summary,
.invoice-total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.client-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #eef2ff;
  color: #2563eb;
  font-weight: 900;
}

.invoice-top {
  padding-bottom: 22px;
  border-bottom: 1px solid #e9edf3;
}

.invoice-top strong,
.invoice-summary strong {
  display: block;
}

.qr-mark {
  width: 54px;
  height: 54px;
  background:
    linear-gradient(90deg, #111827 50%, transparent 0) 0 0 / 12px 12px,
    linear-gradient(#111827 50%, transparent 0) 0 0 / 12px 12px;
}

.invoice-summary {
  padding: 22px 0;
  border-bottom: 1px solid #e9edf3;
}

.invoice-summary strong:last-child {
  font-size: 24px;
}

.invoice-table {
  display: grid;
  gap: 0;
  padding: 12px 0 18px;
  border-bottom: 1px solid #e9edf3;
}

.invoice-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px 100px;
  gap: 12px;
  min-height: 44px;
  align-items: center;
}

.invoice-table b {
  color: #98a2b3;
  font-size: 11px;
  text-transform: uppercase;
}

.invoice-total {
  align-items: flex-end;
  padding-top: 18px;
  text-align: right;
}

.invoice-total strong {
  font-size: 18px;
}

.side-panel {
  padding: 16px;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 18px;
}

.panel-tabs b,
.panel-tabs span {
  padding: 9px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.panel-tabs b {
  background: #111827;
  color: var(--white);
}

.panel-tabs span {
  color: #98a2b3;
}

.panel-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.panel-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.panel-list dd {
  margin: 0;
  font-weight: 900;
}

.review-box {
  margin: 20px 0 14px;
  padding: 12px;
  border: 1px solid #bce8cc;
  border-radius: 8px;
  background: #ecfdf3;
  color: #067647;
  font-size: 12px;
  font-weight: 900;
}

.progress-line,
.cash-lines i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.progress-line span,
.cash-lines i {
  display: block;
  height: 100%;
  background: #35c26b;
}

.blue-action {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: var(--white);
  font: inherit;
  font-weight: 900;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kanban-column {
  min-height: 420px;
  padding: 12px;
  background: #f8fafc;
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kanban-head span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef2f6;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.kanban-card {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.04);
}

.operations-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.process-lane {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.process-lane article {
  min-height: 180px;
  padding: 14px;
  border-radius: 8px;
  background: #f6f8fb;
}

.process-lane b {
  color: var(--amber-dark);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 24px;
}

.process-lane span,
.process-lane small {
  display: block;
  margin-top: 18px;
  font-weight: 900;
}

.process-lane small {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f6;
}

.timeline-list b {
  color: #2563eb;
  font-size: 12px;
}

.timeline-list span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.inventory-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.warehouse-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px;
  background: #111827;
}

.warehouse-map span {
  display: grid;
  place-items: center;
  min-height: 78px;
  border-radius: 8px;
  background: #1f2937;
  color: #dbe3ef;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.warehouse-map span.warn { background: #5f430d; color: #ffd987; }
.warehouse-map span.danger { background: #5a1f1f; color: #ffc9c9; }

.simple-table {
  display: grid;
  overflow: hidden;
}

.simple-table > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}

.simple-table > div:first-child {
  min-height: 42px;
  background: #f8fafc;
  color: #98a2b3;
  font-size: 11px;
  text-transform: uppercase;
}

.simple-table > div:last-child {
  border-bottom: 0;
}

.simple-table strong {
  font-size: 13px;
}

.team-layout,
.cash-layout,
.accounting-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.request-card h4 {
  margin: 18px 0 10px;
}

.time-widget {
  padding: 16px;
  border-radius: 8px;
  background: #2563eb;
  color: var(--white);
}

.time-widget span,
.time-widget small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
}

.time-widget strong {
  display: block;
  margin: 8px 0;
  font-size: 28px;
}

.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 78px;
  gap: 7px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #edf1f6;
}

.request-row span {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.request-row button {
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  background: #edf1f6;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.request-row button:first-of-type {
  background: #14b85f;
  color: var(--white);
}

.cash-card {
  background: #111827;
  color: var(--white);
}

.cash-lines {
  display: grid;
  gap: 14px;
}

.cash-lines div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  align-items: center;
}

.cash-lines span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 900;
}

.cash-lines b {
  color: #35c26b;
}

.cash-lines div:nth-child(2) b {
  color: #ff5c67;
}

.cash-lines i {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.12);
}

.cash-lines div:nth-child(2) i {
  background: #ff5c67;
}

.sparkline {
  height: 105px;
  margin-top: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(53, 194, 107, 0.24) 18% 44%, transparent 44%),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 34px;
}

.fiscal-card img {
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.fiscal-card strong {
  display: block;
  font-size: 22px;
}

.fiscal-card p {
  margin: 10px 0 18px;
  color: #667085;
  line-height: 1.55;
}

.fiscal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fiscal-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}

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

.services-grid article {
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.services-grid span {
  display: block;
  margin-bottom: 80px;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(520px, 1fr);
  gap: 52px;
  margin-top: 110px;
  padding: 54px;
  background: var(--dark);
  color: var(--white);
}

.process h2 {
  color: var(--amber);
}

.process-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.process-photo {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.process-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}


.process-steps {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.process-steps article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.process-steps p {
  color: rgba(255, 255, 255, 0.72);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  margin-top: 90px;
  padding: 42px;
  border: 1px solid var(--line);
  background: #fff8e7;
}

.contact p {
  max-width: 760px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
  padding: 64px 0 28px;
}

.footer .brand {
  color: var(--black);
}

.footer .brand small {
  color: var(--muted);
}

.footer-brand p {
  max-width: 300px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col {
  display: grid;
  gap: 11px;
  justify-items: start;
  align-content: start;
}

.footer-col h4 {
  margin: 0 0 6px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-col a:hover {
  color: var(--black);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 16px;
  overflow-y: auto;
}

.contact-modal.open {
  display: flex;
}

.contact-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  padding: 30px 42px 30px;
  background: #171614;
  color: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.contact-intro {
  max-width: 590px;
  margin: 0 0 30px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.42;
}

.contact-dialog h2 {
  margin: 0 0 26px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.field {
  display: grid;
  gap: 9px;
  color: var(--white);
  font-size: 18px;
}

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

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #242320;
  color: var(--white);
  font: inherit;
  outline: none;
}

.field input {
  height: 56px;
  padding: 0 20px;
}

.field textarea {
  min-height: 104px;
  padding: 15px 20px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--amber);
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 17px;
}

.privacy-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--amber);
}

.privacy-check a {
  color: #ff2f6d;
}

.contact-submit {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--amber);
  color: var(--black);
  cursor: pointer;
  font-size: 18px;
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .site-header {
    position: absolute;
    top: 0;
    left: auto;
    width: 100%;
    grid-template-columns: 1fr auto;
    padding: 10px 16px;
    background: rgba(17, 17, 17, 0.94);
    transform: none;
  }

  .nav { display: none; }
  .brand img { width: 58px; height: 58px; }
  .brand strong { font-size: 25px; }

  .hero {
    padding-top: 96px;
  }

  .hero-inner,
  .section-heading,
  .erp-showcase,
  .erp-shell,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-dialog {
    padding: 34px 26px 32px;
  }

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

  .erp-sidebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .erp-tax-logo {
    grid-column: 1 / -1;
    width: 98px;
    height: 98px;
    margin-bottom: 4px;
  }

  .erp-tax-logo img {
    width: 92px;
    height: 92px;
  }

  .erp-logo {
    display: none;
  }

  .dashboard-layout,
  .invoice-layout,
  .operations-layout,
  .inventory-layout,
  .team-layout,
  .cash-layout,
  .accounting-layout {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-lane {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-header {
    width: 100%;
    gap: 12px;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header-cta {
    display: none;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 90px 0 0;
  }

  .hero-inner,
  .hero-bottom,
  .intro,
  .metrics,
  .platform-section,
  .testimonial,
  .services,
  .process,
  .contact,
  .footer {
    width: calc(100% - 28px);
  }

  h1 {
    max-width: 320px;
    font-size: 34px;
    line-height: 1;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-text {
    max-width: 320px;
    font-size: 16px;
    overflow-wrap: break-word;
  }

  .hero-copy {
    min-width: 0;
    max-width: 320px;
  }

  .hero-actions,
  .erp-kpis,
  .intro-grid,
  .services-grid,
  .metrics,
  .kanban-board,
  .process-lane,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .erp-showcase,
  .erp-shell {
    grid-template-columns: 1fr;
  }

  .erp-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    padding: 22px;
  }

  .hero-bottom {
    margin-top: 54px;
    padding-bottom: 48px;
  }

  .platform-section,
  .services {
    padding-top: 72px;
  }

  .erp-main,
  .erp-topbar,
  .process,
  .contact {
    padding: 20px;
  }

  .erp-topbar,
  .invoice-top,
  .invoice-summary,
  .invoice-total {
    flex-direction: column;
  }

  .erp-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .erp-tax-logo {
    width: 88px;
    height: 88px;
  }

  .erp-tax-logo img {
    width: 82px;
    height: 82px;
  }

  .simple-table,
  .invoice-table {
    overflow-x: auto;
  }

  .simple-table > div,
  .invoice-table > div {
    min-width: 620px;
  }

  .request-row {
    grid-template-columns: 1fr;
  }

  .process {
    margin-top: 72px;
  }

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

  .contact-modal {
    padding: 12px;
  }

  .contact-dialog {
    padding: 54px 22px 28px;
  }

  .contact-intro {
    margin-bottom: 34px;
    font-size: 17px;
  }

  .contact-dialog h2 {
    font-size: 34px;
  }

  .field,
  .privacy-check {
    font-size: 17px;
  }

  .field input {
    height: 62px;
  }
}

/* Panel General: responsive */
@media (max-width: 1100px) {
  .float-card {
    display: none;
  }

  .dash {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .dash-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
  }

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

  .dash-side {
    display: none;
  }

  .dash-main {
    padding: 18px;
  }

  .dash-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-photo img {
    height: 150px;
  }
}

/* ============================================================
   Plataforma: pista de interactividad
============================================================ */
.dash-hint {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dash-nav a {
  cursor: pointer;
  user-select: none;
}

/* ============================================================
   Funcionalidades (bloques alternados con mockups)
============================================================ */
.features {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 0;
}

.features-intro {
  margin-bottom: 18px;
}

.features-intro p:last-child {
  margin-top: 16px;
}

.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.feature-block:first-of-type {
  border-top: 0;
}

.feature-block:nth-of-type(even) .feature-copy {
  order: 2;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff3d6;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-copy h3 {
  margin-bottom: 14px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.02;
  text-transform: uppercase;
}

.feature-copy > p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-list li b {
  color: var(--black);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: #e7f8ee;
  color: #079455;
  font-size: 12px;
  font-weight: 900;
}

.feature-visual {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 34px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(245, 164, 0, 0.14), transparent 52%),
    linear-gradient(180deg, #f4f7fb, #e9eef5);
}

.feature-visual .platform-card,
.feature-visual .invoice-paper {
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.16);
}

.feature-pad {
  padding: 18px;
}

.feature-visual .card-head em {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(245, 164, 0, 0.16);
  color: var(--amber-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.feature-visual .card-head strong {
  font-size: 16px;
}

.invoice-client {
  display: flex;
  align-items: center;
  gap: 14px;
}

.invoice-client strong {
  font-size: 15px;
}

.feature-visual .invoice-paper {
  padding: 22px;
}

.feature-visual .invoice-table > div {
  min-width: 0;
  grid-template-columns: minmax(0, 1.5fr) 44px 64px 76px;
  font-size: 12.5px;
}

.feature-visual .invoice-total {
  align-items: center;
  padding-top: 16px;
}

.feature-visual .invoice-total span {
  font-size: 12px;
}

.feature-visual .process-lane {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-visual .process-lane article {
  min-height: 132px;
}

.progress-row {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.feature-visual .review-box {
  margin: 16px 0 0;
}

.feature-visual .cash-card .card-head span {
  color: #98a2b3;
}

.feature-visual .cash-card .card-head em {
  background: rgba(53, 194, 107, 0.18);
  color: #5ee6a0;
}

.feature-visual .cash-card .sparkline {
  margin-top: 18px;
}

.feature-visual .request-card h4 {
  margin: 18px 0 8px;
  font-size: 14px;
}

.feature-visual .time-widget {
  margin-top: 4px;
}

.funnel {
  display: grid;
  gap: 10px;
}

.funnel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: var(--w, 100%);
  min-width: 52%;
  padding: 13px 15px;
  border-radius: 8px;
  background: linear-gradient(90deg, #111827, #2c3850);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.funnel > div b {
  color: #ffd27a;
  white-space: nowrap;
}

/* ============================================================
   Automatizaciones (sección oscura con casos numerados)
============================================================ */
.automation {
  margin-top: 110px;
  padding: 96px 0;
  background: var(--dark);
  color: var(--white);
}

.automation-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.automation h2 {
  max-width: 860px;
  margin-bottom: 18px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 0.98;
  text-transform: uppercase;
}

.automation-lead {
  max-width: 780px;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.auto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.auto-grid article {
  padding: 36px 32px;
  background: var(--dark);
}

.auto-num {
  display: block;
  margin-bottom: 18px;
  color: var(--amber);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.auto-grid h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.auto-grid p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.auto-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 900;
}

.auto-rule span {
  padding: 8px 11px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.auto-rule i {
  color: var(--amber);
  font-style: normal;
  font-size: 16px;
}

.auto-rule .does {
  border-color: rgba(245, 164, 0, 0.45);
  background: rgba(245, 164, 0, 0.13);
  color: #ffd27a;
}

.automation-foot {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 700;
}

/* ============================================================
   Responsive de las secciones nuevas
============================================================ */
@media (max-width: 1100px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 44px 0;
  }

  .feature-block:nth-of-type(even) .feature-copy {
    order: 0;
  }

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

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
}

@media (max-width: 680px) {
  .features {
    width: calc(100% - 28px);
    padding-top: 72px;
  }

  .automation {
    margin-top: 72px;
    padding: 64px 0;
  }

  .automation-inner {
    width: calc(100% - 28px);
  }

  .auto-grid article {
    padding: 26px 20px;
  }

  .feature-visual .process-lane {
    grid-template-columns: 1fr;
  }

  .feature-visual .process-lane article {
    min-height: 0;
  }

  .funnel > div {
    min-width: 78%;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 48px;
  }

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

@media (max-width: 680px) {
  .feature-visual .invoice-paper {
    padding: 16px;
  }

  .feature-visual .invoice-table > div {
    grid-template-columns: minmax(0, 1.4fr) 30px 48px 58px;
    gap: 8px;
    font-size: 11px;
  }

  .feature-visual .invoice-table b {
    font-size: 9.5px;
  }
}

/* Kickers de sección: mismo color y tamaño que los eyebrows tipo "Plataforma Kronex" */
.section-kicker {
  color: var(--amber-dark);
  font-size: 16px;
}

/* Sello Verifactu: recortado y con fondo blanco limpio */
.trust-strip img {
  width: 132px;
  height: auto;
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid #edf1f6;
  border-radius: 10px;
  background: var(--white);
  object-fit: contain;
}

/* Tarjeta 005: ocupa todo el ancho y cierra la sección con CTA */
.auto-more {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 0;
  background: #232220 !important;
}

.auto-more p {
  max-width: 720px;
}

.auto-more .button {
  margin-top: 4px;
}

/* Cambio de vista del panel: entrada suave */
.dash-main.is-changing .dash-kpis,
.dash-main.is-changing .dash-body {
  animation: viewIn 320ms ease both;
}

@media (max-width: 680px) {
  .trust-strip img {
    width: 116px;
  }
}

/* ============================================================
   Plataforma: vistas con diseño propio por módulo
============================================================ */
.dash-views {
  min-width: 0;
}

.dash-view {
  display: none;
}

.dash-view.is-active {
  display: grid;
  gap: 14px;
}

.dv-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px;
}

.dv-cols.dv-side {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
}

.dv-cols.dv-side-r {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr);
}

.dv-cols.dv-even {
  grid-template-columns: 1fr 1fr;
}

.dv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dv-head strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.dv-head em {
  font-style: normal;
  color: #98a2b3;
  font-weight: 900;
  font-size: 11px;
  white-space: nowrap;
}

.dv-pos { color: #079455 !important; }
.dv-neg { color: #d92d20 !important; }

/* Tabla compacta de módulo (columnas variables con --cols) */
.mini-table {
  min-width: 0;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

.mini-table > div {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 4px 14px;
  border-bottom: 1px solid #eef2f7;
}

.mini-table > div:first-child {
  min-height: 34px;
  background: #f8fafc;
}

.mini-table > div:last-child {
  border-bottom: 0;
}

.mini-table b {
  color: #98a2b3;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-table strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.mini-table span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.mini-table small {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.mini-table .status {
  justify-self: start;
}

.mt-total {
  background: #f8fafc;
}

.mt-total span {
  color: #111827;
  font-weight: 900;
}

/* Barras horizontales (colores por serie) */
.table-bar,
.hbar {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.table-bar span,
.hbar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.hbar.dv-big {
  height: 12px;
  margin: 6px 0 12px;
}

.hbar-list {
  display: grid;
  gap: 12px;
}

.hbar-list > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.hbar-list b {
  color: #111827;
  text-align: right;
}

.dv-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

/* Mapa de almacén compacto dentro del panel */
.dv-map {
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
}

.dv-map span {
  min-height: 54px;
  font-size: 12px;
}

.dv-review {
  margin: 0;
}

.dash-view .review-box {
  margin: 0 0 10px;
}

.dash-view .review-box:last-child {
  margin-bottom: 0;
}

/* Tesorería: tarjeta oscura + conciliación */
.dv-dark {
  background: #111827 !important;
  border-color: #111827 !important;
  color: var(--white);
}

.dv-dark .dv-head strong {
  font-size: 24px;
}

.dv-dark .mini-label {
  color: #98a2b3;
}

.dv-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #d6dbe4 !important;
}

.dv-trend {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(18, 183, 106, 0.18);
  color: #5ee6a0;
  font-size: 11px;
  font-weight: 900;
}

.dv-dark .sparkline {
  height: 84px;
  margin-top: 16px;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 26px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.match-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.match-row b {
  display: block;
  font-size: 12.5px;
}

.match-row small {
  display: block;
  margin-top: 2px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
}

.mr-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.mr-dot.ok {
  background: #e7f8ee;
  color: #079455;
}

.mr-dot.wait {
  background: #fff4dc;
  color: #b76e00;
}

/* Equipo: avatares + reloj */
.avatar-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.dv-stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.dv-stack .request-row {
  grid-template-columns: minmax(0, 1fr) 70px 52px;
  padding: 10px 12px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
}

.tw-bar {
  display: block;
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.tw-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--white);
}

@media (max-width: 1100px) {
  .dv-cols,
  .dv-cols.dv-side,
  .dv-cols.dv-side-r,
  .dv-cols.dv-even {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .mini-table {
    overflow-x: auto;
  }

  .mini-table > div {
    min-width: 480px;
  }
}

/* En móvil, el menú del panel pasa a chips horizontales deslizables */
@media (max-width: 680px) {
  .dash-side {
    display: block;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid #e8ecf3;
  }

  .dash-logo {
    display: none;
  }

  .dash-nav {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .dash-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 11px;
  }
}
