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

:root {
  --bg: #080f1a;
  --bg2: #0c1725;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.09);
  --border-bright: rgba(41,197,246,0.35);
  --text: #dff0ff;
  --muted: #6a90b8;
  --blue: #1a7fd4;
  --blue-light: #38b6f0;
  --cyan: #29c5f6;
  --cyan-light: #7bdcf7;
  --green: #10b981;
  --amber: #f59e0b;
  --grad: linear-gradient(135deg, #1060b8, #29c5f6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ─── CANVAS ─── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── ORBS ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.09;
  z-index: 0;
}
.orb-1 { width: 500px; height: 500px; background: var(--blue); top: -150px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--cyan); bottom: 5%; left: -100px; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,15,26,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--grad);
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ─── PAGE HEADER ─── */
.page-header {
  position: relative;
  z-index: 1;
  padding: 10rem 5% 6rem;
  text-align: center;
}

.page-header .badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-bright);
  background: rgba(41,197,246,0.07);
  color: var(--cyan-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.page-header h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── FILTER TABS ─── */
.filter-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 5% 4rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--blue);
  color: var(--text);
  background: rgba(26,127,212,0.1);
}

/* ─── SERVICES GRID ─── */
.services-section {
  position: relative;
  z-index: 1;
  padding: 0 5% 8rem;
}

.category-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.s-card {
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.s-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.s-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(41,197,246,0.1);
}

.s-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.s-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.s-card-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.s-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: auto;
}

.s-card-link:hover { gap: 0.6rem; }

/* Color themes per category */
.cat-automatizacion .s-card-icon { background: rgba(26,127,212,0.15); }
.cat-comunicacion .s-card-icon { background: rgba(41,197,246,0.12); }
.cat-negocio .s-card-icon { background: rgba(16,185,129,0.12); }
.cat-marketing .s-card-icon { background: rgba(245,158,11,0.12); }

.cat-automatizacion .s-card:hover { box-shadow: 0 16px 48px rgba(26,127,212,0.12); }
.cat-comunicacion .s-card:hover { box-shadow: 0 16px 48px rgba(41,197,246,0.1); border-color: rgba(41,197,246,0.3); }
.cat-negocio .s-card:hover { border-color: rgba(16,185,129,0.3); box-shadow: 0 16px 48px rgba(16,185,129,0.1); }
.cat-marketing .s-card:hover { border-color: rgba(245,158,11,0.3); box-shadow: 0 16px 48px rgba(245,158,11,0.08); }

/* ─── CTA ─── */
.page-cta {
  position: relative;
  z-index: 1;
  padding: 0 5% 8rem;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 3rem;
  border-radius: 28px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(16,96,184,0.1), rgba(41,197,246,0.06));
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 250px;
  background: radial-gradient(ellipse, rgba(41,197,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cta-inner p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 420px;
  margin: 0 auto 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--grad);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(41,197,246,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(41,197,246,0.45);
}

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 1;
  padding: 2.5rem 5%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.footer-copy { color: var(--muted); font-size: 0.85rem; }

.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-socials a:hover { color: var(--text); }

/* ─── MOBILE ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(8,15,26,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 1.1rem; font-weight: 500; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 3rem 1.5rem; }
  footer { flex-direction: column; text-align: center; }
}

/* ─── Páginas de texto: oferta y caso (añadido 2026-09-17) ─── */
.prose { max-width: 760px; margin: 0 auto; padding: 0 2rem 4rem; position: relative; z-index: 1; }
.prose h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; margin: 3rem 0 1rem; line-height: 1.25; }
.prose h2 span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.prose h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.prose p { color: var(--muted); margin-bottom: 1rem; font-size: 1rem; line-height: 1.7; }
.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }
.prose ul { list-style: none; margin: 0 0 1.25rem; }
.prose li { color: var(--muted); padding: 0.45rem 0 0.45rem 1.6rem; position: relative; line-height: 1.6; }
.prose li::before { content: "✦"; color: var(--cyan); position: absolute; left: 0; top: 0.5rem; font-size: 0.8rem; }
.prose li.no::before { content: "×"; color: var(--amber); font-size: 1.1rem; top: 0.3rem; }
.prose .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.prose .box { padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.prose .box h3 { margin-top: 0; }
.prose .box p { margin-bottom: 0.5rem; font-size: 0.92rem; }
.prose .box.bright { border-color: var(--border-bright); box-shadow: 0 16px 48px rgba(41,197,246,0.08); }
.price { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price small { font-size: 1rem; font-weight: 500; -webkit-text-fill-color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; }
.figure { padding: 1.25rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: center; }
.figure b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.figure span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.4rem; line-height: 1.4; }
.steps-list { counter-reset: paso; list-style: none; margin: 1.5rem 0; }
.steps-list li { counter-increment: paso; padding-left: 3rem; margin-bottom: 1.25rem; }
.steps-list li::before { content: counter(paso, decimal-leading-zero); font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--cyan); left: 0; top: 0.1rem; font-size: 1.1rem; }
.steps-list li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 0.2rem; }
.btn-wa { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.6rem; border-radius: 999px; background: #25D366; color: #06281a; font-weight: 700; text-decoration: none; font-size: 0.95rem; transition: transform 0.2s, box-shadow 0.2s; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,0.3); }
.note { font-size: 0.85rem; color: var(--muted); border-left: 2px solid var(--border-bright); padding-left: 1rem; margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.prose th { color: var(--text); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.prose td:first-child { color: var(--text); font-weight: 500; }
