/* =========================================
   RESET
========================================= */

*,
*::before,
*::after{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

img{
  display:block;
  max-width:100%;
}

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

ul{
  list-style:none;
}

button,
input,
textarea{
  border:none;
  outline:none;
  font:inherit;
}

/* =========================================
   ROOTS
========================================= */

:root{

  --bg:#0d0f17;
  --bg-secondary:#0d0f17;

  --white:#ffffff;

  --text:#f5f6fa;
  --text-light:#9aa1b8;

  --primary:#ff7a45;
  --secondary:#c03fff;
  --accent:#8b3fff;

  --gradient:
  linear-gradient(
    135deg,
    #ff7a45,
    #c03fff,
    #8b3fff
  );

  --border:
  rgba(255, 255, 255, 0.12);

  --card:
  rgba(255,255,255,.04);

  --shadow:
  0 20px 60px rgba(0, 0, 0, 0.4);

  --container:1280px;

}

/* =========================================
   GLOBAL
========================================= */

.container{
  width:min(90%, var(--container));
  margin:auto;
}

section{
  padding:120px 0;
}

h1,h2,h3,h4{
  line-height:1.1;
}

h2{
  font-size:clamp(2rem,4vw,4rem);
  margin-bottom:20px;
}

p{
  color:var(--text);
  line-height:1.8;
}

/* =========================================
   TOP BAR
========================================= */
.top-bar{
  height:42px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: var(--bg-secondary);
}

.top-bar span{
  font-size:.95rem;
  font-weight:950;
}

.white{
  color:#ffffff;
}

.gradient{
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  display: inline-block;
}

/* =========================================
   HEADER
========================================= */

.header{
  position:sticky;
  top:0;
  z-index:999;

  backdrop-filter:blur(20px);

  background: rgba(13,15,23,0.8);

  border-bottom:1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.navbar{
  width:min(90%,1280px);
  margin:auto;

  height:90px;
  overflow:visible;

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
}

.logo img{
  width:auto;
  height:80px;
}

/* ===== MENU ===== */
.nav-menu{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
  justify-content:center;
}

.nav-link{
  position:relative;

  padding:10px 18px;

  font-size:.95rem;
  font-weight:500;
  letter-spacing:.3px;

  color:var(--text-light);

  transition:color .3s ease;
}

.nav-link::before{
  content:'';
  position:absolute;
  bottom:2px;
  left:50%;

  width:0;
  height:2px;

  background:var(--gradient);
  border-radius:2px;

  transform:translateX(-50%);
  transition:width .3s ease;
}

.nav-link:hover,
.nav-link.active{
  color:var(--text);
}

.nav-link:hover::before,
.nav-link.active::before{
  width:80%;
}

.nav-link.active{
  text-shadow:0 0 12px rgba(77,124,255,.35);
}

/* ===== CTA ===== */
.btn-navbar{
  padding:14px 28px;

  border-radius:999px;

  background:var(--gradient);
  color:#ffffff;

  font-weight:600;

  transition:.3s;
}

.btn-navbar:hover{
  transform:translateY(-3px);
}

/* ===== MENU TOGGLE (móvil) ===== */
.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;

  width:32px;
  height:32px;

  background:transparent;
  cursor:pointer;

  position:relative;
  z-index:1001;
}

.menu-toggle span{
  width:26px;
  height:2px;
  background:var(--gradient);
  border-radius:2px;

  transition:transform .3s ease, opacity .3s ease;
}

.menu-toggle.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
  opacity:0;
}

.menu-toggle.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

/* =========================================
   HERO
========================================= */
.hero{
    min-height:auto;
    padding:90px 0 60px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
    overflow:hidden;
    background:#0d0f17;
}

.particles-canvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:0;
}

.hero .container{
    position:relative;
    z-index:1;
}

