/* ===========================================================
   Centro X — Estilos
   Paleta oscura moderna con acento violeta/cian.
   =========================================================== */

:root {
  --bg: #0b1020;
  --bg-alt: #0f1530;
  --surface: #141b38;
  --surface-2: #1a2247;
  --border: #26305c;
  --text: #eaf0ff;
  --muted: #9aa7d0;
  --primary: #6d5efc;
  --primary-2: #22d3ee;
  --primary-grad: linear-gradient(135deg, #6d5efc 0%, #22d3ee 100%);
  --whatsapp: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .6);
  --maxw: 1140px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: 1.2rem; }

.grad {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 14px;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--primary-grad);
  color: #08122b;
  box-shadow: 0 14px 30px -12px rgba(109, 94, 252, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(34, 211, 238, .55); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); background: rgba(109, 94, 252, .12); transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: #04210f; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37, 211, 102, .6); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 36px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--primary-grad);
  color: #08122b;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
}
.logo-x { font-style: italic; }
.logo-text { font-size: 1.15rem; letter-spacing: -.02em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: .96rem; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(60px, 11vw, 120px) 0 clamp(50px, 8vw, 90px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(109, 94, 252, .28), transparent 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(34, 211, 238, .22), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 620px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; color: var(--muted); font-size: .95rem; }
.hero-trust strong { color: var(--text); }

/* ===== Strip ===== */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.strip-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px; padding: 22px 0; }
.strip-inner > span { color: var(--muted); font-size: .92rem; font-weight: 600; }
.strip-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.strip-tags span {
  font-size: .86rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px;
}

/* ===== Secciones ===== */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }

.grid { display: grid; gap: 22px; }
.grid-services { grid-template-columns: repeat(3, 1fr); }
.grid-plans { grid-template-columns: repeat(3, 1fr); align-items: start; }
.grid-quotes { grid-template-columns: repeat(3, 1fr); }

/* ===== Cards de servicios ===== */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.card-ico { font-size: 2rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }
.card-featured { border-color: var(--primary); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card-badge, .plan-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--primary-grad); color: #08122b;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}

/* ===== Two col ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.check-list { margin: 24px 0 30px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--muted); }
.check-list li strong { color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; display: grid; place-items: center;
  background: rgba(34, 211, 238, .15); color: var(--primary-2);
  border-radius: 7px; font-weight: 800; font-size: .85rem;
}

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.stat-num { font-size: 2.6rem; font-weight: 800; }
.stat-sym { font-size: 1.6rem; font-weight: 800; color: var(--primary-2); }
.stat p { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ===== Pasos ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--primary-grad); color: #08122b;
  font-weight: 800; font-size: 1.25rem; margin-bottom: 16px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .94rem; }

/* ===== Planes ===== */
.plan {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px;
  display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--primary); background: linear-gradient(180deg, var(--surface-2), var(--surface)); transform: scale(1.02); }
.plan h3 { font-size: 1.5rem; }
.plan-desc { color: var(--muted); margin: 6px 0 16px; font-size: .95rem; }
.plan-price { font-size: 1.1rem; font-weight: 800; color: var(--primary-2); margin-bottom: 18px; }
.plan ul { display: grid; gap: 11px; margin-bottom: 26px; }
.plan ul li { position: relative; padding-left: 26px; color: var(--muted); font-size: .95rem; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-2); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* ===== Testimonios ===== */
.quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px;
}
.quote p { font-size: 1.02rem; margin-bottom: 14px; }
.quote footer { color: var(--primary-2); font-weight: 700; font-size: .9rem; }

/* ===== Portafolio ===== */
.grid-portfolio { grid-template-columns: repeat(3, 1fr); }
.work {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.work:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.work-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work:hover .work-media img { transform: scale(1.05); }
.work-cta {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(8, 18, 43, .82); color: #fff;
  font-size: .82rem; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  opacity: 0; transform: translateY(8px); transition: .2s;
}
.work:hover .work-cta { opacity: 1; transform: none; }
.work-demo {
  position: absolute; right: 12px; top: 12px;
  background: rgba(8, 18, 43, .85); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.work-body { padding: 22px 22px 26px; }
.work-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--primary-2);
  background: rgba(34, 211, 238, .12); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.work-body h3 { margin-bottom: 6px; }
.work-body p { color: var(--muted); font-size: .94rem; }
.work-empty {
  display: grid; place-items: center; text-align: center; min-height: 240px;
  border-style: dashed; cursor: pointer;
}
.work-empty:hover { border-color: var(--primary-2); }
.work-empty-inner { padding: 26px; }
.work-empty-ico {
  width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: 14px; background: var(--primary-grad); color: #08122b; font-size: 1.8rem; font-weight: 800;
}
.work-empty h3 { margin-bottom: 6px; }
.work-empty p { color: var(--muted); font-size: .94rem; margin-bottom: 12px; }
.work-empty .work-cta { position: static; opacity: 1; transform: none; background: transparent; color: var(--primary-2); padding: 0; }

/* ===== Lead magnet: diagnóstico gratis ===== */
.leadmagnet {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: linear-gradient(135deg, rgba(109, 94, 252, .14), rgba(34, 211, 238, .10));
  border: 1px solid var(--primary); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.leadmagnet .section-sub { margin-bottom: 18px; }
.lm-list { display: grid; gap: 10px; }
.lm-list li { position: relative; padding-left: 28px; color: var(--text); font-weight: 600; }
.lm-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--whatsapp); font-weight: 800;
}
.leadmagnet-cta { display: grid; gap: 12px; }

/* ===== Contacto ===== */
.section-contact { background: var(--bg-alt); }
.btn-whatsapp { margin: 8px 0 24px; }
.contact-info { display: grid; gap: 12px; color: var(--muted); }
.contact-info a:hover { color: var(--primary-2); }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; display: grid; gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109, 94, 252, .25);
}
.field textarea { resize: vertical; }
.field input.invalid, .field select.invalid { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }
.form-status { font-size: .92rem; text-align: center; min-height: 1.2em; color: var(--primary-2); font-weight: 600; }

/* ===== CTA final ===== */
.cta-final {
  text-align: center; padding: clamp(60px, 9vw, 100px) 0;
  background: var(--primary-grad);
  color: #08122b;
}
.cta-final h2 { color: #08122b; }
.cta-final p { font-size: 1.1rem; margin: 12px 0 28px; font-weight: 600; }
.cta-final .btn-primary { background: #0b1020; color: #fff; box-shadow: 0 16px 36px -14px rgba(0,0,0,.5); }
.cta-final .btn-primary:hover { background: #060a18; }

/* ===== Footer ===== */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: 50px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.logo-footer { margin-bottom: 14px; }
.footer-tag { color: var(--muted); font-size: .92rem; }
.footer-nav, .footer-social { display: grid; gap: 10px; align-content: start; }
.footer-nav a, .footer-social a { color: var(--muted); font-weight: 600; font-size: .94rem; }
.footer-nav a:hover, .footer-social a:hover { color: var(--primary-2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: .86rem; text-align: center; }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #04210f;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  animation: waPulse 2.4s infinite;
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  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); }
}

/* ===== Animación de entrada ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 920px) {
  .grid-services, .grid-quotes, .grid-portfolio { grid-template-columns: repeat(2, 1fr); }
  .leadmagnet { grid-template-columns: 1fr; }
  .grid-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-featured { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 14px 22px;
  }
  .nav.open a { padding: 10px 0; }
  .grid-services, .grid-quotes, .grid-portfolio, .steps, .stats { grid-template-columns: 1fr; }
  .hero-trust { gap: 14px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
}

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