/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0c;
  --bg-section: #101012;
  --text: #fcfefd;
  --text-dim: #9a9a9d;
  --text-faint: #6e6e73;
  --accent: #ee080a;
  --accent-soft: rgba(238, 8, 10, 0.14);
  --border: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.04);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, .hero-eyebrow, .nav-links a, .client-name, .service-name {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== Cursor glow (sigue al mouse por toda la página) ===== */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 560px; height: 560px;
  margin-left: -280px; margin-top: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 8, 10, 0.16), transparent 65%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  will-change: transform;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.navbar.scrolled { border-bottom-color: var(--border); }

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 60px; width: auto; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(10, 10, 12, 0.98);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a {
  padding: 16px 24px;
  font-size: 15px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}
.nav-mobile.open { display: flex; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 20%, rgba(238, 8, 10, 0.18), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.06), transparent 40%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.08); }
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, #b8b8bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(17px, 2.6vw, 24px);
  color: var(--text-dim);
  font-weight: 400;
  margin-bottom: 40px;
}

.hero-scroll-hint {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  animation: heroHintPulse 2.6s ease-in-out infinite;
}
@keyframes heroHintPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  z-index: 1;
}
.hero-scroll-indicator span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ===== Sections ===== */
.section { padding: 120px 0; position: relative; }
.section-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title.center { text-align: center; }
.section-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 60px;
}
.section-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== About ===== */
.about { background: var(--bg-section); }
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo {
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #1c1c1f, #0a0a0c);
  position: relative;
  will-change: transform, opacity;
}
.bubble-field.scrub-scale { will-change: transform; }
.scrub-fade { will-change: transform, opacity; }
.about-photo img { width: 100%; height: 100%; object-fit: contain; padding: 36px; box-sizing: border-box; }
.about-photo.photo-missing::after {
  content: "Foto pendiente\A assets/media/hero/foto-perfil.jpg";
  white-space: pre;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  padding: 20px;
}
.about-photo.photo-missing img { display: none; }

.about-paragraph {
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 60ch;
}

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--text-dim); }

/* ===== Utilidad accesibilidad ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Gráfico de evolución (años / ganancias) ===== */
.growth-chart-wrap {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.growth-chart-title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  max-width: 70ch;
  margin-bottom: 10px;
}
.growth-chart-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 60ch;
}
.growth-chart {
  position: relative;
  width: 100%;
  height: 320px;
}
.growth-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.growth-grid-line { stroke: var(--border); stroke-width: 1; }
.growth-axis-label {
  fill: var(--text-dim);
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
}
.growth-area { fill: rgba(238, 8, 10, 0.1); }
.growth-area-fill { fill: rgba(238, 8, 10, 0.4); }
.growth-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.growth-end-dot {
  fill: var(--accent);
  stroke: var(--bg-elevated);
  stroke-width: 2;
}
.growth-end-label {
  fill: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.growth-crosshair {
  stroke: var(--border);
  stroke-width: 1;
  opacity: 0;
}
.growth-hover-dot {
  fill: var(--accent);
  stroke: var(--bg-elevated);
  stroke-width: 2;
  opacity: 0;
}
.growth-hit-area { fill: transparent; cursor: crosshair; }

.growth-tooltip {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -115%);
  background: rgba(10, 10, 12, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.growth-tooltip.visible { opacity: 1; }
.growth-tooltip-year { color: var(--text-dim); margin-right: 6px; }
.growth-tooltip-value { color: var(--text); font-weight: 700; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.service-card {
  padding: 24px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.5s var(--ease), border-color 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(238,8,10,0.35); }
.service-icon { font-size: 28px; margin-bottom: 14px; }
.service-name { font-size: 17px; font-weight: 600; margin-bottom: 6px; line-height: 1.2; }
.service-price { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.service-desc { font-size: 13px; color: var(--text-dim); line-height: 1.45; }

/* ===== Featured websites (bubbles) ===== */
.featured { overflow: hidden; }
.bubble-field {
  position: relative;
  width: 100%;
  height: 460px;
  margin-top: 20px;
}

.bubble-orbit {
  position: absolute;
  animation: bubbleFloat var(--dur, 9s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes bubbleFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(var(--dx, 18px), var(--dy, 24px)); }
}

.bubble {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #0a0a0c;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: width 0.5s var(--ease), height 0.5s var(--ease),
              border-color 0.4s ease, box-shadow 0.4s ease;
}
.bubble img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease);
}
.bubble-label {
  position: absolute;
  bottom: -52px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.75);
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.bubble-name { font-size: 13px; font-weight: 700; color: var(--text); }
.bubble-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.bubble-orbit.is-near .bubble,
.bubble:hover {
  width: 380px;
  height: 380px;
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(238,8,10,0.35);
}
.bubble-orbit.is-near .bubble img,
.bubble:hover img { transform: scale(1.08); }
.bubble-orbit.is-near .bubble-label,
.bubble:hover .bubble-label { opacity: 1; }

.bubble-caption {
  position: absolute;
  top: 132px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.bubble-orbit.is-near .bubble-caption,
.bubble:hover ~ .bubble-caption { opacity: 0; }

/* ===== Publicidad / Ads (comparador antes-después + embudo) ===== */
.ads { background: var(--bg-section); }

.ads-compare {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 1080px;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  cursor: ew-resize;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.ads-post {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
}

.ads-post-image {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
}
.ads-post-image video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ads-post-image-before { background: linear-gradient(160deg, #2a2a2d, #101012); filter: grayscale(1) brightness(0.75); }
.ads-post-image-after { background: linear-gradient(160deg, rgba(238,8,10,0.35), #101012); }

.ads-post-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px;
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.ads-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ads-stat-icon { font-size: 15px; }
.ads-stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.ads-stat-label { font-size: 10px; color: var(--text-dim); }

.ads-post-before .ads-stat-value { color: var(--text-faint); }
.ads-post-after .ads-stat-value { color: var(--accent); }

.ads-compare-before {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.ads-compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--accent);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(238,8,10,0.7);
}
.ads-compare-handle span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

.ads-compare-tag {
  position: absolute;
  top: 14px;
  z-index: 4;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
}
.ads-tag-before { left: 14px; color: var(--text-faint); }
.ads-tag-after { right: 14px; color: var(--accent); }

/* ===== Clients ===== */
.clients { background: var(--bg-section); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.client-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.4s ease;
}
.client-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.22); }

.client-media {
  aspect-ratio: 16/10;
  background: #0a0a0c;
  overflow: hidden;
  position: relative;
}
.client-media img, .client-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.client-card:hover .client-media img,
.client-card:hover .client-media video { transform: scale(1.05); }

.client-media .media-count {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 100px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: var(--text);
}

.client-body { padding: 20px 22px; }
.client-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* ===== Lightbox gallery ===== */
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== Contact ===== */
.calendly-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.calendly-cta {
  position: relative;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), #ff5b3d);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(238,8,10,0.4);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.calendly-cta:hover {
  box-shadow: 0 18px 46px rgba(238,8,10,0.55);
  transform: translateY(-2px);
}

.calendly-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}
.calendly-cta:hover::before { transform: translateX(130%); }

.calendly-cta::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 100px;
  border: 2px solid var(--accent);
  opacity: 0.6;
  animation: calendlyPulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes calendlyPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.16); opacity: 0; }
}