.hero-glass-box{
    padding:60px;
    border-radius:48px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 40px 100px rgba(139,63,255,.25), inset 0 1px 1px rgba(255,255,255,.2), inset 0 -20px 40px rgba(255,255,255,.03);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

.dot-field-container{
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
}

.hero .container.hero-content{
    position:relative;
    z-index:1;
}

.hero::before{
    content:"";
    position:absolute;
    width:700px;
    height:700px;
    right:-250px;
    top:-100px;
    border-radius:50%;
    background:
    radial-gradient(
        circle,
        rgba(139,92,246,.35),
        transparent 70%
    );
    filter:blur(80px);
}

.hero-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}

.hero-tag{
    display:inline-block;
    padding:10px 18px;
    border-radius:999px;
    border:2px solid transparent;
    background:linear-gradient(var(--bg-secondary),var(--bg-secondary)) padding-box, var(--gradient) border-box;
    margin-bottom:25px;
    font-size:.9rem;
    color:var(--text);
}

/* ROTATING TEXT */
.rot-line{
    margin-bottom:20px;
    font-size:1.2rem;
    font-weight:700;
    color:var(--text);
}

.rot-pill{
    display:inline-block;
    padding:8px 16px;
    border-radius:999px;
    background:var(--gradient);
    color:#fff;
    box-shadow:
    0 10px 25px rgba(77,124,255,.25);
    transition:
    transform .35s,
    opacity .35s;
}

.rot-pill.switching{
    transform:translateY(6px);
    opacity:.4;
}

/* TITULO */
.hero h1{
    font-size:
    clamp(1.9rem,3.8vw,3.4rem);
    line-height:1.05;
    font-weight:800;
    margin-bottom:25px;
    color:var(--text);
}

.hero h1 span{
    display:block;
    background:linear-gradient(
        90deg,
        #ff7a45,
        #c03fff,
        #8b3fff,
        #ff7a45
    );
    background-size:300% 300%;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    animation:gradientMove 6s ease infinite;
}

@keyframes gradientMove{
    0%{ background-position:0% 50%; }
    50%{ background-position:100% 50%; }
    100%{ background-position:0% 50%; }
}

/* BOTONES */
.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:25px;
}

.btn-primary{
    padding:18px 34px;
    border-radius:999px;
    background:var(--gradient);
    color:#fff;
    font-weight:700;
    transition:.3s;
}

.btn-primary:hover{
    transform:translateY(-3px);
}

.btn-secondary{
    padding:18px 34px;
    border-radius:999px;
    border:2px solid transparent;
    background:linear-gradient(var(--bg),var(--bg)) padding-box, var(--gradient) border-box;
    color:var(--text);
    transition:.3s;
}

.btn-secondary:hover{
    transform:translateY(-3px);
}

/* TRUST */
.hero-proof{
    color:var(--text-light);
    font-size:.95rem;
    line-height:1.8;
}

/* =========================================
   ROBOT 3D
========================================= */
.hero-stats-row{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:24px;
    margin-top:60px;
    position:relative;
    z-index:1;
}

.hero-stat-card{
    flex:1;
    min-width:180px;
    max-width:260px;
    text-align:center;
    padding:30px 20px;
    border-radius:20px;
    border:1px solid var(--border);
    background:var(--card);
}

.hero-stat-number,
.hero-stat-number-static{
    display:block;
    font-size:clamp(2rem,3.5vw,2.6rem);
    font-weight:800;
    background:var(--gradient);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
    margin-bottom:8px;
}

.hero-stat-card p{
    color:var(--text-light);
    font-weight:600;
}

.hero-right{
    display:flex;
    justify-content:center;
    perspective:1200px;
}

.robot-wrapper{
    position:relative;
    width:100%;
    max-width:600px;

    transform-style:preserve-3d;

    animation:float 5s ease-in-out infinite;

    transition:transform .15s ease-out;
    will-change:transform;
}

.robot-img{
    width:100%;
    position:relative;
    z-index:2;

    filter:
    drop-shadow(0 25px 40px rgba(77,124,255,.35));
}

