/* ===================================================
   SPRINTS — Consultoría estratégica de crecimiento digital
   Sistema: negro / blanco / grises. Magenta como acento único.
   Un mismo lenguaje tipográfico y de grilla en todo el recorrido.
=================================================== */

:root {
  --negro: #0A0A0A;
  --papel: #F4F2EC;
  --blanco: #FFFFFF;
  --magenta: #FF3D7F;
  --magenta-soft: #FF8FAE;
  --verde: #33C46A;
  --morado: #8B3DFF;

  --gray-900: #111114;
  --gray-800: #1B1B1F;
  --line-on-dark: rgba(244, 242, 236, 0.12);
  --line-on-light: rgba(10, 10, 10, 0.1);
  --muted-on-dark: rgba(244, 242, 236, 0.62);
  --muted-on-light: rgba(10, 10, 10, 0.6);

  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;

  --wrap: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--negro);
  color: var(--papel);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- Shared tags / labels ---------- */
.section-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: var(--muted-on-dark);
  margin: 0 0 20px;
}

.section-tag-light { color: rgba(244, 242, 236, 0.55); }

.micro-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--muted-on-dark);
  margin: 0 0 16px;
}

.tag-row {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--verde);
  margin: 0 0 22px;
}

.section-tag-green { color: var(--verde); opacity: 1; }

/* ---------- Broken-light flicker ---------- */
@keyframes dot-flicker {
  0%, 19%, 21%, 23%, 55%, 100% { opacity: 1; }
  20%, 22%, 54%, 56% { opacity: 0.15; }
}

.dot-flicker { animation: dot-flicker 3.6s infinite; }

.section-sub {
  margin-bottom: 20px;
  opacity: 0.72;
  max-width: 620px;
  font-size: 1.02rem;
}

/* ---------- Technical grid overlay ---------- */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 242, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 236, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, black, transparent);
  pointer-events: none;
  z-index: 0;
  transition: background-position 0.2s linear;
}

.grid-overlay-light {
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 90% at 85% 30%, black, transparent);
}

.grid-overlay-center {
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black, transparent);
}

/* ---------- Status dots ---------- */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-green { background: var(--verde); box-shadow: 0 0 0 3px rgba(51, 196, 106, 0.15); }
.status-magenta { background: var(--magenta); box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.15); }
.status-morado { background: var(--morado); box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.15); }
.status-soft { background: var(--magenta-soft); box-shadow: 0 0 0 3px rgba(255, 143, 174, 0.18); }

.status-dot { position: relative; }
.status-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: pulse-ring 2.8s ease-out infinite;
}
.status-green::after { border-color: var(--verde); }
.status-magenta::after { border-color: var(--magenta); }
.status-morado::after { border-color: var(--morado); }
.status-soft::after { border-color: var(--magenta-soft); }

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.5; }
  75% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--papel);
  color: var(--negro);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--blanco);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-on-dark);
  color: var(--papel);
}

.btn-ghost:hover {
  border-color: var(--papel);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--verde);
  color: var(--blanco);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(51, 196, 106, 0.35);
}

.btn-purple {
  background: var(--morado);
  color: var(--blanco);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 61, 255, 0.35);
}

.btn-small { padding: 10px 18px; font-size: 0.86rem; }
.btn-large { padding: 18px 36px; font-size: 1.05rem; }

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.logo img { height: 30px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a { opacity: 0.72; transition: opacity 0.2s ease, color 0.2s ease; }
.nav a:hover { opacity: 1; color: var(--magenta); }
.nav a.nav-cta:hover { color: var(--negro); opacity: 1; }
.nav-cta { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--papel);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 100px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.06rem;
  max-width: 500px;
  opacity: 0.78;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Hero dashboard panel ---------- */
.hero-panel {
  position: relative;
}

.hero-s {
  position: absolute;
  width: 280px;
  top: -100px;
  right: -56px;
  z-index: 0;
  opacity: 0.94;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(255, 61, 127, 0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(7deg); }
}

.panel {
  position: relative;
  z-index: 1;
  background: var(--gray-900);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-on-dark);
  background: rgba(244, 242, 236, 0.02);
}

.panel-dots { display: flex; gap: 5px; }
.panel-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 242, 236, 0.25);
  display: block;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
}

.panel-body { padding: 22px 22px 14px; }

.panel-heading {
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.panel-sub {
  font-size: 0.88rem;
  opacity: 0.65;
  margin: 0 0 18px;
  line-height: 1.5;
}

.sprint-row {
  display: block;
  border: 1px solid var(--line-on-dark);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sprint-row:last-child { margin-bottom: 0; }

.sprint-row:hover {
  border-color: rgba(244, 242, 236, 0.3);
  background: rgba(244, 242, 236, 0.03);
}

.sprint-row-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

.sprint-row-title { font-weight: 600; font-size: 0.94rem; }

.sprint-row-desc {
  display: block;
  font-size: 0.84rem;
  opacity: 0.6;
  line-height: 1.5;
  margin-bottom: 8px;
}

.sprint-row-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--magenta-soft);
}

/* ---------- Cómo pensamos ---------- */
.pensamos {
  position: relative;
  background: var(--papel);
  color: var(--negro);
  padding: 100px 0 90px;
  overflow: hidden;
}

.pensamos .section-tag { color: var(--muted-on-light); }

.pensamos-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.pensamos h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  max-width: 620px;
  margin-bottom: 36px;
}

.pensamos-body { margin-bottom: 32px; max-width: 600px; }

.pensamos-body p {
  font-size: 1.02rem;
  opacity: 0.78;
  margin: 0 0 16px;
  line-height: 1.55;
}

.pull-quote {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
  max-width: 600px;
  margin: 0 0 36px;
}

