:root{
    --ink:#0a0e1a;
    --surface:#111827;
    --surface-2:#161f33;
    --line: rgba(255,255,255,0.09);
    --blue-600:#2f6fed;
    --blue-400:#5ac8fa;
    --paper:#f4f6fb;
    --slate:#8993a8;
    --slate-dim:#5b6580;
    --grad: linear-gradient(120deg, var(--blue-400), var(--blue-600));
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--ink);
    color:var(--paper);
    font-family:'Inter', sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  h1,h2,h3,.display{
    font-family:'Space Grotesk', sans-serif;
    letter-spacing:-0.02em;
  }
  .mono{ font-family:'IBM Plex Mono', monospace; }
  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}
  .wrap{
    max-width:1180px;
    margin:0 auto;
    padding:0 28px;
  }
  ::selection{ background:var(--blue-600); color:#fff; }

  /* background grid / blueprint texture */
  .grid-bg{
    position:fixed; inset:0; z-index:0; pointer-events:none;
    background-image:
      linear-gradient(rgba(90,200,250,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(90,200,250,0.05) 1px, transparent 1px);
    background-size:64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
  }

  /* ---------- NAV ---------- */
  header{
    position:sticky; top:0; z-index:50;
    backdrop-filter: blur(14px);
    background:rgba(10,14,26,0.72);
    border-bottom:1px solid var(--line);
  }
  nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 28px;
    max-width:1180px; margin:0 auto;
  }
  .brand{ display:flex; align-items:center; gap:10px; }
  .brand img{ height:30px; width:auto; }
  .brand span{ font-family:'Space Grotesk'; font-weight:600; font-size:17px; letter-spacing:-0.01em;}
  .navlinks{ display:flex; gap:34px; align-items:center; }
  .navlinks a{
    font-size:14.5px; color:var(--slate); font-weight:500;
    transition:color .2s;
  }
  .navlinks a:hover{ color:var(--paper); }
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:11px 20px;
    border-radius:8px;
    font-size:14.5px; font-weight:600;
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space:nowrap;
  }
  .btn-primary{
    background: var(--grad);
    color:#03101f;
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(47,111,237,0.35); }
  .btn-ghost{
    border:1px solid var(--line);
    color:var(--paper);
  }
  .btn-ghost:hover{ background:rgba(255,255,255,0.05); border-color:rgba(255,255,255,0.2); }
  .btn-wsp{
    background:#1ea856;
    color:#fff;
  }
  .btn-wsp:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(30,168,86,0.35); }
  .navcta{ display:flex; gap:10px; }
  .menu-btn{ display:none; background:none; border:none; color:var(--paper); font-size:24px; cursor:pointer; }

  .mobile-nav{
    display:none;
    flex-direction:column;
    gap:2px;
    padding:8px 28px 22px;
    border-top:1px solid var(--line);
    background:rgba(10,14,26,0.98);
  }
  .mobile-nav a{
    padding:13px 4px;
    font-size:15px;
    color:var(--paper);
    border-bottom:1px solid var(--line);
  }
  .mobile-nav.open{ display:flex; }
  @media (min-width:901px){
    .mobile-nav{ display:none !important; }
  }
  /* ---------- HERO ---------- */
  .hero{
    position:relative; z-index:1;
    padding:96px 0 80px;
  }
  .hero-grid{
    display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:10px;
    font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase;
    color:var(--blue-400); font-weight:600;
    padding:7px 14px; border:1px solid rgba(90,200,250,0.28); border-radius:100px;
    background:rgba(90,200,250,0.06);
    margin-bottom:26px;
  }
  .eyebrow .dot{ width:5px; height:5px; border-radius:50%; background:var(--blue-400); }
  .hero h1{
    font-size:clamp(2.4rem, 5vw, 3.6rem);
    line-height:1.06;
    font-weight:700;
    margin-bottom:22px;
  }
  .hero h1 .accent{
    background:var(--grad);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
  }
  .hero p.lead{
    font-size:18px; line-height:1.6; color:var(--slate);
    max-width:520px; margin-bottom:34px;
  }
  .hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px;}
  .hero-ctas .btn{ padding:14px 24px; font-size:15px; }
  .trust-line{
    display:flex; align-items:center; gap:10px;
    color:var(--slate-dim); font-size:13.5px;
  }
  .trust-line .pulse{
    width:8px; height:8px; border-radius:50%; background:#33d17a;
    box-shadow:0 0 0 0 rgba(51,209,122,0.6);
    animation:pulse 2s infinite;
  }
  @keyframes pulse{
    0%{ box-shadow:0 0 0 0 rgba(51,209,122,0.5); }
    70%{ box-shadow:0 0 0 8px rgba(51,209,122,0); }
    100%{ box-shadow:0 0 0 0 rgba(51,209,122,0); }
  }

  /* terminal signature element */
  .term-wrap{ position:relative; }
  .term{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:14px;
    overflow:hidden;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
  }
  .term-bar{
    display:flex; align-items:center; gap:8px;
    padding:13px 16px;
    background:var(--surface-2);
    border-bottom:1px solid var(--line);
  }
  .term-dot{ width:10px; height:10px; border-radius:50%; }
  .term-dot.r{ background:#ff5f57; }
  .term-dot.y{ background:#febc2e; }
  .term-dot.g{ background:#28c840; }
  .term-title{ margin-left:8px; font-size:12px; color:var(--slate); font-family:'IBM Plex Mono'; }
  .term-body{
    padding:24px 22px 30px;
    font-family:'IBM Plex Mono', monospace;
    font-size:13.5px; line-height:1.9;
    min-height:230px;
  }
  .term-body .c-slate{ color:var(--slate-dim); }
  .term-body .c-blue{ color:var(--blue-400); }
  .term-body .c-white{ color:var(--paper); }
  .term-body .c-green{ color:#33d17a; }
  #typed-line::after{
    content:'';
    display:inline-block;
    width:8px; height:16px;
    background:var(--blue-400);
    margin-left:2px;
    vertical-align:text-bottom;
    animation:blink 1s step-end infinite;
  }
  @keyframes blink{ 50%{ opacity:0; } }
  .float-card{
    position:absolute;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px 16px;
    font-size:12.5px;
    display:flex; align-items:center; gap:9px;
    box-shadow:0 20px 40px rgba(0,0,0,0.35);
    animation:floaty 5s ease-in-out infinite;
  }
  .float-card svg{ width:16px; height:16px; flex-shrink:0; }
  .fc1{ top:-18px; right:22px; animation-delay:0s;}
  .fc2{ bottom:-20px; left:-14px; animation-delay:1.4s;}
  @keyframes floaty{
    0%,100%{ transform:translateY(0);}
    50%{ transform:translateY(-9px);}
  }

  /* ---------- SECTION HEADERS ---------- */
  section{ position:relative; z-index:1; padding:90px 0; }
  .sec-head{ max-width:640px; margin-bottom:52px; }
  .sec-eyebrow{
    font-family:'IBM Plex Mono'; font-size:12.5px; letter-spacing:0.12em; text-transform:uppercase;
    color:var(--blue-400); margin-bottom:14px; display:block;
  }
  .sec-head h2{ font-size:clamp(1.8rem,3.4vw,2.5rem); font-weight:700; line-height:1.15; margin-bottom:14px;}
  .sec-head p{ color:var(--slate); font-size:16px; line-height:1.6; }
  .divider{ border:none; border-top:1px solid var(--line); }

  /* ---------- IDEAL PARA ---------- */
  .audience-grid{
    display:grid; grid-template-columns:repeat(3, 1fr); gap:24px;
  }
  .audience-card{
    background:var(--surface); border:1px solid var(--line); border-radius:16px;
    padding:30px 26px;
    transition:transform .25s ease, border-color .25s ease;
  }
  .audience-card:hover{ transform:translateY(-6px); border-color:rgba(90,200,250,0.35); }
  .audience-icon{
    width:44px; height:44px; border-radius:11px;
    display:flex; align-items:center; justify-content:center;
    margin-bottom:20px;
  }
  .audience-card h3{ font-size:18px; margin-bottom:10px; font-weight:600; }
  .audience-card p{ color:var(--slate); font-size:14.5px; line-height:1.6; }

  /* ---------- SERVICIOS ---------- */
  .services-grid{
    display:grid; grid-template-columns:repeat(2,1fr); gap:20px;
  }
  .service-card{
    background:linear-gradient(180deg, var(--surface), rgba(17,24,39,0.4));
    border:1px solid var(--line); border-radius:16px;
    padding:32px;
    position:relative;
    overflow:hidden;
    transition:border-color .25s ease, transform .25s ease;
  }
  .service-card:hover{ border-color:rgba(90,200,250,0.35); transform:translateY(-4px); }
  .service-card::before{
    content:'';
    position:absolute; top:0; left:0; right:0; height:2px;
    background:var(--grad);
    opacity:0; transition:opacity .25s;
  }
  .service-card:hover::before{ opacity:1; }
  .service-tag{
    font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--blue-400);
    letter-spacing:0.08em; text-transform:uppercase; margin-bottom:16px; display:block;
  }
  .service-card h3{ font-size:21px; margin-bottom:12px; font-weight:600; }
  .service-card p{ color:var(--slate); font-size:14.5px; line-height:1.65; margin-bottom:16px;}
  .service-list{ list-style:none; }
  .service-list li{
    font-size:13.5px; color:var(--slate); padding-left:18px; position:relative; margin-bottom:7px;
  }
  .service-list li::before{
    content:''; position:absolute; left:0; top:8px; width:6px; height:6px; border-radius:1px;
    background:var(--blue-400); transform:rotate(45deg);
  }
  .service-card-wide{ grid-column:span 2; }
  .service-list-wide{
    display:grid; grid-template-columns:1fr 1fr; gap:6px 24px;
  }
  @media (max-width:900px){
    .service-card-wide{ grid-column:span 1; }
    .service-list-wide{ grid-template-columns:1fr; }
  }

  /* ---------- INCLUYE ---------- */
  .includes-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
  }
  .include-card{ padding:6px 0; }
  .include-icon{
    width:42px; height:42px; border-radius:10px;
    background:var(--surface); border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:18px; color:var(--blue-400);
  }
  .include-card h3{ font-size:16px; margin-bottom:9px; font-weight:600; }
  .include-card p{ color:var(--slate); font-size:14px; line-height:1.6; }

  /* ---------- PROYECTOS / CARRUSEL ---------- */
  .carousel{ position:relative; }
  .carousel-track-wrap{ overflow:hidden; border-radius:20px; }
  .carousel-track{
    display:flex;
    transition:transform .55s cubic-bezier(.65,0,.35,1);
  }
  .slide{
    min-width:100%;
    display:grid; grid-template-columns:1.15fr 0.85fr; gap:0;
    background:var(--surface);
    border:1px solid var(--line);
  }
  .slide-visual{
    position:relative;
    background:var(--surface-2);
    border-right:1px solid var(--line);
  }
  .browser-frame{
    position:relative;
    aspect-ratio:16/10.5;
    background:#fff;
  }
  .browser-bar{
    display:flex; align-items:center; gap:8px;
    padding:11px 14px;
    background:var(--surface-2);
    border-bottom:1px solid var(--line);
  }
  .browser-url{
    flex:1; margin-left:8px;
    background:rgba(255,255,255,0.06);
    border-radius:6px;
    padding:5px 12px;
    font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--slate);
    overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
  }
  .browser-viewport{
    position:relative;
    width:100%;
    height:0;
    padding-bottom:62%;
    overflow:hidden;
    background:#fff;
  }
  .browser-viewport iframe{
    position:absolute; top:0; left:0;
    width:250%; height:250%;
    border:none;
    transform:scale(0.4);
    transform-origin:top left;
    pointer-events:none;
  }
  .browser-viewport img{
    position:absolute; top:0; left:0; width:100%; height:100%;
    object-fit:cover; object-position:top;
  }
  .visual-link{
    position:absolute; inset:0; z-index:5;
    display:flex; align-items:flex-end; justify-content:flex-end;
    padding:16px;
    opacity:0; transition:opacity .25s, background .25s;
    background:rgba(10,14,26,0.15);
  }
  .browser-frame:hover .visual-link{ opacity:1; }
  .visual-link span{
    background:var(--paper); color:var(--ink);
    font-size:12.5px; font-weight:600;
    padding:9px 16px; border-radius:100px;
    display:flex; align-items:center; gap:6px;
  }
  .slide-info{ padding:44px 42px; display:flex; flex-direction:column; justify-content:center; }
  .slide-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
  .slide-tag{
    font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; letter-spacing:0.06em;
    color:var(--blue-400); border:1px solid rgba(90,200,250,0.28); background:rgba(90,200,250,0.06);
    padding:5px 11px; border-radius:100px;
  }
  .slide-info h3{ font-size:1.6rem; font-weight:700; margin-bottom:12px; }
  .slide-info p{ color:var(--slate); font-size:14.5px; line-height:1.7; margin-bottom:22px; }
  .slide-info .btn{ align-self:flex-start; padding:11px 20px; font-size:13.5px; }
  .badge-private{
    display:inline-flex; align-items:center; gap:7px;
    font-size:12.5px; color:var(--slate-dim);
    border:1px dashed var(--line); border-radius:100px; padding:7px 14px;
    align-self:flex-start;
  }
  .carousel-nav{
    display:flex; align-items:center; justify-content:center; gap:22px;
    margin-top:26px;
  }
  .car-btn{
    width:42px; height:42px; border-radius:50%;
    border:1px solid var(--line); background:var(--surface);
    color:var(--paper); display:flex; align-items:center; justify-content:center;
    cursor:pointer; transition:border-color .2s, transform .15s;
  }
  .car-btn:hover{ border-color:rgba(90,200,250,0.4); transform:translateY(-2px); }
  .car-dots{ display:flex; gap:9px; }
  .car-dot{
    width:8px; height:8px; border-radius:50%; background:var(--line);
    cursor:pointer; transition:background .2s, width .2s;
  }
  .car-dot.active{ background:var(--blue-400); width:24px; border-radius:5px; }

  @media (max-width: 900px){
    .slide{ grid-template-columns:1fr; }
    .slide-visual{ border-right:none; border-bottom:1px solid var(--line); }
    .slide-info{ padding:32px 26px; }
  }

  /* ---------- PROCESO ---------- */
  .process{
    display:grid; grid-template-columns:repeat(5,1fr); gap:0;
    position:relative;
  }
  .process::before{
    content:'';
    position:absolute; top:23px; left:10%; right:10%; height:1px;
    background:var(--line);
  }
  .p-step{ position:relative; padding:0 14px; }
  .p-num{
    font-family:'Space Grotesk'; font-weight:700; font-size:15px;
    width:46px; height:46px; border-radius:50%;
    background:var(--ink); border:1.5px solid var(--blue-400);
    color:var(--blue-400);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:22px; position:relative; z-index:2;
  }
  .p-step h3{ font-size:15.5px; margin-bottom:8px; font-weight:600; }
  .p-step p{ font-size:13px; color:var(--slate); line-height:1.55; }

  /* ---------- STATS / WHY ---------- */
  .why-band{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:20px;
    padding:44px 40px;
    display:grid; grid-template-columns:1.1fr auto 1fr; gap:36px; align-items:center;
  }
  .why-stat h4{
    font-family:'Space Grotesk'; font-size:2.6rem; font-weight:700;
    background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
    line-height:1;
  }
  .why-stat p{ color:var(--slate); font-size:13.5px; margin-top:8px; }
  .why-sep{ width:1px; height:64px; background:var(--line); justify-self:center; }
  .why-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
  .why-item{ display:flex; flex-direction:column; gap:6px; }
  .why-item .lbl{ font-size:14px; font-weight:600; }
  .why-item .sub{ font-size:12.5px; color:var(--slate); }

  /* ---------- FAQ ---------- */
  .faq{ max-width:760px; }
  .faq-item{ border-bottom:1px solid var(--line); padding:22px 0; cursor:pointer; }
  .faq-q{ display:flex; justify-content:space-between; align-items:center; font-weight:600; font-size:16px; gap:20px;}
  .faq-q .plus{ font-size:20px; color:var(--blue-400); transition:transform .25s; flex-shrink:0; }
  .faq-item.open .plus{ transform:rotate(45deg); }
  .faq-a{
    max-height:0; overflow:hidden; transition:max-height .3s ease;
    color:var(--slate); font-size:14.5px; line-height:1.65;
  }
  .faq-a-inner{ padding-top:14px; }
  .faq-item.open .faq-a{ max-height:200px; }

  /* ---------- CTA FINAL ---------- */
  .cta-final{
    position:relative;
    border-radius:24px;
    background:linear-gradient(135deg, #0e1830, #0a0e1a 60%);
    border:1px solid var(--line);
    padding:70px 50px;
    text-align:center;
    overflow:hidden;
  }

  .cta-btn-final{
    position:relative;
    z-index:2;
    padding:16px 30px;
    font-size:16px;
  }
  @media (max-width:480px){
    .cta-btn-final{
      padding:10px 14px;
      font-size:12px;
    }
  }
  .cta-final::before{
    content:'';
    position:absolute; width:480px; height:480px; border-radius:50%;
    background:radial-gradient(circle, rgba(90,200,250,0.16), transparent 70%);
    top:-220px; left:50%; transform:translateX(-50%);
  }
  .cta-final h2{ font-size:clamp(1.7rem,3.6vw,2.6rem); font-weight:700; margin-bottom:16px; position:relative; }
  .cta-final p{ color:var(--slate); font-size:16px; max-width:480px; margin:0 auto 34px; position:relative; }
  .cta-badges{
    display:flex; justify-content:center; gap:30px; margin-top:40px; flex-wrap:wrap;
    position:relative;
  }
  .cta-badge{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--slate); }
  .cta-badge svg{ width:16px; height:16px; color:var(--blue-400); }

  /* ---------- FOOTER ---------- */
  footer{ border-top:1px solid var(--line); padding:48px 0 30px; position:relative; z-index:1; }
  .foot-grid{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:30px; margin-bottom:36px;}
  .foot-brand{ display:flex; align-items:center; gap:10px; }
  .foot-brand img{ height:26px; }
  .foot-brand span{ font-family:'Space Grotesk'; font-weight:600; }
  .foot-tag{ color:var(--slate); font-size:13.5px; margin-top:10px; max-width:280px; line-height:1.6;}
  .foot-cols{ display:flex; gap:64px; flex-wrap:wrap; }
  .foot-col h5{ font-size:13px; text-transform:uppercase; letter-spacing:0.08em; color:var(--slate-dim); margin-bottom:16px; font-weight:600;}
  .foot-col a{ display:block; color:var(--slate); font-size:14px; margin-bottom:11px; transition:color .2s;}
  .foot-col a:hover{ color:var(--paper); }
  .foot-bottom{
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
    padding-top:26px; border-top:1px solid var(--line);
    color:var(--slate-dim); font-size:13px;
  }

  /* ---------- WHATSAPP FLOAT ---------- */
  .wa-float{
    position:fixed; bottom:26px; right:26px; z-index:60;
    width:58px; height:58px; border-radius:50%;
    background:#1ea856; display:flex; align-items:center; justify-content:center;
    box-shadow:0 10px 30px rgba(30,168,86,0.4);
    transition:transform .2s ease;
  }
  .wa-float:hover{ transform:scale(1.08); }
  .wa-float svg{ width:28px; height:28px; }

  /* reveal on scroll */
  .reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
  .reveal.in{ opacity:1; transform:translateY(0); }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 900px){
    .navlinks{ display:none; }
    .menu-btn{ display:block; }
    .navcta .btn-ghost{ display:none; }
    .hero-grid{ grid-template-columns:1fr; }
    .term-wrap{ order:-1; max-width:440px; margin:0 auto 20px;}
    .audience-grid, .services-grid, .includes-grid{ grid-template-columns:1fr; }
    .process{ grid-template-columns:1fr; gap:28px; }
    .process::before{ display:none; }
    .why-band{ grid-template-columns:1fr; text-align:center; }
    .why-sep{ display:none; }
    .why-list{ grid-template-columns:1fr; }
    .foot-grid{ flex-direction:column; }
  }
