:root {
  --bg-dark: #07090e;
  --bg-card-dark: #0f172a;
  --surface-light: #f8fafc;
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.08);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-white: #f8fafc;
  --text-white-muted: #94a3b8;

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;

  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}

/* --- Announcement Bar --- */
.announcement {
  background: #090d16;
  color: #94a3b8;
  font-size: 12px;
  border-bottom: 1px solid var(--border-dark);
}
.announcement-inner {
  height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.announcement-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.announcement-link {
  color: var(--text-white-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.announcement-link:hover {
  color: var(--accent-cyan);
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* --- Header & Nav Fijo Dinámico --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 110px; /* Altura inicial más amplia para el logo grande */
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estado del Header cuando el usuario hace scroll */
.header.scrolled {
  height: 74px; /* Se reduce el tamaño */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.35s ease;
}

/* --- Brand / Logo Dinámico --- */
.brand img {
  height:120px; /* Tamaño grande inicial */
  width: auto;
  display: block;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease;
}

.brand:hover img {
  transform: scale(1.02);
}

/* Reducción del logo al hacer scroll */
.header.scrolled .brand img {
  height: 120px;
}


main{
    padding-top: 100px;
}
/* Ajuste del paddingTop del Hero para compensar el header fijo */
.hero {
  padding-top: 250px;
  /* Compensación para que el contenido no quede oculto detrás del logo grande */
}

/* --- Nav Links --- */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--accent-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Adaptación Responsiva --- */
@media (max-width: 992px) {
  .header {
    height: 90px;
  }
  .header.scrolled {
    height: 68px;
  }
  .brand img {
    height: 52px;
  }
  .header.scrolled .brand img {
    height: 38px;
  }

  .nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  padding: 10px 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.btn-ghost {
  background: transparent;
  color: #475569;
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: var(--surface-light);
  color: var(--text-main);
}
.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-main);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.btn-white {
  background: #fff;
  color: var(--text-main);
  font-weight: 700;
}
.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}
.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  margin: 5px auto;
  transition: 0.2s;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 90px 0 100px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
}
.hero-glow-1 {
  width: 500px;
  height: 500px;
  right: -100px;
  top: -100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
}
.hero-glow-2 {
  width: 600px;
  height: 600px;
  left: -200px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.hero h1 {
  font: 800 clamp(40px, 4.5vw, 60px) / 1.08 var(--font-display);
  letter-spacing: -1.5px;
  color: #0f172a;
}
.hero h1 em, .section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 24px 0 32px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-proof {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}
.proof-item strong {
  display: block;
  font: 700 15px var(--font-display);
  color: var(--text-main);
}
.proof-item span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

/* Dashboard Mockup Component */
.hero-dashboard {
  position: relative;
}
.dashboard-window {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-top {
  height: 44px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.window-secure {
  margin-left: auto;
  color: var(--accent-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.dashboard-body {
  padding: 24px;
}
.dash-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dash-heading small {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
}
.dash-heading h3 {
  font: 700 18px var(--font-display);
}
.date-chip {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}
.stat span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}
.stat strong {
  display: block;
  font: 800 20px var(--font-display);
  margin: 4px 0;
}
.trend-up {
  font-size: 11px;
  color: var(--accent-green);
}

.chart {
  margin-top: 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}
.chart-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.bars {
  height: 90px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 16px;
}
.bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #e2e8f0;
  transition: height 0.3s ease;
}
.bars i.active {
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
}

.invoice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}
.invoice-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}
.invoice strong {
  display: block;
  font-size: 12px;
  color: #14532d;
}
.invoice small {
  display: block;
  color: #166534;
  font-size: 10px;
}
.approved {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Floating Card Animations */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.floating-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  display: grid;
  place-items: center;
}
.floating-metric {
  font: 800 20px var(--font-display);
  color: var(--accent-blue);
  display: block;
}
.floating-one {
  left: -28px;
  bottom: 30px;
}
.floating-two {
  right: -24px;
  top: 40px;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-anim { animation: float 5s ease-in-out infinite; }
.float-anim-delayed { animation: float 5s ease-in-out infinite 2.5s; }

/* --- Logo Strip --- */
.logo-strip {
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
  padding: 24px 0;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.strip-inner > span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.strip-items {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #475569;
  font: 700 13px var(--font-display);
  letter-spacing: 1px;
}
.strip-items .dot {
  color: var(--border-light);
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}
.section-intro {
  max-width: 800px;
}
.section h2 {
  font: 800 clamp(32px, 3.5vw, 44px) / 1.15 var(--font-display);
  letter-spacing: -1px;
  color: var(--text-main);
}

/* --- Empresa / Story --- */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  margin-top: 56px;
}
.story-main .lead {
  font-size: 20px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 24px;
  font-weight: 500;
}
.story-main p:not(.lead) {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
.signature-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.sig-accent {
  width: 4px;
  height: 36px;
  background: var(--accent-blue);
  border-radius: 4px;
}
.signature-line strong {
  display: block;
  font: 700 14px var(--font-display);
}
.signature-line small {
  color: var(--text-muted);
}

.story-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.story-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}
.big-number {
  font: 800 16px var(--font-display);
  color: var(--accent-blue);
}
.story-card strong {
  font: 700 16px var(--font-display);
}
.story-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Products / Solutions --- */
.solutions {
  background: var(--surface-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-heading-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
}
.section-heading-row > p {
  color: var(--text-muted);
  font-size: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.product-featured {
  background: var(--bg-dark);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}
.product-featured:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-number {
  font: 700 12px var(--font-display);
  color: var(--text-muted);
}
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 6px;
}
.tag-featured {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
}

.product-content {
  margin: 28px 0;
  flex: 1;
}
.product-content h3 {
  font: 800 28px var(--font-display);
  margin-bottom: 12px;
}
.product-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.product-featured .product-content p {
  color: var(--text-white-muted);
}

.product-content ul {
  list-style: none;
  margin-top: 24px;
}
.product-content li {
  font-size: 13px;
  color: #475569;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.product-featured .product-content li {
  color: #cbd5e1;
  border-color: var(--border-dark);
}
.product-content li::before {
  content: "✓";
  color: var(--accent-blue);
  font-weight: 800;
  margin-right: 10px;
}
.product-featured .product-content li::before {
  color: var(--accent-cyan);
}

.product-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.product-featured .product-link {
  color: var(--accent-cyan);
  border-color: var(--border-dark);
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  margin: 20px 0 32px;
}

.service-list {
  border-top: 1px solid var(--border-light);
}
.service {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 16px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  transition: transform 0.2s;
}
.service:hover {
  transform: translateX(4px);
}
.service > span {
  font: 700 12px var(--font-display);
  color: var(--accent-blue);
}
.service h3 {
  font: 700 16px var(--font-display);
}
.service p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.service-arrow {
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Integration / API Section --- */
.integration {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.eyebrow.light {
  color: var(--accent-cyan);
}
.eyebrow.light .eyebrow-dot {
  background: var(--accent-cyan);
}
.integration h2 {
  color: var(--text-white);
}
.integration p {
  color: var(--text-white-muted);
  font-size: 16px;
  margin: 20px 0 28px;
}

.integration-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.integration-points span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 6px 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
}

.api-window {
  background: #0b0f19;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.api-head {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-dark);
  font-size: 12px;
}
.api-tabs .tab {
  color: var(--accent-cyan);
  font-weight: 600;
}
.api-status {
  color: var(--accent-green);
  font-weight: 700;
}

.api-window pre {
  padding: 24px;
  font-family: 'SFMono-Regular', Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #cbd5e1;
  overflow-x: auto;
}
.purple { color: var(--accent-purple); }
.key { color: var(--accent-cyan); }
.str { color: #a5f3fc; }
.num { color: #fde047; }
.success { color: #4ade80; display: block; margin-top: 16px; }

/* --- Process --- */
.process {
  background: #ffffff;
}
.centered {
  text-align: center;
  margin: 0 auto;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.process-step {
  padding: 24px;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}
.step-num {
  font: 800 14px var(--font-display);
  color: var(--accent-blue);
  background: #eff6ff;
  padding: 4px 8px;
  border-radius: 6px;
}
.process-step h3 {
  font: 700 16px var(--font-display);
  margin: 16px 0 8px;
}
.process-step p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
  color: var(--text-white);
  padding: 80px 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta h2 {
  color: var(--text-white);
}
.cta p {
  color: #bfdbfe;
  font-size: 16px;
  margin-top: 12px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.cta-location {
  font-size: 12px;
  color: #93c5fd;
}

/* --- Footer --- */
.footer {
  background: #05080e;
  color: var(--text-white-muted);
  border-top: 1px solid var(--border-dark);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 80px 0 60px;
}
.footer-brand img {
  height: 140px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 13px;
  color: #64748b;
  max-width: 320px;
}
.footer h4 {
  font: 700 12px var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-white);
  margin-bottom: 20px;
}
.footer a, .footer span {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.footer a:hover {
  color: var(--accent-cyan);
}
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
}

/* Responsive Adaptations */
@media (max-width: 992px) {
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }

  .hero-grid, .story-grid, .services-grid, .integration-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .product-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .section-heading-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== Revisión de interfaz ===== */
:focus-visible{outline:2px solid var(--accent-blue);outline-offset:3px;border-radius:4px}
.integration :focus-visible,.cta :focus-visible,.footer :focus-visible{outline-color:var(--accent-cyan)}
.skip-link{position:absolute;left:16px;top:-60px;z-index:2000;background:var(--accent-blue);color:#fff;padding:10px 16px;border-radius:8px;font-weight:600;font-size:14px}
.skip-link:focus{top:12px}
section[id]{scroll-margin-top:72px}

/* Header y logo: tamaños coherentes (el logo ya cabe en la barra) */
.header{height:96px}
.header.scrolled{height:72px}
.brand img{height:72px}
.header.scrolled .brand img{height:48px}
main{padding-top:0}
.hero{padding:170px 0 100px}
.nav a{position:relative;padding:6px 0}
.nav a.active{color:var(--accent-blue)}
.nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:currentColor;border-radius:2px}
.menu-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle.open span:nth-child(2){opacity:0}
.menu-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Títulos que no heredaban estilo */
.integration h2,.cta h2{font:800 clamp(30px,3.5vw,44px)/1.15 var(--font-display);letter-spacing:-1px}

/* Desbordes y legibilidad */
.hero-actions,.hero-proof,.strip-inner,.strip-items{flex-wrap:wrap}
.dash-heading small,.invoice small,.approved,.tag{font-size:11px}
.floating-icon svg{display:block}
.cta-location{display:inline-flex;align-items:center;gap:6px;color:#bfdbfe}

/* Footer: contraste AA y logo sobre placa clara */
.footer-brand p,.footer-bottom{color:#94a3b8}
.footer-brand img{filter:none;height:56px;background:#fff;padding:8px 12px;border-radius:10px}
.footer-bottom{flex-wrap:wrap;gap:8px 24px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
}

@media (max-width:992px){
  .header{height:84px}
  .header.scrolled{height:68px}
  .brand img{height:52px}
  .header.scrolled .brand img{height:40px}
  .nav.open{top:100%}
  .hero{padding:130px 0 72px}
  .section{padding:72px 0}
  .integration,.cta{padding:72px 0}
  .floating-one{left:8px}
  .floating-two{right:8px}
  .strip-inner{flex-direction:column;align-items:flex-start;gap:12px}
}
@media (max-width:600px){
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-proof{gap:20px}
  .cta-actions{align-items:stretch;width:100%}
  .stats{grid-template-columns:1fr}
  .dashboard-body{padding:16px}
  .integration,.cta,.section{padding:56px 0}
}

/* ===== Catálogo: primera página ===== */
.catalog{padding:150px 0 96px}
.catalog-intro{max-width:760px;margin-bottom:56px}
.catalog-intro h1{font:800 clamp(34px,4.6vw,56px)/1.1 var(--font-display);letter-spacing:-1.5px;color:var(--text-main)}
.catalog-intro p{margin-top:16px;font-size:18px;line-height:1.6;color:var(--text-muted);max-width:60ch}
.catalog-stack{display:flex;flex-direction:column;gap:72px}
.catalog-item{display:flex;flex-direction:column;gap:28px}
.catalog-item .shot{position:relative;margin:0;aspect-ratio:16/8;border-radius:20px;overflow:hidden;box-shadow:var(--shadow-lg);display:grid;place-items:center;color:#fff}
.catalog-item .shot::before{content:attr(data-name);font:800 clamp(40px,8vw,104px)/1 var(--font-display);letter-spacing:-3px;opacity:.9}
.catalog-item .shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shot-blue{background:linear-gradient(135deg,var(--accent-blue),var(--accent-cyan))}
.shot-indigo{background:linear-gradient(135deg,#312e81,var(--accent-blue))}
.shot-cyan{background:linear-gradient(135deg,var(--accent-cyan),var(--accent-green))}
.catalog-body{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:start}
.catalog-body h2{font:800 clamp(28px,3vw,38px)/1.15 var(--font-display);letter-spacing:-1px;margin:12px 0 10px;color:var(--text-main)}
.catalog-body p{font-size:17px;line-height:1.65;color:var(--text-muted);max-width:52ch}
.catalog-body ul{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:10px}
.catalog-body li{position:relative;padding-left:22px;font-size:15px;color:#334155}
.catalog-body li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;border-radius:50%;background:var(--accent-cyan)}
@media (max-width:992px){
  .catalog{padding:120px 0 64px}
  .catalog-stack{gap:56px}
  .catalog-body{grid-template-columns:1fr;gap:24px}
  .catalog-item .shot{aspect-ratio:16/10}
}
@media (max-width:600px){.catalog-item .shot{border-radius:14px}.catalog-body .btn{width:100%}}

/* ===== Facturación electrónica ===== */
.integration p+p{margin-top:14px}
.integration .btn{margin-top:32px}
.ecf-flow{list-style:none;margin:0;padding:32px;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);counter-reset:ecf}
.ecf-flow li{position:relative;padding:0 0 28px 56px}
.ecf-flow li:last-child{padding-bottom:0}
.ecf-flow li::before{counter-increment:ecf;content:counter(ecf);position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--accent-blue);color:#fff;font:700 15px var(--font-display)}
.ecf-flow li::after{content:"";position:absolute;left:17px;top:42px;bottom:6px;width:2px;background:rgba(255,255,255,.2)}
.ecf-flow li:last-child::after{display:none}
.ecf-flow strong{display:block;font:700 17px var(--font-display);color:#fff;margin-bottom:4px}
.ecf-flow span{display:block;font-size:14.5px;line-height:1.55;color:#cbd5e1}
@media (max-width:600px){.integration .btn{width:100%;text-align:center}.ecf-flow{padding:24px 20px}}

/* ===== Misión, visión y valores ===== */
.identity{margin-top:72px;padding-top:56px;border-top:1px solid var(--border-light)}
.identity-title{font:800 clamp(26px,3vw,34px)/1.15 var(--font-display);letter-spacing:-.8px;color:var(--text-main);margin-bottom:28px}
.identity-pair{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.identity-card{padding:32px;border-radius:20px;background:#fff;border:1px solid var(--border-light);box-shadow:var(--shadow-md);border-top:4px solid var(--accent-blue)}
.identity-card:nth-child(2){border-top-color:var(--accent-cyan)}
.identity-card h4{font:700 20px var(--font-display);color:var(--text-main);margin-bottom:10px}
.identity-card p{font-size:16px;line-height:1.7;color:var(--text-muted)}
.values-title{font:700 20px var(--font-display);color:var(--text-main);margin:48px 0 20px}
.values{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.values li{padding:22px 24px;border-radius:16px;background:#f8fafc;border:1px solid var(--border-light)}
.values strong{display:block;font:700 16px var(--font-display);color:var(--text-main);margin-bottom:6px}
.values p{font-size:14.5px;line-height:1.6;color:var(--text-muted)}
@media (max-width:992px){.values{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){.identity{margin-top:56px;padding-top:40px}.identity-pair,.values{grid-template-columns:1fr}.identity-card{padding:24px}}

/* ===== Catálogo: foto a la izquierda, descripción a la derecha ===== */
.catalog-stack{gap:64px}
.catalog-item{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:56px;align-items:center}
.catalog-item .shot{aspect-ratio:16/10;border-radius:18px;box-shadow:var(--shadow-md)}
.catalog-item .shot::before{font-size:clamp(32px,4.5vw,60px);letter-spacing:-2px}
.catalog-body{grid-template-columns:1fr;gap:22px}
.catalog-body h2{margin:10px 0 8px}
.catalog-body ul{margin-bottom:26px}
@media (max-width:992px){
  .catalog-item{grid-template-columns:1fr;gap:24px}
  .catalog-stack{gap:56px}
}



/* ===== Página Interna de Sistema (SIMSI) ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a:hover {
  color: var(--accent-blue);
}
.breadcrumb .current {
  color: var(--text-main);
  font-weight: 600;
}

.system-hero {
  padding: 160px 0 72px;
  background: linear-gradient(180deg, var(--surface-light) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}

.system-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.system-hero-shot {
  aspect-ratio: 16/10;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0;
}
.system-hero-shot::before {
  content: attr(data-name);
  font: 800 clamp(36px, 6vw, 72px)/1 var(--font-display);
  letter-spacing: -2px;
  color: #ffffff;
  opacity: 0.9;
}
.system-hero-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lista de Módulos */
.modules-section {
  padding: 88px 0;
}

.modules-stack {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 56px;
}

.module-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.module-card.module-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.module-card.module-reverse .shot {
  order: 2;
}

.module-card .shot {
  aspect-ratio: 16/10;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0;
}
.module-card .shot::before {
  content: attr(data-name);
  font: 800 clamp(28px, 4vw, 48px)/1 var(--font-display);
  letter-spacing: -1.5px;
  color: #ffffff;
}
.module-card .shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-info h3 {
  font: 800 clamp(24px, 2.5vw, 32px)/1.2 var(--font-display);
  color: var(--text-main);
  margin: 10px 0 12px;
}

.module-info p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.module-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.module-info li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: #334155;
}

.module-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* Responsivo para Módulos */
@media (max-width: 992px) {
  .system-hero {
    padding: 130px 0 56px;
  }
  .system-hero-grid,
  .module-card,
  .module-card.module-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .module-card.module-reverse .shot {
    order: 0;
  }
  .modules-stack {
    gap: 40px;
  }
  .module-card {
    padding: 20px;
    border-radius: 18px;
  }
}
