/* =========================================================
   DROPWAKE STUDIO
   Hero: sticky + transición (sin paneles)
   Paleta: #1C2024 · #0D6EFD · #F2F2F2
   ========================================================= */

:root {
  --bg:        #1C2024;
  --bg-deep:   #111416;
  --surface:   #1C2226;
  --border:    rgba(242, 242, 242, 0.08);
  --border-soft: rgba(242, 242, 242, 0.05);
  --text:      #F2F2F2;
  --text-dim:  #9AA4AC;
  --accent:    #0D6EFD;
  --accent-hi: #3B8BFF;

  --radius: 6px;
  --max:    1200px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h:  76px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip (no hidden) para no convertir el body en contenedor de scroll:
     eso rompería position: sticky en Safari/iOS. */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* Tipografía de marca aplicada de forma global: titulares, navbar y botones */
h1, h2, h3, h4,
.navbar,
.btn {
  font-family: var(--font-display);
}

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 48px;
  font-family: var(--font-display);
  background: rgba(28, 32, 36, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar__wordmark {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.5px;
  line-height: 1;
  white-space: nowrap;
}
.wm-name   { display: inline-flex; align-items: baseline; }
.wm-drop   { color: var(--text); }
.wm-wake   { color: var(--accent); }
.wm-studio {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 3.5px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 42px;
}
.navbar__nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  position: relative;
  transition: color 0.3s var(--ease);
}
.navbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.navbar__nav a:hover { color: var(--text); }
.navbar__nav a:hover::after { width: 100%; }

.navbar__nav-cta { display: none; }

.navbar__cta {
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.navbar__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.navbar__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* =========================================================
   HERO — Dropwake Studio (sticky, sin imágenes ni proporciones)
   ========================================================= */

.hero {
  position: sticky;
  top: var(--nav-h);          /* bajo la navbar */
  z-index: 1;
  margin-top: var(--nav-h);   /* posición de flujo = top del sticky (sin salto) */
  background: var(--bg);      /* #1C2024 — mismo valor exacto que body */
  overflow: hidden;           /* evita desbordes de la línea SVG */
}

/* Respiro generoso entre la navbar y el kicker/título */
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 88px) clamp(20px, 4vw, 48px) clamp(56px, 9vh, 104px);
}

/* El texto va por encima de la línea SVG */
.hero__text {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* Título gigante: DROP (blanco) + WAKE (azul), sin salto de línea */
.hero__wordmark {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 11vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hero__wordmark-drop { color: #F2F2F2; }
.hero__wordmark-wake { color: #0D6EFD; }

/* STUDIO: bajo el título, alineado a la izquierda */
.hero__studio {
  margin: clamp(6px, 1vw, 12px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.15vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Typewriter dinámico (mismo tamaño que el título de la intro) ---------- */

.hero__typewriter {
  margin: clamp(18px, 3vh, 34px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);   /* = .intro__title (valor exacto) */
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  min-height: 1.12em;
}

.hero__type-text {
  background: linear-gradient(90deg, #0D6EFD, #00B4D8, #F2F2F2);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.hero__cursor {
  color: #0D6EFD;
  animation: hero-cursor-blink 1s steps(1) infinite;
}

@keyframes hero-cursor-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cursor { animation: none; opacity: 1; }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: clamp(24px, 4vh, 40px) 0 0;
}

/* ---------- Línea curva (swoosh) + luz viajera ---------- */

.hero__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  width: 100%;
  height: auto;
  /* La proporción del viewBox evita deformar la curva y el punto de luz
     (con preserveAspectRatio="none" el círculo se volvía un elipse). */
  aspect-ratio: 1000 / 420;
  pointer-events: none;
}

.hero__curve {
  fill: none;
  stroke: #0D6EFD;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.35;                     /* base siempre visible, discreta */
  vector-effect: non-scaling-stroke; /* grosor constante al estirar el SVG */
}

.hero__spark {
  fill: currentColor;                /* el color lo controla la animación */
  color: #0D6EFD;
  filter: drop-shadow(0 0 8px currentColor);  /* resplandor suave, sin neón */
  animation: hero-spark-color 5s ease-in-out infinite;
}

@keyframes hero-spark-color {
  0%, 100% { color: #0D6EFD; }
  50%      { color: #F2F2F2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__spark { animation: none; opacity: 0.6; }
}

/* =========================================================
   SECCIÓN SIGUIENTE — sube por scroll y cubre el hero
   ========================================================= */

.intro {
  position: relative;
  z-index: 2;
  background: var(--bg);     /* mismo fondo exacto que body/hero */
  box-shadow: 0 -18px 36px -16px rgba(0, 0, 0, 0.18);
}

/* Velo translúcido progresivo: se intensifica de 0 a 1 con el scroll y
   oscurece suavemente el hero justo antes de que la sección lo cubra. */
.intro::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  z-index: 0;
  height: clamp(120px, 22vh, 280px);
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(28, 32, 36, 0) 100%
  );
  opacity: var(--intro-veil, 1);
}

.intro__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 48px 88px;
  text-align: center;
}

.intro__title {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  color: var(--text);
}
.intro__title .accent { color: var(--accent); }

.intro__text {
  max-width: 620px;
  font-size: clamp(0.95rem, 1.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

.hero__slogan {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__slogan span:last-child { color: var(--text); }

/* El resto de secciones también deben quedar por encima del hero fijo */
.services,
.web,
.geo,
.automation { z-index: 2; }

/* ---------- Botones globales (mismo estilo ya usado en el sitio) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: rgba(13, 110, 253, 0.08);
  border-color: var(--accent);
}

/* ---------- Móvil ---------- */

@media (max-width: 820px) {
  .hero__inner { padding: 64px 20px 56px; }
  .hero__wordmark { font-size: clamp(2.4rem, 13vw, 3.6rem); }
  /* La frase más larga puede ocupar 2 líneas en móvil: reservamos alto */
  .hero__typewriter { min-height: 2.24em; }

  /* La banda del SVG se ancla arriba para que la curva cruce el título
     igual que en desktop (centrada quedaba por debajo del texto). */
  .hero__line {
    top: 0;
    transform: none;
    margin-top: 12px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
  }
  .hero__actions .btn { width: 100%; }

  .intro__inner { padding: 56px 20px 72px; }

  .hero__slogan {
    flex-direction: column;
    gap: 6px;
    padding-top: 24px;
    font-size: 10px;
    letter-spacing: 3px;
  }
}
/* =========================================================
   SECCIÓN 2 — SERVICIOS (v3)
   Tres pilares: Desarrollo Web · GEO · Automatización e IA
   ========================================================= */

.services {
  position: relative;
  padding: 130px 48px 140px;
  background: linear-gradient(
    to bottom,
    var(--bg-deep) 0%,
    var(--bg) 24%,
    var(--bg) 100%
  );
}

.services__inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- Cabecera ---------- */
.services__header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}

.services__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.services__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}

.services__title {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 640px;
}
.services__title .accent { color: var(--accent); }

.services__lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  max-width: 400px;
  justify-self: end;
}

/* ---------- Grid de tarjetas ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(13, 110, 253, 0.06), transparent 55%),
    linear-gradient(168deg, rgba(28, 34, 38, 0.72), rgba(17, 20, 22, 0.9));
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 34px 70px -42px rgba(13, 110, 253, 0.4);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.service-card:hover::before { opacity: 1; }

/* ---------- Cabecera de tarjeta ---------- */
.service-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 0;
}

.service-card__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
}

.service-card__index {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(242, 242, 242, 0.07);
  user-select: none;
  transition: color 0.5s var(--ease);
}
.service-card:hover .service-card__index {
  color: rgba(13, 110, 253, 0.32);
}

/* ---------- Visual de tarjeta ---------- */
.service-card__visual {
  position: relative;
  margin: 22px 26px 0;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 30% -10%, rgba(13, 110, 253, 0.06), transparent 55%),
    var(--bg-deep);
}

/* ---------- Cuerpo ---------- */
.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}

