:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --accent:#2563eb;
  --border:#e5e7eb;
}

/* Reset básico */
*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }

.container{
  width:min(1100px, 92%);
  margin:0 auto;
}

/* ===== HEADER ===== */
.header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--border);
  z-index:10;
}

.header__inner{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.logo{
  font-weight:800;
  letter-spacing:.2px;
}

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

.nav a{
  padding:8px 10px;
  border-radius:10px;
  color:var(--muted);
}

.nav a.active,
.nav a:hover{
  background:#eef2ff;
  color:var(--accent);
}

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

/* ===== BOTONES ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  background:var(--accent);
  color:#ffffff;
  font-weight:600;
  border:0;
}

.btn--ghost{
  background:#ffffff;
  color:var(--accent);
  border:1px solid var(--border);
}

/* ===== MAIN ===== */
.main{
  padding:32px 0 50px;
}

/* ===== HERO ===== */
.hero{
  background:linear-gradient(180deg,#eef2ff,transparent);
  border-bottom:1px solid var(--border);
  padding:40px 0;
}

.hero__grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:start;
}

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

/* ===== CARDS ===== */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.h1{
  font-size:clamp(28px,3.3vw,44px);
  margin:0 0 12px;
}

.p{
  color:var(--muted);
  line-height:1.6;
  margin:0 0 14px;
}

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

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

/* ===== KPIs ===== */
.kpi{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.kpi strong{
  font-size:18px;
}

/* ===== BADGE ===== */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid var(--border);
  color:var(--muted);
}

/* ===== FORM ===== */
.form{
  display:grid;
  gap:12px;
}

.input,
textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#ffffff;
  color:var(--text);
}

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

.small{
  font-size:13px;
  color:var(--muted);
}

/* ===== FOOTER ===== */
.footer{
  border-top:1px solid var(--border);
  padding:24px 0;
  color:var(--muted);
  background:#ffffff;
}

.footer__inner{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:start;
}

.footer__links{
  display:flex;
  gap:12px;
  justify-content:flex-end;
}

.footer__copy{
  grid-column:1/-1;
  font-size:13px;
}
/* ===== FIX DUPLICADO CTA + FILA EN ESCRITORIO + COLORES ===== */

/* Colores del texto en header (ajusta si quieres) */
.header, .header a { color: #111; }
.header .nav a { color: #111; text-decoration: none; }
.header .nav a.active { font-weight: 700; }

/* En escritorio: todo en una fila + ocultar CTA que está dentro del nav */
@media (min-width: 901px){
  .header__inner{ flex-wrap: nowrap; }

  /* nav en fila */
  .header .nav{
    flex-direction: row !important;
    white-space: nowrap;
  }

  /* Oculta SOLO el CTA que está dentro del nav (móvil) */
  .header .nav .header__cta{
    display:none !important;
  }

  /* Muestra CTA desktop */
  .header .header__cta--desktop{
    display:flex !important;
  }
}

/* En móvil: mostrar CTA dentro del nav y ocultar el de desktop */
@media (max-width: 900px){
  .header .header__cta--desktop{
    display:none !important;
  }

  .header .nav .header__cta{
    display:flex !important;
  }
}
