/* =============================================================
   DGB Marketing — styles.css
   Dark data-driven B2B landing · v20260722
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* color */
  --bg:      #060B16;
  --bg-2:    #0A1120;
  --bg-3:    #0D1626;
  --ink:     #E9F1FB;
  --mute:    #93A3BC;
  --dim:     #5A6B85;
  --cyan:    #00E5FF;
  --green:   #00FF87;
  --lime:    #7ED321;
  --red:     #FF5A65;
  --line:    rgba(147, 163, 188, 0.14);
  --grad:    linear-gradient(100deg, #00E5FF 0%, #00F0A8 52%, #7ED321 100%);

  /* type */
  --display: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 76px;
  --radius: 18px;

  /* motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--cyan); color: #04121A; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: normal;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--grad);
  margin-right: 0.6rem;
  vertical-align: baseline;
}

/* =============================================================
   4. Typography
   ============================================================= */
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 700;
  max-width: 24ch;
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { color: var(--ink); }
.section-sub {
  margin-top: 0.9rem;
  max-width: 52ch;
  font-size: 1.02rem;
  color: var(--mute);
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
              background-color 0.3s var(--ease-out);
  will-change: transform;
}

.btn-primary {
  background: var(--grad);
  color: #04121A;
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 229, 255, 0.32), 0 4px 14px rgba(126, 211, 33, 0.22);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border: 1px solid rgba(147, 163, 188, 0.28);
  color: var(--ink);
  background: rgba(233, 241, 251, 0.02);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.62rem 1.15rem; font-size: 0.88rem; border-radius: 10px; }
/* Botón de ancho completo: el padding lateral no hace falta y roba espacio al texto */
.btn-block { width: 100%; padding-inline: 1rem; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.07);
}

/* Badge del hero — algo más grande y presente */
.badge-hero {
  font-size: clamp(0.82rem, 1.05vw, 0.92rem);
  font-weight: 600;
  padding: 0.62rem 1.35rem;
  letter-spacing: 0.18em;
}

/* --- Lists with markers --- */
.list-check li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.05em;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--green);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft),
              backdrop-filter 0.35s var(--ease-soft);
  border-bottom: 1px solid transparent;
  background: transparent;
}
.nav.is-scrolled {
  background: rgba(6, 11, 22, 0.9);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-scrolled {
    background: rgba(6, 11, 22, 0.72);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo img { width: 150px; height: auto; }

.nav-links {
  display: none;
  gap: 2.2rem;
}
.nav-links a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--mute);
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu panel */
.nav-links.is-open {
  display: flex;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  flex-direction: column;
  gap: 0;
  background: rgba(6, 11, 22, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.25rem;
}
.nav-links.is-open a {
  padding: 0.9rem 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(147, 163, 188, 0.08);
}
.nav-links.is-open a::after { display: none; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: clip;
  background: var(--bg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 241, 251, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 241, 251, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle 480px at var(--mx, 38%) var(--my, 34%), rgba(0, 229, 255, 0.16) 0%, transparent 62%),
    radial-gradient(circle 560px at calc(var(--mx, 38%) + 22%) calc(var(--my, 34%) + 16%), rgba(126, 211, 33, 0.12) 0%, transparent 62%),
    radial-gradient(circle 700px at 78% 12%, rgba(0, 255, 135, 0.05) 0%, transparent 60%);
  filter: blur(60px) saturate(130%);
  animation: glowBreath 12s var(--ease-soft) infinite;
  pointer-events: none;
}
@keyframes glowBreath {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(2rem, 5vh, 4rem)) var(--gutter) clamp(2rem, 5vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 1.4rem;
  max-width: 20ch;
}
.hero-title em { font-style: normal; }

.hero-sub {
  margin-top: 1.3rem;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--mute);
}
/* una oración por línea: el corte natural partía la segunda al medio */
.hero-sub span { display: block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.9rem;
}


/* --- Ticker --- */
.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 17, 32, 0.6);
  overflow: clip;
  padding-block: 0.85rem;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  padding-right: 3rem;
  will-change: transform;
}
html.is-ready .ticker-track.is-cloned {
  animation: tickerScroll 36s linear infinite;
}
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.ticker-track span::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2.5px;
  flex-shrink: 0;
}
/* Todos los términos por igual: el ticker enumera lo que miramos, no
   contrapone métricas buenas contra malas. El color lo dan los puntos,
   que recorren el degradé de la marca de principio a fin. */
