/* ---- Estilo Global & Reset ---- */
:root {
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-ink: #1d1d1f;
  --color-muted: #86868b;
  --color-line: #e5e5ea;

  --color-brand: #0071e3;
  --color-brand-hover: #005bb5;
  --color-brand-soft: #f0f7ff;
  
  --color-bg-dark: #05102a;
  --color-surface-dark: #0c1a38;
  --color-line-dark: #1d2b4f;
  --color-ink-dark: #f5f5f7;
  --color-muted-dark: #86868b;

  --color-red: #ff3b30;
  --color-red-soft: #fff5f5;
  --color-red-dark: #fff1f0;
  --color-amber: #ff9500;
  --color-amber-soft: #fff9e6;
  --color-green: #34c759;
  --color-green-soft: #f0fbf4;
  
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --border-radius: 18px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout Helpers ---- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
}

.section-padding {
  padding: 120px 0;
}

.bg-dark-deep {
  background-color: var(--color-bg-dark);
  color: var(--color-ink-dark);
}

.bg-dark-card {
  background-color: #030a1e;
  border: 1px solid var(--color-line-dark);
}

.text-white { color: #ffffff !important; }
.text-muted { color: var(--color-muted) !important; }
.text-brand { color: var(--color-brand) !important; }
.text-green-color { color: var(--color-green) !important; }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }
.mt-1 { margin-top: 4px; }
.mt-4 { margin-top: 24px; }
.text-center { text-align: center; }
.text-xs { font-size: 11.5px; }
.text-sm { font-size: 13px; }

/* ---- Grillas ---- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.items-center {
  align-items: center;
}

.gap-large {
  gap: 48px;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 980px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--color-brand);
  border-color: rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.btn-secondary-dark {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary-dark:hover {
  background-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  background-color: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 21px;
  color: var(--color-ink);
  text-decoration: none;
}

.logo-image {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.08);
}

.logo-image-sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-ink);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* ---- Hero Section ---- */
.hero {
  padding-top: 170px;
  padding-bottom: 100px;
  overflow: hidden;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at top, #ffffff 0%, var(--color-bg) 100%);
}

.hero-bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 860px;
  margin-bottom: 60px;
}

.hero-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-brand);
  background-color: var(--color-brand-soft);
  padding: 6px 16px;
  border-radius: 980px;
  display: inline-block;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-ink);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 36px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* ---- Browser Mockup ---- */
.browser-mockup {
  width: 100%;
  max-width: 1000px;
  border-radius: 20px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: 0 35px 80px rgba(5, 16, 42, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  position: relative;
  z-index: 2;
}

.browser-header {
  height: 44px;
  background-color: #f1f1f3;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.browser-address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--color-muted);
  background-color: #e5e5ea;
  padding: 4px 36px;
  border-radius: 8px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
}

.browser-body {
  background-color: #0b132b;
  position: relative;
}

.dashboard-preview-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.mockup-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
  transition: opacity 0.5s ease;
}

.mockup-img:hover {
  opacity: 1;
}

/* ---- Sección Títulos ---- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.section-description {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ---- Tarjetas Glassmorphism ---- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 36px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(5, 16, 42, 0.06);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 113, 227, 0.2);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.blue-icon { background-color: var(--color-brand-soft); color: var(--color-brand); }
.green-icon { background-color: var(--color-green-soft); color: var(--color-green); }
.amber-icon { background-color: var(--color-amber-soft); color: var(--color-amber); }

.glass-card:hover .card-icon {
  transform: scale(1.05);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---- Diagrama de Flujo ---- */
.flow-diagram-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--color-line);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.flow-step {
  text-align: center;
  flex: 1;
  min-width: 140px;
  padding: 10px;
  transition: var(--transition);
}

.flow-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-brand-soft);
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 12px;
  transition: var(--transition);
}

.flow-step:hover .flow-step-number {
  background-color: var(--color-brand);
  color: #fff;
  transform: scale(1.1);
}

.flow-step-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.flow-step-desc {
  font-size: 11.5px;
  color: var(--color-muted);
}

.flow-arrow {
  width: 24px;
  height: 2px;
  background-color: var(--color-line);
  position: relative;
  flex-shrink: 0;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-line);
  border-right: 2px solid var(--color-line);
  transform: rotate(45deg);
}

