  :root{
    --ink:#0D1117;
    --panel:#141A24;
    --panel-2:#1B2330;
    --line:#262F3D;
    --text:#EDEFF3;
    --text-muted:#9AA3B2;
    --text-dim:#5D6472;
    --signal:#8C52FF;
    --signal-dim:#4B3489;
    --warm:#D72DB0;
    --radius:14px;
    --maxw:1180px;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
  }

  body{
    background:var(--ink);
    color:var(--text);
    font-family:'IBM Plex Sans', sans-serif;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }

  h1,h2,h3{
    font-family:'Space Grotesk', sans-serif;
    font-weight:600;
    letter-spacing:-0.01em;
    line-height:1.1;
  }

  .mono{
    font-family:'IBM Plex Mono', monospace;
  }

  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}

  :focus-visible{
    outline:2px solid var(--signal);
    outline-offset:3px;
    border-radius:4px;
  }

  .wrap{
    max-width:var(--maxw);
    margin:0 auto;
    padding:0 24px;
  }

  section{
    padding:96px 0;
    border-bottom:1px solid var(--line);
  }

  /* ---------- HEADER ---------- */
  header{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(13,17,23,0.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav{
    max-width:var(--maxw);
    margin:0 auto;
    padding:18px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .logo{
    display:flex;
    align-items:center;
  }
  .logo img{
    height:34px;
    width:auto;
    display:block;
  }
  .nav-links{
    display:flex;
    gap:32px;
    font-size:14px;
    color:var(--text-muted);
  }
  .nav-links a:hover{color:var(--text);}
  .nav-cta{
    display:flex;
    align-items:center;
    gap:16px;
  }
  .btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 20px;
    border-radius:999px;
    font-size:14px;
    font-weight:500;
    transition:all .18s ease;
    white-space:nowrap;
  }
  .btn-primary{
    background:var(--signal);
    color:#0B0E14;
    font-weight:600;
  }
  .btn-primary:hover{background:#A67AFF; transform:translateY(-1px);}
  .btn-ghost{
    border:1px solid var(--line);
    color:var(--text);
  }
  .btn-ghost:hover{border-color:var(--signal); color:var(--signal);}

  .nav-toggle{display:none; background:none; border:none; color:var(--text); font-size:24px; cursor:pointer;}

  /* ---------- HERO ---------- */
  .hero{
    padding:120px 0 100px;
    border-bottom:1px solid var(--line);
    position:relative;
    overflow:hidden;
  }
  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-family:'IBM Plex Mono', monospace;
    font-size:13px;
    color:var(--signal);
    background:rgba(140,82,255,0.08);
    border:1px solid var(--signal-dim);
    padding:6px 14px;
    border-radius:999px;
    margin-bottom:28px;
  }
  .eyebrow .blink{
    width:6px; height:6px; border-radius:50%;
    background:var(--signal);
    animation:blink 1.6s ease-in-out infinite;
  }
  @keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:0.25;} }

  .hero h1{
    font-size:56px;
    max-width:820px;
    margin-bottom:24px;
  }
  .hero h1 .accent{color:var(--signal);}
  .hero p.lead{
    font-size:19px;
    color:var(--text-muted);
    max-width:560px;
    margin-bottom:40px;
  }
  .hero-ctas{
    display:flex;
    gap:16px;
    margin-bottom:80px;
    flex-wrap:wrap;
  }
  .btn-lg{padding:14px 26px; font-size:15px;}

  /* ---------- PIPELINE (signature element) ---------- */
  .pipeline{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:32px 28px 28px;
    overflow-x:auto;
  }
  .pipeline-label{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    color:var(--text-dim);
    margin-bottom:22px;
    display:flex;
    justify-content:space-between;
  }
  .pipeline-track{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-width:640px;
  }
  .pipeline-line{
    position:absolute;
    top:19px;
    left:19px;
    right:19px;
    height:2px;
    background:var(--line);
    z-index:0;
  }
  .pipeline-progress{
    position:absolute;
    top:19px;
    left:19px;
    height:2px;
    background:linear-gradient(90deg, var(--signal), var(--warm));
    z-index:1;
    width:0%;
    animation:travel 5s ease-in-out infinite;
  }
  @keyframes travel{
    0%{width:0%;}
    30%{width:38%;}
    60%{width:70%;}
    100%{width:100%;}
  }
  .pipeline-node{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    flex:1;
  }
  .pipeline-dot{
    width:40px; height:40px;
    border-radius:50%;
    background:var(--panel-2);
    border:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'IBM Plex Mono', monospace;
    font-size:13px;
    color:var(--text-muted);
  }
  .pipeline-node.active .pipeline-dot{
    border-color:var(--signal);
    color:var(--signal);
    box-shadow:0 0 0 4px rgba(140,82,255,0.12);
  }
  .pipeline-node span.label{
    font-size:13px;
    color:var(--text-muted);
    text-align:center;
    max-width:120px;
  }

  /* ---------- SECTION HEADS ---------- */
  .section-head{
    max-width:600px;
    margin-bottom:56px;
  }
  .section-head .eyebrow{margin-bottom:18px;}
  .section-head h2{font-size:36px; margin-bottom:14px;}
  .section-head p{color:var(--text-muted); font-size:16px;}

  /* ---------- SERVICIOS ---------- */
  .services-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
    border-radius:var(--radius);
    overflow:hidden;
  }
  .service-card{
    background:var(--panel);
    padding:36px 30px;
    transition:background .2s ease;
  }
  .service-card:hover{background:var(--panel-2);}
  .service-icon{
    width:44px; height:44px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:24px;
    border:1px solid var(--line);
  }
  .service-card.ai .service-icon{border-color:#6E2A63; color:var(--warm);}
  .service-card.custom .service-icon{border-color:var(--signal-dim); color:var(--signal);}
  .service-card.web .service-icon{border-color:var(--signal-dim); color:var(--signal);}

  .service-tag{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.06em;
    color:var(--text-dim);
    margin-bottom:10px;
  }
  .service-card h3{font-size:20px; margin-bottom:12px;}
  .service-card p{color:var(--text-muted); font-size:14.5px; margin-bottom:18px;}
  .service-example{
    font-size:13px;
    color:var(--text-dim);
    border-top:1px solid var(--line);
    padding-top:16px;
  }
  .service-example b{color:var(--text-muted); font-weight:500;}

  /* ---------- COMO TRABAJAMOS ---------- */
  .steps{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:24px;
  }
  .step{
    position:relative;
    padding-top:8px;
  }
  .step-num{
    font-family:'IBM Plex Mono', monospace;
    font-size:13px;
    color:var(--text-dim);
    display:block;
    margin-bottom:16px;
  }
  .step h3{font-size:18px; margin-bottom:10px;}
  .step p{color:var(--text-muted); font-size:14.5px;}
  .step::after{
    content:'';
    display:block;
    height:1px;
    background:var(--line);
    margin-top:24px;
  }

  /* ---------- CASOS ---------- */
  .cases-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
  }
  .case-card{
    border:1px dashed var(--line);
    border-radius:var(--radius);
    padding:32px 24px;
    min-height:180px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    color:var(--text-dim);
  }
  .case-card .case-status{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    color:var(--warm);
  }
  .case-note{
    grid-column:1 / -1;
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:24px 28px;
    color:var(--text-muted);
    font-size:14.5px;
    margin-top:4px;
  }

  /* ---------- POR QUE AJIBE ---------- */
  .why-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
    border-radius:var(--radius);
    overflow:hidden;
  }
  .why-item{
    background:var(--panel);
    padding:28px 30px;
  }
  .why-item h3{font-size:17px; margin-bottom:8px; display:flex; align-items:center; gap:10px;}
  .why-item h3::before{
    content:'';
    width:8px; height:8px;
    border-radius:2px;
    background:var(--signal);
    display:inline-block;
  }
  .why-item p{color:var(--text-muted); font-size:14.5px;}

  /* ---------- CONTACTO ---------- */
  .contact-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
  }
  .contact-info h2{font-size:32px; margin-bottom:16px;}
  .contact-info p{color:var(--text-muted); margin-bottom:32px; max-width:420px;}
  .contact-direct{
    display:flex;
    flex-direction:column;
    gap:14px;
  }
  .contact-direct a{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14.5px;
    color:var(--text);
    padding:12px 16px;
    border:1px solid var(--line);
    border-radius:10px;
    transition:border-color .18s ease;
  }
  .contact-direct a:hover{border-color:var(--signal);}

  form{
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  .form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
  label{
    font-size:13px;
    color:var(--text-muted);
    margin-bottom:6px;
    display:block;
  }
  input, select, textarea{
    width:100%;
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px 14px;
    color:var(--text);
    font-family:'IBM Plex Sans', sans-serif;
    font-size:14.5px;
  }
  input:focus, select:focus, textarea:focus{
    border-color:var(--signal);
    outline:none;
  }
  textarea{resize:vertical; min-height:110px;}
  .field{display:flex; flex-direction:column;}
  button[type="submit"]{
    align-self:flex-start;
    border:none;
    cursor:pointer;
    margin-top:8px;
  }
  .form-note{font-size:12.5px; color:var(--text-dim); margin-top:-4px;}
  .form-status{font-size:14px; font-weight:500; margin-top:4px;}

  /* ---------- FOOTER ---------- */
  footer{padding:48px 0;}
  .footer-wrap{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:24px;
  }
  .footer-links{
    display:flex;
    gap:24px;
    font-size:13.5px;
    color:var(--text-muted);
  }
  .footer-links a:hover{color:var(--text);}
  .footer-meta{
    font-size:13px;
    color:var(--text-dim);
    font-family:'IBM Plex Mono', monospace;
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width:900px){
    .hero h1{font-size:40px;}
    .services-grid{grid-template-columns:1fr;}
    .steps{grid-template-columns:1fr 1fr; row-gap:32px;}
    .cases-grid{grid-template-columns:1fr;}
    .why-grid{grid-template-columns:1fr;}
    .contact-layout{grid-template-columns:1fr; gap:40px;}
    .form-row{grid-template-columns:1fr;}
  }

  @media (max-width:640px){
    section{padding:64px 0;}
    .hero{padding:56px 0 64px;}
    .hero h1{font-size:32px;}
    .hero p.lead{font-size:17px;}
    .nav-links{display:none;}
    .steps{grid-template-columns:1fr;}
    .pipeline-track{min-width:520px;}
    .section-head h2{font-size:28px;}
  }
