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

:root {
  /* Capa 1 — Fundación neutral (dark mode: pasos de 4-6% entre capas) */
  --bg: #0a0a0a;
  --surface: #141416;
  --surface-2: #1d1d21;
  --surface-3: #26262b;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --text: #f3f2ee;
  --text-muted: #9a9a96;

  /* Capa 2 — Marca: escala OKLCH, hue fijo 122, lightness y chroma escalonados */
  --brand-100: oklch(0.97 0.07 122);
  --brand-200: oklch(0.95 0.13 122);
  --brand-300: oklch(0.92 0.19 122);
  --brand-400: oklch(0.86 0.20 122);
  --brand-500: oklch(0.79 0.19 122);
  --brand-600: oklch(0.69 0.17 122);
  --brand-700: oklch(0.58 0.14 122);
  --brand-800: oklch(0.44 0.10 122);
  --brand-900: oklch(0.30 0.07 122);

  /* Dark mode usa shade 300-400 como principal, no 500-600 */
  --accent: var(--brand-300);
  --accent-hover: var(--brand-200);
  --accent-text: #0a0a0a;

  /* Capa 3 — Semánticos */
  --success: #25d366;
  --whatsapp: #25d366;

  --radius: 14px;
  --container: 1120px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-hover); }

.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-large { padding: 17px 34px; font-size: 1.05rem; gap: 10px; }

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(10,10,10,0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Marca: el punto dentro del circulo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  display: block;
}

.logo-dot { fill: var(--accent); }

.nav-desktop {
  display: flex;
  gap: 32px;
  margin-right: auto;
  margin-left: 48px;
}

.nav-desktop a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-desktop a:hover { color: var(--text); }

.header-inner > .btn { flex-shrink: 0; }

.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;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 24px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.nav-mobile a:last-child { border-bottom: none; margin-top: 10px; }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding: 120px 0 96px;
  overflow: hidden;
  background: #07080a;
}

/* La ciudad animada va a sangre, detras de todo */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Velo que sostiene la lectura del texto en cualquier momento del loop */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(7,8,10,0.94) 0%, rgba(7,8,10,0.78) 34%, rgba(7,8,10,0.22) 64%, transparent 92%),
    linear-gradient(to top, rgba(7,8,10,0.8) 0%, transparent 38%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
}

.hero-content { max-width: 620px; }

.eyebrow, .section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(7,8,10,0.9);
}

.hero-sub {
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--text-muted);
  font-size: 1.08rem;
  text-shadow: 0 2px 20px rgba(7,8,10,0.9);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero-cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Problem ---------- */
.problem {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

/* Foto de fondo: se apaga con un degradado para que el texto siempre gane */
.problem-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(100deg, var(--surface) 26%, rgba(20,20,22,0.90) 52%, rgba(20,20,22,0.62) 100%),
    url("https://images.unsplash.com/photo-1583521214690-73421a1829a9?auto=format&fit=crop&w=1100&q=72&sat=-100&fm=jpg");
  background-size: auto, cover;
  background-position: center, center right;
  opacity: 0.85;
}

.problem-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding: 88px 24px;
}

.quote-mark {
  display: block;
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 18px;
  font-family: Georgia, serif;
}

.problem-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 20px;
}

.problem-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
  max-width: 520px;
}

.problem-audience {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.audience-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.audience-copy {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Services ---------- */
.services { padding: 110px 0; }

.section-eyebrow { display: block; text-align: left; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  max-width: 640px;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--surface-2); }

.service-card-featured {
  grid-column: span 3;
  background: var(--surface-2);
}

.service-card:last-child {
  grid-column: span 2;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}

.service-number {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Banda de metricas ---------- */
.band {
  position: relative;
  isolation: isolate;
  height: 300px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.band img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.band-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.80) 48%, rgba(10,10,10,0.55) 100%);
}

.band-content { position: relative; }

.band-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.band-line {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 520px;
}