.pensamos-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.info-card {
  background: var(--gray-900);
  border: 1px solid var(--line-on-dark);
  border-top: 3px solid var(--negro);
  border-radius: 14px;
  padding: 16px 20px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.info-card-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}

.info-card-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 242, 236, 0.22);
  display: block;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--papel);
  opacity: 0.72;
  margin: 0;
  line-height: 1.5;
}

.info-card-magenta { border-top-color: var(--magenta); }
.info-card-green { border-top-color: var(--verde); }
.info-card-soft { border-top-color: var(--magenta-soft); }
.info-card-dark { border-top-color: var(--morado); }

/* ---------- Process rail (vertical diagram) ---------- */
.pensamos-visual {
  position: sticky;
  top: 120px;
}

.process-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 46px;
  padding: 12px 0 12px 28px;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.02);
}

.process-line {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 33px;
  width: 1px;
  background: var(--line-on-light);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-line.is-visible { transform: scaleY(1); }

.process-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.process-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--papel);
  border: 2px solid var(--negro);
  flex-shrink: 0;
  z-index: 1;
}

.process-step-end .process-dot {
  background: var(--magenta);
  border-color: var(--magenta);
}

.process-label {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

/* ---------- Nuestra forma de trabajar ---------- */
.trabajar { padding: 100px 0; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--gray-900);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: 28px 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  border-color: rgba(244, 242, 236, 0.28);
  transform: translateY(-4px);
}

.card-num {
  display: block;
  font-family: var(--font-mono);
  color: var(--magenta-soft);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.card-num-magenta { color: var(--magenta); }
.card-num-green { color: var(--verde); }
.card-num-purple { color: var(--morado); }
.card-num-gray { color: var(--muted-on-dark); }

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card p {
  font-size: 0.9rem;
  opacity: 0.65;
  margin: 0 0 10px;
}

.card p:last-child { margin-bottom: 0; }

.card-emphasis {
  color: var(--papel);
  opacity: 0.9 !important;
  font-weight: 600;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 12px;
  margin-top: 4px;
}

/* ---------- La metodología ---------- */
.metodologia {
  background: var(--papel);
  color: var(--negro);
  padding: 100px 0;
}

.metodologia .section-tag,
.metodologia .section-sub { color: var(--muted-on-light); opacity: 1; }

.metodologia h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}

.node-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 56px 0 40px;
}

.node-line {
  position: absolute;
  top: 20px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--line-on-light);
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-line.is-visible { transform: scaleX(1); }

.node {
  position: relative;
  z-index: 1;
  text-align: left;
}

.node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blanco);
  border: 1px solid var(--line-on-light);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.node h4 {
  font-size: 0.96rem;
  margin-bottom: 8px;
}

.node p {
  font-size: 0.85rem;
  opacity: 0.68;
  margin: 0;
  line-height: 1.5;
}

.metodologia-close {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.metodologia-question {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  opacity: 0.65;
  margin: 0;
}

/* ---------- Los Sprints ---------- */
.sprints { padding: 100px 0; }

.sprints h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.featured-sprint {
  border: 1px solid var(--line-on-dark);
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.featured-sprint .status-dot { margin-bottom: 16px; }

.featured-sprint h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.featured-sprint p {
  font-size: 0.94rem;
  opacity: 0.7;
  margin: 0;
  line-height: 1.55;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.chip {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-on-dark);
  background: rgba(244, 242, 236, 0.03);
}

.chip-ghost {
  border-style: dashed;
  border-color: rgba(120, 160, 130, 0.35);
  color: rgba(180, 205, 185, 0.7);
  background: rgba(120, 160, 130, 0.05);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.landing-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  opacity: 0.7;
  margin: 0 0 40px;
}

.roadmap-note {
  font-size: 0.9rem;
  opacity: 0.55;
  max-width: 560px;
  margin: 0 0 16px;
}

.tag-grid-ghost { margin-bottom: 0; }

/* ---------- Primera reunión ---------- */
.primera-reunion {
  position: relative;
  background: var(--negro);
  padding: 130px 0;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  overflow: hidden;
}

.primera-frame {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 48px;
}

.frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(244, 242, 236, 0.3);
  border-style: solid;
  border-width: 0;
}

.frame-corner-tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.frame-corner-tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.frame-corner-bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.frame-corner-br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.primera-inner { text-align: center; }

.primera-status {
  display: inline-block;
  margin: 6px 0 18px;
}

.primera-reunion h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 20px;
}

.primera-copy {
  font-size: 1.02rem;
  opacity: 0.72;
  margin-bottom: 34px;
  line-height: 1.6;
}

/* ---------- CTA final (slim closing bar) ---------- */
.cta-final {
  padding: 56px 0;
}

.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-bar-text { max-width: 620px; }

.cta-bar .section-tag { margin-bottom: 8px; }

.cta-bar-line {
  opacity: 0.65;
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--papel);
  color: var(--negro);
  padding: 36px 0;
}

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

.footer-logo { height: 26px; width: auto; }

.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.55;
  margin: 0;
}

.footer-mail {
  font-weight: 700;
  border-bottom: 2px solid var(--magenta);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-panel { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .node-flow { grid-template-columns: repeat(2, 1fr); }
  .node-line { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .pensamos-grid { grid-template-columns: 1fr; }
  .pensamos-visual { position: static; margin-top: 40px; max-width: 360px; }
  .primera-frame { padding: 40px 28px; }
  .cta-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .pensamos-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--negro);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line-on-dark);
  }

  .site-header.nav-open .nav-cta { margin-top: 6px; }

  .hero { padding: 76px 0 70px; }
  .hero-s { width: 190px; top: -60px; right: 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .node-flow { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