.ticker-track span { color: var(--mute); }
.ticker-track span:nth-child(12n+1)::before { background: #00E5FF; }
.ticker-track span:nth-child(12n+2)::before { background: #00E7F0; }
.ticker-track span:nth-child(12n+3)::before { background: #00E9E1; }
.ticker-track span:nth-child(12n+4)::before { background: #00EBD1; }
.ticker-track span:nth-child(12n+5)::before { background: #00EDC2; }
.ticker-track span:nth-child(12n+6)::before { background: #00EFB3; }
.ticker-track span:nth-child(12n+7)::before { background: #07EEA1; }
.ticker-track span:nth-child(12n+8)::before { background: #1FE987; }
.ticker-track span:nth-child(12n+9)::before { background: #36E36E; }
.ticker-track span:nth-child(12n+10)::before { background: #4EDE54; }
.ticker-track span:nth-child(12n+11)::before { background: #66D83B; }
.ticker-track span:nth-child(12n+12)::before { background: #7ED321; }

/* --- Sections base --- */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}

/* --- Estándar / Enfoque --- */
.standard { background: var(--bg-2); }

.standard-grid {
  display: grid;
  gap: 1.5rem;
}

.metrics-panel,
.pillars-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
}

/* Panel de métricas */
.metrics-panel {
  background: rgba(233, 241, 251, 0.02);
  border: 1px solid var(--line);
}
.metrics-panel h3 {
  font-size: 1.15rem;
  max-width: 22ch;
  margin-bottom: 1.7rem;
}

.metric-group + .metric-group { margin-top: 1.8rem; }

.metric-group-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
}
.metric-group-title::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.metric-group-title.is-priority { color: var(--green); }
.metric-group-title.is-priority::before { background: var(--grad); }

/* KPIs: sigla + su significado completo, para quien no conoce los términos */
.kpi-list {
  display: grid;
  gap: 0.7rem;
}

.kpi {
  padding: 0.85rem 1.05rem;
  border: 1px solid rgba(0, 255, 135, 0.22);
  border-radius: 12px;
  background: rgba(0, 255, 135, 0.045);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 135, 0.45);
}

.kpi-sigla {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.kpi-name {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--mute);
}

/* Cierre de sección */
.standard-closing {
  position: relative;
  margin: clamp(2.4rem, 5vw, 3.4rem) auto 0;
  padding-top: clamp(2rem, 4vw, 2.6rem);
  max-width: 62ch;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}
.standard-closing::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 3px;
  border-radius: 3px;
  background: var(--grad);
}

/* Tarjeta de pilares */
.pillars-card {
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 60px rgba(0, 229, 255, 0.07);
}
.pillars-tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 0.9rem;
}
.pillars-card h3 {
  font-size: 1.35rem;
  max-width: 24ch;
  margin-bottom: 1.5rem;
}
.pillars-card .list-check li { margin-bottom: 1.05rem; }
.pillars-card .list-check li strong {
  color: var(--ink);
  font-weight: 600;
}

/* Prop 3D flotante sobre el panel de métricas */
.prop {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
  animation: propFloat 7s ease-in-out infinite;
}
.prop-like {
  width: clamp(58px, 8vw, 92px);
  top: -26px; right: -6px;
  transform: rotate(10deg);
  opacity: 0.9;
}
@keyframes propFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* --- Servicios --- */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 229, 255, 0.08);
}

.service-icon {
  width: 46px; height: 46px;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.service-card p { color: var(--mute); font-size: 0.95rem; }

.service-tags {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.74rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan) !important;
  opacity: 0.85;
}

/* --- Método --- */
.metodo { background: var(--bg-2); }

/* --- Roadmap: bloques conectados, como el isologo y la presentación --- */
.roadmap { position: relative; }

/* Riel que une los bloques (vertical en móvil, horizontal en escritorio) */
.roadmap-rail {
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  width: 4px;
  background: rgba(147, 163, 188, 0.18);
  border-radius: 4px;
  overflow: clip;
}
.roadmap-fill {
  display: block;
  width: 100%; height: 100%;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
}

.roadmap-steps {
  display: grid;
  gap: 2.4rem;
}

.roadmap-step {
  position: relative;
  padding-left: 78px;
}

/* Bloque = cuadrado redondeado del isologo, con el número dentro */
.roadmap-node {
  position: absolute;
  left: 0; top: -4px;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 2px solid rgba(147, 163, 188, 0.3);
  background: var(--bg-2);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--dim);
  z-index: 1;
  transition: border-color 0.5s var(--ease-out), color 0.5s var(--ease-out),
              background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.roadmap-step.is-visible .roadmap-node {
  border-color: rgba(0, 229, 255, 0.55);
  /* tinte sobre base opaca: si fuera translúcido, el riel se vería
     pasar por detrás del número */
  background:
    linear-gradient(rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0.08)),
    var(--bg-2);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.05);
}

.roadmap-step h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.roadmap-step p { color: var(--mute); font-size: 0.95rem; max-width: 44ch; }

/* --- Métricas --- */
.metrics-grid {
  display: grid;
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 135, 0.35);
}

.metric-value {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 4.5vw, 3.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.metric-value span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.metric-card h3 {
  font-size: 0.98rem;
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
  text-wrap: balance;
  /* reserva 2 líneas para que las descripciones queden alineadas entre tarjetas */
  min-height: 2.3em;
}
/* :not(.metric-value) — si no, esta regla pisa el tamaño del número grande */
.metric-card p:not(.metric-value) {
  font-size: 0.85rem;
  color: var(--dim);
  /* separa la bajada del número: antes ese aire lo daba el h3 */
  margin-top: 0.95rem;
  text-wrap: pretty;
}

.metrics-note {
  margin-top: 2.2rem;
  font-size: 0.88rem;
  color: var(--dim);
  max-width: 62ch;
}

/* --- Clientes --- */
.clients { background: var(--bg-2); }

/* Flex (no grid): así la última fila queda centrada aunque la cantidad
   de logos no sea múltiplo de las columnas */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.logo-slot {
  flex: 1 1 132px;
  max-width: 220px;
}

.logo-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(233, 241, 251, 0.02);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out);
}
.logo-slot:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.04);
}