.service-card__title {
  font-size: clamp(1.18rem, 1.3vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 14px;
}

.service-card__text {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-card__note {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 14px;
  color: rgba(242, 242, 242, 0.78);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-card__points {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 26px;
}

.service-card__points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.service-card__check {
  flex: 0 0 auto;
  width: 6px;
  height: 11px;
  margin-top: 4px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.service-card__cta span {
  transition: transform 0.3s var(--ease);
}
.service-card__cta:hover { color: var(--accent-hi); }
.service-card__cta:hover span { transform: translateX(6px); }

/* ---------- Visual WEB (mockup mini sitio) ---------- */
.vweb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% -20%, rgba(13, 110, 253, 0.16), transparent 55%),
    linear-gradient(180deg, #151B1F 0%, #0E1214 100%);
}
.vweb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(242, 242, 242, 0.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(242, 242, 242, 0.03) 0 1px, transparent 1px 28px);
  -webkit-mask-image: radial-gradient(90% 90% at 30% 0%, #000, transparent 78%);
          mask-image: radial-gradient(90% 90% at 30% 0%, #000, transparent 78%);
}

.vweb__glow {
  position: absolute;
  right: -24px;
  top: -18px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.16);
  filter: blur(34px);
  pointer-events: none;
}

.vweb__browser {
  position: absolute;
  top: 26px;
  left: 16px;
  right: 46px;
  height: 152px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(28, 32, 36, 0.92);
  box-shadow: 0 26px 44px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.vweb__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-soft);
}
.vweb__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(242, 242, 242, 0.16);
}
.vweb__url {
  margin-left: 6px;
  width: 96px;
  height: 10px;
  border-radius: 99px;
  background: rgba(242, 242, 242, 0.05);
  border: 1px solid var(--border-soft);
}
.vweb__site { padding: 12px 14px 10px; }
.vweb__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}
.vweb__brand {
  width: 52px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--text), rgba(242, 242, 242, 0.35));
  margin-right: auto;
}
.vweb__navline {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: rgba(242, 242, 242, 0.18);
}
.vweb__navline--cta {
  width: 30px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}
.vweb__hero {
  display: grid;
  gap: 7px;
  margin-bottom: 11px;
}
.vweb__hl {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(242, 242, 242, 0.5), rgba(242, 242, 242, 0.14));
}
.vweb__hl--main { width: 74%; height: 9px; }
.vweb__hl--sub { width: 52%; }
.vweb__pill {
  width: 52px;
  height: 13px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.45);
  margin-top: 2px;
}
.vweb__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.vweb__tile {
  height: 30px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background:
    linear-gradient(rgba(242, 242, 242, 0.06) 0 0) bottom 8px center / 60% 1px no-repeat,
    linear-gradient(180deg, rgba(28, 34, 38, 0.6), rgba(17, 20, 22, 0.9));
}

.vweb__phone {
  position: absolute;
  right: 10px;
  bottom: 12px;
  z-index: 2;
  width: 66px;
  height: 112px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(180deg, #141A1E, #0F1315);
  box-shadow:
    0 18px 30px -20px rgba(0, 0, 0, 0.8),
    0 0 24px -8px rgba(13, 110, 253, 0.35);
}
.vweb__phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 4px;
  border-radius: 99px;
  background: rgba(242, 242, 242, 0.14);
}
.vweb__pbar {
  height: 5px;
  border-radius: 3px;
  background: rgba(242, 242, 242, 0.12);
}
.vweb__pbar--lg { height: 7px; width: 78%; background: rgba(242, 242, 242, 0.32); }
.vweb__pbar--sm { width: 62%; }
.vweb__pbtn {
  width: 40px;
  height: 11px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
  margin-top: 4px;
}
.vweb__ptile {
  height: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
}

/* ---------- Visual GEO (preguntas → IA → plataformas) ---------- */
.vgeo {
  position: relative;
  height: 200px;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(13, 110, 253, 0.08), transparent 60%),
    linear-gradient(180deg, #151B1F 0%, #0E1214 100%);
}

.vgeo__lanes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vgeo__lane {
  fill: none;
  stroke: rgba(242, 242, 242, 0.11);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.vgeo__ia {
  position: absolute;
  left: 42%;
  top: 8%;
  width: 16%;
  height: 84%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px solid rgba(13, 110, 253, 0.4);
  border-radius: 12px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(13, 110, 253, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(28, 34, 38, 0.97), rgba(17, 20, 22, 0.97));
  box-shadow:
    0 0 26px -10px rgba(13, 110, 253, 0.65),
    inset 0 0 18px rgba(13, 110, 253, 0.08);
  z-index: 1;
}
.vgeo__ia::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(13, 110, 253, 0.5), transparent);
  opacity: 0.7;
}
.vgeo__ia-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 5px;
  text-indent: 5px;
  color: var(--text);
  text-shadow: 0 0 16px rgba(13, 110, 253, 0.8);
}
.vgeo__ia-line {
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.9);
  animation: vgeo-ia-pulse 3s var(--ease) infinite;
}
@keyframes vgeo-ia-pulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.7); }
  50%      { opacity: 1;    transform: scaleX(1); }
}

/* Preguntas (izquierda) y plataformas (derecha) */
.vgeo__q,
.vgeo__p {
  position: absolute;
  z-index: 1;
  transform: translateY(-50%);
}
.vgeo__q {
  left: 0;
  width: 34%;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: rgba(28, 32, 36, 0.92);
  font-size: 6.8px;
  font-weight: 600;
  letter-spacing: 0.8px;
  line-height: 1.55;
  text-transform: uppercase;
  text-align: center;
  color: rgba(242, 242, 242, 0.62);
}
.vgeo__q--1 { top: 22%; }
.vgeo__q--2 { top: 50%; }
.vgeo__q--3 { top: 78%; }

