/* ===== VARIABLES ===== */
:root {
  --navy-900: #0a1626;
  --navy-800: #0e1d33;
  --navy-700: #13294a;
  --navy-600: #1a3560;
  --blue-500: #2f80ff;
  --blue-400: #4a9bff;
  --blue-300: #7bb8ff;
  --white: #ffffff;
  --gray-200: #e6ecf5;
  --gray-400: #9fb0c8;
  --gray-500: #7587a3;
  --wa-green: #25d366;
  --grad: linear-gradient(120deg, #4a9bff 0%, #2f80ff 100%);
  --radius: 16px;
  --shadow: 0 18px 40px rgba(5, 15, 35, 0.45);
  --max: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--gray-200);
  background: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 92%; max-width: var(--max); margin: 0 auto; }

/* ===== ANIMACIÓN AL SCROLL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; padding: .9rem 1.7rem; border-radius: 50px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(47,128,255,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(47,128,255,.55); }
.btn--ghost { background: rgba(255,255,255,.04); color: #fff; border: 1.5px solid rgba(255,255,255,.2); }
.btn--ghost:hover { border-color: var(--blue-400); color: var(--blue-300); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.btn--block { width: 100%; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 22, 38, 0.55); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s ease;
}
.site-header.scrolled { background: rgba(10, 22, 38, 0.96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.02rem; color: #fff; font-weight: 700; }
.brand__text small { font-size: .72rem; color: var(--blue-300); letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { font-weight: 500; font-size: .94rem; color: var(--gray-200); transition: color .2s; }
.nav a:hover { color: var(--blue-400); }
.nav__cta { background: var(--grad); color: #fff !important; padding: .55rem 1.2rem; border-radius: 50px; font-weight: 600; }
.nav__cta:hover { opacity: .9; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 60; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { position: relative; padding: 8.5rem 0 4rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 460px; height: 460px; top: -120px; right: -80px; background: radial-gradient(circle, #2f80ff, transparent 70%); animation: float1 12s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; bottom: -140px; left: -100px; background: radial-gradient(circle, #4a9bff, transparent 70%); opacity: .35; animation: float2 14s ease-in-out infinite; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(35px, -25px); } }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero__content { max-width: 600px; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 50px;
  background: rgba(47,128,255,.12); border: 1px solid rgba(47,128,255,.3);
  color: var(--blue-300); font-size: .78rem; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 1.4rem;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa-green); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; color: #fff; font-weight: 800; letter-spacing: -.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin: 1.4rem 0 2rem; font-size: 1.1rem; color: var(--gray-400); max-width: 520px; }
.hero__lead strong { color: var(--gray-200); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; }
.hero__trust-avatars { display: flex; }
.hero__trust-avatars span {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: .78rem; font-weight: 700; color: #fff; border: 2px solid var(--navy-800);
  margin-left: -10px; background: var(--grad);
}
.hero__trust-avatars span:first-child { margin-left: 0; }
.hero__trust p { font-size: .85rem; color: var(--gray-500); }

/* Mockup */
.hero__visual { position: relative; }
.mock-window {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mock-window__bar { display: flex; align-items: center; gap: 6px; padding: .7rem .9rem; background: rgba(0,0,0,.25); border-bottom: 1px solid rgba(255,255,255,.06); }
.mock-window__bar > span { width: 11px; height: 11px; border-radius: 50%; }
.mock-window__bar > span:nth-child(1) { background: #ff5f57; }
.mock-window__bar > span:nth-child(2) { background: #febc2e; }
.mock-window__bar > span:nth-child(3) { background: #28c840; }
.mock-window__url { margin-left: auto; font-size: .72rem; color: var(--gray-500); background: rgba(255,255,255,.06); padding: .2rem .8rem; border-radius: 50px; }
.mock-window__body { padding: 1.6rem; }
.mock-line { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); margin-bottom: .8rem; }
.mock-line--title { width: 55%; height: 20px; background: var(--grad); opacity: .85; }
.mock-line--lg { width: 90%; }
.mock-line--md { width: 70%; margin-bottom: 1.4rem; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1.4rem; }
.mock-card { height: 56px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.05); }
.mock-card:nth-child(2) { background: rgba(47,128,255,.18); }
.mock-btn { width: 40%; height: 34px; border-radius: 8px; background: var(--grad); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .65rem;
  background: rgba(14, 29, 51, 0.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  padding: .7rem .9rem; box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.float-card strong { display: block; font-size: .82rem; color: #fff; }
.float-card small { font-size: .72rem; color: var(--gray-500); }
.float-card__ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.ic--green { background: rgba(37,211,102,.2); color: var(--wa-green); }
.ic--blue { background: rgba(47,128,255,.2); color: var(--blue-400); }
.float-card--top { top: 14%; left: -34px; animation: floatY 5s ease-in-out infinite; }
.float-card--bottom { bottom: 10%; right: -28px; animation: floatY 5s ease-in-out infinite .8s; }

.hero__strip { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-size: 1.7rem; color: #fff; font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.hero__stat span { font-size: .82rem; color: var(--gray-500); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow { color: var(--blue-400); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.6px; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin: .6rem 0 .8rem; font-weight: 700; letter-spacing: -.5px; }
.section__head p { color: var(--gray-400); }

/* ===== SERVICIOS ===== */
.services { background: var(--navy-800); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card { background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 2rem 1.5rem; transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(47,128,255,.4); }
.card__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 1.1rem; background: rgba(47,128,255,.12); color: var(--blue-400); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { color: #fff; font-size: 1.16rem; margin-bottom: .5rem; }
.card p { color: var(--gray-400); font-size: .94rem; }

/* ===== PROYECTOS ===== */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project { display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); border: 1px solid rgba(255,255,255,.06); transition: transform .25s ease, border-color .25s ease; }
.project:hover { transform: translateY(-6px); border-color: rgba(47,128,255,.4); }
.project__img { position: relative; aspect-ratio: 16/10; background: linear-gradient(160deg, var(--navy-600), var(--navy-700)); overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project:hover .project__img img { transform: scale(1.05); }
.project__placeholder { position: absolute; inset: 0; display: none; place-items: center; color: var(--gray-500); font-size: .9rem; letter-spacing: .5px; }
.project__img--empty .project__placeholder { display: grid; }
.project__img--empty { background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 22px 22px; }
.project__info { padding: 1.3rem 1.4rem 1.5rem; }
.project__tag { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--blue-300); background: rgba(47,128,255,.12); padding: .25rem .7rem; border-radius: 50px; margin-bottom: .7rem; text-transform: uppercase; letter-spacing: .5px; }
.project__info h3 { color: #fff; font-size: 1.15rem; margin-bottom: .4rem; }
.project__info p { color: var(--gray-400); font-size: .92rem; }

/* ===== CASOS DE ÉXITO / CLIENTES ===== */
.clients__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.client-card {
  flex: 0 0 260px; width: 260px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius);
  padding: 1.4rem; text-align: center; transition: transform .25s ease, border-color .25s ease;
}
.client-card:hover { transform: translateY(-6px); border-color: rgba(47,128,255,.4); }
.client-card__logo {
  background: #fff; border-radius: 12px; height: 140px;
  display: grid; place-items: center; padding: 1.4rem; margin-bottom: 1rem;
  overflow: hidden;
}
.client-card__logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.client-card__ph { color: var(--navy-700); font-weight: 700; font-size: 1.05rem; }
.client-card figcaption strong { display: block; color: #fff; font-size: 1rem; }
.client-card figcaption span { font-size: .82rem; color: var(--blue-300); }

/* ===== PROCESO ===== */
.process { background: var(--navy-800); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.5rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); border: 1px solid rgba(255,255,255,.06); }
.step__num { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: .6rem; }
.step h3 { color: #fff; font-size: 1.12rem; margin-bottom: .4rem; }
.step p { color: var(--gray-400); font-size: .92rem; }

/* ===== CONTACTO ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: start; }
.contact__info h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: #fff; margin: .6rem 0 .8rem; }
.contact__info > p { color: var(--gray-400); margin-bottom: 2rem; }
.contact__list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; }
.contact__ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(47,128,255,.12); color: var(--blue-400); flex-shrink: 0; }
.contact__list a:hover { color: var(--blue-400); }
.contact__social { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact__social a { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; border-radius: 50px; border: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: var(--gray-200); transition: .2s; }
.contact__social a:hover { border-color: var(--blue-400); color: var(--blue-300); }

/* ===== FORM ===== */
.form { background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.form h3 { color: #fff; font-size: 1.35rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; color: var(--gray-400); margin-bottom: .4rem; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: .8rem 1rem; border-radius: 10px; background: rgba(5, 14, 28, 0.7); border: 1px solid rgba(255,255,255,.1); color: #fff; font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-500); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,128,255,.18); }
.field textarea { resize: vertical; }
.form__note { text-align: center; font-size: .82rem; color: var(--gray-500); margin-top: .9rem; }
.form__msg { text-align: center; font-size: .9rem; margin-top: .8rem; font-weight: 500; min-height: 1.2em; }
.form__msg.ok { color: var(--wa-green); }
.form__msg.err { color: #ff6b6b; }

/* ===== FAQ ===== */
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq__item { background: var(--navy-800); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 0 1.3rem; transition: border-color .2s; }
.faq__item[open] { border-color: rgba(47,128,255,.35); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--blue-400); font-weight: 400; transition: transform .25s; line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--gray-400); font-size: .94rem; padding: 0 0 1.2rem; }

/* ===== CTA BAND ===== */
.cta-band { background: var(--grad); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: .4rem; }

/* ===== MAPA ===== */
.map { background: var(--navy-800); }
.map__embed { width: 100%; line-height: 0; }
.map__embed iframe { filter: grayscale(.2) contrast(1.05); }

/* ===== FOOTER ===== */
.footer { background: var(--navy-900); padding: 3rem 0 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer__brand strong { display: block; color: #fff; }
.footer__brand small { color: var(--gray-500); font-size: .8rem; }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--gray-400); font-size: .92rem; transition: .2s; }
.footer__links a:hover { color: var(--blue-400); }
.footer__copy { color: var(--gray-500); font-size: .82rem; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float { position: fixed; bottom: 22px; right: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa-green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); animation: pulse 2.4s infinite; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
  .services__grid, .process__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem; padding: 2rem; background: var(--navy-800); border-left: 1px solid rgba(255,255,255,.08); transform: translateX(100%); transition: transform .3s ease; }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; }
  .nav__cta { width: 100%; text-align: center; }
  .hero { padding: 7rem 0 3rem; }
  .float-card--top { left: -10px; }
  .float-card--bottom { right: -8px; }
  .hero__strip { gap: 1.2rem 2rem; }
  .cta-band__inner { text-align: center; justify-content: center; }
}
@media (max-width: 520px) {
  .services__grid, .process__grid, .projects__grid { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
  .hero__actions .btn { flex: 1; }
  .hero__stat strong { font-size: 1.4rem; }
}
