/* =========================
   RESET & BASE
========================= */
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,sans-serif;
  background:linear-gradient(180deg,#e7f0ff 0,#f5f7fb 40%,#ffffff 100%);
  color:#111827;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

.page{
  max-width:1200px;
  margin:0 auto;
  padding:20px 16px 60px;
}

/* =========================
   LOADER
========================= */
#loader{
  position:fixed;inset:0;background:#0f172a;
  display:flex;align-items:center;justify-content:center;
  z-index:999;transition:opacity .4s ease,visibility .4s ease;
}
#loader.hide{opacity:0;visibility:hidden}
.loader-inner{text-align:center;color:#e5e7eb}
.loader-logo{
  width:52px;height:52px;border-radius:16px;
  background:linear-gradient(135deg,#2563eb,#38bdf8);
  display:flex;align-items:center;justify-content:center;
  font-size:28px;font-weight:800;margin:0 auto 10px;
}
.loader-text{font-family:'Montserrat',sans-serif;font-weight:600;margin-bottom:10px}
.loader-bar{
  width:160px;height:4px;border-radius:999px;background:#1f2937;
  overflow:hidden;margin:0 auto;
}
.loader-bar-fill{
  width:40%;height:100%;border-radius:999px;
  background:linear-gradient(90deg,#22c55e,#38bdf8);
  animation:loaderMove 1.2s infinite ease-in-out;
}
@keyframes loaderMove{
  0%{transform:translateX(-100%)}
  50%{transform:translateX(60%)}
  100%{transform:translateX(120%)}
}

/* =========================
   HEADER
========================= */
.header{
  position:sticky;top:0;z-index:20;
  background:#ffffffcc;backdrop-filter:blur(10px);
  border-radius:14px;padding:10px 20px;
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:24px;
  box-shadow:0 8px 24px rgba(15,23,42,0.08);
}
.logo{display:flex;align-items:center;gap:10px}
.logo-img{height:34px;width:auto}

.nav{display:flex;gap:18px;font-size:14px;color:#4b5563}
.nav a:hover{color:#111827}
.nav-cta{
  padding:8px 18px;background:linear-gradient(135deg,#2563eb,#4f46e5);
  color:#fff;border-radius:999px;font-size:14px;font-weight:600;
  box-shadow:0 10px 30px rgba(37,99,235,0.4);
}

.header-actions{display:flex;align-items:center;gap:10px}

.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.hamburger span{
  width:22px;height:2.4px;background:#1e293b;border-radius:5px;transition:.3s;
}

.dark-toggle,.lang-toggle{border:none;background:none;cursor:pointer}
.lang-toggle{
  font-size:13px;padding:4px 10px;border-radius:999px;border:1px solid #e5e7eb;
}

/* Mobile nav */
.mobile-nav{
  display:none;flex-direction:column;
  background:#ffffffee;backdrop-filter:blur(10px);
  position:absolute;top:70px;right:16px;padding:18px;
  border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,0.15);
  width:220px;z-index:19;
}
.mobile-nav a{
  padding:9px 0;font-size:15px;color:#1e293b;border-bottom:1px solid #e5e7eb;
}
.mobile-nav a:last-child{border-bottom:none}
.mobile-nav.show{display:flex}

/* =========================
   HERO
========================= */

.hero{
  margin-top:28px;
  background:
    radial-gradient(circle at top left,#bfdbfe 0,transparent 55%),
    radial-gradient(circle at bottom right,#c4b5fd 0,transparent 55%),
    linear-gradient(135deg,#2563eb,#1d4ed8);
  border-radius:30px;
  padding:40px 34px;
  color:#fff;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:32px;
  align-items:center;
  box-shadow:0 24px 60px rgba(15,23,42,.35);
}

.hero-left{
  max-width:420px;
}

.hero-title{
  font-family:'Montserrat',sans-serif;
  font-size:36px;
  line-height:1.1;
  margin-bottom:16px;
}

.hero-sub{
  font-size:15px;
  max-width:360px;
  color:#e5e7eb;
  margin-bottom:22px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.btn-primary{
  padding:11px 22px;
  border-radius:999px;
  background:#f9fafb;
  color:#1f2937;
  font-weight:600;
  font-size:14px;
  box-shadow:0 12px 35px rgba(15,23,42,0.45);
}

.btn-secondary{
  padding:11px 22px;
  border-radius:999px;
  border:1px solid #bfdbfe;
  color:#e5e7eb;
  font-size:14px;
  background:#ffffff1a;
}

.hero-note{
  margin-top:14px;
  font-size:12px;
  color:#e5e7ebcc;
}

.hero-visual{
  justify-self:end;
}

.hero-card{
  background:#0f172a;
  border-radius:22px;
  padding:18px;
  box-shadow:0 18px 45px rgba(15,23,42,0.8);
  width:280px;
}

/* SLIDER */
.hero-slider{
  position:relative;
  min-height:90px;
  overflow:hidden;
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .5s ease, transform .5s ease;
}

.hero-slide.active{
  position:relative;
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.hero-card-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
  font-size:11px;
  color:#9ca3af;
}

.hero-stat-row{
  display:flex;
  justify-content:space-between;
  margin-bottom:8px;
  font-size:12px;
  color:#e5e7eb;
}

.hero-chart{
  margin-top:12px;
  height:46px;
  border-radius:10px;
  background:
    radial-gradient(circle at 0% 50%,#22c55e 0,transparent 50%),
    radial-gradient(circle at 100% 50%,#38bdf8 0,transparent 55%),
    linear-gradient(90deg,#22c55e 0,#38bdf8 45%,#0ea5e9 100%);
}

/* Dispositivos */
.hero-devices{
  margin-top:14px;
  display:flex;
  gap:10px;
  font-size:11px;
  color:#9ca3af;
}

.device{
  flex:1;
  border-radius:12px;
  border:1px solid #1f2937;
  padding:8px;
  background:linear-gradient(145deg,#111827,#020617);
}

.device-title{
  font-size:11px;
  color:#e5e7eb;
  font-weight:500;
  margin-bottom:4px;
}

.device-pill{
  display:inline-block;
  padding:2px 6px;
  font-size:10px;
  border-radius:999px;
  background:#1d4ed8;
  color:#fff;
}

/* =========================
   SECTIONS
========================= */
.section{margin-top:40px}
.section-header{
  display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:18px;gap:12px;
}
.section-title{
  font-family:'Montserrat',sans-serif;font-size:22px;
}
.section-sub{font-size:13px;color:#6b7280;max-width:340px}

/* =========================
   GRID
========================= */
.grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:20px;
}
/* =========================
   CARDS
========================= */
.card{
  background:#fff;border-radius:18px;padding:16px;
  box-shadow:0 10px 24px rgba(15,23,42,0.04);
  border:1px solid #e5e7eb;
  transition:transform .25s ease, box-shadow .25s ease;cursor:pointer;
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(15,23,42,0.12);
}

.card-icon{
  width:34px;height:34px;border-radius:12px;
  background:#eff6ff;display:flex;align-items:center;justify-content:center;
  font-size:18px;margin-bottom:10px;color:#2563eb;
}
.card-title{font-weight:600;font-size:15px;margin-bottom:6px}
.card-text{font-size:13px;color:#6b7280;line-height:1.4}

.case-thumb{
  display:block;width:100%;height:175px;
  border-radius:14px;object-fit:cover;margin-bottom:10px;
  transition:transform .35s ease;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}
.card:hover .case-thumb{transform:scale(1.04)}

.case-name{font-weight:600;font-size:14px;margin-bottom:4px}
.case-desc{font-size:12px;color:#6b7280;margin-bottom:6px}

/* =========================
   CLIENTES — CARRUSEL PERFECTO
========================= */

.clientes-slider{
  width:100%;
  overflow:hidden;
  padding:20px 0;
}

.clientes-track{
  display:flex;
  gap:60px;
  align-items:center;
  animation:scrollClients 25s linear infinite;
  will-change:transform;
}

.clientes-track img{
  height:80px;
  width:auto;
  object-fit:contain;
  opacity:.9;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  transition:transform .3s ease, opacity .3s ease;
}

.clientes-track img:hover{
  transform:scale(1.12);
  opacity:1;
}

@keyframes scrollClients{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

/* =========================
   CTA (empieza PARTE 3)
========================= */
/* =========================
   CTA
========================= */

.cta{
  margin-top:46px;
  background:#0f172a;
  border-radius:24px;
  padding:26px 22px;
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:22px;
  color:#e5e7eb;
  align-items:center;
}

.cta-title{
  font-family:'Montserrat',sans-serif;
  font-size:22px;
  margin-bottom:10px;
}
.cta-sub{
  font-size:13px;
  color:#9ca3af;
  max-width:360px;
}

.cta-form{
  display:grid;
  gap:10px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:11px;
}
.field label{
  color:#d1d5db;
}
.field input,
.field textarea{
  padding:7px 9px;
  border-radius:10px;
  border:1px solid #1f2937;
  background:#020617;
  color:#e5e7eb;
  font-size:13px;
}

.send-options{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  font-size:12px;
}
.cta-button{
  margin-top:4px;
  padding:12px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  border:none;
  color:#022c22;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  width:100%;
  display:block;
}

/* =========================
   FOOTER
========================= */
.footer{
  margin-top:26px;
  font-size:12px;
  color:#6b7280;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.footer a{
  color:#6b7280;
}

/* =========================
   ANIMACIONES
========================= */
.fade-up{
  opacity:0;
  transform:translateY(25px);
  transition:.7s ease;
}
.fade-up.show{
  opacity:1;
  transform:translateY(0);
}

/* =========================
   DARK MODE
========================= */
body.dark{
  background:#020617;
  color:#e5e7eb;
}
body.dark .header{
  background:#020617cc;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
}
body.dark .nav a{
  color:#e5e7eb;
}
body.dark .card{
  background:#020617;
  border-color:#1f2937;
}
body.dark .section-sub{
  color:#9ca3af;
}
body.dark .cta{
  background:#020617;
}
body.dark .clientes-track img{
  opacity:.8;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:900px){
  .header{
    gap:10px;
    padding:10px 14px;
  }
  .nav{
    display:none;
  }
  .hamburger{
    display:flex;
  }
  .hero{
    grid-template-columns:1fr;
    padding:26px 20px;
  }
  .grid-3{
    grid-template-columns:1fr;
  }
  .cta{
    grid-template-columns:1fr;
  }
}
/* =========================
   SECCIÓN ¿POR QUÉ ALMOVA?
========================= */

.why{
  display:flex;
  gap:40px;
  align-items:stretch;
}

.why-list{
  flex:1;
  background:#fff;
  padding:24px;
  border-radius:20px;
  box-shadow:0 12px 28px rgba(0,0,0,0.06);
}

.why-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-bottom:12px;
  font-size:15px;
  color:#1f2937;
}

.why-item span{
  color:#34d399;
  font-size:20px;
  line-height:1;
}

.why-photo{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
}

.why-photo-inner{
  background:linear-gradient(135deg,#f9fafb,#e0f2fe,#dbeafe);
  padding:24px;
  border-radius:20px;
  box-shadow:0 12px 30px rgba(0,0,0,0.10);
  max-width:380px;
}

.why-photo-label{
  font-size:17px;
  font-weight:600;
  margin-bottom:6px;
  color:#111827;
}

.why-photo-meta{
  font-size:13px;
  color:#4b5563;
  margin-bottom:12px;
}

.why-pill{
  background:#1d4ed8;
  color:#fff;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  display:inline-block;
}