.vgeo__p {
  left: 72%;
  width: 28%;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 7px 4px 6px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: rgba(28, 32, 36, 0.92);
}
.vgeo__p--1 { top: 22%; }
.vgeo__p--2 { top: 50%; }
.vgeo__p--3 { top: 78%; }
.vgeo__p-icon {
  font-size: 12px;
  line-height: 1;
  color: var(--accent-hi);
}
.vgeo__p-name {
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.6);
}

/* Pulsos viajeros entre preguntas y plataformas */
.vgeo__pulse {
  position: absolute;
  z-index: 2;
  left: 36%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.9);
  transform: translateY(-50%);
  opacity: 0;
  animation: vgeo-travel 3.6s var(--ease) infinite;
}
.vgeo__pulse--1 { top: 22%; animation-delay: 0s; }
.vgeo__pulse--2 { top: 50%; animation-delay: 0.6s; }
.vgeo__pulse--3 { top: 78%; animation-delay: 1.2s; }
@keyframes vgeo-travel {
  0%   { left: 36%; opacity: 0; }
  8%   { opacity: 1; }
  40%  { opacity: 1; }
  50%  { opacity: 0.2; }
  60%  { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 72%; opacity: 0; }
}

/* ---------- Visual AUTOMATIZACIÓN (mini workflow) ---------- */
.vflow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 14px 14px 12px;
  background:
    radial-gradient(120% 90% at 90% 0%, rgba(13, 110, 253, 0.1), transparent 55%),
    linear-gradient(180deg, #151B1F 0%, #0E1214 100%);
}
.vflow__node {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 27px;
  padding: 5px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(28, 34, 38, 0.72), rgba(17, 20, 22, 0.9));
}
.vflow__icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(13, 110, 253, 0.4);
  border-radius: 50%;
  font-size: 9px;
  color: var(--accent-hi);
}
.vflow__name {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--text);
  white-space: nowrap;
}
.vflow__branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vflow__link {
  position: relative;
  flex: 0 0 auto;
  width: 1px;
  height: 10px;
  margin: 0 auto;
  background: rgba(242, 242, 242, 0.15);
}
.vflow__link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 5px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 6px rgba(13, 110, 253, 0.8);
  opacity: 0;
  animation: vflow-travel 3s var(--ease) infinite;
}
.vflow__link:nth-of-type(2)::after { animation-delay: 0.6s; }
.vflow__link:nth-of-type(3)::after { animation-delay: 1.2s; }
.vflow__link:nth-of-type(4)::after { animation-delay: 1.8s; }
@keyframes vflow-travel {
  0%   { top: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: calc(100% - 4px); opacity: 0; }
}

/* ---------- Servicios responsive ---------- */
@media (max-width: 1024px) {
  .services { padding: 110px 28px 120px; }
  .services__header { gap: 44px; margin-bottom: 56px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid .service-card:nth-child(3) { grid-column: 1 / -1; }

  .service-card:last-child .service-card__head,
  .service-card:last-child .service-card__body {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }
  .service-card:last-child .service-card__visual {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 820px) {
  .services { padding: 84px 20px 96px; }
  .services__header {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 44px;
  }
  .services__lead {
    justify-self: start;
    max-width: 560px;
    padding-left: 18px;
  }
  .services__grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card__head { padding: 22px 20px 0; }
  .service-card__visual { margin: 18px 20px 0; }
  .service-card__body { padding: 20px 20px 22px; }
}

@media (max-width: 480px) {
  .vweb { height: 190px; }
  .vweb__browser { right: 40px; }
  .vweb__phone { width: 58px; right: 8px; height: 100px; bottom: 10px; }
  .vgeo { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .vgeo__ia-line,
  .vgeo__pulse,
  .vflow__link::after { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .navbar { padding: 0 28px; }
  /* Etapa 2: con los 6 items, el menu horizontal no cabe por debajo de ~950 px.
     Se reduce el espacio entre items en la franja 901-1024 px; por debajo de
     901 px entra el menu movil (bloque siguiente). */
  .navbar__nav { gap: 20px; }
}

/* Móvil y tablet estrecha
   Etapa 2: entra en <=900 px (antes 820) porque el menu horizontal se aprieta
   por debajo de ~950 px. Los breakpoints del HERO siguen en 820 px: son
   bloques independientes (ver el bloque del hero, mas arriba). */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }

  .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .navbar__wordmark { display: none; }

  .navbar__nav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(18, 22, 25, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
  }
  .navbar__nav.is-open {
    max-height: 320px;
    padding: 12px 20px 20px;
  }
  .navbar__nav a {
    padding: 15px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .navbar__nav a::after { display: none; }
  .navbar__nav a:last-of-type { border-bottom: 0; }

  .navbar__nav-cta {
    display: block;
    margin-top: 14px;
    padding: 13px 20px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 0;
  }

}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   SECCIÓN 3 — WEB
   Texto izquierda + mockup inmobiliario derecha (solo CSS)
   ========================================================= */

.web {
  position: relative;
  padding: 120px 48px;
  background:
    radial-gradient(60% 50% at 85% 15%, rgba(13, 110, 253, 0.05) 0%, transparent 70%),
    var(--bg);
}

.web__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.web__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 88px;
  align-items: center;
}

/* ---------- Columna de texto ---------- */
.web__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.web__title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 480px;
}

.web__text {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 44px;
}

/* ---------- Mockup: marco de navegador ---------- */
.mock {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 48px 90px -48px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s var(--ease);
}
.mock:hover {
  transform: translateY(-4px);
}

/* Barra superior del navegador */
.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(17, 20, 22, 0.6);
  border-bottom: 1px solid var(--border-soft);
}
.mock__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(242, 242, 242, 0.14);
}
.mock__url {
  margin-left: 12px;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  background: rgba(242, 242, 242, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px 14px;
}

/* Mini header del sitio demo */
.mock__sitehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.mock__brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text);
}
.mock__nav {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

/* "Fotografía" de la propiedad — arte CSS, sin imágenes */
.mock__img {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(13, 110, 253, 0.20) 0%, transparent 55%),
    linear-gradient(200deg, #272E34 0%, #181D21 48%, #101417 100%);
  overflow: hidden;
}

/* Rejilla arquitectónica sutil (líneas de fachada) */
.mock__img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(242, 242, 242, 0.05) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg,  rgba(242, 242, 242, 0.04) 0 1px, transparent 1px 44px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 78%, transparent 100%);
}

/* Luz de ciudad en la esquina inferior */
.mock__img::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -35%;
  width: 70%;
  height: 85%;
  background: radial-gradient(closest-side, rgba(13, 110, 253, 0.22), transparent 70%);
  filter: blur(12px);
}

.mock__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 3px;
  padding: 5px 10px;
}

.mock__imgtag {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.45);
}

/* Ficha de la propiedad */
.mock__body {
  padding: 26px 22px 24px;
}

