/* ===================== VARIABLES ===================== */
:root{
  --bg: #0a0e13;
  --bg-alt: #0f151c;
  --surface: #141b24;
  --surface-2: #1a222c;
  --border: #232d38;

  --text: #e8eef4;
  --text-muted: #97a4b2;
  --text-faint: #6b7684;

  --teal: #2dd4bf;
  --green: #34d399;
  --blue: #38bdf8;
  --grad: linear-gradient(135deg, var(--teal), var(--blue));
  --grad-soft: linear-gradient(135deg, rgba(45,212,191,.15), rgba(56,189,248,.15));

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --header-h: 76px;

  --ff-head: 'Poppins', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

/* ===================== RESET ===================== */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body{
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
h1,h2,h3,h4{ font-family: var(--ff-head); line-height:1.2; font-weight:700; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

.grad-text{
  background: var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:13px 26px;
  border-radius: 999px;
  font-weight:600;
  font-size:.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn--primary{
  background: var(--grad);
  color:#04211d;
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,212,191,.3); }
.btn--ghost{
  border:1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn--ghost:hover{ border-color: var(--teal); color: var(--teal); }
.btn--sm{ padding:9px 18px; font-size:.85rem; }
.btn--lg{ padding:16px 34px; font-size:1.05rem; }

/* ===================== HEADER ===================== */
.header{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--header-h);
  z-index: 100;
  display:flex;
  align-items:center;
  background: rgba(10,14,19,.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.header.scrolled{
  background: rgba(10,14,19,.85);
  border-bottom-color: var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand__icon{ object-fit: contain; }
.brand__word{ height: 20px; width: auto; object-fit: contain; }
.brand--footer .brand__word{ height: 17px; }

.nav{ display:flex; gap:34px; }
.nav__link{
  font-size:.95rem;
  font-weight:500;
  color: var(--text-muted);
  position:relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav__link::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:0; height:2px;
  background: var(--grad);
  transition: width .25s ease;
}
.nav__link:hover, .nav__link.active{ color: var(--text); }
.nav__link:hover::after, .nav__link.active::after{ width:100%; }

.header__actions{ display:flex; align-items:center; gap:16px; }

.hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:32px; height:32px;
}
.hamburger span{
  display:block;
  height:2px;
  background: var(--text);
  border-radius:2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero{
  position:relative;
  padding: calc(var(--header-h) + 90px) 0 100px;
  overflow:hidden;
}
.hero__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(45,212,191,.12), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(56,189,248,.10), transparent 60%);
  z-index:-1;
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items:center;
}
.eyebrow{
  display:inline-block;
  font-size:.85rem;
  font-weight:600;
  color: var(--teal);
  letter-spacing:.03em;
  padding: 6px 14px;
  border:1px solid rgba(45,212,191,.3);
  border-radius:999px;
  background: rgba(45,212,191,.08);
  margin-bottom:22px;
}
.hero h1{
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom:20px;
  letter-spacing:-.01em;
}
.hero__desc{
  color: var(--text-muted);
  font-size:1.05rem;
  max-width:520px;
  margin-bottom:32px;
}
.hero__cta{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:48px; }

.hero__badges{ display:flex; gap:28px; flex-wrap:wrap; }
.badge{ display:flex; flex-direction:column; gap:2px; }
.badge strong{ font-family:var(--ff-head); font-size:1.1rem; color:var(--text); }
.badge span{ font-size:.82rem; color:var(--text-faint); }

.hero__visual{ display:flex; justify-content:center; }
.hero__logo{
  width: min(360px, 90%);
  filter: drop-shadow(0 20px 40px rgba(45,212,191,.15));
  animation: float 5s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}

/* ===================== SECTIONS ===================== */
.section{ padding: 110px 0; }
.section--alt{ background: var(--bg-alt); }

.section__eyebrow{
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--teal);
  margin-bottom:12px;
}
.section__title{
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom:14px;
}
.section__sub{
  color: var(--text-muted);
  max-width:600px;
  margin-bottom:56px;
  font-size:1.02rem;
}

.grid{ display:grid; gap:28px; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }

/* ===================== CARDS (servicios) ===================== */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover{
  transform: translateY(-6px);
  border-color: rgba(45,212,191,.4);
  box-shadow: var(--shadow);
}
.card__icon{
  width:56px; height:56px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: var(--grad-soft);
  color: var(--teal);
  margin-bottom:22px;
}
.card h3{ font-size:1.2rem; margin-bottom:10px; }
.card > p{ color: var(--text-muted); margin-bottom:18px; font-size:.95rem; }
.card__list{ display:flex; flex-direction:column; gap:9px; }
.card__list li{
  font-size:.88rem;
  color: var(--text-muted);
  padding-left:20px;
  position:relative;
}
.card__list li::before{
  content:'';
  position:absolute; left:0; top:7px;
  width:8px; height:8px;
  border-radius:2px;
  background: var(--grad);
}

/* ===================== PROCESO ===================== */
.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step{
  padding: 28px 22px;
  border-left: 2px solid var(--border);
  transition: border-color .25s ease;
}
.step:hover{ border-color: var(--teal); }
.step__num{
  font-family: var(--ff-head);
  font-size:1.6rem;
  font-weight:800;
  background: var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  display:block;
  margin-bottom:10px;
}
.step h4{ font-size:1.05rem; margin-bottom:8px; }
.step p{ color: var(--text-muted); font-size:.9rem; }

/* ===================== PROYECTOS ===================== */
.project{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.project:hover{ transform: translateY(-6px); border-color: rgba(56,189,248,.4); }
.project__top{ color: var(--blue); margin-bottom:18px; }
.project__tag{
  display:inline-block;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color: var(--green);
  background: rgba(52,211,153,.1);
  border:1px solid rgba(52,211,153,.25);
  padding:4px 10px;
  border-radius:999px;
  margin-bottom:14px;
}
.project h3{ font-size:1.1rem; margin-bottom:10px; }
.project p{ color: var(--text-muted); font-size:.92rem; }

/* ===================== ALIADOS ===================== */
.partners{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
  gap: 56px;
}
.partner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.partner__logo-box{
  height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.partner__logo{
  height:78px;
  width:auto;
  max-width:300px;
  object-fit:contain;
  transition: transform .25s ease;
}
.partner:hover .partner__logo{ transform: translateY(-3px); }
.partner__logo:not(.partner__logo--square){
  background:#fff;
  border-radius:12px;
  padding:9px 22px;
}
.partner__logo--square{
  height:86px;
  width:86px;
  border-radius:20px;
}
.partner__caption{
  font-size:.85rem;
  color: var(--text-muted);
  text-align:center;
}

/* ===================== NOSOTROS ===================== */
.about__text > p{ color: var(--text-muted); max-width:720px; margin-bottom:16px; }
.values{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:24px;
  margin-top:44px;
}
.value{
  padding:22px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
}
.value h4{ color: var(--teal); font-size:1rem; margin-bottom:8px; }
.value p{ color: var(--text-muted); font-size:.88rem; }

/* ===================== CONTACTO ===================== */
.contact__card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:30px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.contact__info{ display:flex; flex-direction:column; gap:16px; }
.contact__row{ display:flex; align-items:center; gap:12px; color: var(--text-muted); font-size:1rem; }
.contact__row svg{ color: var(--teal); flex-shrink:0; }

/* ===================== FOOTER ===================== */
.footer{
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer__inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:14px;
}
.footer__tag{ color: var(--text-faint); font-size:.9rem; }
.footer__nav{ display:flex; gap:26px; margin:10px 0; flex-wrap:wrap; justify-content:center; }
.footer__nav a{ color: var(--text-muted); font-size:.9rem; transition:color .2s ease; }
.footer__nav a:hover{ color: var(--teal); }
.footer__copy{ color: var(--text-faint); font-size:.8rem; }

/* ===================== FLOATING WHATSAPP ===================== */
.floating-wa{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px; height:58px;
  border-radius:50%;
  background:#25D366;
  color:#04211d;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 90;
  transition: transform .2s ease;
}
.floating-wa:hover{ transform: scale(1.08); }

/* ===================== SCROLL REVEAL ===================== */
.reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in{ opacity:1; transform:none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__visual{ order:-1; }
  .hero__logo{ width:min(280px, 70%); margin:0 auto; }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: repeat(2, 1fr); }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .values{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .nav{
    position:fixed;
    top: var(--header-h);
    left:0; right:0;
    flex-direction:column;
    background: rgba(10,14,19,.97);
    backdrop-filter: blur(14px);
    padding: 24px;
    gap: 22px;
    border-bottom:1px solid var(--border);
    transform: translateY(-130%);
    opacity:0;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav.open{ transform: translateY(0); opacity:1; }
  .header__actions .btn--primary{ display:none; }
  .hamburger{ display:flex; }

  .grid--3{ grid-template-columns:1fr; }
  .grid--4{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .values{ grid-template-columns:1fr; }
  .contact__card{ flex-direction:column; align-items:flex-start; padding:32px 26px; }
  .hero{ padding-top: calc(var(--header-h) + 50px); }
  .section{ padding: 80px 0; }
}