.calendly-cta-icon { font-size: 22px; }
.calendly-cta-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.calendly-cta-title { font-size: 16px; font-weight: 700; }
.calendly-cta-sub { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.85); }
.calendly-cta-arrow {
  font-size: 18px;
  transition: transform 0.3s var(--ease);
}
.calendly-cta:hover .calendly-cta-arrow { transform: translateX(4px); }

.calendly-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-link {
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}
.contact-link:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ===== Footer ===== */
.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 85vh; }
.lightbox-content img, .lightbox-content video { max-width: 90vw; max-height: 85vh; border-radius: 12px; }

/* Captura de página completa: se ve a lo ancho y se scrollea como la web real */
.lightbox-scroll {
  width: min(94vw, 980px);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
  background: #000;
  -webkit-overflow-scrolling: touch;
}
.lightbox-content .lightbox-scroll img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer;
}

/* ===== Divisor de red de partículas ===== */
.section-divider {
  position: relative;
  height: 180px;
  background: var(--bg);
  overflow: hidden;
}
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ===== Chatbot (FAQ) ===== */
.chatbot { position: fixed; bottom: 28px; right: 28px; z-index: 150; }

.chatbot-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(238,8,10,0.45);
  transition: transform 0.3s var(--ease);
}
.chatbot-toggle:hover { transform: scale(1.08); }

.chatbot-panel {
  position: absolute;
  bottom: 76px; right: 0;
  width: 320px;
  max-height: 440px;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.chatbot.open .chatbot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.chatbot-avatar { width: 32px; height: 32px; object-fit: contain; }
.chatbot-title { font-size: 14px; font-weight: 700; }
.chatbot-subtitle { font-size: 12px; color: var(--text-dim); }
.chatbot-close {
  margin-left: auto;
  background: none; border: none; color: var(--text-dim);
  font-size: 16px; cursor: pointer;
}

.chatbot-messages {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 88%;
}
.chat-bubble.bot {
  background: var(--card);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  max-height: 140px;
  overflow-y: auto;
}
.chatbot-question-btn {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.chatbot-question-btn:hover { border-color: var(--accent); color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .bubble-field { height: 620px; }
  .bubble { width: 84px; height: 84px; }
  .bubble-orbit.is-near .bubble,
  .bubble:hover { width: 260px; height: 260px; }
  .bubble-caption { top: 96px; font-size: 13px; }

  .chatbot { right: 16px; bottom: 16px; }
  .chatbot-panel { width: calc(100vw - 32px); right: -8px; }
  .cursor-glow { display: none; }

  .ads-compare { height: 70vh; }
  .ads-post-stats { grid-template-columns: repeat(2, 1fr); }
}
