*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif}

body{background:#0a0f1c;color:white}

/* NAV */
.nav{
position:fixed;width:100%;padding:20px 8%;
display:flex;justify-content:space-between;
background:rgba(0,0,0,0.6);
backdrop-filter:blur(10px);
z-index:1000;
}

.nav a{color:white;margin-left:20px;text-decoration:none}

/* HERO */
.hero{
height:100vh;
display:flex;align-items:center;justify-content:center;
text-align:center;padding:20px;
background:linear-gradient(135deg,#0a1f44,#e30613);
}

.hero h1{font-size:clamp(2rem,6vw,4rem)}
.hero p{margin-top:15px;max-width:600px;margin-inline:auto}

/* BUTTONS */
.buttons{margin-top:20px}
.btn{
padding:12px 25px;border-radius:30px;
text-decoration:none;font-weight:600;
display:inline-block;
}
.primary{background:#e30613;color:white}
.outline{border:2px solid white;color:white;margin-left:10px}

/* SECTIONS */
.section{padding:100px 8%;text-align:center}
.subtitle{margin-top:10px;color:#aaa}

/* GRID */
.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;margin-top:40px;
}

.card{
background:#111;padding:30px;border-radius:10px;
transition:0.3s;
}
.card:hover{transform:translateY(-10px)}

.icon{font-size:40px;margin-bottom:10px}

/* DARK */
.dark{background:#111}

/* STEPS */
.steps{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:30px;margin-top:40px;
}

.step span{
font-size:30px;
color:#e30613;
}

/* CTA */
.cta{
padding:100px;
text-align:center;
background:linear-gradient(45deg,#e30613,#0a1f44);
}

/* FOOTER */
footer{padding:20px;text-align:center;background:#111}

/* WHATSAPP */
.whatsapp{
position:fixed;
bottom:20px;
right:20px;
background:#25d366;
padding:15px;
border-radius:50%;
}

/* MOBILE */
@media(max-width:768px){
.hero{height:auto;padding-top:120px;padding-bottom:60px}
}
/* SPLIT SECTION */
.split{
display:grid;
grid-template-columns:1fr 1fr;
align-items:center;
gap:40px;
padding:100px 8%;
}

/* TEXTO */
.split .text h2{
font-size:2.5rem;
margin-bottom:15px;
}

.split .text p{
color:#aaa;
margin-bottom:20px;
}

.split ul{
margin-bottom:20px;
line-height:1.8;
}

/* IMAGEN */
.split .image img{
width:100%;
border-radius:15px;
box-shadow:0 20px 50px rgba(0,0,0,0.5);
transition:0.3s;
}

.split .image img:hover{
transform:scale(1.05);
}

/* RESPONSIVE */
@media(max-width:900px){
.split{
grid-template-columns:1fr;
text-align:center;
}
}


/* CONTENEDOR */

/* ===== WHY SECTION FIX TOTAL ===== */

.why{
  padding:100px 8%;
  text-align:center;
  background:#0a0f1c; /* mismo fondo limpio */
}

/* GRID */
.why-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
  margin-top:60px;
}

/* CARD */
.why-card{
  background:rgba(255,255,255,0.05); /* glass effect */
  backdrop-filter:blur(10px);
  padding:35px;
  border-radius:20px;
  transition:all 0.4s ease;
  border:1px solid rgba(255,255,255,0.1);
  text-align:center;
}

/* ICON */
.why-card .icon{
  font-size:40px;
  margin-bottom:15px;
}

/* TEXTOS */
.why-card h3{
  color:white;
  font-size:1.3rem;
}

.why-card p{
  color:#ccc; /* IMPORTANTE para visibilidad */
  margin-top:10px;
  line-height:1.5;
}

/* HOVER PRO */
.why-card:hover{
  transform:translateY(-10px) scale(1.03);
  background:linear-gradient(135deg,#e30613,#8b0000);
  box-shadow:0 20px 40px rgba(227,6,19,0.4);
}

/* RESPONSIVE */
@media(max-width:768px){
  .why-grid{
    grid-template-columns:1fr;
  }
}
/* ===== PROCESS PRO ===== */

.process{
  padding:120px 8%;
  text-align:center;
}

.process .subtitle{
  color:#aaa;
  margin-top:10px;
}

/* TIMELINE */
.timeline{
  position:relative;
  margin-top:80px;
}

/* LINEA CENTRAL */
.timeline::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:4px;
  height:100%;
  background:linear-gradient(#e30613,#0a1f44);
  transform:translateX(-50%);
}

/* STEP */
.step{
  display:flex;
  align-items:center;
  margin-bottom:60px;
  position:relative;
}

/* IZQUIERDA / DERECHA */
.step:nth-child(odd){
  justify-content:flex-start;
}

.step:nth-child(even){
  justify-content:flex-end;
}

/* CONTENIDO */
.content{
  background:#111;
  padding:25px;
  border-radius:10px;
  width:40%;
  transition:0.3s;
}

.content:hover{
  transform:scale(1.05);
  background:#e30613;
}

/* CIRCULO */
.circle{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:60px;
  height:60px;
  background:#e30613;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  z-index:2;
}

/* MOBILE */
@media(max-width:768px){

  .timeline::before{
    left:20px;
  }

  .step{
    justify-content:flex-start !important;
  }

  .content{
    width:100%;
    margin-left:60px;
  }

  .circle{
    left:20px;
  }
}
/* ===== LINEA ANIMADA ===== */

.timeline{
  position:relative;
  margin-top:80px;
}

/* LINEA BASE */
.timeline::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:4px;
  height:100%;
  background:rgba(255,255,255,0.1);
  transform:translateX(-50%);
}

/* LINEA ACTIVA (ANIMADA) */
.timeline::after{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:4px;
  height:0;
  background:linear-gradient(#e30613,#ff4d4d);
  transform:translateX(-50%);
  transition:height 0.3s ease;
}

/* CIRCULOS */
.circle{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:60px;
  height:60px;
  background:#222;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  z-index:2;
  transition:0.3s;
}

/* ACTIVO */
.step.active .circle{
  background:#e30613;
  box-shadow:0 0 20px rgba(227,6,19,0.6);
}

/* PULSO */
.step.active .circle::after{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  border-radius:50%;
  border:2px solid #e30613;
  animation:pulse 1.5s infinite;
}

@keyframes pulse{
  0%{transform:scale(1);opacity:1}
  100%{transform:scale(1.6);opacity:0}
}
/* usar variable dinámica */
.timeline::after{
  height:var(--progress, 0%);
}
/* ===== DASHBOARD ===== */

.dashboard{
  padding:120px 8%;
  text-align:center;
  background:#0a0f1c;
}

.dashboard-container{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-top:50px;
}

/* BOXES */
.tracking-box, .status-box{
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(15px);
  padding:30px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.1);
  transition:0.3s;
}

.tracking-box:hover, .status-box:hover{
  transform:translateY(-5px);
}

/* INPUT */
.tracking-box input{
  width:70%;
  padding:12px;
  border-radius:8px;
  border:none;
  margin-top:10px;
}

.tracking-box button{
  padding:12px 20px;
  margin-left:10px;
  background:#e30613;
  color:white;
  border:none;
  border-radius:8px;
}

/* RESULTADO */
.result{
  margin-top:20px;
  color:#ccc;
}

/* STATUS */
.status-steps{
  display:flex;
  justify-content:space-between;
  margin-top:30px;
}

.status{
  padding:10px;
  border-radius:10px;
  background:#222;
  width:100%;
  margin:5px;
  transition:0.3s;
}

/* ACTIVO */
.status.active{
  background:#e30613;
  box-shadow:0 0 20px rgba(227,6,19,0.6);
}

/* MOBILE */
@media(max-width:768px){
  .dashboard-container{
    grid-template-columns:1fr;
  }

  .tracking-box input{
    width:100%;
    margin-bottom:10px;
  }
}
/* ===== PROGRESS BAR ===== */

.progress-container{
  width:100%;
  height:10px;
  background:#222;
  border-radius:10px;
  margin-top:25px;
  overflow:hidden;
}

.progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#e30613,#ff4d4d);
  transition:width 1s ease;
}

/* TEXTO % */
.progress-text{
  margin-top:10px;
  font-size:14px;
  color:#ccc;
}
#map{
  width:100%;
  height:320px;
  margin-top:25px;
  border-radius:15px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

.kpis-pro{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
  padding:80px 8%;
  text-align:center;
}

.kpi-card{
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(10px);
  padding:30px;
  border-radius:15px;
  transition:0.3s;
  border:1px solid rgba(255,255,255,0.1);
}

.kpi-card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 40px rgba(227,6,19,0.3);
}

.kpi-card h2{
  font-size:2.5rem;
  color:#e30613;
}

.kpi-card p{
  margin-top:10px;
  color:#ccc;
}

.guia{
  padding:100px 8%;
  text-align:center;
}

.guia .subtitle{
  color:#aaa;
  margin-top:10px;
}

.guia-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
  margin-top:40px;
}

.guia-card{
  background:#111827;
  padding:25px;
  border-radius:12px;
  text-align:left;
  transition:0.3s;
}

.guia-card:hover{
  transform:translateY(-8px);
}

.guia-card h3{
  margin-bottom:10px;
}

.guia-card p{
  color:#ccc;
  font-size:14px;
}

.guia-card a{
  display:inline-block;
  margin-top:10px;
  color:#e30613;
  font-weight:bold;
}
.whatsapp-float{
  position:fixed;
  bottom:25px;
  right:25px;

  display:flex;
  align-items:center;
  gap:10px;

  background:linear-gradient(135deg,#25D366,#1ebe5d);
  color:#fff;

  padding:12px 18px;
  border-radius:50px;

  font-weight:600;
  font-size:14px;

  box-shadow:0 10px 25px rgba(0,0,0,0.3);
  text-decoration:none;

  transition:all 0.3s ease;
  z-index:9999;
}

/* ICONO */
.whatsapp-icon{
  font-size:18px;
}

/* TEXTO */
.whatsapp-text{
  white-space:nowrap;
}

/* HOVER PRO */
.whatsapp-float:hover{
  transform:translateY(-5px) scale(1.05);
  box-shadow:0 15px 35px rgba(0,0,0,0.4);
} 

/* EFECTO PULSO (llamativo pero elegante) */
.whatsapp-float::after{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  border-radius:50px;
  background:rgba(37,211,102,0.4);
  z-index:-1;
  animation:pulse 2s infinite;
}

@keyframes pulse{
  0%{transform:scale(1); opacity:0.6;}
  70%{transform:scale(1.4); opacity:0;}
  100%{opacity:0;}
}

.whatsapp-pro{
  position:fixed;
  bottom:25px;
  right:25px;

  display:flex;
  align-items:center;
  gap:12px;

  background:#111827;
  color:#fff;

  padding:12px 16px;
  border-radius:14px;

  box-shadow:0 10px 30px rgba(0,0,0,0.4);
  text-decoration:none;

  font-family:'Poppins',sans-serif;

  transition:all 0.3s ease;
  z-index:9999;
}

/* ICONO */
.wa-icon{
  width:40px;
  height:40px;
  background:#25D366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

/* TEXTO */
.wa-content{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.wa-title{
  font-size:14px;
  font-weight:600;
}

.wa-sub{
  font-size:12px;
  color:#9ca3af;
}

/* HOVER */
.whatsapp-pro:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 40px rgba(0,0,0,0.5);
}

/* EFECTO BURBUJA SUAVE */
.whatsapp-pro::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:14px;
  background:rgba(37,211,102,0.08);
  opacity:0;
  transition:0.3s;
}

.whatsapp-pro:hover::after{
  opacity:1;
}
/* ===== MOBILE FIX GLOBAL ===== */
@media (max-width: 768px){

  /* NAV */
  .nav{
    flex-direction:column;
    gap:10px;
    padding:15px;
  }

  .nav nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
  }

  /* HERO */
  .hero-content{
    padding:0 20px;
    text-align:center;
  }

  .hero h1{
    font-size:28px;
  }

  .hero p{
    font-size:14px;
  }

  .buttons{
    flex-direction:column;
    gap:10px;
  }

  /* DASHBOARD */
  .dashboard-container{
    flex-direction:column;
  }

  #map{
    height:250px;
  }

  /* SERVICES */
  .split{
    flex-direction:column;
  }

  .split .image img{
    width:100%;
  }

  /* WHY */
  .why-grid{
    grid-template-columns:1fr;
  }

  /* GUIA */
  .guia-grid{
    grid-template-columns:1fr;
  }

  /* PROCESS */
  .timeline{
    padding-left:0;
  }

  .step{
    flex-direction:column;
    align-items:flex-start;
  }

  /* KPIs */
  .kpis-pro{
    grid-template-columns:1fr 1fr;
  }

  /* CTA */
  .cta{
    padding:60px 20px;
    text-align:center;
  }

  /* WHATSAPP */
  .whatsapp-pro{
    right:15px;
    bottom:15px;
    transform:scale(0.9);
  }

}
/* ===== FIX MOBILE TIMELINE ===== */
@media (max-width:768px){

  .timeline{
    position:relative;
    padding-left:30px;
  }

  /* línea vertical */
  .timeline::before{
    content:"";
    position:absolute;
    left:10px;
    top:0;
    width:2px;
    height:100%;
    background:#e30613;
  }

  .step{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    margin-bottom:30px;
    position:relative;
  }

  /* círculo */
  .circle{
    position:absolute;
    left:-2px;
    top:0;
    transform:translateX(-50%);
    width:30px;
    height:30px;
    font-size:14px;
  }

  .content{
    margin-left:20px;
    width:100%;
  }

}
/* =====================================================
   🔥 MASTER FIX MOBILE + TIMELINE + UI FINAL
   ===================================================== */

@media (max-width:768px){

  /* ===== NAV ===== */
  .nav{
    flex-direction:column;
    align-items:center;
    padding:15px;
  }

  .nav nav{
    flex-wrap:wrap;
    justify-content:center;
  }

  /* ===== HERO ===== */
  .hero{
    height:auto;
    padding:120px 20px 60px;
  }

  .hero h1{
    font-size:28px;
  }

  .hero p{
    font-size:14px;
  }

  .buttons{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  /* ===== DASHBOARD ===== */
  .dashboard-container{
    grid-template-columns:1fr !important;
  }

  .tracking-box input{
    width:100%;
    margin-bottom:10px;
  }

  #map{
    height:250px;
  }

  /* ===== SERVICES ===== */
  .split{
    grid-template-columns:1fr !important;
    text-align:center;
  }

  /* ===== WHY ===== */
  .why-grid{
    grid-template-columns:1fr;
  }

  /* ===== GUIA ===== */
  .guia-grid{
    grid-template-columns:1fr;
  }

  /* ===== KPIs ===== */
  .kpis-pro{
    grid-template-columns:1fr 1fr;
  }

  /* ===== CTA ===== */
  .cta{
    padding:60px 20px;
  }

  /* =====================================================
     🔥 TIMELINE FIX DEFINITIVO
     ===================================================== */

  /* eliminar línea central */
  .timeline::after{
    display:none !important;
  }

  .timeline{
    padding-left:40px !important;
  }

  /* línea izquierda */
  .timeline::before{
    left:15px !important;
    width:2px !important;
    transform:none !important;
    background:#e30613 !important;
  }

  .step{
    flex-direction:column !important;
    align-items:flex-start !important;
    margin-bottom:40px;
  }

  .circle{
    left:15px !important;
    transform:translateX(-50%) !important;
    width:32px !important;
    height:32px !important;
  }

  .content{
    width:100% !important;
    margin-left:45px !important;
  }

  /* ===== WHATSAPP ===== */
  .whatsapp-pro{
    bottom:15px;
    right:15px;
    transform:scale(0.9);
  }

}

/* ===== FIX GLOBAL MOBILE (CRÍTICO) ===== */

/* 🔴 ELIMINA SCROLL HORIZONTAL */
html, body{
  overflow-x:hidden;
}

/* 🔴 TODO RESPETA EL ANCHO */
*{
  max-width:100%;
}

/* 🔥 CONTENEDORES NO SE DESBORDAN */
.section,
.split,
.dashboard,
.process,
.guia,
.kpis-pro{
  overflow:hidden;
}

/* 🔥 IMÁGENES SEGURAS */
img{
  max-width:100%;
  height:auto;
}

/* 🔥 FIX GENERAL MOBILE */
@media (max-width:768px){

  body{
    overflow-x:hidden;
  }

  /* evitar que algo empuje lateralmente */
  *{
    max-width:100%;
  }

  /* HERO */
  .hero{
    padding:120px 20px 60px;
  }

  /* NAV */
  .nav{
    flex-direction:column;
    align-items:center;
  }

  /* GRID GENERAL */
  .split,
  .dashboard-container{
    grid-template-columns:1fr !important;
  }

  /* 🔥 TIMELINE FIX COMPLETO */
  .timeline::after{
    display:none !important;
  }

  .timeline{
    padding-left:35px !important;
  }

  .timeline::before{
    left:15px !important;
    transform:none !important;
    width:2px !important;
  }

  .step{
    flex-direction:column !important;
    align-items:flex-start !important;
  }

  .circle{
    left:15px !important;
    transform:translateX(-50%) !important;
    width:30px;
    height:30px;
  }

  .content{
    width:100% !important;
    margin-left:40px !important;
  }

  /* KPI */
  .kpis-pro{
    grid-template-columns:1fr 1fr;
  }

  /* WHATSAPP */
  .whatsapp-pro{
    transform:scale(0.9);
    right:10px;
    bottom:10px;
  }

}
@media (max-width:768px){

  .nav{
    position:fixed;
    top:0;
    width:100%;
    padding:15px;
    background:rgba(10,15,28,0.95);
    backdrop-filter:blur(10px);
    z-index:1000;
  }

  /* 🔥 ESTO ES CLAVE */
  body{
    padding-top:90px;
  }

}
@media (max-width:768px){

  .status-steps{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
  }

  .status{
    flex:1 1 45%;
    font-size:12px;
    text-align:center;
  }

}
@media (max-width:768px){

  .status-steps{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
  }

  .status{
    flex:1 1 45%;
    font-size:12px;
    text-align:center;
  }

}