/* ==========================================================================
   KWADRANT SYSTEMS - ESTILOS GLOBALES
   Diseño: Microsoft Fluent inspired, sobrio, profesional
   ========================================================================== */

/* Variables CSS */
:root {
  /* Colores base */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;

  /* Colores de marca */
  --brand: #0078D4;
  --brand-2: #106ebe;
  --ok: #107c10;
  --warn: #d83b01;
  --bad: #d13438;

  /* Sombras */
  --shadow: 0 12px 32px rgba(2, 6, 23, .08);
  --shadow-soft: 0 8px 20px rgba(2, 6, 23, .06);

  /* Radios */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;

  /* Contenedor */
  --container: 1120px;
}

/* Reset y base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enlaces */
a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 120, 212, .35);
  outline-offset: 3px;
  border-radius: 10px;
}

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

.row {
  display: flex;
  gap: 24px;
}

.col {
  flex: 1;
}

.grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Componentes UI */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 120, 212, .20);
  background: rgba(0, 120, 212, .07);
  color: var(--brand-2);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.chip svg {
  width: 16px;
  height: 16px;
}

.muted {
  color: var(--muted);
}

.muted-2 {
  color: var(--muted-2);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, .35);
  box-shadow: var(--shadow-soft);
}

.card-pad {
  padding: 24px;
}

/* KPIs */
.kpi {
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi strong {
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.kpi span {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.4;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  user-select: none;
}

.btn:hover {
  background: var(--surface-2);
  border-color: rgba(15, 23, 42, .18);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-color: rgba(0, 120, 212, .2);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 120, 212, .18);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(0, 120, 212, .26);
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--brand), #0f66b7);
}

.btn-sm {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.badge b {
  color: var(--text);
}

/* Pills */
.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pill.blue {
  background: rgba(0, 120, 212, .12);
  color: var(--brand-2);
}

.pill.orange {
  background: rgba(216, 59, 1, .12);
  color: var(--warn);
}

.pill.green {
  background: rgba(16, 124, 16, .12);
  color: var(--ok);
}

/* Secciones */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.section.alt {
  background: var(--surface-2);
}

.section.no-border {
  border-top: 0;
}

.section.compact {
  padding: 60px 0;
}

/* Tipografía */
h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  margin: 0 0 12px 0;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.65;
}

/* Navegación */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text);
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  padding: 100px 0 90px 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Feature icons */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 120, 212, .1), rgba(0, 120, 212, .05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand);
  fill: none;
}

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* Checklists */
.checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.checklist .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(16, 124, 16, .12);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Details / Accordion */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color .15s ease;
}

details:hover {
  border-color: rgba(0, 120, 212, .3);
}

details[open] {
  border-color: var(--brand);
}

summary {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '→';
  display: inline-block;
  margin-right: 10px;
  color: var(--brand);
  transition: transform .2s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Formularios */
.form {
  max-width: 580px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, .1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.fineprint {
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 4px;
}

/* Footer */
footer {
  background: var(--surface-3);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted-2);
  transition: color .15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 899px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 70px 0 60px 0;
  }

  .section {
    padding: 60px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
/* ===== Brand / Logo (solo index.html) ===== */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  white-space:nowrap;
}

.brand svg{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:block;
}

.brand .brand-title{
  display:flex;
  align-items:baseline;
  gap:8px;
  line-height:1;
}

.brand .brand-name{
  font-weight:900;
  font-size:16px;
  letter-spacing:.10em;
  color:var(--text);
}

.brand .brand-sub{
  font-weight:700;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}

@media (max-width:520px){
  .brand svg{ width:24px; height:24px; flex-basis:24px; }
  .brand .brand-name{ font-size:15px; }
  .brand .brand-sub{ font-size:11px; }
}

/* Fix CTA nav: el botón "Contacto" debe tener texto blanco siempre */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus,
.nav-links a.btn-primary:active{
  color:#fff !important;
}