:root{
  --bg1:#071427;
  --bg2:#0b2b4a;
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.12);
  --text:#eaf2ff;
  --muted:#b8c7e6;
  --brand:#22c55e;
  --brand2:#2dd4bf;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(45,212,191,.22), transparent 60%),
    radial-gradient(800px 420px at 90% 0%, rgba(34,197,94,.18), transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  min-height:100vh;
}

a{color:inherit; text-decoration:none}
.container{width:min(1100px, 92%); margin:auto}

.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7, 20, 39, .75);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.3px;
}
.brand img{height: 100px; width:auto; border-radius:20px}
.menu{display:flex; gap:18px; align-items:center}
.menu a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:600;
  border:1px solid transparent;
}
.menu a:hover{color:var(--text); border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.04)}
.menu a.active{color:var(--text); border-color:rgba(45,212,191,.35); background:rgba(45,212,191,.10)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:800;
  box-shadow: none;
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border:0;
  color:#031018;
}
.btn.primary:hover{filter:brightness(1.05)}
.btn.small{padding:10px 12px; border-radius:12px; font-weight:800}

.hero{
  padding:64px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:center;
}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(45,212,191,.10);
  border:1px solid rgba(45,212,191,.22);
  color:var(--muted);
  font-weight:700;
  width:fit-content;
}
h1{
  margin:14px 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height:1.05;
}
.lead{
  color:var(--muted);
  font-size: 16.5px;
  line-height:1.55;
  max-width: 60ch;
}
.cta{
  margin-top:18px;
  display:flex; gap:12px; flex-wrap:wrap;
}
.hero-card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  padding:18px;
}
.hero-card img{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  color:var(--muted);
  background:rgba(255,255,255,.04);
  font-weight:700;
  font-size:13px;
}

.section{padding:44px 0}
.section h2{margin:0 0 10px; font-size: clamp(22px, 2.4vw, 34px)}
.section p{margin:0; color:var(--muted); line-height:1.6}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:18px;
}
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
}
.card h3{margin:6px 0 6px; font-size:18px}
.card p{margin:0; color:var(--muted); font-size:14.5px; line-height:1.55}
.icon{
  width:44px;height:44px;
  border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(45,212,191,.12);
  border:1px solid rgba(45,212,191,.22);
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:18px;
  align-items:stretch;
}
.list{
  margin:10px 0 0;
  padding:0;
  list-style:none;
}
.list li{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 0;
  border-bottom:1px dashed rgba(255,255,255,.10);
  color:var(--muted);
}
.dot{
  margin-top:4px;
  width:10px;height:10px;border-radius:999px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  flex:0 0 auto;
}

.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  means: 0;
  gap:10px;
  margin-top:18px;
}
.gallery img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}

.logos{
  display:flex; gap:14px; flex-wrap:wrap;
  margin-top:18px;
}
.logo-card{
  display:flex; align-items:center; gap:12px;
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
}
.logo-card img{height:120px; width:auto; border-radius:10px; background:#fff; padding:6px}
.logo-card span{color:var(--muted); font-weight:700}

.cta-band{
  margin-top:22px;
  border-radius: 22px;
  padding:18px;
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(45,212,191,.12));
  border:1px solid rgba(255,255,255,.14);
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}

.footer{
  margin-top:30px;
  border-top:1px solid var(--line);
  background: rgba(7, 20, 39, .65);
}
.footer-inner{
  padding:28px 0;
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:14px;
}
.footer h4{margin:0 0 10px; font-size:14px; letter-spacing:.2px}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
.small{color:var(--muted); font-size:13px; line-height:1.6}
.copy{
  border-top:1px solid rgba(255,255,255,.08);
  padding:14px 0;
  color:rgba(255,255,255,.55);
  font-size:12.5px;
}

/* Contact form */
.form{
  margin-top:18px;
  display:grid;
  gap:12px;
}
.field{
  display:grid;
  gap:8px;
}
label{color:var(--muted); font-weight:700; font-size:13.5px}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}
textarea{min-height:130px; resize:vertical}

/* WhatsApp floating */
.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:80;
  display:flex;
  gap:10px;
  align-items:center;
}
.whatsapp-float a{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius:999px;
  background: #25D366;
  color:#052012;
  font-weight:900;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.whatsapp-float .hint{
  display:none;
  color:rgba(255,255,255,.75);
  font-weight:700;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
}

.clientes-aliados{
  max-width:900px;      /* controla el ancho del bloque */
  margin:0 auto;        /* 🔥 centra todo el bloque */
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .gallery{grid-template-columns: repeat(2, 1fr)}
  .footer-inner{grid-template-columns:1fr 1fr}
}
@media (max-width: 520px){
  .whatsapp-float .hint{display:none}
  .gallery img{height:120px}
}


/* Video responsive (YouTube) */
.video-wrap{
  position:relative;
  width:100%;
  padding-top:56.25%; /* 16:9 */
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.video-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* Card destacada */
.card.feature{
  border:1px solid rgba(45,212,191,.28);
  background: linear-gradient(135deg, rgba(45,212,191,.10), rgba(34,197,94,.08));
}

/* ===== NAV RESPONSIVE ===== */
@media (max-width: 768px){

  /* reduce el logo en móvil (el tuyo está en 100px y se come el header) */
  .brand img{height:48px; border-radius:14px;}

  .nav-inner{
    gap:12px;
  }

  /* CLAVE: permitir que el flex-item se encoja y haga overflow */
  .menu{
    display:flex;
    gap:8px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    min-width:0;            /* 🔥 CLAVE */
    max-width:100%;
  }

  .menu::-webkit-scrollbar{display:none;}

  /* CLAVE: evitar que los links se “encojan” para caber */
  .menu a{
    flex:0 0 auto;          /* 🔥 CLAVE */
    white-space:nowrap;
    padding:8px 14px;
    font-size:14px;
  }
}