.mock__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.mock__loc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.mock__specs {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 18px;
}
.mock__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.mock__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mock__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.mock__price span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mock__btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 16px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mock__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =========================================================
   WEB — Fila de casos de uso compactos
   Reutiliza el marco .mock (borde, radio, barra de navegador)
   y muestra la captura del proyecto debajo de esa barra.
   ========================================================= */

.mock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* ≈32 % por tarjeta en desktop */
  gap: 16px;
  margin-top: 24px;
}

.mock--compact {
  display: flex;
  flex-direction: column;
}
.mock--compact .mock__bar { padding: 9px 12px; }
.mock--compact .mock__url { font-size: 10px; padding: 3px 10px; }

/* Captura del proyecto: ocupa todo el ancho bajo la barra, sin recorte
   ni distorsión (alto derivado de la proporción natural de la imagen). */
.mock__shot {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
}

/* Responsive: fila horizontal en desktop, columna en ≤1024 px */
@media (max-width: 1024px) {
  .mock-row {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
  }
}

/* ---------- Franja de características ---------- */
.web__features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 110px;
}

.web__features li {
  position: relative;
  padding: 26px 8px 0 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.web__features li + li {
  padding-left: 28px;
}
.web__features li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.web__features li:hover {
  color: var(--text);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .web { padding: 120px 28px; }
  .web__grid { gap: 56px; }
  .web__features { margin-top: 84px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
  .web { padding: 96px 20px; }

  .web__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .web__title { max-width: 100%; }
  .web__text  { max-width: 100%; }

  .web__features {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-top: 72px;
  }
  .web__features li + li { padding-left: 0; }
}

@media (max-width: 460px) {
  .web__features { grid-template-columns: 1fr; }
  .mock__footer { flex-direction: column; align-items: flex-start; }
  .mock__btn { width: 100%; text-align: center; }
}

/* =========================================================
   SECCIÓN 4 — GEO / AI VISIBILITY
   AI Visibility Flow: nodos + pulsos viajeros + tooltips
   ========================================================= */

.geo {
  position: relative;
  padding: 130px 48px;
  background:
    radial-gradient(50% 40% at 50% 45%, rgba(13, 110, 253, 0.04) 0%, transparent 70%),
    var(--bg);
}

.geo__inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- Cabecera ---------- */
.geo__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 110px;
}

.geo__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.geo__title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}

.geo__text {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ---------- Escenario del flujo ---------- */
.geo__stage {
  margin-bottom: 130px;
}

.geo__stage-tag {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 56px;
}
.geo__stage-tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}

/* ---------- Flujo horizontal ---------- */
.flow {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 56px;
}

.flow__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Reveal escalonado al entrar en viewport */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.geo__stage.is-live .flow__node { opacity: 1; transform: none; }
.flow__node:nth-child(1) { transition-delay: 0.05s; }
.flow__node:nth-child(2) { transition-delay: 0.15s; }
.flow__node:nth-child(3) { transition-delay: 0.25s; }
.flow__node:nth-child(4) { transition-delay: 0.35s; }
.flow__node:nth-child(5) { transition-delay: 0.45s; }
.flow__node:nth-child(6) { transition-delay: 0.55s; }

/* Conector (hairline) hacia el siguiente nodo */
.flow__node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(100% + 6px);
  width: 44px;
  height: 1px;
  background: var(--border);
}

/* Pulso azul viajero */
.flow__node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(100% + 6px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: geo-pulse-x 3s var(--ease) infinite;
  animation-play-state: paused;
  z-index: 1;
}
.geo__stage.is-live .flow__node:not(:last-child)::before {
  animation-play-state: running;
}
/* Delays escalonados: el pulso avanza nodo a nodo */
.flow__node:nth-child(1)::before { animation-delay: 0.2s; }
.flow__node:nth-child(2)::before { animation-delay: 0.7s; }
.flow__node:nth-child(3)::before { animation-delay: 1.2s; }
.flow__node:nth-child(4)::before { animation-delay: 1.7s; }
.flow__node:nth-child(5)::before { animation-delay: 2.2s; }

@keyframes geo-pulse-x {
  0%   { transform: translateX(0);    opacity: 0; }
  12%  { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { transform: translateX(44px); opacity: 0; }
}

/* ---------- Cajas de nodo ---------- */
.flow__box {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.3s var(--ease);
}

.flow__box--origin::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--text-dim);
  margin-right: 10px;
}

.flow__box--hot {
  cursor: help;
  text-decoration: underline dotted rgba(154, 164, 172, 0.5);
  text-underline-offset: 5px;
}
.flow__box--hot:hover,
.flow__box--hot:focus-visible {
  border-color: rgba(13, 110, 253, 0.55);
}

.flow__box--goal {
  border-color: rgba(13, 110, 253, 0.5);
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.04));
  color: var(--text);
}

/* ---------- Tooltip (hover / focus) ---------- */
.flow__tip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 2;
}
.flow__node:hover .flow__tip,
.flow__box:focus + .flow__tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Nodo Información con chips ---------- */
.flow__chips {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px;
  margin-top: 10px;
}
.flow__chips li {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 4px 9px;
  text-align: center;
}