/* Logos: en blanco monocromo sobre el fondo oscuro (así conviven marcas
   de cualquier color), apagados en reposo y nítidos al pasar el cursor */
.logo-slot img {
  /* alto fijo + contain: todas las marcas quedan ópticamente parejas,
     sin importar si el logo es apaisado (Sony) o apilado (Natura) */
  width: 100%;
  height: 54px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.logo-slot:hover img { opacity: 1; transform: scale(1.04); }

/* Logos tipo símbolo (cuadrados o verticales): necesitan más alto para
   pesar ópticamente lo mismo que un wordmark apaisado */
.logo-slot.is-mark img { height: 64px; }

.clients-note {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--dim);
  max-width: 60ch;
}

/* Slot vacío (placeholder hasta cargar el logo) */
.logo-slot.is-empty { border-style: dashed; }
.logo-slot.is-empty span {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dim);
}

/* --- Equipo --- */
.team-grid {
  display: grid;
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3vw, 2.4rem);
  text-align: center;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

/* Círculo: las fotos vienen recortadas en círculo desde la presentación
   (esquinas transparentes), así que un marco cuadrado dejaría ver el borde */
.team-photo {
  width: clamp(112px, 15vw, 136px);
  aspect-ratio: 1;
  margin: 0 auto 1.3rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.06);
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(0, 229, 255, 0.12), transparent 70%),
    rgba(233, 241, 251, 0.03);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-initials {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.team-card h3 { font-size: 1.22rem; }
.team-role {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin: 0.4rem 0 0.9rem;
  /* reserva 2 líneas: hay roles largos y si no las bios arrancan desparejas */
  min-height: 3.4em;
}
.team-bio {
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 42ch;
  margin-inline: auto;
}

/* --- FAQ (acordeón) --- */
.faq { border-top: 1px solid var(--line); }

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-3);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.faq-item:hover { border-color: rgba(147, 163, 188, 0.28); }
.faq-item.is-open { border-color: rgba(0, 229, 255, 0.35); }

.faq-item h3 { margin: 0; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.98rem, 1.4vw, 1.05rem);
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.25s var(--ease-out);
}
.faq-q:hover { color: var(--cyan); }

/* Icono "+" que se convierte en "−" al abrir */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

/* Respuesta: sin JS queda desplegada; con JS se anima con grid-template-rows */
.faq-a { display: grid; grid-template-rows: 1fr; }
html.js .faq-a {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease-out);
}
html.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 0 1.35rem 1.3rem;
  color: var(--mute);
  font-size: 0.96rem;
  max-width: 70ch;
}

