:root{
  --bg:#05070d;
  --bg2:#070a12;
  --card:#0b0f1a;
  --text:#eaf1ff;
  --muted:#99a9c6;
  --line:rgba(120,160,220,.18);

  /* Azul metalizado */
  --metal1:#7fb6ff;
  --metal2:#2f6bdc;
  --metal3:#173b7a;

  /* Acento (para hover / CTA) */
  --accent: linear-gradient(135deg, var(--metal1), var(--metal2), var(--metal3));
  --accentFlat:#2f6bdc;

  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --radius: 18px;
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}





body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;

  background:
  linear-gradient(rgba(5,7,13,0.70), rgba(5,7,13,0.75)),
  url("/images/fondo-circuitos.png");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  color:var(--text);
}


a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}

/* Header */
header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(5,8,18,.65);
  border-bottom:1px solid var(--line);
}


.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{
display:flex;
align-items:center;
gap:16px;
}

.brand-logo{
width:30px;
height:auto;
}
.brand-sub{color:var(--muted); font-weight:700; font-size:12px;}
.logo{
  width:38px;height:38px;border-radius:12px; 
  background: linear-gradient(135deg, rgba(47,209,255,.95), rgba(0,230,168,.9));
  box-shadow: 0 10px 30px rgba(47,209,255,.22);
  position:relative;
}
.logo:after{
  content:"UP";
  position:absolute; inset:0;
  display:grid; place-items:center;
  font-weight:900; color:#071018;
  font-size:14px;
  letter-spacing:.6px;
}

.menu{display:flex; gap:18px; align-items:center}
.menu a{
  color:var(--muted);
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:12px;
}
.menu a:hover{background:rgba(255,255,255,.06); color:var(--text)}
.cta{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  font-weight:800;
  font-size:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  transition:.2s ease;
  white-space:nowrap;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.07)}
.btn.primary{
  border:1px solid rgba(127,182,255,.28);
  background: var(--accent);
  color:#071018;
  box-shadow: 0 18px 50px rgba(47,107,220,.18);
}
.card.featured{
  border:1px solid rgba(127,182,255,.28);
  background:
    radial-gradient(500px 200px at 20% 0%, rgba(47,107,220,.22), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.menu a:hover{
  background:rgba(127,182,255,.10);
  color:var(--text);
}
.hero-brand img{
  width:300px;
  height:auto;
  object-fit:contain;
}
.hamb{display:none}

/* Hero */
.hero{padding:62px 0 28px; position:relative;}
.grid-hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:stretch;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}
.dot{
  width:10px;height:10px;border-radius:99px;
  background: var(--accent2);
  box-shadow: 0 0 0 6px rgba(0,230,168,.12);
}
h1{
  margin:16px 0 10px;
  font-size:48px;
  line-height:1.05;
  letter-spacing:-.8px;
}
.lead{
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  margin:0 0 18px;
  max-width:56ch;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 16px;}
.mini{
  color:var(--muted);
  display:flex; gap:12px; flex-wrap:wrap;
  font-size:13px;
  margin-top:8px;
}
.mini span{
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.02);
}

.panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 240px at 20% 20%, rgba(47,209,255,.14), transparent 55%),
    radial-gradient(500px 240px at 80% 15%, rgba(0,230,168,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.panel:before{
  content:"";
  position:absolute; inset:-2px;
  background: linear-gradient(90deg, transparent, rgba(47,209,255,.12), transparent);
  transform: translateX(-45%);
  animation: scan 6s linear infinite;
  pointer-events:none;
}
@keyframes scan{
  0%{transform: translateX(-55%)}
  100%{transform: translateX(55%)}
}
.stats{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
  position:relative;
}
.stat{
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(6,12,26,.45);
  padding:14px;
}
.stat b{display:block; font-size:22px}
.stat small{color:var(--muted); font-weight:700}
.panel-note{
  margin:14px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
  position:relative;
}

/* Sections */
section{padding:30px 0}
.section-title{display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:14px;}
.section-title h2{margin:0; font-size:26px; letter-spacing:-.4px;}
.section-title p{margin:0; color:var(--muted); max-width:62ch; font-size:14px; line-height:1.5;}

.cards{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding:18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.icon{
  width:42px;height:42px;border-radius:14px;
  background: rgba(47,209,255,.12);
  border:1px solid rgba(47,209,255,.22);
  display:grid; place-items:center;
  margin-bottom:12px;
}
.card h3{margin:6px 0 8px; font-size:18px}
.card p{margin:0; color:var(--muted); font-size:14px; line-height:1.55;}

.list{
  margin:12px 0 0; padding:0; list-style:none;
  color:var(--muted);
  font-size:13px;
  display:grid; gap:8px;
}
.list li{display:flex; gap:10px; align-items:flex-start}
.check{
  width:18px;height:18px;border-radius:7px;
  background: rgba(0,230,168,.14);
  border:1px solid rgba(0,230,168,.25);
  flex:0 0 18px;
  margin-top:2px;
}

/* Carrusel de logos (marquee infinito) */
.logo-marquee{
  position: relative;
  overflow: hidden;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  padding: 18px 0;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

.logo-marquee:before,
.logo-marquee:after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width:90px;
  z-index:2;
  pointer-events:none;
}
.logo-marquee:before{
  left:0;
  background: linear-gradient(90deg, rgba(5,7,13,1), rgba(5,7,13,0));
}
.logo-marquee:after{
  right:0;
  background: linear-gradient(270deg, rgba(5,7,13,1), rgba(5,7,13,0));
}

.logo-track{
  display:flex;
  align-items:center;
  gap:42px;
  width:max-content;
  padding: 0 26px;
  animation: marquee 33s linear infinite;
}

.logo-track img{
  height:46px;
  width:auto;
  min-width:110px;
  object-fit:contain;
  flex:0 0 auto;
  opacity:1;
  transition:.2s ease;
}

.logo-track img:hover{
  opacity:1;
  filter: grayscale(0%) brightness(1.05);
  transform: translateY(-1px);
}

@keyframes marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pausar animación al pasar el mouse */
.logo-marquee:hover .logo-track{
  animation-play-state: paused;
}

.clientes-note{
  margin-top:10px;
  color: var(--muted);
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce){
  .logo-track{ animation: none; }
}


/* Pricing */
.pricing{grid-template-columns: repeat(3, 1fr)}
.price{display:flex; align-items:baseline; gap:10px; margin:10px 0 6px;}
.price b{font-size:30px}
.price-sub{color:var(--muted);font-weight:800;}
.badge{
  display:inline-flex;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  color:var(--muted);
  font-weight:800;
}
.card.featured{
  border:1px solid rgba(47,209,255,.35);
  background:
    radial-gradient(500px 200px at 20% 0%, rgba(47,209,255,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  position:relative;
  overflow:hidden;
}
.card.featured:after{
  content:"Recomendado";
  position:absolute; top:14px; right:14px;
  font-size:12px;
  font-weight:900;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(47,209,255,.16);
  border:1px solid rgba(47,209,255,.28);
  color:var(--text);
}
.card-actions{margin-top:14px}

/* Testimonials */
.quote{color:var(--muted); line-height:1.6; font-size:14px; margin:0;}
.who{margin-top:10px; font-weight:900}
.who small{display:block; color:var(--muted); font-weight:700}

/* Contact */
.contact{display:grid; grid-template-columns: 1fr 1fr; gap:14px; align-items:stretch;}
form{display:grid; gap:10px;}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(3,6,14,.55);
  color:var(--text);
  outline:none;
  font-size:14px;
}
textarea{min-height:110px; resize:vertical}
label{font-size:13px; color:var(--muted); font-weight:800}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.hint{color:var(--muted); font-size:12px; margin-top:6px}
.ok{margin-top:10px;color:var(--accent2);font-weight:900;}
.contact-text{margin:0;color:var(--muted);line-height:1.6}
.mt0{margin-top:0}
.sp12{height:12px}
.quick-links{margin-top:16px; display:flex; gap:10px; flex-wrap:wrap}

/* Footer */
footer{padding:24px 0 80px; border-top:1px solid var(--line); color:var(--muted);}
.foot{display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap;}
.brand-foot{gap:10px}
.logo-sm{width:34px;height:34px;border-radius:12px}
.foot-desc{margin:10px 0 0; max-width:70ch;}
.foot-col{display:grid; gap:8px}
.foot-title{color:var(--text)}
.copyright{
  margin-top:16px;
  border-top:1px solid var(--line);
  padding-top:14px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}

/* WhatsApp floating */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  background: rgba(0,230,168,.16);
  border:1px solid rgba(0,230,168,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  font-weight:900;
  backdrop-filter: blur(10px);
}
.wa-ico{
  width:34px;height:34px;border-radius:999px;
  background: rgba(0,230,168,.22);
  border:1px solid rgba(0,230,168,.40);
  display:grid; place-items:center;
  font-size:16px;
}

/* Responsive */
@media (max-width: 980px){
  h1{font-size:40px}
  .grid-hero{grid-template-columns: 1fr;}
  .cards{grid-template-columns: 1fr;}
  .pricing{grid-template-columns: 1fr;}
  .contact{grid-template-columns: 1fr;}
  .menu{display:none}
  .hamb{display:inline-flex}
}


/* ===== Animaciones de entrada (reveal) ===== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition:
    opacity .7s ease,
    transform .7s ease,
    filter .7s ease;
  will-change: opacity, transform, filter;
}

.reveal.show{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Variantes de dirección */
.reveal.from-left{ transform: translateX(-22px); }
.reveal.from-right{ transform: translateX(22px); }
.reveal.from-bottom{ transform: translateY(22px); }

.reveal.from-left.show,
.reveal.from-right.show,
.reveal.from-bottom.show{
  transform: translate(0,0);
}

/* Stagger (efecto cascada en cards) */
.reveal-stagger > *{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition:
    opacity .7s ease,
    transform .7s ease,
    filter .7s ease;
}

.reveal-stagger.show > *{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-stagger.show > *:nth-child(1){ transition-delay: .05s; }
.reveal-stagger.show > *:nth-child(2){ transition-delay: .12s; }
.reveal-stagger.show > *:nth-child(3){ transition-delay: .19s; }
.reveal-stagger.show > *:nth-child(4){ transition-delay: .26s; }
.reveal-stagger.show > *:nth-child(5){ transition-delay: .33s; }
.reveal-stagger.show > *:nth-child(6){ transition-delay: .40s; }

/* Accesibilidad: si el usuario no quiere animaciones */
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-stagger > *{
    transition:none !important;
    transform:none !important;
    filter:none !important;
    opacity:1 !important;
  }
}

.brand img{
width:50px !important;
height:auto !important;
}

/* fondo titulo span */
.badge{
display:inline-block;
padding:6px 10px;
font-size:12px;
font-weight:600;

background:rgba(47,107,220,0.15);
color:#7fb6ff;

border:1px solid rgba(47,107,220,0.30);
border-radius:8px;
}

.card strong{
display:block;
margin-top:12px;
margin-bottom:6px;
color:#7fb6ff;
font-size:14px;
}

/* Casos en carrusel simple (sin JS) */
.cases-scroll{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.cases-scroll .card{
  scroll-snap-align: start;
  min-width: 320px;
  max-width: 520px;
}

@media (min-width: 981px){
  .cases-scroll .card{
    min-width: 480px;
    max-width: 520px;
  }
}

/* scrollbar discreto */
.cases-scroll::-webkit-scrollbar{ height: 8px; }
.cases-scroll::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.cases-scroll{ scrollbar-color: rgba(255,255,255,.12) transparent; }

.cases-hint{
  margin-top:10px;
  color: var(--muted);
  font-size: 12px;
}

.cases-wrapper{
position:relative;
}

.cases-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
width:48px;
height:48px;

border-radius:12px;
border:1px solid rgba(255,255,255,0.15);

background:rgba(0,0,0,0.6);
color:white;

font-size:26px;
cursor:pointer;
z-index:10;

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

transition:.2s;
}

.cases-btn:hover{
background:rgba(0,0,0,0.8);
transform:translateY(-50%) scale(1.05);
}

.cases-btn.prev{
left:-40px;
}

.cases-btn.next{
right:-40px;
}
#casos .card{
transition:.25s;
}

#casos .card:hover{
transform:translateY(-6px);
box-shadow:0 20px 50px rgba(0,0,0,0.35);
}
.g-recaptcha{
  margin-top: 10px;
  margin-bottom: 10px;
}