/* ============================================================
   CM Tech — styles.css
   Paleta: azul oscuro · azul eléctrico · blanco · grises suaves
   ============================================================ */

:root {
  --navy-900: #0a1628;
  --navy-800: #0e1d35;
  --navy-700: #14264a;
  --blue-500: #2e8bff;
  --blue-400: #4f9dff;
  --blue-600: #1f6fe0;
  --white:    #ffffff;
  --gray-50:  #f6f8fb;
  --gray-100: #eef2f7;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --ink:      #0f172a;

  --grad: linear-gradient(135deg, #2e8bff 0%, #4f9dff 50%, #6db0ff 100%);
  --grad-dark: linear-gradient(160deg, #0a1628 0%, #0e1d35 55%, #14264a 100%);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --shadow-blue: 0 16px 40px rgba(46, 139, 255, .28);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .logo__text { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Utilities ---------- */
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--blue-400); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(46, 139, 255, .12);
  border: 1px solid rgba(46, 139, 255, .28);
  color: #bcd6ff;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 26px;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(79, 157, 255, .25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79,157,255,.25); }
  50%      { box-shadow: 0 0 0 7px rgba(79,157,255,.05); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(46,139,255,.42); }
.btn--ghost { background: rgba(255,255,255,.06); color: #e8eefc; border-color: rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.btn--lg { padding: 17px 40px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(10, 22, 40, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.header.scrolled {
  background: rgba(10, 22, 40, .92);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.logo__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-blue);
}
.logo__text { color: #fff; font-size: 1.3rem; }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__link {
  color: #cdd8ec;
  font-size: .94rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__link--active:not(.nav__link--cta) { color: #fff; background: rgba(46,139,255,.16); }
.nav__link--cta {
  background: var(--grad);
  color: #fff !important;
  box-shadow: var(--shadow-blue);
}
.nav__link--cta:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--grad-dark);
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero__glow--1 { width: 480px; height: 480px; background: #2e8bff; top: -120px; right: -80px; }
.hero__glow--2 { width: 420px; height: 420px; background: #1f3aa0; bottom: -140px; left: -120px; opacity: .5; }
.hero__grid {
  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 70% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 100%);
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; margin-bottom: 22px; }
.hero__subtitle {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: #b8c6e0;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__trust { display: flex; gap: 38px; }
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-item strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; color: #fff; }
.hero__trust-item span { font-size: .82rem; color: var(--gray-400); letter-spacing: .04em; }

/* Hero visual / code card */
.hero__visual { position: relative; }
.code-card {
  background: rgba(13, 26, 48, .85);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
  animation: floatY 6s ease-in-out infinite;
}
.code-card__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.code-card__bar span { width: 11px; height: 11px; border-radius: 50%; }
.code-card__bar span:nth-child(1) { background: #ff5f57; }
.code-card__bar span:nth-child(2) { background: #febc2e; }
.code-card__bar span:nth-child(3) { background: #28c840; }
.code-card__bar em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--gray-400); }
.code-card__body { padding: 22px 24px; font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; font-size: .9rem; line-height: 1.8; color: #cdd8ec; overflow-x: auto; }
.c-key { color: #ff79c6; } .c-cls { color: #8be9fd; } .c-fn { color: #50fa7b; }
.c-prop { color: #bd93f9; } .c-val { color: #ffb86c; } .c-str { color: #f1fa8c; }

.float-chip {
  position: absolute;
  padding: 10px 16px;
  background: rgba(255,255,255,.95);
  color: var(--navy-900);
  font-size: .82rem;
  font-weight: 600;
  border-radius: 11px;
  box-shadow: var(--shadow-md);
  animation: floatY 5s ease-in-out infinite;
}
.float-chip--1 { top: 10%; left: -34px; animation-delay: .2s; }
.float-chip--2 { bottom: 16%; right: -28px; animation-delay: 1.1s; }
.float-chip--3 { bottom: -22px; left: 22%; animation-delay: 1.9s; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 100px 0; }
.section--alt { background: var(--gray-50); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--ink); }
.section__title--light { color: #fff; }
.section__lead { margin-top: 16px; font-size: 1.08rem; color: var(--gray-600); }
.section__lead--light { color: #b8c6e0; }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about__text p { margin-bottom: 16px; color: var(--gray-600); font-size: 1.05rem; }
.about__text strong { color: var(--ink); }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about__tags li {
  padding: 7px 15px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--gray-700);
}

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat__num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1;
}
.stat__num--text { font-size: 2.6rem; }
.stat__label { display: block; margin-top: 8px; font-size: .92rem; color: var(--gray-500); }

/* ---------- Cards (servicios) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(46,139,255,.3); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46,139,255,.12), rgba(79,157,255,.06));
  margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--gray-600); font-size: .98rem; }

/* ============================================================
   ERP APC
   ============================================================ */
.apc { position: relative; background: var(--grad-dark); color: #fff; overflow: hidden; }
.apc__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% 10%, rgba(46,139,255,.18), transparent),
    radial-gradient(500px 400px at 10% 90%, rgba(31,58,160,.22), transparent);
}
.apc .container { position: relative; z-index: 1; }

.apc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* Mockup */
.mockup {
  background: #0c1a31;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 15px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mockup__bar em { margin-left: auto; font-style: normal; font-size: .76rem; color: var(--gray-400); }
.mockup__body { display: grid; grid-template-columns: 130px 1fr; min-height: 280px; }
.mockup__side {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 12px;
  background: rgba(0,0,0,.2);
  border-right: 1px solid rgba(255,255,255,.06);
}
.mockup__logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  color: var(--blue-400); font-size: 1.1rem; margin-bottom: 12px; padding-left: 8px;
}
.mockup__nav { font-size: .82rem; color: var(--gray-400); padding: 8px 10px; border-radius: 8px; }
.mockup__nav.active { background: rgba(46,139,255,.18); color: #fff; }
.mockup__main { padding: 20px; }
.mockup__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.mk { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 12px; }
.mk small { display: block; font-size: .68rem; color: var(--gray-400); margin-bottom: 5px; }
.mk b { font-size: 1.1rem; color: #fff; }
.mk i { font-style: normal; font-size: .7rem; display: block; margin-top: 3px; }
.mk i.up { color: #50fa7b; } .mk i.down { color: #ff7a90; }
.mockup__chart { display: flex; align-items: flex-end; gap: 9px; height: 110px; }
.mockup__chart span { flex: 1; background: var(--grad); border-radius: 5px 5px 0 0; opacity: .85; }

/* Features */
.apc__features { display: grid; gap: 16px; }
.feature {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: background .3s, transform .3s var(--ease), border-color .3s;
}
.feature:hover { background: rgba(255,255,255,.07); border-color: rgba(46,139,255,.3); transform: translateX(5px); }
.feature__title { font-size: 1.05rem; margin-bottom: 8px; color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; }
.feature ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.feature li { position: relative; padding-left: 16px; font-size: .9rem; color: #b8c6e0; }
.feature li::before { content: '›'; position: absolute; left: 2px; color: var(--blue-400); font-weight: 700; }

.apc__benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 50px 0 38px; }
.benefit {
  padding: 12px 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  font-size: .92rem; font-weight: 500;
}
.apc__cta { text-align: center; }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why__item {
  padding: 36px 30px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.why__item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.why__icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(46,139,255,.14), rgba(79,157,255,.05));
}
.why__item h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.why__item p { color: var(--gray-600); font-size: .96rem; }

/* ============================================================
   TIMELINE / PROCESO
   ============================================================ */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 8px; }
.timeline::before {
  content: ''; position: absolute; left: 26px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--blue-500), rgba(46,139,255,.15));
}
.timeline__item { position: relative; display: flex; gap: 26px; padding: 0 0 34px 0; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__num {
  flex-shrink: 0;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.2rem;
  box-shadow: var(--shadow-blue);
  position: relative; z-index: 1;
}
.timeline__item h3 { font-size: 1.18rem; margin: 8px 0 4px; color: var(--ink); }
.timeline__item p { color: var(--gray-600); }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 22px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial blockquote { color: var(--gray-700); font-size: 1.02rem; position: relative; padding-top: 18px; }
.testimonial blockquote::before {
  content: '“'; position: absolute; top: -14px; left: -4px;
  font-family: 'Space Grotesk', serif; font-size: 3.4rem; color: rgba(46,139,255,.25); line-height: 1;
}
.testimonial figcaption { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.testimonial__avatar {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff; font-weight: 700; font-size: .92rem;
}
.testimonial figcaption strong { display: block; color: var(--ink); font-size: .96rem; }
.testimonial figcaption span { font-size: .82rem; color: var(--gray-500); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__lead { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 30px; }
.contact__list { display: grid; gap: 20px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__ico {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gray-100);
  font-size: 1.15rem; font-weight: 700; color: var(--blue-600);
}
.contact__list strong { display: block; font-size: .82rem; color: var(--gray-500); font-weight: 600; }
.contact__list a, .contact__list span { color: var(--ink); font-weight: 600; }
.contact__list a:hover { color: var(--blue-600); }

/* Form */
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--gray-700); }
.field input, .field textarea {
  font-family: inherit; font-size: .98rem;
  padding: 13px 15px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46,139,255,.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field--invalid input, .field--invalid textarea { border-color: #e5484d; background: #fff5f5; }
.field__error { font-size: .8rem; color: #e5484d; min-height: 1em; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { grid-column: 1 / -1; text-align: center; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.success { color: #18794e; }
.form-status.error { color: #e5484d; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: #b8c6e0; padding-top: 60px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
}
.logo--light .logo__text { color: #fff; }
.footer__brand p { margin-top: 14px; font-size: .95rem; max-width: 320px; color: var(--gray-400); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__nav a { font-size: .94rem; color: #b8c6e0; transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-weight: 600; font-size: .9rem;
  transition: background .2s, transform .2s;
}
.footer__social a:hover { background: var(--grad); transform: translateY(-3px); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .86rem; color: var(--gray-400); }
.footer__privacy:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 950;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 36px rgba(37, 211, 102, .55); }
.wa-float:active { transform: scale(.96); }
.wa-float__icon { width: 34px; height: 34px; fill: #fff; position: relative; z-index: 1; }
.wa-float__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: 0;
  animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Back to top ---------- */
/* Se posiciona encima del botón de WhatsApp para no superponerse. */
.to-top {
  position: fixed; right: 31px; bottom: 96px; z-index: 900;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff; font-size: 1.3rem; font-weight: 700;
  box-shadow: var(--shadow-blue);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease);
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top.visible:hover { transform: translateY(-4px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger children */
.cards .reveal:nth-child(2), .why .reveal:nth-child(2), .testimonials .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .why .reveal:nth-child(3), .testimonials .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .why .reveal:nth-child(4) { transition-delay: .24s; }
.cards .reveal:nth-child(5), .why .reveal:nth-child(5) { transition-delay: .32s; }
.cards .reveal:nth-child(6) { transition-delay: .40s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 480px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .apc__grid { grid-template-columns: 1fr; gap: 38px; }
  .cards, .why, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; gap: 28px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 22, 40, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 10px 0 18px;
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
  }
  .nav.open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 4px; padding: 0 24px; }
  .nav__list li { width: 100%; }
  .nav__link { display: block; width: 100%; padding: 13px 14px; }
  .nav__link--cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }

  .section { padding: 70px 0; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__trust { gap: 26px; }
  .float-chip--1 { left: 8px; } .float-chip--2 { right: 6px; }

  .cards, .why, .testimonials, .stats { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; padding: 26px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .wa-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
  .wa-float__icon { width: 30px; height: 30px; }
  .to-top { right: 24px; bottom: 84px; width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .hero__actions .btn { width: 100%; }
  .hero__trust-item strong { font-size: 1.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