/* --- Agenda --- */
.agenda {
  background: var(--bg-2);
  overflow: clip;
}
.agenda-glow {
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(45% 40% at 22% 60%, rgba(0, 229, 255, 0.09) 0%, transparent 70%),
    radial-gradient(40% 38% at 82% 30%, rgba(126, 211, 33, 0.07) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.agenda-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: start;
}

.agenda-copy h2 { margin-bottom: 1.2rem; }
/* el corte cae entre las dos oraciones, no en medio de la segunda */
.agenda-copy h2 .grad-text { display: block; }
.agenda-lede { color: var(--mute); max-width: 50ch; margin-bottom: 1.6rem; }
.agenda-cierre {
  margin-top: 1.4rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  max-width: 46ch;
}
/* «100% a medida» viaja entero: cortaba justo después del 100% */
.agenda-cierre .grad-text { white-space: nowrap; }

.agenda-trust {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.agenda-card {
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.agenda-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.4rem;
}

.agenda-form { display: grid; gap: 1.05rem; }
.agenda-form label { display: grid; gap: 0.4rem; }
.agenda-form label span {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
}
.agenda-form label span em { text-transform: none; letter-spacing: 0; opacity: 0.7; }

.agenda-form input,
.agenda-form textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(233, 241, 251, 0.045);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
  width: 100%;
}
.agenda-form input::placeholder,
.agenda-form textarea::placeholder { color: var(--dim); }
.agenda-form input:focus,
.agenda-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
}
.agenda-form textarea { resize: vertical; min-height: 84px; }

/* Trampa antispam: fuera de la vista y del foco, pero no display:none
   (algunos bots ignoran los campos ocultos con display:none) */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.form-note {
  font-size: 0.8rem;
  color: var(--dim);
  text-align: center;
}
/* sin mensaje no ocupa lugar: evita un hueco muerto bajo el botón */
.form-note:empty { display: none; }
.form-note.is-error { color: var(--red); }
.form-note.is-ok { color: var(--green); }

/* Calendly / TidyCal embed injected by JS */
.agenda-embed-frame {
  width: 100%;
  min-height: 640px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-2);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand img { width: 88px; opacity: 0.95; }
/* eslogan oficial de la marca: va primero y con un punto más de presencia */
.footer-slogan {
  margin-top: 1.1rem;
  color: var(--mute);
  font-size: 0.92rem;
  font-weight: 500;
}
.footer-desc {
  margin-top: 0.35rem;
  color: var(--dim);
  font-size: 0.9rem;
}

.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 0.5rem;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--mute);
  font-size: 0.92rem;
  width: fit-content;
  transition: color 0.25s var(--ease-out);
}
.footer-col a:hover { color: var(--cyan); }

.footer-icon {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: 0.9;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  border-top: 1px solid rgba(147, 163, 188, 0.08);
  padding-block: 1.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
}

/* =============================================================
   7. Effects
   ============================================================= */

/* Scroll reveals — el estado oculto solo existe si hay JS (html.js) */
.reveal {
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Defensa: un elemento con reveal + split nunca puede quedar invisible */
html.js .reveal[data-split],
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* Riel del roadmap — fallback sin GSAP */
.roadmap-fill.is-full {
  transform: scale(1);
  transition: transform 1.4s var(--ease-soft);
}

/* --- Cursor personalizado (cuadraditos de marca) --- */
/* Solo se activa cuando JS confirma mouse fino: html.has-cursor */
html.has-cursor,
html.has-cursor body,
html.has-cursor a,
html.has-cursor button,
html.has-cursor label {
  cursor: none;
}
/* En campos de texto se mantiene el cursor nativo (caret) */
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select {
  cursor: auto;
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;                    /* oculto hasta el primer mousemove */
  transition: opacity 0.25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  will-change: transform;
}

.cursor-dot {
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              margin 0.25s var(--ease-out), border-radius 0.25s var(--ease-out),
              opacity 0.25s var(--ease-out);
}

.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 11px;
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              margin 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              border-radius 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

/* Sobre enlaces y botones: el anillo se abre y toma el verde */
.cursor.is-link .cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 2px;
}
.cursor.is-link .cursor-ring {
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

/* Sobre campos de texto: se aparta y deja el caret nativo */
.cursor.is-text .cursor-dot,
.cursor.is-text .cursor-ring { opacity: 0; }

/* Click: pulso rápido */
.cursor.is-down .cursor-ring {
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 9px;
  border-color: var(--lime);
}
.cursor.is-down .cursor-dot { box-shadow: 0 0 18px rgba(126, 211, 33, 0.8); }

/* Hero intro words (only applied when GSAP is available) */
.hero-title .w { display: inline-block; }

/* --- Página de gracias --- */
.thanks {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  background: var(--bg);
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
}

.thanks-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thanks-check {
  width: clamp(84px, 16vw, 112px);
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.35));
}
.thanks-check svg { width: 100%; height: auto; }