/* ---------- Deliverables ---------- */
.deliverables {
  padding: 110px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.deliverable h3 {
  font-size: 1.1rem;
  margin: 26px 0 10px;
}

.deliverable p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.deliverables-note {
  margin-top: 36px;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.mock {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px;
  height: 320px;
  display: flex;
  flex-direction: column;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transform-origin: center left;
  box-shadow: -18px 22px 40px rgba(0,0,0,0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.deliverable:hover .mock {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.mock-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.mock-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
  border-radius: 999px;
  padding: 3px 9px;
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--whatsapp);
}

/* Report mock */
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mock-stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.mock-stat-label {
  display: block;
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.mock-chart {
  position: relative;
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.mock-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mock-chart .chart-area { fill: color-mix(in oklch, var(--accent) 16%, transparent); }

.mock-chart .chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.chart-endpoint {
  position: absolute;
  right: -3px;
  top: 12%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent);
}

.mock-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Chat mock */
.chat-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.bubble {
  max-width: 82%;
  font-size: 0.76rem;
  line-height: 1.4;
  padding: 8px 11px;
  border-radius: 12px;
}

.bubble-in {
  align-self: flex-start;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-bottom-left-radius: 4px;
}

.bubble-out {
  align-self: flex-end;
  background: rgba(37,211,102,0.14);
  border: 1px solid rgba(37,211,102,0.3);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.bubble-bot {
  align-self: center;
  max-width: 100%;
  background: none;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 5px 10px;
}

/* Calendar mock */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  flex: 1;
  align-content: start;
}

.cal-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.cal-day.is-on {
  background: var(--accent);
  border-color: var(--accent);
}

.cal-day.is-soft {
  background: color-mix(in oklch, var(--accent) 30%, var(--surface-3));
  border-color: color-mix(in oklch, var(--accent) 40%, transparent);
}

/* ---------- Process ---------- */
.process {
  padding: 110px 0;
  border-top: 1px solid var(--border);
}

.process-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: var(--border-strong);
}

.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 28px;
  padding: 26px 0;
  align-items: start;
}

.process-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.process-item > div { padding-top: 9px; }

.process-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.process-item p {
  color: var(--text-muted);
  max-width: 560px;
}

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative;
  padding: 130px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -320px;
  transform: translateX(-50%);
  width: 780px;
  height: 640px;
  background: radial-gradient(circle, rgba(215,255,63,0.10) 0%, transparent 62%);
  pointer-events: none;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, var(--surface) 0%, rgba(20,20,22,0.72) 45%, rgba(20,20,22,0.88) 100%),
    url("https://images.unsplash.com/photo-1710438399422-2fca27686bcd?auto=format&fit=crop&w=1600&q=72&sat=-100&fm=jpg");
  background-size: auto, cover;
  background-position: center, center;
  opacity: 0.9;
  pointer-events: none;
}

.cta-final-inner { position: relative; z-index: 1; }

.cta-final-inner .section-eyebrow { display: inline-block; }

.cta-final h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 18px;
}

.cta-final-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 40px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.logo-small { color: var(--text); margin-bottom: 4px; }
.logo-small .logo-mark { width: 25px; height: 25px; }

.footer-copy { margin-top: 10px; opacity: 0.7; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.18s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Reveal animation ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { min-height: 84vh; }
  /* En vertical el velo sube desde abajo: ahi es donde vive el texto */
  .hero::after {
    background:
      linear-gradient(to top, rgba(7,8,10,0.95) 0%, rgba(7,8,10,0.76) 36%, rgba(7,8,10,0.24) 68%, transparent 96%);
  }
  .hero-content { max-width: none; }
}

@media (max-width: 1000px) {
  .deliverables-grid { grid-template-columns: 1fr; gap: 44px; max-width: 480px; }
}

@media (max-width: 860px) {
  .problem-inner { grid-template-columns: 1fr; padding: 64px 24px; gap: 40px; }
  .problem-audience { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-featured { grid-column: span 2; }
}

@media (max-width: 720px) {
  .band { height: 230px; }
  .problem-bg {
    background-image:
      linear-gradient(180deg, rgba(20,20,22,0.95) 40%, rgba(20,20,22,0.80) 100%),
      url("https://images.unsplash.com/photo-1583521214690-73421a1829a9?auto=format&fit=crop&w=1100&q=72&sat=-100&fm=jpg");
  }
  .nav-desktop { display: none; }
  .header-inner > a.btn { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 96px 0 72px; min-height: 80vh; }
  .services { padding: 72px 0; }
  .deliverables { padding: 72px 0; }
  .process { padding: 72px 0; }
  .cta-final { padding: 88px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-featured, .service-card:last-child { grid-column: span 1; }
  .process-item { gap: 20px; }
  .mock { transform: none; box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
  .whatsapp-float { right: 18px; bottom: 18px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}
