:root{
  --bg:#0f0d0a;                 /* negro cálido */
  --text:#f3f6ff;
  --muted:#b8c2dd;
  --line:rgba(255,255,255,.10);
  --accent:#ffb703;             /* dorado (impacto/acción) */
  --accent2:#8ecae6;            /* azul claro (confianza/datos) */
  --shadow: 0 14px 34px rgba(0,0,0,.38);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 600px at 18% 0%, rgba(255,183,3,.16), transparent 60%),
    radial-gradient(900px 500px at 92% 20%, rgba(142,202,230,.14), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
.wrap{max-width:1120px; margin:0 auto; padding:26px 18px 64px}

/* NAV */
.nav{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(15,13,10,.72);
  border-bottom:1px solid var(--line);
  z-index:10;
}
.nav-inner{
  max-width:1120px; margin:0 auto;
  padding:12px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

/* Brand */
.brand{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-name{
  font-weight:800;
  letter-spacing:.3px;
}
.brand-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

/* Links desktop */
.links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}
.links a{padding:8px 10px; border-radius:12px}
.links a:hover{background:rgba(255,255,255,.04)}

/* Botones */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px; border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition:.15s;
  font-weight:600;
  font-size:14px;
}
.btn:hover{transform:translateY(-1px); border-color:rgba(255,183,3,.45)}
.btn.primary{
  border-color:rgba(255,183,3,.55);
  background: linear-gradient(180deg, rgba(255,183,3,.22), rgba(255,183,3,.08));
}
.btn.ghost{
  border-color:rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:600;
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:stretch;
  margin-top:16px;
}
@media (max-width:980px){ .hero{grid-template-columns:1fr} }

h1{font-size:40px; line-height:1.1; margin:0 0 10px}
@media (max-width:520px){ h1{font-size:34px} }
h2{font-size:18px; margin:0 0 10px}
h3{font-size:16px; margin:0 0 8px}
p{margin:0 0 10px; color:var(--muted)}
ul{margin:10px 0 0 18px; color:var(--muted)}

/* Pill / badges */
.pill{
  border:1px solid rgba(255,183,3,.35);
  background: rgba(255,183,3,.10);
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  color:rgba(243,246,255,.95);
  display:inline-flex;
  gap:8px;
  align-items:center;
  width:fit-content;
}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 6px}
.badge{
  font-size:13px; color:var(--muted);
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}

/* Layout sections */
.section{margin-top:18px}
.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
@media (max-width:980px){ .grid3{grid-template-columns:1fr} }

/* Mini KPIs */
.mini{display:flex; flex-direction:column; gap:10px}
.kpi{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,.10);
}
.kpi b{display:block; font-size:15px}
.kpi span{color:var(--muted); font-size:13px}

/* Projects */
.projects{
  display:grid; grid-template-columns: repeat(2, 1fr); gap:14px;
}
@media (max-width:980px){ .projects{grid-template-columns:1fr} }
.tag{
  display:inline-block; font-size:12px; color:rgba(243,246,255,.92);
  border:1px solid rgba(255,183,3,.45);
  background: rgba(255,183,3,.10);
  padding:4px 8px; border-radius:999px;
  margin-right:8px; margin-top:8px;
}

.note{font-size:13px; color:var(--muted)}
.muted{color:var(--muted)}

.hr{
  margin:18px 0 0;
  border-top:1px solid var(--line);
}

/* Power BI embed */
.embed-card{padding:0; overflow:hidden;}
.embed-head{padding:18px 20px 10px;}
.embed-wrap{
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.18);
  padding:14px;
}
.ratio{
  position:relative;
  width:100%;
  padding-top:56.25%;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
}
.ratio iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
.embed-actions{
  padding:12px 20px 18px;
  display:flex; gap:10px; flex-wrap:wrap;
}

/* Demo */
.demo-grid{display:grid; grid-template-columns: 1fr 1fr; gap:14px;}
@media (max-width:980px){ .demo-grid{grid-template-columns:1fr} }

.media-card{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(0,0,0,.10);
  overflow:hidden;
}
.media-head{padding:14px 14px 10px;}
.media-body{padding:0 14px 14px;}

.thumb-grid{display:grid; grid-template-columns: repeat(2, 1fr); gap:10px;}
@media (max-width:520px){ .thumb-grid{grid-template-columns:1fr} }

.thumb{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.thumb img{width:100%; height:160px; object-fit:cover; display:block;}
.thumb .cap{padding:10px 10px 12px; font-size:13px; color:var(--muted);}

.video-wrap{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.video-wrap video{width:100%; height:auto; display:block;}

/* IA / Roadmap */
.roadmap-grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;}
@media (max-width:980px){ .roadmap-grid{grid-template-columns:1fr} }

.roadmap-item{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background: rgba(0,0,0,.10);
}
.stage{
  display:inline-flex;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color:rgba(243,246,255,.92);
  margin-bottom:8px;
}
.stage.mvp{border-color:rgba(142,202,230,.50); background: rgba(142,202,230,.10)}
.stage.next{border-color:rgba(126,231,135,.45); background: rgba(126,231,135,.10)}
.stage.future{border-color:rgba(255,183,3,.50); background: rgba(255,183,3,.10)}

.meta{
  margin-top:10px;
  border-top:1px solid var(--line);
  padding-top:10px;
  display:grid;
  grid-template-columns: 1fr;
  gap:8px;
}
.meta-row{display:flex; gap:10px; flex-wrap:wrap; align-items:baseline;}
.meta-row b{font-size:13px; color:rgba(243,246,255,.92);}
.meta-row span{font-size:13px; color:var(--muted);}

/* Footer */
.foot{
  margin-top:22px; padding-top:18px; border-top:1px solid var(--line);
  color:var(--muted); font-size:13px;
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}

/* Hamburger button */
.menu-btn{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size:18px;
  font-weight:800;
}

/* Mobile nav behavior */
@media (max-width: 820px){
  .nav-inner{ position:relative; padding:10px 14px; }

  /* En móvil: marca compacta (solo Smith Analytics) */
  .brand{ flex-direction:row; align-items:center; gap:10px; max-width:70%; }
  .brand-sub{ display:none; }
  .brand-name{ font-size:15px; }

  /* Mostrar botón hamburguesa */
  .menu-btn{ display:inline-flex; align-items:center; justify-content:center; }

  /* Ocultar links en línea */
  .links{ display:none; }

  /* Menú desplegable */
  #topNav.open .links{
    display:flex;
    flex-direction:column;
    gap:6px;
    position:absolute;
    left:12px; right:12px;
    top:64px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:16px;
    background: rgba(15,13,10,.92);
    backdrop-filter: blur(10px);
    z-index:20;
  }

  #topNav.open .links a{
    padding:12px 12px;
    border-radius:12px;
    background: rgba(255,255,255,.03);
    color: var(--text);
  }
  #topNav.open .links a:hover{ background: rgba(255,255,255,.06); }
}
:root{
  --nav-offset: 96px; /* ajusta 86–110 si lo quieres más abajo */
}

html{
  scroll-padding-top: var(--nav-offset);
}

/* Tus secciones reales son <div class="section" ...> */
.section{
  scroll-margin-top: var(--nav-offset:50px);
}