.robot-glow{
    position:absolute;
    top:15%;
    left:50%;
    width:70%;
    height:70%;

    background:
    radial-gradient(
        circle,
        rgba(139,92,246,.35),
        transparent 70%
    );
    filter:blur(60px);

    transform:translateX(-50%);
    z-index:0;
}

.robot-shadow{
    position:absolute;
    bottom:-20px;
    left:50%;
    width:60%;
    height:30px;

    background:
    radial-gradient(
        ellipse,
        rgba(0,0,0,.25),
        transparent 70%
    );

    transform:translateX(-50%);
    z-index:1;

    animation:shadowPulse 5s ease-in-out infinite;
}

@keyframes shadowPulse{
    0%,100%{
        transform:translateX(-50%) scale(1);
        opacity:.5;
    }
    50%{
        transform:translateX(-50%) scale(.85);
        opacity:.3;
    }
}

@keyframes float{
    0%{ transform:translateY(0); }
    50%{ transform:translateY(-15px); }
    100%{ transform:translateY(0); }
}


/* =========================================
   STACKED SECTIONS (efecto libro/carpetas)
========================================= */
.hero{
    position:relative;
    z-index:0;
}

.stack-section{
    position:relative;

    min-height:100vh;
    display:flex;
    align-items:center;

    background:var(--bg);
}

.problema-section{
    background:var(--bg-secondary);
    min-height:auto;
    padding:60px 0;
}

.stack-section .hero-tag{
    margin-bottom:20px;
}

.stack-section .container{
    text-align:center;
}

.stack-section .container > *{
    margin-left:auto;
    margin-right:auto;
}

.stack-section p{
    max-width:600px;
    color:var(--text-light);
    margin-bottom:30px;
}

/* ===== EL PROBLEMA ===== */
.problema-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:start;
}

.problema-left{
    position:sticky;
    top:150px;
}

.proceso-heading{
    font-size:clamp(3.4rem,6.2vw,5.6rem);
}

.proceso-subtitle{
    font-size:clamp(1.6rem,2.6vw,2.2rem);
    line-height:1.15;
    font-weight:800;
    color:var(--text);
    margin-top:30px;
}

.proceso-subtitle-gradient{
    background:var(--gradient);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}