/* ---------- Mensaje clave ---------- */
.geo__message {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.geo__statement {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 26px;
}
.geo__statement span { color: var(--accent); }

.geo__support {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 46px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .geo { padding: 130px 28px; }
  .flow { gap: 40px; }
  .flow__node:not(:last-child)::after { width: 30px; left: calc(100% + 5px); }
  .flow__node:not(:last-child)::before { left: calc(100% + 5px); }
  @keyframes geo-pulse-x {
    0%   { transform: translateX(0);    opacity: 0; }
    12%  { opacity: 0.9; }
    88%  { opacity: 0.9; }
    100% { transform: translateX(30px); opacity: 0; }
  }
  .geo__header { margin-bottom: 84px; }
  .geo__stage { margin-bottom: 100px; }
}

/* ---------- Móvil: flujo vertical ---------- */
@media (max-width: 900px) {
  .flow {
    flex-direction: column;
    align-items: center;
    gap: 44px;
  }

  /* Conector vertical */
  .flow__node:not(:last-child)::after {
    top: calc(100% + 6px);
    left: 50%;
    width: 1px;
    height: 32px;
  }

  /* Pulso vertical */
  .flow__node:not(:last-child)::before {
    top: calc(100% + 6px);
    left: 50%;
    margin-left: -2px;
    animation-name: geo-pulse-y;
  }

  @keyframes geo-pulse-y {
    0%   { transform: translateY(0);    opacity: 0; }
    12%  { opacity: 0.9; }
    88%  { opacity: 0.9; }
    100% { transform: translateY(32px); opacity: 0; }
  }

  /* Tooltip a un lado en vertical para no tapar el nodo superior */
  .flow__tip {
    bottom: auto;
    top: 4px;
    left: calc(100% + 14px);
    transform: translate(0, 6px);
  }
  .flow__node:hover .flow__tip,
  .flow__box:focus + .flow__tip {
    transform: translate(0, 0);
  }

  .geo__header { margin-bottom: 72px; }
  .geo__stage { margin-bottom: 90px; }
}

@media (max-width: 480px) {
  .geo { padding: 100px 20px; }
  .flow__chips { grid-template-columns: repeat(2, auto); }
}

/* =========================================================
   PATCH v2 — ritmo vertical, overflow móvil y labels
   ========================================================= */

/* --- Seguridad estructural anti-overflow --- */
html, body { overflow-x: clip; }

.web__copy,
.web__mock,
.mock,
.service-card,
.flow__node { min-width: 0; }
.mock { max-width: 100%; }

/* --- Labels con más presencia editorial --- */
.web__label,
.geo__label {
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

/* --- Tablet: ritmo ligeramente más contenido --- */
@media (max-width: 1024px) {
  .web      { padding: 110px 28px; }
  .geo      { padding: 120px 28px; }
}

/* --- Flujo GEO vertical desde 960px (evita apretón horizontal) --- */
@media (max-width: 960px) {
  .flow {
    flex-direction: column;
    align-items: center;
    gap: 44px;
  }
  .flow__node:not(:last-child)::after {
    top: calc(100% + 6px);
    left: 50%;
    width: 1px;
    height: 32px;
  }
  .flow__node:not(:last-child)::before {
    top: calc(100% + 6px);
    left: 50%;
    margin-left: -2px;
    animation-name: geo-pulse-y;
  }
}

/* --- Móvil: ritmo vertical −30% y hero emergente --- */
@media (max-width: 820px) {
  .web { padding: 64px 20px; }
  .web__grid { gap: 48px; }
  .web__text { margin-bottom: 34px; }
  .web__features { margin-top: 56px; gap: 22px 16px; }

  .geo { padding: 72px 20px 80px; }
  .geo__header { margin-bottom: 52px; }
  .geo__stage  { margin-bottom: 72px; }
  .geo__stage-tag { margin-bottom: 40px; }
  .geo__statement { margin-bottom: 20px; }
  .geo__support   { margin-bottom: 36px; }

}

/* --- Tooltips centrados en vertical: eliminan el overflow --- */
@media (max-width: 900px) {
  .flow__tip {
    top: auto;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 6px);
    max-width: 78vw;
    white-space: normal;
    text-align: center;
  }
  .flow__node:hover .flow__tip,
  .flow__box:focus + .flow__tip {
    transform: translate(-50%, 0);
  }
}

/* =========================================================
   SECCIÓN 5 — AUTOMATIZACIÓN
   Workflow Dropwake #01: interacción manual, sin librerías
   ========================================================= */

.automation {
  position: relative;
  padding: 130px 48px;
  background:
    radial-gradient(55% 65% at 82% 45%, rgba(13, 110, 253, 0.08), transparent 72%),
    var(--bg-deep);
}

.automation__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.automation__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 72px;
  align-items: center;
}

.automation__label,
.automation__stage-label {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.automation__title {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.automation__text {
  max-width: 500px;
  margin-bottom: 40px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
}

.automation .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.automation .btn:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
}

.automation__stage {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(28, 34, 38, 0.9), rgba(17, 20, 22, 0.96));
  box-shadow: 0 36px 80px -55px rgba(13, 110, 253, 0.72);
}

.automation__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(13, 110, 253, 0.05), transparent 35%);
}

.automation__stage-head,
.automation__status,
.automation__hint,
.workflow,
.automation__complete {
  position: relative;
  z-index: 1;
}

.automation__stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.automation__stage-label { margin-bottom: 6px; font-size: 14px; letter-spacing: 2.6px; }

.automation__case {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.automation__status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.automation__status.is-running,
.automation__status.is-complete {
  border-color: rgba(13, 110, 253, 0.55);
  color: var(--accent-hi);
}

.automation__hint {
  margin: 20px 0 26px;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

.automation__prompt {
  margin: 20px 0 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.automation__prompt + .automation__hint { margin-top: 0; }

.automation__hint.is-warning { color: var(--accent-hi); }

.workflow__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: center;
}

.workflow__branch-map {
  display: block;
  width: 100%;
  height: 58px;
}

.workflow__branch-trunk,
.workflow__branch-path {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s var(--ease);
}

.workflow__branch-trunk.is-active,
.workflow__branch-path.is-active { stroke: rgba(13, 110, 253, 0.62); }

.workflow__branch-path.is-traveling {
  stroke: var(--accent-hi);
  stroke-dasharray: 4 7;
  animation: automation-data-path 0.85s linear both;
}

.workflow__node {
  display: flex;
  min-width: 0;
  min-height: 92px;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(17, 20, 22, 0.64);
  color: var(--text-dim);
  font: inherit;                          /* tamaño/peso heredados del contexto */
  font-family: var(--font-display);       /* tipografía de marca en botones */
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.workflow__node:hover,
.workflow__node:focus-visible {
  border-color: rgba(13, 110, 253, 0.5);
  color: var(--text);
}

.workflow__node--start {
  border-color: rgba(13, 110, 253, 0.42);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.05);
}

.workflow[data-state="idle"] .workflow__node--start .workflow__icon {
  animation: automation-start-signal 2.2s var(--ease) infinite;
}

.workflow__icon {
  display: inline-grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 14px;
}

.workflow__node-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workflow__node strong {
  color: inherit;
  font-size: 10px;
  letter-spacing: 1.4px;
}

.workflow__node small {
  overflow: hidden;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow__connector,
.workflow__branch-line {
  position: relative;
  display: block;
  height: 1px;
  background: var(--border);
}

.workflow__connector::after,
.workflow__branch-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-hi);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.workflow__connector.is-active,
.workflow__branch-line.is-active { background: rgba(13, 110, 253, 0.62); }

.workflow__connector.is-traveling::after,
.workflow__branch-line.is-traveling::after {
  animation: automation-data-x 0.85s linear both;
}

.workflow__branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin: 0 0 42px;
  padding-top: 0;
}

.workflow__branch-line { display: none; }

.workflow__branches::after {
  content: "";
  position: absolute;
  right: calc(25% - 9px);
  bottom: -42px;
  left: calc(25% - 9px);
  height: 42px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.workflow__branches.is-converging::after { border-color: rgba(13, 110, 253, 0.62); }

.workflow__finish {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.workflow__finish::before {
  content: "";
  position: absolute;
  top: -42px;
  left: 50%;
  width: 1px;
  height: 42px;
  background: var(--border);
}

.workflow__finish.is-active::before { background: rgba(13, 110, 253, 0.62); }

/* DATABASE centrado: la unión se convierte en tramo vertical central */
.workflow__connector--join {
  position: relative;
  width: 1px;
  height: 14px;
  margin: 0 auto;
}
.workflow__connector--join::after {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.workflow__connector--join.is-traveling::after { animation-name: automation-data-y; }
.workflow__node--database { justify-self: center; }

.workflow__result-connector {
  position: relative;
  display: block;
  width: 1px;
  height: 30px;
  margin: 14px auto 0;
  background: var(--border);
}

.workflow__result-connector::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-hi);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.workflow__result-connector.is-active { background: rgba(13, 110, 253, 0.62); }
.workflow__result-connector.is-traveling::after { animation: automation-data-y 0.85s linear both; }

.workflow__node.is-active {
  border-color: rgba(13, 110, 253, 0.8);
  background: linear-gradient(145deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.05));
  box-shadow: 0 0 26px -11px rgba(13, 110, 253, 0.9), inset 0 0 0 1px rgba(13, 110, 253, 0.12);
  color: var(--text);
  animation: automation-node-active 0.75s var(--ease) both;
}

.workflow__node.is-active .workflow__icon {
  border-color: rgba(13, 110, 253, 0.65);
  color: var(--accent-hi);
}

.workflow__node.is-active small { color: rgba(242, 242, 242, 0.72); }

.workflow__node.is-completed {
  border-color: rgba(13, 110, 253, 0.5);
  background: rgba(13, 110, 253, 0.07);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
  color: var(--text);
}

.workflow__node.is-completed .workflow__icon {
  border-color: rgba(13, 110, 253, 0.46);
  color: var(--accent-hi);
}

.workflow__node.is-completed small { color: rgba(242, 242, 242, 0.64); }

.automation__complete {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
}

.automation__complete[hidden] { display: none; }

.automation__complete.is-complete strong {
  animation: automation-complete-pulse 1s var(--ease) both;
}

.automation__complete strong { color: var(--accent-hi); font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; }
.automation__complete span { color: var(--text-dim); font-size: 0.8rem; }

.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;
}

@keyframes automation-data-x {
  0% { opacity: 0; transform: translate(-50%, -50%); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(100% + 22px), -50%); }
}