/* ---- Grid Tecnológico & Servicios ---- */
.tech-grid {
  margin-top: 30px;
}

.tech-box {
  background-color: var(--color-surface-dark);
  border: 1px solid var(--color-line-dark);
  padding: 36px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.tech-box:hover {
  border-color: var(--color-brand);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 113, 227, 0.15);
}

.tech-icon {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 20px;
}

.tech-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 12px;
}

.tech-desc {
  font-size: 13.5px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---- Simulador de Evidencia GPS ---- */
.asset-selector-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.asset-sel-btn {
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.asset-sel-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

.asset-sel-btn.active {
  background-color: var(--color-brand-soft);
  border-color: var(--color-brand);
}

.asset-sel-btn strong {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--color-ink);
}

.asset-sel-btn span {
  font-size: 11.5px;
  color: var(--color-muted);
  margin-top: 2px;
}

.watermark-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-line);
  padding-top: 20px;
  margin-top: 20px;
}

/* Switch Toggle Slider */
.toggle-container {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 34px;
}

.checkmark-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .checkmark-slider {
  background-color: var(--color-brand);
}

input:checked + .checkmark-slider:before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 13.5px;
}

/* Frame de Foto */
.photo-frame-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 40px rgba(5, 16, 42, 0.08);
  border: 1px solid var(--color-line);
  aspect-ratio: 4 / 3;
  background-color: #0b132b;
}

.sim-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watermark-overlay-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(5, 16, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  color: #fff;
  font-family: monospace;
}

.watermark-logo-line {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--color-brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.watermark-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 10px;
}

.watermark-data-grid div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-lbl {
  color: var(--color-muted);
  font-weight: bold;
}

.wm-txt {
  color: #fff;
  margin-left: 4px;
}

.frame-subtext {
  font-size: 12px;
  margin-top: 12px;
}

/* ---- Cotizador y SLA inputs ---- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--color-line);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--color-ink);
  background-color: var(--color-surface);
  cursor: pointer;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--color-brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-brand-soft);
}

.form-range {
  width: 100%;
  height: 6px;
  background: var(--color-line);
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-brand);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.radio-group-horizontal {
  display: flex;
  gap: 12px;
}

.radio-item-box {
  flex: 1;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
}

.radio-item-box input {
  accent-color: var(--color-brand);
  cursor: pointer;
}

.radio-item-box:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

.calculator-summary-box {
  padding: 24px;
  border-radius: 12px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
}

.summary-line.grand-total {
  font-size: 16px;
  font-weight: bold;
}

.summary-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.sla-output-box {
  background-color: var(--color-brand-soft);
  border: 1px solid rgba(0, 113, 227, 0.15);
  padding: 24px;
  border-radius: 14px;
  text-align: center;
}

.sla-timer-display {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -0.01em;
}

/* ---- Roadmap Interactivo (Tabs) ---- */
.roadmap-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 12px;
}

.roadmap-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  max-width: 100%;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 980px;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--color-ink);
  background-color: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
  background-color: var(--color-brand-soft);
  color: var(--color-brand);
}

.roadmap-content-card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.roadmap-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.roadmap-phase-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  background-color: var(--color-brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
}

.roadmap-phase-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-ink);
  flex: 1;
}

.phase-status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 980px;
}

.status-complete {
  background-color: var(--color-green-soft);
  color: var(--color-green);
}

.roadmap-card-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

.info-label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-top: 24px;
}

.info-label:first-child {
  margin-top: 0;
}

.roadmap-info-col p {
  font-size: 15px;
  color: var(--color-ink);
  line-height: 1.6;
}

.check-list, .file-list {
  list-style: none;
  margin-top: 10px;
}

.check-list li, .file-list li {
  font-size: 13.5px;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  color: var(--color-muted);
}

.check-list li::before {
  content: '✓';
  color: var(--color-green);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.file-list li::before {
  content: '→';
  color: var(--color-brand);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.file-list code {
  background-color: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11.5px;
  color: var(--color-ink);
}

/* ---- Simulador RLS ---- */
.rls-grid {
  align-items: stretch;
}

.rls-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rls-control-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.rls-control-desc {
  font-size: 14.5px;
  color: var(--color-muted-dark);
  margin-bottom: 30px;
}

.role-selectors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-selector-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-line-dark);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  color: #fff;
}