/* ===== BETTER WAY / MEJOR FORMA ===== */
.better-way{
    position:relative;
    min-height:150vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;

    background:linear-gradient(180deg,#8b5cf6,#c03fff 45%,#ff7a45 85%,var(--bg));
    clip-path:polygon(
        0 10%, 6% 10%, 6% 4%, 12% 4%, 12% 0, 18% 0, 18% 6%, 24% 6%,
        24% 12%, 30% 12%, 30% 4%, 36% 4%, 36% 10%, 42% 10%, 42% 2%,
        48% 2%, 48% 8%, 54% 8%, 54% 0, 60% 0, 60% 6%, 66% 6%, 66% 12%,
        72% 12%, 72% 4%, 78% 4%, 78% 10%, 84% 10%, 84% 2%, 90% 2%,
        90% 8%, 96% 8%, 96% 0, 100% 0, 100% 100%, 0 100%
    );
}

.better-way-content{
    padding:100px 0 80px;
    position:relative;
    z-index:1;
    position:sticky;
    top:20vh;
}

.pixel-overlay{
    position:absolute;
    inset:0;
    z-index:0;
    display:grid;
    grid-template-columns:repeat(24,1fr);
    grid-template-rows:repeat(10,1fr);
}

.pixel-overlay span{
    background:var(--bg);
    transition:opacity .15s linear;
}

.better-way-title{
    color:#fff;
    font-size:clamp(2.2rem,4.2vw,3.6rem);
    font-weight:800;
    max-width:900px;
    margin:0 auto;
    position:relative;
    height:1.3em;
}

.bw-line{
    display:block;
    position:absolute;
    inset:0;
    opacity:0;
    transform:scale(.6);
    transition:opacity .3s linear, transform .1s linear;
}

.bw-line.bw-active{
    opacity:1;
}

.gradient-heading{
    font-size:clamp(2.8rem,4.6vw,4.2rem);
    margin-bottom:20px;
    background:linear-gradient(90deg,#f5f6fa,#ff7a45,#c03fff,#8b3fff);
    background-size:300% 300%;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    animation:gradientMove 6s ease infinite;
}

.problema-subtext{
    color:var(--text-light);
    max-width:480px;
}

.problema-right{
    display:flex;
    flex-direction:column;
    padding:20vh 0;
}

.problema-row{
    display:flex;
    align-items:center;
    gap:24px;
    padding:30px 0;
    border-top:1px dashed var(--border);
    opacity:.35;
    transition:opacity .4s ease;
}

.problema-row:last-child{
    border-bottom:1px dashed var(--border);
}

.row-num{
    font-size:.8rem;
    font-weight:700;
    color:var(--text-light);
    width:24px;
    flex-shrink:0;
}

.row-icon{
    width:40px;
    height:40px;
    border-radius:50%;
    border:1px solid var(--border);
    flex-shrink:0;
    transition:background .4s ease, border-color .4s ease;
    display:flex;
    align-items:center;
    justify-content:center;
}

.row-icon::after{
    content:'✓';
    color:var(--text-light);
    font-size:1.1rem;
    font-weight:800;
    transition:color .4s ease;
}

.problema-row p{
    font-size:1.2rem;
    font-weight:700;
    color:var(--text-light);
    transition:color .4s ease;
}

.problema-row.active{
    opacity:1;
}

.problema-row.active .row-icon{
    background:var(--gradient);
    border-color:transparent;
}

.problema-row.active .row-icon::after{
    color:#fff;
}

.problema-row.active p{
    background:var(--gradient);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}

/* ===== NÚMEROS QUE RESPALDAN ===== */
.stats-row{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:40px;
    margin-top:30px;
}

.stat-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    min-width:140px;
}

.stat-number{
    font-size:clamp(2.6rem,4.5vw,4rem);
    font-weight:800;
    background:var(--gradient);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}

.stat-item p{
    color:var(--text-light);
    font-weight:600;
}

/* ===== FAQ ===== */
.faq-list{
    display:flex;
    flex-direction:column;
    gap:16px;
    max-width:720px;
    margin:50px auto 0;
    text-align:left;
}

.faq-item{
    border:1px solid var(--border);
    border-radius:16px;
    background:var(--card);
    overflow:hidden;
}

.faq-question{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:22px 26px;
    background:none;
    border:none;
    color:var(--text);
    font-size:1.05rem;
    font-weight:700;
    text-align:left;
    cursor:pointer;
    font-family:inherit;
}

.faq-icon{
    flex-shrink:0;
    font-size:1.4rem;
    font-weight:400;
    color:var(--text-light);
    transition:transform .3s ease;
}

.faq-item.active .faq-icon{
    transform:rotate(45deg);
    color:var(--primary);
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
}

.faq-answer p{
    padding:0 26px 22px;
    color:var(--text-light);
    line-height:1.6;
}

/* ===== COMPARE BOX (recuadro 3D "El problema") ===== */
.compare-box{
    margin-top:70px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:40px;
    text-align:left;

    background:linear-gradient(160deg, var(--bg-secondary), var(--bg));
    border:1px solid var(--border);
    border-radius:32px;
    padding:50px;
    box-shadow:0 40px 90px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
    transform:perspective(1200px) rotateX(2deg);
}

.compare-divider{
    width:1px;
    background:var(--border);
}

.compare-col{
    display:flex;
    flex-direction:column;
    gap:22px;
}

.compare-subtitle{
    font-size:1.2rem;
    font-weight:800;
}

.compare-bad .compare-subtitle{
    color:#ff5c5c;
}

.compare-good .compare-subtitle{
    background:var(--gradient);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}

.compare-list{
    display:flex;
    flex-direction:column;
    gap:18px;
    list-style:none;
}

.compare-list li{
    display:flex;
    align-items:flex-start;
    gap:14px;
    color:var(--text-light);
    font-weight:600;
    line-height:1.5;
}

.compare-icon{
    flex-shrink:0;
    width:26px;
    height:26px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:.85rem;
    font-weight:800;
    margin-top:2px;
}

.compare-icon-x{
    background:rgba(255,80,80,.12);
    color:#ff5c5c;
    border:1px solid rgba(255,80,80,.3);
}

.compare-icon-check{
    background:var(--gradient);
    color:#fff;
}

@media (max-width:800px){
    .compare-box{
        grid-template-columns:1fr;
        padding:34px;
        transform:none;
    }

    .compare-divider{
        width:100%;
        height:1px;
    }
}

.services-heading-wrap{
    text-align:center;
    max-width:900px;
    margin:0 auto;
    padding:80px 20px 0;
    position:relative;
    z-index:2;
}

.services-heading{
    margin:0;
}

/* ===== SERVICIOS (cards apiladas) ===== */
.services-stack{
    position:relative;
    padding:0;
}

.services-stack{
    position:relative;
    padding:0;
    height:500vh;
}

.services-pin{
    position:sticky;
    top:0;
    height:100vh;
    overflow:hidden;
}

.service-card-wrap{
    position:absolute;
    inset:0;
    z-index:calc(var(--i) + 1);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:110px 60px 60px;
}

.service-card{
    width:100%;
    max-width:1100px;
    max-height:70vh;
    margin:0 auto;
    transform:translateX(calc(100vw * (1 - var(--progress, 0))));
}

.service-card{
    height:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:60px;

    background:var(--bg-secondary);
    border-radius:32px;
    padding:60px;
    border:2px solid transparent;
    background:linear-gradient(var(--bg-secondary),var(--bg-secondary)) padding-box, var(--gradient) border-box;

    box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.service-text{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.service-num{
    font-size:clamp(3rem,5vw,4.5rem);
    font-weight:800;
    color:var(--text);
    line-height:1;
}

.service-label{
    font-size:.85rem;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    color:var(--accent);
}

.service-text h3{
    font-size:clamp(1.8rem,2.6vw,2.6rem);
    color:var(--text);
    font-weight:800;
    max-width:480px;
    margin-bottom:10px;
}

.service-desc{
    color:var(--text-light);
    max-width:440px;
    margin-bottom:10px;
}

.service-bold-line{
    font-weight:800;
    color:var(--text);
    font-size:1.05rem;
    text-transform:uppercase;
    letter-spacing:.5px;
}

/* ===== PROCESO (mapa horizontal) ===== */
.process-map{
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-top:60px;
    gap:20px;
}

.process-line{
    position:absolute;
    top:30px;
    left:60px;
    right:60px;
    height:2px;
    background:var(--border);
    z-index:0;
}

.process-step{
    position:relative;
    z-index:1;
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:18px;
    padding:0 10px;
}

.process-node{
    width:60px;
    height:60px;
    border-radius:50%;
    background:var(--gradient);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:1.3rem;
    box-shadow:0 10px 25px rgba(77,124,255,.25);
}

.process-node-x{
    background:rgba(255,80,80,.12);
    color:#ff5c5c;
    box-shadow:none;
    border:1px solid rgba(255,80,80,.3);
}

.process-step p{
    font-weight:600;
    color:var(--text);
    max-width:220px;
}

@media (max-width:900px){
    .process-map{
        flex-direction:column;
        align-items:flex-start;
        gap:40px;
    }

    .process-line{
        top:0;
        bottom:0;
        left:30px;
        right:auto;
        width:2px;
        height:auto;
    }

    .process-step{
        flex-direction:row;
        text-align:left;
        max-width:none;
    }

    .process-step p{
        max-width:none;
    }
}

/* ===== FLUJO (¿Cómo trabajamos?) ===== */
.flow-map{
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:60px;
    gap:16px;

    background:var(--card);
    border:1px solid var(--border);
    border-radius:28px;
    padding:50px 40px;
    box-shadow:var(--shadow);
}

.flow-line{
    position:absolute;
    top:50%;
    left:70px;
    right:70px;
    height:2px;
    background:var(--border);
    z-index:0;
    transform:translateY(-30px);
    overflow:hidden;
}

.flow-dot{
    position:absolute;
    top:50%;
    left:70px;
    width:12px;
    height:12px;
    border-radius:50%;
    background:var(--gradient);
    box-shadow:0 0 12px rgba(255,122,69,.7);
    transform:translateY(-36px);
    z-index:1;
    animation:flowDotMove 3s ease-in-out infinite;
}

@keyframes flowDotMove{
    0%{ left:70px; opacity:0; }
    10%{ opacity:1; }
    90%{ opacity:1; }
    100%{ left:calc(100% - 82px); opacity:0; }
}

.flow-step{
    position:relative;
    z-index:1;
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:16px;
    padding:0 6px;
}

.flow-node{
    width:56px;
    height:56px;
    border-radius:16px;
    background:var(--bg-secondary);
    border:2px solid transparent;
    background:linear-gradient(var(--bg-secondary),var(--bg-secondary)) padding-box, var(--gradient) border-box;
    color:var(--text);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:1.2rem;
}

.flow-step p{
    font-weight:600;
    color:var(--text-light);
    font-size:.95rem;
    max-width:170px;
}

@media (max-width:900px){
    .flow-map{
        flex-direction:column;
        align-items:flex-start;
        gap:36px;
        padding:40px 30px;
    }

    .flow-line{
        top:0;
        bottom:0;
        left:27px;
        right:auto;
        width:2px;
        height:auto;
        transform:none;
    }

    .flow-dot{
        top:0;
        left:27px;
        transform:translateX(-5px);
        animation:flowDotMoveVertical 3s ease-in-out infinite;
    }

    .flow-step{
        flex-direction:row;
        text-align:left;
        max-width:none;
    }

    .flow-step p{
        max-width:none;
    }
}

@keyframes flowDotMoveVertical{
    0%{ top:0; opacity:0; }
    10%{ opacity:1; }
    90%{ opacity:1; }
    100%{ top:calc(100% - 12px); opacity:0; }
}

/* ===== CONTACTO ===== */
.contacto-left{
    text-align:center;
}

.contact-form{
    margin-left:auto;
    margin-right:auto;
}

.contacto-robot-img{
    width:100%;
    max-width:420px;
    filter:
    drop-shadow(0 25px 40px rgba(77,124,255,.35));
    animation:float 5s ease-in-out infinite;
}

@media (max-width:900px){
    .contacto-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .contacto-right{
        order:-1;
    }

    .contacto-robot-img{
        max-width:260px;
    }
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:16px;
    max-width:560px;
    margin-top:20px;
    text-align:left;

    padding:36px;
    border-radius:24px;
    border:1px solid var(--border);
    background:var(--card);
    box-shadow:var(--shadow);
    margin:0 auto;
}

.contact-form input{
    padding:16px 20px;
    border-radius:12px;
    border:1px solid var(--border);
    background:var(--bg-secondary);
    color:var(--text);
    font-size:1rem;
}

.form-title{
    font-size:1.6rem;
    font-weight:800;
    color:var(--text);
    text-align:center;
}

.form-subtitle{
    color:var(--text-light);
    margin-bottom:10px;
    text-align:center;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.form-field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-field label{
    font-size:.9rem;
    font-weight:600;
    color:var(--text);
}

.form-field input,
.form-field select,
.form-field textarea{
    padding:16px 20px;
    border-radius:12px;
    border:1px solid var(--border);
    background:var(--bg-secondary);
    color:var(--text);
    font-size:1rem;
    font-family:inherit;
}

.form-field textarea{
    resize:vertical;
}

.form-field select{
    appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239aa1b8' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 20px center;
    padding-right:44px;
}

.form-submit{
    margin-top:10px;
    text-align:center;
    cursor:pointer;
    border:none;
}

@media (max-width:600px){
    .form-row{
        grid-template-columns:1fr;
    }
}

.contact-form input::placeholder{
    color:var(--text-light);
}

.contact-form .btn-primary{
    margin-top:10px;
    text-align:center;
    cursor:pointer;
}

.service-media{
    height:100%;
    border-radius:24px;
    overflow:hidden;
}

.service-video{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:24px;
    background:transparent;
}

@media (max-width:900px){
    .services-pin{
        position:static;
        height:auto;
        overflow:visible;
        display:flex;
        flex-direction:column;
        gap:30px;
        padding:40px 20px;
    }

    .service-card-wrap{
        position:static;
        inset:auto;
        height:auto;
        min-height:auto;
        padding:0;
    }

    .service-card{
        grid-template-columns:1fr;
        padding:40px;
        gap:30px;
        max-height:none;
        transform:none !important;
    }

    .service-media{
        height:240px;
    }
}

/* =========================================
   RESPONSIVE (NAV)
========================================= */
@media (max-width:900px){

  .navbar{
    position:relative;
  }

  .nav-menu{
    position:absolute;
    top:100%;
    left:0;
    width:100%;

    flex-direction:column;
    gap:0;

    background:rgba(13,15,23,.97);
    backdrop-filter:blur(20px);

    max-height:0;
    overflow:hidden;
    opacity:0;

    transition:max-height .4s ease, opacity .3s ease;

    border-bottom:1px solid var(--border);
  }

  .nav-menu.open{
    max-height:400px;
    opacity:1;
  }

  .nav-link{
    width:100%;
    text-align:center;
    padding:16px 0;
  }

  .nav-link::before{
    display:none;
  }

  .nav-link.active,
  .nav-link:hover{
    background:rgba(77,124,255,.06);
  }

  .btn-navbar{
    display:none;
  }

  .menu-toggle{
    display:flex;
  }
}
/* =========================================
   RESPONSIVE HERO
========================================= */
@media (max-width:1000px){

    .hero{
        padding:60px 0 80px;
        min-height:auto;
    }

    .hero-content{
        grid-template-columns:1fr;
        gap:60px;
        text-align:center;
    }

    .hero-buttons{
        justify-content:center;
    }

    /* ya NO lleva order:-1 aquí */

    .robot-wrapper{
        max-width:300px;
        margin:auto;
    }

    .problema-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .problema-left{
        position:static;
    }

    .problema-right{
        padding:0;
    }
}

/* =========================================
   FOOTER
========================================= */
.site-footer{
    padding:60px 0;
    border-top:1px solid var(--border);
    background:#151926;
}

.footer-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:24px;
}

.footer-logo img{
    width:160px;
}

.footer-nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:28px;
    list-style:none;
}

.footer-nav a{
    color:var(--text-light);
    font-weight:600;
    transition:color .2s;
}

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

.btn-whatsapp{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:16px 30px;
    border-radius:999px;
    background:#25D366;
    color:#fff;
    font-weight:700;
    transition:.3s;
}

.btn-whatsapp:hover{
    transform:translateY(-3px);
}

.whatsapp-float{
    position:fixed;
    bottom:28px;
    right:28px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    z-index:999;
    transition:transform .2s;
}

.whatsapp-float:hover{
    transform:scale(1.08);
}

.footer-legal{
    color:var(--text-light);
    font-size:.85rem;
    max-width:600px;
}