@keyframes automation-start-signal {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
  50% { box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.12); }
}

@keyframes automation-data-path {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -34; }
}

@keyframes automation-complete-pulse {
  0% { text-shadow: 0 0 0 rgba(13, 110, 253, 0); }
  50% { text-shadow: 0 0 18px rgba(13, 110, 253, 0.75); }
  100% { text-shadow: 0 0 0 rgba(13, 110, 253, 0); }
}

@keyframes automation-node-active {
  0% { transform: scale(0.985); }
  55% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@media (max-width: 1024px) {
  .automation { padding: 110px 28px; }
  .automation__grid { gap: 48px; }
}

@media (max-width: 820px) {
  .automation { padding: 72px 20px 80px; }
  .automation__grid { grid-template-columns: 1fr; gap: 48px; }
  .automation__title { max-width: none; }
  .automation__stage { padding: 20px; }
  .automation__stage-head { align-items: center; }
  .automation__status { font-size: 8px; }
  /* Workflow #01 — tamaño mobile aprobado */
  .automation__stage-label { font-size: 12px; letter-spacing: 3px; }
  .workflow__main,
  .workflow__branches,
  .workflow__finish {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .workflow__branch-map { display: none; }
  .workflow__node { width: 100%; min-height: 64px; }
  .workflow__connector,
  .workflow__branch-line {
    width: 1px;
    height: 28px;
    margin: 0 auto;
  }
  .workflow__connector::after,
  .workflow__branch-line::after {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .workflow__connector.is-traveling::after,
  .workflow__branch-line.is-traveling::after { animation-name: automation-data-y; }
  .workflow__branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 38px;
    padding-top: 28px;
  }
  .workflow__branches::before {
    content: "";
    position: absolute;
    top: -28px;
    right: 25%;
    left: 25%;
    height: 28px;
    background:
      linear-gradient(var(--border), var(--border)) center top / 1px 28px no-repeat,
      linear-gradient(var(--border), var(--border)) center bottom / 100% 1px no-repeat;
  }
  .workflow__branches.is-active::before {
    background:
      linear-gradient(rgba(13, 110, 253, 0.62), rgba(13, 110, 253, 0.62)) center top / 1px 28px no-repeat,
      linear-gradient(rgba(13, 110, 253, 0.62), rgba(13, 110, 253, 0.62)) center bottom / 100% 1px no-repeat;
  }
  .workflow__branches::after {
    display: block;
    right: 25%;
    bottom: -38px;
    left: 25%;
    height: 38px;
  }
  .workflow__finish::before { display: none; }
  .workflow__branch-line {
    position: absolute;
    top: 0;
    display: block;
    width: 1px;
    height: 28px;
    margin: 0;
  }
  .workflow__branch-line:nth-child(1) { left: 25%; }
  .workflow__branch-line:nth-child(3) { left: 75%; }
  .workflow__connector--join { display: block; }
  .workflow__node--database { width: 100%; }
  .workflow__result-connector { margin: 14px auto 0; }
}

@keyframes automation-data-y {
  0% { opacity: 0; transform: translate(-50%, -50%); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, calc(100% + 24px)); }
}

@media (prefers-reduced-motion: reduce) {
  .workflow__node--start .workflow__icon { animation: none; }
  .workflow__connector.is-traveling::after,
  .workflow__branch-line.is-traveling::after,
  .workflow__result-connector.is-traveling::after,
  .workflow__branch-path.is-traveling,
  .automation__complete.is-complete strong,
  .workflow__node.is-active { animation: none; }
}

/* ============================================================
   ESPACIADO VERTICAL ENTRE SECCIONES (compacto y coherente)
   Solo ajusta margin/padding verticales. No toca la transición
   del banner, colores, tipografías, imágenes ni contenido.
   Se coloca al final para que sus valores prevalezcan en cascada.
   ============================================================ */

/* --- Desktop (≥1025) — lados conservados en 48px --- */
@media (min-width: 1025px) {
  .intro__inner { padding: 72px 48px 56px; }   /* antes: 64px 48px 52px */
  .services            { padding: 60px 48px 64px; }   /* antes: 80px 48px 88px */
  .web                 { padding: 56px 48px; }        /* antes: 76px 48px */
  .geo                 { padding: 64px 48px; }        /* antes: 84px 48px */
  .automation          { padding: 64px 48px; }        /* antes: 84px 48px */
}

/* --- Tablet (821–1024) — lados conservados en 28px --- */
@media (min-width: 821px) and (max-width: 1024px) {
  .intro__inner { padding: 72px 48px 56px; }   /* antes: 64px 48px 52px */
  .services            { padding: 54px 28px 60px; }   /* antes: 72px 28px 80px */
  .web                 { padding: 56px 28px; }        /* antes: 76px 28px */
  .geo                 { padding: 60px 28px; }        /* antes: 80px 28px */
  .automation          { padding: 60px 28px; }        /* antes: 80px 28px */
}

/* --- Móvil / tablet pequeña (≤820) — lados conservados en 20px --- */
@media (max-width: 820px) {
  .intro__inner { padding: 56px 20px 44px; }   /* antes: 60px 20px 40px */
  .services            { padding: 42px 20px 44px; }   /* antes: 56px 20px 60px */
  .web                 { padding: 36px 20px; }        /* antes: 48px 20px */
  .geo                 { padding: 40px 20px 44px; }   /* antes: 52px 20px 60px */
  .automation          { padding: 42px 20px 48px; }   /* antes: 56px 20px 64px */
}

/* =========================================================
   LIGHTBOX — ampliación de los mockups de casos de uso
   ========================================================= */

/* El botón que envuelve cada captura: sin estilos por defecto */
.mock__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.mock__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox {
  /* El reset global (* { margin: 0 }) anulaba el `margin: auto` del UA y el
     diálogo quedaba pegado a la esquina. Con inset + margin auto, el modal
     se centra en ambos ejes y flota por encima del contenido. */
  position: fixed;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox__img {
  display: block;
  margin: 0 auto;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #F2F2F2;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
}

.lightbox__caption {
  text-align: center;
  color: #9AA4AC;
  margin-top: 12px;
  font-size: 0.9rem;
}

/* ---------- Indicador de los mockups (ARRIBA de la fila) ---------- */

/* Texto plano y sutil: sin borde, sin fondo, sin padding ni forma de píldora.
   Aplica a todos los breakpoints (desktop, tablet y móvil).
   Márgenes: AIRE ARRIBA (separación de la tarjeta Aura) y PEGADO ABAJO
   (8 px hasta la fila de mockups). */
.mock-hint {
  display: flex;
  align-items: center;        /* alinea el icono ⤢ con el texto */
  justify-content: center;
  gap: 6px;
  width: fit-content;         /* centrado real dentro de un contenedor alineado a la izquierda */
  max-width: 100%;
  margin: 36px auto 8px;      /* tablet 821–1024 px */
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;         /* tablet 821–1024 px */
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* Desktop: aire arriba algo mayor (tablet y móvil conservan su tamaño) */
@media (min-width: 1025px) {
  .mock-hint {
    margin-top: 48px;
    font-size: 1.15rem;
  }
}

/* Móvil: menos aire arriba, pero igualmente pegado a los mockups */
@media (max-width: 820px) {
  .mock-hint {
    margin: 28px auto 8px;
    font-size: 1rem;
  }
}

/* La fila NO aporta margen propio cuando va precedida del indicador:
   el espacio inferior lo define exactamente el margin-bottom de .mock-hint
   (evita que el `margin-top` de .mock-row sume y lo aleje de los mockups). */
.mock-hint + .mock-row {
  margin-top: 0;
}

/* ============================================================
   ANCLA CON NAVBAR FIJO
   Sin esto, al saltar a un ancla (#contacto, #servicios...) el destino
   queda 76 px por debajo del navbar fijo. Afecta solo al salto de ancla,
   no al scroll normal. Añadido en la Etapa 2 (excepcion aprobada del plan).
   ============================================================ */
html { scroll-padding-top: var(--nav-h); }

/* ============================================================
   PRUEBA VISUAL — más respiro en el fondo (reversible)
   Se hace por OVERRIDE al final del archivo para respetar la regla
   append-only: la zona de las líneas 1-475 (tokens, reset, navbar,
   hero, intro, botones) queda intacta. Los valores originales siguen
   en :root; estos los sustituyen por cascada (mismo especificidad,
   más abajo en el archivo).

   Para revertir: git revert del commit, o borrar este bloque.
   ============================================================ */
:root {
  --bg:      #26292f;   /* antes #1C2024 */
  --surface: #33373f;   /* antes #1C2226 */
  --bg-deep: #1e2126;   /* antes #111416 */
}

/* (a) Tarjetas de servicios: fondo con --surface en lugar del degradado fijo
   oscuro que traían. Se conserva el halo azul del diseño original. */
.service-card {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(13, 110, 253, 0.06), transparent 55%),
    var(--surface);
}

/* (c) Navbar: fondo translúcido derivado del --bg nuevo (mismo 72 % que antes).
   El desenfoque y el borde inferior se conservan: solo cambia el color. */
.navbar {
  background: rgba(38, 41, 47, 0.72);
}

/* (1) Visuales internos de las tarjetas. Antes: degradado fijo casi negro
   (#151B1F -> #0E1214). Ahora: degradado entre --bg-deep y --bg, que son los
   tonos de capa profunda del sistema nuevo. Se conserva el halo azul propio
   de cada visual (extraido del propio archivo, sin retipear). */
.vweb {
  background:
    radial-gradient(120% 90% at 12% -20%, rgba(13, 110, 253, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}
.vgeo {
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(13, 110, 253, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}
.vflow {
  background:
    radial-gradient(120% 90% at 90% 0%, rgba(13, 110, 253, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

/* (2) Panel movil del menu: mismo criterio que la navbar. Va DENTRO de la
   media query de 900 px para no dar fondo al menu de escritorio (que es
   transparente por diseño). */
@media (max-width: 900px) {
  .navbar__nav {
    background: rgba(38, 41, 47, 0.97);
  }
}

/* (4) Eyebrow de las tarjetas de servicios: --accent-hi da mas contraste
   sobre la superficie nueva. Solo este texto; el resto del azul no se toca. */
.service-card__eyebrow {
  color: var(--accent-hi);
}

/* ============================================================
   UNIFICACIÓN TOTAL AL SISTEMA DE GRISES
   Objetivo: el fondo de TODA la web en --bg (#26292f) y las
   superficies en --surface (#33373f), solo donde hay tarjetas.
   Sin capas intermedias ni restos de negro.
   Append-only: la zona de líneas 1-475 sigue intacta.
   ============================================================ */

/* Secciones: todas planas en --bg. El degradado de entrada de Servicios
   era lo que se veía como "rectángulo" molesto. Se conservan los halos
   azules decorativos de cada sección. */
.services {
  background: var(--bg);
}
.automation {
  background:
    radial-gradient(55% 65% at 82% 45%, rgba(13, 110, 253, 0.08), transparent 72%),
    var(--bg);
}

/* Panel del workflow: es una superficie (tarjeta) -> --surface.
   Sus nodos: chip claro sobre la superficie, para que se lean como
   botones elevados. Los estados activo/completado no se tocan (tienen
   mayor especificidad y siguen pintándose en azul). */
.automation__stage {
  background: var(--surface);
}
.workflow__node {
  background: rgba(242, 242, 242, 0.05);
}

/* Marco del mockup de Aura: la barra del navegador pasa a la familia del
   --bg en vez del casi negro rgba(17,20,22,0.6). */
.mock__bar {
  background: rgba(38, 41, 47, 0.6);
}

/* Placeholder del render de Aura: de casi negro a un gris neutro de la
   familia. Se conservan el halo azul, la rejilla arquitectónica y la luz
   inferior (son ::before / ::after y no se tocan). */
.mock__img {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(13, 110, 253, 0.20) 0%, transparent 55%),
    linear-gradient(200deg, #3a4048 0%, #2f333a 48%, #26292f 100%);
}

/* ============================================================
   NAVBAR EN MOVIL: el wordmark se queda visible
   Antes, en <=900 px se ocultaban wordmark, enlaces y boton, y el
   navbar quedaba solo con la hamburguesa. Ahora el wordmark sigue a
   la izquierda y la hamburguesa a la derecha; los enlaces y el boton
   "Hablemos" siguen dentro del panel desplegable (sin cambios).
   Append-only: gana por orden a la regla .navbar__wordmark de la
   zona de <=900 px, que tiene la misma especificidad.
   Medido con la tipografia real: el wordmark ocupa 147,3 px y en
   390 px de ancho dejan 286 px libres tras padding, gap y hamburguesa.
   ============================================================ */
@media (max-width: 900px) {
  .navbar__wordmark {
    display: flex;
  }
}

/* ============================================================
   BLOQUE C (1) — CONTRASTE DE TEXTO
   --text-dim sube de #9AA4AC a #B0B8BF: el gris se perdia dentro de
   las tarjetas. Contraste medido con la formula WCAG 2.1:
     sobre --bg (#26292f):      5,75:1  ->  7,26:1   (AAA)
     sobre --surface (#33373f): 4,71:1  ->  5,94:1   (AA holgado)
   Tambien mejora el copyright del footer, que va con opacity 0.8
   (compuesto sobre --bg): 4,2:1 aprox -> 5,18:1.
   Append-only: el valor original sigue en el :root de la cabecera.
   ============================================================ */
:root {
  --text-dim: #B0B8BF;
}

/* ============================================================
   BLOQUE C (2) — FOOTER (opcion B)
   Marca + punto de luz, navegacion en dos subcolumnas, separador
   azul y bloque inferior a dos extremos.
   ============================================================ */

/* Tres columnas visuales: marca | servicios | estudio.
   OJO con el prefijo .site-footer: pages.css se enlaza DESPUES de style.css
   y tiene .site-footer__inner (0,1,0) con grid-template-columns: 1.4fr 1fr.
   Con la misma especificidad ganaria pages.css por orden, asi que estos
   overrides necesitan una clase mas (0,2,0) para imponerse. */
.site-footer .site-footer__inner {
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Marca + punto de luz en la misma linea.
   font-family: la marca va en Space Grotesk, como la del navbar.
   (Antes heredaba la pila del sistema: .navbar tiene --font-display pero
   .site-footer no, asi que el wordmark del pie no coincidia con el de
   arriba. Verificado: a 100 px, "Dropwake" mide 481,50 px en Space Grotesk
   y 480,22 px en Segoe UI [-0,27 %], asi que el layout no se mueve.) */
.site-footer__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}

/* Punto de luz: 6 px, --accent, ESTATICO.
   Sin keyframes, sin animateMotion, sin transition: solo presencia.
   El halo es fijo; es lo que hace que lea como "luz" y no como un
   cuadro de color. */
.site-footer__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(13, 110, 253, 0.75);
}

/* Navegacion: dos subcolumnas dentro de la columna del nav.
   Los titulos van en --text (13,02:1, AAA) y los enlaces en
   --text-dim (7,26:1): jerarquia clara y sin tokens nuevos.
   El prefijo .site-footer es necesario por el gap (pages.css lo fija
   en 12px con la misma especificidad y carga despues). */
.site-footer .site-footer__nav {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.site-footer__group {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.site-footer__nav .site-footer__group-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--text);
}
/* Hover azul. El prefijo .site-footer lo lleva a (0,3,1) porque pages.css
   fija .site-footer__nav a:hover en --text con (0,2,1) y carga despues. */
.site-footer .site-footer__nav a:hover { color: var(--accent-hi); }

/* Hueco PREVISTO para los iconos de redes sociales + correo, aun sin
   contenido: no ocupa pixeles porque no hay elemento que lo use. Cuando
   existan, basta con anadir <div class="site-footer__social"> y ya
   heredan separacion, tamano y estados. */
.site-footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 24px;
  margin-top: 20px;
}
.site-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.site-footer__social a:hover { color: var(--accent-hi); }

/* Separador: la linea ya existia en el borde superior del bloque
   inferior (mismo ancho que la columna de contenido). Solo cambia el
   color, de --border-soft a --accent al 30 %. El prefijo .site-footer es
   imprescindible: pages.css declara ahi `border-top: 1px solid
   var(--border-soft)` (taquigrafia que incluye el color) con la misma
   especificidad y carga despues, asi que sin el prefijo el azul no se ve. */
.site-footer .site-footer__bottom {
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px 32px;
  border-top-color: rgba(13, 110, 253, 0.3);
}
.site-footer .site-footer__legal { text-align: right; }

/* ---------- Footer: móvil ----------
   Orden apilado: marca + punto -> eslogan -> servicios -> estudio ->
   linea -> aviso legal + copyright. */
@media (max-width: 820px) {
  /* El .inner tambien necesita override propio: al subir su especificidad
     para ganar en escritorio, tambien gana al `1fr` que pages.css aplica
     en <=820 px, y sin esta linea el pie se quedaria en 3 columnas. */
  .site-footer .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .site-footer__nav { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .site-footer__bottom { grid-template-columns: 1fr; gap: 8px; }
  .site-footer .site-footer__legal { text-align: left; }
}

/* ============================================================
   RENDER REAL DE AURA — sustituye el placeholder de arte CSS
   El hueco de 16:9 pasa del div .mock__img a la propia imagen, asi que el
   aspect-ratio lo declara la imagen y no hace falta neutralizar nada.
   Las reglas .mock__img / .mock__img::before / .mock__img::after /
   .mock__badge / .mock__imgtag SIGUEN en el archivo (append-only) pero
   quedan INERTES: ya no hay ningun elemento con esas clases.
   Nota: pages.css no tiene reglas .mock__*, asi que aqui no existe el
   riesgo de cascada que si hubo con el footer.
   ============================================================ */
.mock__photo {
  display: block;
  width: 100%;
  /* height: auto es IMPRESCINDIBLE, no cosmetico: los atributos width/height
     del HTML son "presentational hints" que fijan height:768px. Con la altura
     definida y el ancho al 100%, el aspect-ratio se IGNORA (solo actua cuando
     una de las dos dimensiones es auto) y la caja salia 100% x 768 px, es
     decir la imagen estirada en vertical. Declarando height:auto gana esta
     regla y el hueco vuelve a ser exactamente 16:9. */
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;      /* recorte minimo: 1376/768 = 1,792 frente a 1,778 */
  object-position: center;
}