.role-selector-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-brand);
}

.role-selector-btn.active {
  background: rgba(0, 113, 227, 0.15);
  border-color: var(--color-brand);
  box-shadow: 0 0 20px rgba(0, 113, 227, 0.2);
}

.role-selector-btn strong {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 600;
}

.role-selector-btn span {
  font-size: 11.5px;
  color: var(--color-muted-dark);
  margin-top: 4px;
}

/* Consola de Código */
.rls-preview-box {
  background-color: #030a1e;
  border: 1px solid var(--color-line-dark);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.preview-header {
  background-color: rgba(255,255,255,0.03);
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.preview-dot.red { background-color: #ff5f56; }
.preview-dot.yellow { background-color: #ffbd2e; }
.preview-dot.green { background-color: #27c93f; }

.preview-title {
  font-size: 11px;
  color: var(--color-muted);
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-body {
  padding: 24px;
  font-size: 12.5px;
  color: #e5e5ea;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sql-section {
  color: #ff79c6;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 16px;
}

.sql-keyword {
  color: #8be9fd;
  font-weight: bold;
}

.sql-policy {
  color: #6272a4;
  margin-top: 8px;
  font-style: italic;
  white-space: pre-wrap;
  line-height: 1.5;
}

.data-results-table {
  flex: 1;
}

.table-header-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.5fr 1.2fr;
  padding: 8px 12px;
  background-color: rgba(255,255,255,0.05);
  font-weight: bold;
  font-size: 11px;
  color: var(--color-brand);
  border-radius: 6px;
}

.table-data-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.5fr 1.2fr;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
}

.table-data-row:last-child {
  border-bottom: none;
}

/* ---- Checklists Seccion ---- */
.chk-lbl {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

.chk-val {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  margin-top: 4px;
}

.chk-section-subtitle {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.checklist-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chk-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-brand);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

.chk-checkbox::after {
  content: '✓';
  position: absolute;
  top: -3px;
  left: 3px;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: bold;
  opacity: 0.85;
}

.chk-item-text {
  font-size: 14px;
  color: var(--color-ink);
}

/* ---- CTA de Cierre ---- */
.cta {
  background: linear-gradient(135deg, #05102a 0%, #030816 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-title);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-text {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-muted-dark);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* ---- Footer ---- */
.footer {
  background-color: #030919;
  color: var(--color-muted-dark);
  border-top: 1px solid var(--color-line-dark);
  padding: 60px 0;
  font-size: 13px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--color-muted-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  text-align: center;
  color: #515154;
  font-size: 12px;
}

/* ---- Animaciones CSS ---- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- Responsivo ---- */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .roadmap-card-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }
  
  .hero {
    padding-top: 130px;
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions, .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }

  .nav-menu {
    display: none;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .flow-diagram-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .flow-arrow {
    width: 2px;
    height: 16px;
  }
  
  .flow-arrow::after {
    transform: rotate(135deg);
    top: auto;
    bottom: 0;
    right: -3px;
  }
  
  .section-title {
    font-size: 30px;
  }
  
  .cta-title {
    font-size: 30px;
  }
}

/* =====================================================================
   CAPA PROFESIONAL — estilo corporativo sobrio (sobrescribe lo anterior)
   Paleta: azul marino + un solo acento azul sobre superficies claras.
   ===================================================================== */
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --color-brand: #1d4ed8;
  --color-brand-hover: #1e40af;
  --color-brand-soft: #eaf0ff;
  --color-bg: #f6f8fb;
  --color-ink: #0f1f35;
  --color-muted: #5b6b80;
  --color-line: #dde4ee;
  --color-bg-dark: #0b1f3a;
  --color-surface-dark: #10284b;
  --color-line-dark: #1f3a63;
  --color-muted-dark: #9db0c9;
  --color-green: #0f9d6b;
  --color-amber: #d98a00;
  --color-red: #d6334a;
  --border-radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11,31,58,.06), 0 1px 3px rgba(11,31,58,.05);
  --shadow-md: 0 8px 24px rgba(11,31,58,.10);
}

body { background: var(--color-bg); color: var(--color-ink); }

/* Navegación */
.navbar { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--color-line);
  box-shadow: 0 1px 0 rgba(11,31,58,.02); }
.nav-link { position: relative; font-weight: 600; color: #33465f; transition: color .2s ease; }
.nav-link:hover { color: var(--color-brand); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px;
  background: var(--color-brand); transition: width .25s ease; }
.nav-link:hover::after { width: 100%; }

/* Hero: fondo claro con retícula técnica muy tenue */
.hero { background:
    linear-gradient(rgba(29,78,216,.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(29,78,216,.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #ffffff 0%, #eef3fb 100%); }
.hero-bg-glow { background: radial-gradient(circle, rgba(29,78,216,.12) 0%, transparent 70%); width: 900px; height: 420px; }
.hero-badge { color: var(--color-brand); background: var(--color-brand-soft); border: 1px solid #c9d8fb;
  letter-spacing: .12em; font-weight: 700; }
.hero-title { color: var(--navy); font-weight: 700; letter-spacing: -0.025em; }
.hero-subtitle { color: var(--color-muted); }

/* Botones: sólidos, esquinas suaves */
.btn { border-radius: 8px; font-weight: 600; letter-spacing: .01em; }
.btn-primary { background: var(--color-brand); color: #fff; border: 1px solid var(--color-brand);
  box-shadow: 0 1px 2px rgba(11,31,58,.12), 0 6px 16px rgba(29,78,216,.22); }
.btn-primary:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover);
  transform: translateY(-2px); box-shadow: 0 10px 22px rgba(29,78,216,.28); }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid #c3cfe0; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--color-brand); color: var(--color-brand); transform: translateY(-2px); }

/* Títulos de sección */
.section-title { color: var(--navy); font-weight: 700; letter-spacing: -0.02em; }
.bg-dark-deep .section-title, .section-title.text-white { color: #fff; }
.section-header::after { content: ''; display: block; width: 48px; height: 3px; border-radius: 2px;
  margin: 18px auto 0; background: var(--color-brand); }
.section-description { color: var(--color-muted); }

/* Tarjetas */
.glass-card, .tech-box { background: #fff; border: 1px solid var(--color-line); box-shadow: var(--shadow-sm);
  backdrop-filter: none; -webkit-backdrop-filter: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.glass-card:hover, .tech-box:hover { transform: translateY(-4px); border-color: #b9c9e6; box-shadow: var(--shadow-md); }
.bg-dark-deep .glass-card, .bg-dark-deep .tech-box { background: var(--color-surface-dark); border-color: var(--color-line-dark); }
.bg-dark-deep .glass-card:hover, .bg-dark-deep .tech-box:hover { border-color: #3a62a0; box-shadow: 0 10px 28px rgba(0,0,0,.35); }

/* Ciclo de mantenimiento */
.flow-step-number { background: var(--navy); color: #fff; width: 38px; height: 38px; font-weight: 700;
  box-shadow: 0 0 0 5px var(--color-brand-soft); }
.flow-step { transition: transform .25s ease; }
.flow-step:hover { transform: translateY(-4px); }

/* Secciones oscuras y cierre */
.bg-dark-deep { background: linear-gradient(180deg, #0b1f3a 0%, #0e2a50 100%); }
.cta { background: linear-gradient(135deg, #0b1f3a 0%, #12305a 100%); }
.cta-title, .cta-text { color: #fff; }
.cta-text { color: #c4d2e8; }
.cta .btn-primary { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.cta .btn-primary:hover { background: #eaf0ff; border-color: #eaf0ff; }
.footer { border-top: 1px solid var(--color-line); }

/* Menú en una sola línea en pantallas medianas */
.nav-link, .nav-actions .btn { white-space: nowrap; }
@media (max-width: 1180px) { .nav-menu { gap: 16px; } .nav-link { font-size: 13px; } .nav-actions .btn { padding: 9px 16px; } }
@media (max-width: 1180px) { #btn-demo { display: none; } .nav-logo { margin-right: 20px; } }
@media (max-width: 960px) { .nav-menu { display: none; } }

/* Aparición sutil al hacer scroll (la activa el script de index.html) */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