.tc-ring, .tc-check {
  fill: none;
  stroke: url(#tcg);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;              /* sin JS: se ve dibujado */
}
html.js .tc-ring,
html.js .tc-check { stroke-dashoffset: 1; }
html.js .tc-ring  { animation: tcDraw 0.7s var(--ease-out) 0.15s forwards; }
html.js .tc-check { animation: tcDraw 0.5s var(--ease-out) 0.72s forwards; }
@keyframes tcDraw { to { stroke-dashoffset: 0; } }

.thanks-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 1.3rem;
  max-width: 16ch;
}

.thanks-sub {
  margin-top: 1.3rem;
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--mute);
}
.thanks-sub strong { color: var(--ink); font-weight: 600; }

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}


/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .standard-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  /* si la última tarjeta arranca fila sola, la centramos en vez de dejarla a la izquierda */
  .team-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    margin-inline: auto;
  }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }

  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-card:nth-child(odd):last-child { grid-column: auto; max-width: none; }

  /* Roadmap pasa a horizontal, como en la presentación.
     El riel termina en el centro del último bloque (no en el borde):
     con 4 columnas y gap 2rem, ese punto es 25% − 1.5rem − 29px. */
  .roadmap-rail {
    left: 29px;
    right: calc(25% - 1.5rem - 29px);
    top: 27px; bottom: auto;
    width: auto; height: 4px;
  }
  .roadmap-fill {
    transform: scaleX(0);
    transform-origin: left;
  }
  .roadmap-steps {
    /* minmax(0,…): sin esto un título largo estira su columna y
       el riel deja de terminar en el centro del último bloque */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
  /* los títulos ocupan distinta cantidad de líneas: alineamos los textos */
  .roadmap-step h3 { min-height: 2.8em; }
  .roadmap-step { padding-left: 0; padding-top: 82px; }
  .roadmap-node { top: 0; left: 0; }

  .agenda-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

@media (max-width: 719px) {
  .prop-like { top: -20px; right: 2px; }
}

/* Navbar compacto en móvil: el CTA cabe en una sola línea */
@media (max-width: 539px) {
  .nav-inner { gap: 0.6rem; }
  .nav-logo img { width: 118px; }
  .nav-actions { gap: 0.5rem; }
  .nav-actions .btn-sm {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.55rem 0.85rem;
  }
  .nav-burger { width: 38px; height: 38px; padding: 0 8px; }

  /* El badge del hero entra en una sola línea */
  .badge-hero {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding: 0.55rem 1rem;
  }

  /* CTA del formulario en una sola línea también en móvil */
  .btn-block { font-size: 0.88rem; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow { animation: none; }
  .prop { animation: none; }
  /* NO se desactivan: hovers, reveals, ticker, count-ups, underlines */
}

/* =============================================================
   10. Impresión / exportar a PDF
   ============================================================= */
@media print {
  @page { size: A4 portrait; margin: 0; }

  html, body { background: #060B16 !important; }
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Todo el contenido visible aunque el JS de reveal no corra */
  html.js .reveal,
  .reveal { opacity: 1 !important; transform: none !important; }

  /* El check de la página de gracias se dibuja completo (las animaciones
     CSS no corren al imprimir) */
  .tc-ring, .tc-check { stroke-dashoffset: 0 !important; }

  /* Los héroes con altura de viewport no deben ocupar páginas enteras */
  .hero, .thanks { min-height: auto !important; }
  .hero-inner { padding-top: 3.5rem !important; padding-bottom: 2.5rem !important; }
  .hero-glow { animation: none !important; }

  /* La barra fija pasa a estática para no repetirse ni solaparse */
  .nav {
    position: static !important;
    background: #060B16 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--line) !important;
  }

  /* Elementos solo interactivos: fuera del PDF */
  .cursor, .skip-link, .nav-burger, .ticker { display: none !important; }

  /* Evitar cortes feos dentro de tarjetas */
  .service-card, .metric-card, .metrics-panel, .pillars-card, .roadmap-step,
  .team-card, .logo-slot, .faq-item, .agenda-card, .agenda-copy,
  .section-head {
    break-inside: avoid;
  }

  /* En papel/PDF el acordeón se muestra completo: todas las respuestas
     visibles, no solo la que esté abierta en pantalla */
  html.js .faq-a,
  .faq-a { grid-template-rows: 1fr !important; }
  .faq-a-inner { overflow: visible !important; }
  .faq-icon { display: none !important; }

  /* Sin sombras ni filtros: en PDF, Chrome rasteriza las sombras grandes
     como rectángulos planos y deja marcas visibles alrededor de las tarjetas */
  *, *::before, *::after { box-shadow: none !important; }
  .prop { filter: none !important; }
}
