@charset "UTF-8";

/* =====================================================================
   n8n.hanemann.ar -- Sistema visual
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Superficies */
  --bg-0: #050507;
  --bg-1: #0a0a10;
  --bg-2: #10101a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hi: rgba(255, 255, 255, 0.06);

  /* Tinta */
  --ink: #f5f6fb;
  --ink-soft: #d6d8e6;
  --muted: #a0a3b8;
  --muted-2: #6e7188;

  /* Acento principal -- rojo profundo "vino sangre" */
  --red-0: #6b0712;
  --red-1: #b01018;
  --red-2: #d92132;
  --red-3: #ff5060;
  --red-mist: rgba(217, 33, 50, 0.18);

  /* Acentos secundarios */
  --cyan-1: #22d3ee;
  --cyan-soft: #67e8f9;
  --violet: #8b5cf6;
  --amber: #f5b342;

  /* Lineas y bordes */
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --line-warm: rgba(217, 33, 50, 0.28);

  /* Tipografia */
  --display: "Inter Tight", system-ui, sans-serif;
  --serif: "Fraunces", "Georgia", serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radios */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Sombras */
  --shadow-red: 0 24px 60px -20px rgba(176, 16, 24, 0.55);
  --shadow-soft: 0 18px 50px -25px rgba(0, 0, 0, 0.6);
  --shadow-elev: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

  /* Easings */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset suave ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

::selection {
  background: rgba(217, 33, 50, 0.45);
  color: #fff;
}

/* ---------- Atmosfera de fondo ---------- */
.bg-atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-atmos::before {
  /* Gradiente principal con halos de color */
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 5%, rgba(34, 211, 238, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 55% at 60% 35%, rgba(176, 16, 24, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
  animation: bgBreathe 20s var(--ease-in-out) infinite;
}

@keyframes bgBreathe {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(-1%, -1%); }
}

.bg-atmos::after {
  /* Grid de circuito muy sutil */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  opacity: 0.7;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 1px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(1200px, calc(100% - 2.4rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(2rem, 4.5vw, 3.6rem) 0;
  position: relative;
  z-index: 2;
}

/* Variante con fondo alternativo sutil — crea ritmo visual entre secciones */
.section--tint {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(217, 33, 50, 0.025) 25%,
      rgba(217, 33, 50, 0.025) 75%,
      transparent 100%);
}

.section--tint-cyan {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(34, 211, 238, 0.022) 25%,
      rgba(34, 211, 238, 0.022) 75%,
      transparent 100%);
}

/* Separador visual entre secciones — línea con luz sutil */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 880px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(217, 33, 50, 0.18) 35%,
    rgba(34, 211, 238, 0.18) 65%,
    transparent 100%);
  opacity: 0.6;
}

.section-head {
  margin-bottom: clamp(1.4rem, 2.5vw, 2.4rem);
  max-width: 64ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-1));
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

h3 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { margin: 0; }

.sub {
  color: var(--muted);
  font-size: 1.02rem;
  margin-top: 0.85rem;
  max-width: 64ch;
  line-height: 1.6;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), filter 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
  isolation: isolate;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 2px solid var(--cyan-1);
  outline-offset: 3px;
}

.btn-main {
  color: #fff;
  background: linear-gradient(135deg, var(--red-1) 0%, var(--red-2) 50%, var(--red-3) 100%);
  box-shadow: var(--shadow-red);
}

.btn-main::before {
  /* Shimmer artistico -- pasa una luz cuando se hace hover */
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease-out);
  z-index: -1;
}

.btn-main:hover::before { left: 140%; }
.btn-main:hover { filter: brightness(1.08); }

.btn-ghost {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line-hi);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.50);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.top.is-scrolled {
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(217, 33, 50, 0.45));
  transition: filter 0.3s ease, transform 0.6s var(--ease-out);
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 0 18px rgba(217, 33, 50, 0.7));
  transform: rotate(45deg);
}

.brand em {
  font-style: normal;
  color: var(--red-3);
}

.links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.links > a {
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 0.3rem 0;
}

.links > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red-3), var(--cyan-1));
  transition: width 0.35s var(--ease-out);
}

.links > a:hover { color: var(--ink); }
.links > a:hover::after { width: 100%; }

/* ========================================================================
   HERO v3 — Tipografía protagonista, scroll narrative
   ======================================================================== */
.hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-narrative {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 140px);
}

/* Top: kicker a la izquierda, turbina pequeña a la derecha */
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.hero-turbina-side {
  position: relative;
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  flex-shrink: 0;
}

.hero-turbina-side .hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* H1 GIGANTE — el protagonista absoluto */
.hero-h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 14ch;
}

.h1-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroLineIn 1s var(--ease-out) forwards;
}

.h1-line:nth-child(1) { animation-delay: 0.1s; }
.h1-line:nth-child(2) { animation-delay: 0.25s; }
.h1-line:nth-child(3) { animation-delay: 0.4s; }
.h1-line:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroLineIn {
  to { opacity: 1; transform: translateY(0); }
}

/* La palabra serif editorial — contraste premium */
.h1-serif {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.05em;
  letter-spacing: -0.035em;
  background: linear-gradient(110deg, #ffb4be 10%, #ff5060 50%, #d92132 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h1-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  position: relative;
  background: linear-gradient(110deg, #67e8f9 10%, #22d3ee 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Kicker — más limpio, más pro */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.05);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  backdrop-filter: blur(8px);
}

.kicker .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-1);
  box-shadow: 0 0 10px var(--cyan-1);
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* Bottom: lead + CTAs a la izquierda, stats a la derecha */
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .hero-bottom { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
}

.hero-bottom-text {
  max-width: 56ch;
}

.hero-lead {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0;
}

/* Botón del bot — variante específica */
.btn-bot {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.3rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.10), rgba(34, 211, 238, 0.03));
  color: var(--cyan-soft);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  letter-spacing: -0.005em;
}

.btn-bot:hover {
  border-color: var(--cyan-1);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.06));
  color: #d8fbff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.22);
}

.bot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-1);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  animation: botBlink 2s ease-in-out infinite;
}

@keyframes botBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); transform: scale(1.18); }
}

/* Stats laterales del hero */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 0;
}

@media (min-width: 900px) {
  .hero-stats {
    border-left: 1px solid var(--line);
    padding-left: 2rem;
  }
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: statIn 0.8s var(--ease-out) forwards;
}

.stat-row:nth-child(1) { animation-delay: 0.7s; }
.stat-row:nth-child(2) { animation-delay: 0.85s; }
.stat-row:nth-child(3) { animation-delay: 1.0s; }

@keyframes statIn {
  to { opacity: 1; transform: translateY(0); }
}

.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  min-width: 4ch;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: lowercase;
}

/* Mobile fix */
@media (max-width: 760px) {
  .hero { padding: 1rem 0 2rem; min-height: auto; }
  .hero-narrative { min-height: auto; }
  .hero-h1 { font-size: clamp(2.4rem, 11vw, 4.2rem); }
  .hero-top { margin-bottom: 1.5rem; }
  .hero-turbina-side { width: 70px; height: 70px; }
  .stat-num { font-size: 1.4rem; }
}

.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Divisor de seccion artistico ---------- */
.section-divider {
  position: relative;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--line-hi) 30%, var(--line-hi) 70%, transparent);
  margin: 0;
}

.section-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--red-3) 0%, var(--red-2) 50%, transparent 100%);
  box-shadow: 0 0 14px rgba(217, 33, 50, 0.6);
}

/* ---------- Sobre mi ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 980px) {
  .about { grid-template-columns: 1.2fr 0.8fr; }
}

.about-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(176, 16, 24, 0.10) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(255, 255, 255, 0.02) 100%);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
}

.about-card:hover {
  border-color: var(--line-warm);
  transform: translateY(-3px);
}

.about-card::before {
  /* Esquina decorativa con lineas tipo blueprint */
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-top: 1px solid var(--line-warm);
  border-right: 1px solid var(--line-warm);
  opacity: 0.6;
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.about-card p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-card strong { color: var(--ink); font-weight: 600; }

.list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--red-3);
  font-family: var(--mono);
  transition: transform 0.25s var(--ease-out), color 0.25s ease;
}

.list li:last-child { border-bottom: none; }
.list li:hover { color: var(--ink); padding-left: 1.6rem; }
.list li:hover::before { transform: translateX(3px); color: var(--cyan-1); }

/* ---------- Bento de servicios ---------- */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .bento {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .bento .panel:nth-child(1) { grid-row: span 2; }
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 60%);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
  isolation: isolate;
}

.panel::before {
  /* Scan-line sutil que aparece en hover */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 33, 50, 0.7), var(--cyan-1), transparent);
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.7s var(--ease-out);
}

.panel::after {
  /* Halo de color sutil que respira */
  content: "";
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(217, 33, 50, 0.14), transparent 60%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.panel:hover {
  border-color: var(--line-hi);
  transform: translateY(-4px);
}

.panel:hover::before {
  opacity: 1;
  transform: translateY(280px);
}

.panel:hover::after { opacity: 1; }

.panel-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  display: grid;
  place-items: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.panel:hover .panel-icon {
  border-color: var(--line-warm);
  background: linear-gradient(180deg, rgba(217, 33, 50, 0.10), rgba(255, 255, 255, 0));
}

.panel-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink-soft);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.panel:hover .panel-icon svg { stroke: var(--red-3); }

/* Animacion de trazo en iconos */
.panel-icon svg [data-draw] {
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease-out);
}

.panel:hover .panel-icon svg [data-draw] {
  stroke-dashoffset: 400;
}

.panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.panel p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}

.panel .panel-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.04em;
}

.tag.--accent {
  border-color: var(--line-warm);
  color: #ffc8cd;
  background: rgba(217, 33, 50, 0.08);
}

.tag.--cyan {
  border-color: rgba(34, 211, 238, 0.32);
  color: var(--cyan-soft);
  background: rgba(34, 211, 238, 0.05);
}

/* ---------- Stack tecnologico ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 0.5rem;
}

@media (min-width: 600px) { .stack { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .stack { grid-template-columns: repeat(6, 1fr); } }

.stack-item {
  position: relative;
  aspect-ratio: 1.2;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), background 0.3s ease;
  overflow: hidden;
}

.stack-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, var(--red-mist), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stack-item:hover {
  border-color: var(--line-hi);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.04);
}

.stack-item:hover::before { opacity: 1; }

.stack-item svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-spring);
}

.stack-item:hover svg { transform: scale(1.1) rotate(-3deg); }

.stack-item span {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.stack-item:hover span { color: var(--ink); }

/* ---------- Proceso 5 fases ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  counter-reset: step;
}

@media (min-width: 720px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .flow { grid-template-columns: repeat(5, 1fr); } }

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.05rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
  overflow: hidden;
}

.step::before {
  /* Linea de progreso lateral */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--red-2), var(--cyan-1));
  transition: height 0.6s var(--ease-out);
}

.step:hover::before { height: 100%; }
.step:hover { border-color: var(--line-hi); transform: translateY(-3px); }

.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--red-3);
  display: block;
  margin-bottom: 0.6rem;
}

.step h4 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
}

.step p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.quote {
  margin-top: 1.4rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-left: 3px solid var(--cyan-1);
  border-radius: var(--r-md);
  background: rgba(34, 211, 238, 0.05);
  padding: 1rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.5;
  position: relative;
}

.quote::before {
  content: """;
  position: absolute;
  top: -10px;
  left: 14px;
  font-family: var(--display);
  font-size: 3rem;
  color: var(--cyan-1);
  opacity: 0.4;
  line-height: 1;
}

/* ---------- FAQs ---------- */
.faq { display: grid; gap: 0.6rem; max-width: 800px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq details[open] {
  border-color: var(--line-warm);
  background: rgba(217, 33, 50, 0.04);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--red-3);
  transition: transform 0.3s var(--ease-spring), color 0.3s ease;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
  color: var(--cyan-1);
  transform: rotate(180deg);
}

.faq p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- CTA Final ---------- */
.final {
  margin-top: 2rem;
  border: 1px solid var(--line-warm);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(217, 33, 50, 0.18), transparent 60%),
    radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.final p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 50ch;
  line-height: 1.55;
}

.final strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2.6rem;
  margin-top: 2rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.foot-brand img {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

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

/* Safety net — si JS no carga en 4s, mostrar todo igual */
html.js-failed .reveal,
html.js-failed .reveal-stagger > *,
html.gsap-loaded .reveal,
html.gsap-loaded .reveal-stagger > * {
  /* GSAP toma control via inline style; este selector solo asegura visibilidad si todo falla */
}

/* ---------- Mobile ajustes ---------- */
@media (max-width: 760px) {
  .links > a:not(.btn) { display: none; }
  .nav { min-height: 64px; }
  .final { padding: 1.3rem; }
  .final p { font-size: 0.95rem; }
}

/* ---------- Reduccion de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ======================================================================
   REFINAMIENTO v2 -- Nuevas secciones
   ====================================================================== */

/* ---------- Boton XL para cierre ---------- */
.btn-xl {
  padding: 1.05rem 1.8rem;
  font-size: 1rem;
}

/* ---------- Eyebrow calido (cuando-no) ---------- */
.eyebrow-warm {
  color: #ffb4be;
}

.eyebrow-warm::before {
  background: linear-gradient(90deg, transparent, var(--red-3));
}

/* ======================================================================
   MANIFIESTO -- 13 principios
   ====================================================================== */

.section--manifiesto {
  position: relative;
}

.manifesto {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  counter-reset: manifesto;
}

@media (min-width: 760px) {
  .manifesto { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
}

@media (min-width: 1100px) {
  .manifesto { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

.principle {
  position: relative;
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out), background 0.4s ease;
  overflow: hidden;
  isolation: isolate;
}

.principle::before {
  /* Linea de luz inferior que aparece al hover */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red-2), var(--cyan-1), transparent);
  transition: width 0.7s var(--ease-out);
}

.principle:hover {
  border-color: var(--line-hi);
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(217, 33, 50, 0.05), rgba(255, 255, 255, 0));
}

.principle:hover::before { width: 100%; }

.principle-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red-3);
  letter-spacing: 0.18em;
  margin-bottom: 0.7rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  background: rgba(217, 33, 50, 0.06);
}

.principle h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.55rem;
  color: var(--ink);
  line-height: 1.25;
}

.principle p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.principle--special {
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(255, 255, 255, 0));
  border-color: rgba(34, 211, 238, 0.20);
}

.principle--special .principle-num {
  color: var(--cyan-soft);
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.06);
}

/* ======================================================================
   BRIDGE -- cita central
   ====================================================================== */

.section--bridge {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.bridge-quote {
  margin: 0 auto;
  max-width: 780px;
  padding: 2rem clamp(1.2rem, 3vw, 2.4rem);
  border-left: 3px solid var(--red-2);
  position: relative;
}

.bridge-quote::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 28%;
  background: linear-gradient(180deg, var(--cyan-1), transparent);
}

.bridge-quote p {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}

.bridge-quote-emph {
  color: var(--ink) !important;
  font-weight: 600;
}

.bridge-quote-foot {
  font-family: var(--body) !important;
  font-size: 0.95rem !important;
  color: var(--muted) !important;
  font-weight: 400;
  margin-top: 1rem !important;
}

/* ======================================================================
   FASES (metodo)
   ====================================================================== */

.phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .phases { grid-template-columns: repeat(4, 1fr); } }

.phase {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.3rem 1.3rem;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 60%);
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
  overflow: hidden;
}

.phase::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--red-2), var(--cyan-1));
  transition: height 0.7s var(--ease-out);
}

.phase:hover {
  border-color: var(--line-hi);
  transform: translateY(-4px);
}

.phase:hover::before { height: 100%; }

.phase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phase-num {
  color: var(--red-3);
}

.phase-tag {
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.phase h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.phase p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 0.7rem;
}

.phase-deliverable {
  margin-top: 0.9rem !important;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.85rem !important;
  color: var(--ink-soft) !important;
}

.phase-deliverable b {
  color: var(--cyan-soft);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

/* ======================================================================
   GARANTIAS (cierre comercial silencioso)
   ====================================================================== */

.guarantees {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 760px) { .guarantees { grid-template-columns: repeat(3, 1fr); } }

.guarantee {
  position: relative;
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--line-warm);
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse at top left, rgba(217, 33, 50, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
  overflow: hidden;
}

.guarantee:hover {
  border-color: rgba(255, 184, 192, 0.45);
  transform: translateY(-3px);
}

.guarantee-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(217, 33, 50, 0.08);
  border: 1px solid var(--line-warm);
  display: grid;
  place-items: center;
  color: var(--red-3);
}

.guarantee-icon svg {
  width: 22px;
  height: 22px;
}

.guarantee h4 {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.guarantee p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ======================================================================
   STACK -- grupos
   ====================================================================== */

.stack-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) { .stack-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .stack-groups { grid-template-columns: repeat(4, 1fr); } }

.stack-group {
  padding: 1.3rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out);
}

.stack-group:hover {
  border-color: var(--line-hi);
  transform: translateY(-2px);
}

.stack-group h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin: 0 0 0.95rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.stack-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stack-group li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stack-group li:last-child { border-bottom: none; }

.badge-cert {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-warm);
  background: rgba(217, 33, 50, 0.08);
  color: #ffc8cd;
  letter-spacing: 0.04em;
}

/* ======================================================================
   TIMELINE -- trayectoria
   ====================================================================== */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, var(--red-2), var(--cyan-1) 40%, transparent);
  opacity: 0.4;
}

@media (max-width: 600px) { .timeline::before { left: 12px; } }

.timeline-item {
  position: relative;
  padding: 0 0 1.8rem 3rem;
}

@media (max-width: 600px) { .timeline-item { padding-left: 2.4rem; } }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-3), var(--red-1));
  box-shadow: 0 0 14px rgba(217, 33, 50, 0.6), 0 0 0 4px var(--bg-0);
  z-index: 2;
}

@media (max-width: 600px) { .timeline-item::before { left: 6px; } }

.timeline-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.timeline-year {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.timeline-role {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

.timeline-item h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 0.55rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.timeline-item p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.timeline-item p strong { color: var(--ink); font-weight: 600; }

.timeline-item:last-child { padding-bottom: 0; }

/* Credentials */
.creds {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 720px) { .creds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .creds { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.creds-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.5rem;
}

.creds-block p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

.creds-block a {
  color: var(--red-3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.creds-block a:hover { border-color: var(--red-3); }

/* ======================================================================
   Charlas y comunidad
   ====================================================================== */

.speaking {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(34, 211, 238, 0.20);
  border-left: 3px solid var(--cyan-1);
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(34, 211, 238, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.speaking-head { margin-bottom: 0.75rem; }

.speaking p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.speaking p strong { color: var(--ink); font-weight: 600; }

/* ======================================================================
   CUANDO NO CONTRATARME
   ====================================================================== */

.section--no {
  position: relative;
}

.not-for {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 760px) { .not-for { grid-template-columns: repeat(2, 1fr); } }

.not-card {
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(255, 184, 192, 0.5);
  border-radius: var(--r-md);
  background:
    linear-gradient(170deg, rgba(217, 33, 50, 0.03) 0%, rgba(255, 255, 255, 0) 60%);
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out);
}

.not-card:hover {
  border-color: var(--line-hi);
  border-left-color: var(--red-3);
  transform: translateY(-2px);
}

.not-card h4 {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.not-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.not-card p em {
  color: var(--red-3);
  font-style: italic;
}

.not-foot {
  margin: 2rem auto 0;
  max-width: 60ch;
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Prelude - formato narrativo de "antes de la llamada" */
.prelude {
  max-width: 68ch;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  border-left: 3px solid var(--red-3);
  background:
    linear-gradient(180deg, rgba(217, 33, 50, 0.04), rgba(255, 255, 255, 0));
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.prelude p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

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

.prelude p em {
  color: var(--red-3);
  font-style: italic;
}

.prelude-foot {
  margin-top: 1.4rem !important;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-family: var(--display) !important;
  font-size: 1.05rem !important;
  color: var(--ink) !important;
  letter-spacing: -0.005em;
}

/* ======================================================================
   CIERRE (closer)
   ====================================================================== */

.closer {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 0% 100%, rgba(217, 33, 50, 0.16), transparent 60%),
    radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  position: relative;
  overflow: hidden;
}

.closer .eyebrow { margin-bottom: 1rem; }
.closer h2 { margin-bottom: 1.1rem; }

.closer-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.55;
}

.closer-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.closer-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.closer-meta p {
  margin: 0.15rem 0;
}

.closer-channels {
  margin-top: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.closer-channels a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.closer-channels a:hover {
  color: var(--cyan-1);
  border-color: var(--cyan-1);
}

.closer-channels .dot { color: var(--muted-2); }

/* ======================================================================
   FOOTER refinado
   ====================================================================== */

.foot {
  align-items: flex-start;
}

.foot p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.foot-brand img {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.foot-right {
  text-align: right;
}

.foot-right a {
  color: var(--cyan-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.foot-right a:hover { border-color: var(--cyan-soft); }

@media (max-width: 700px) {
  .foot-right { text-align: left; }
}

/* ======================================================================
   PREMIUM v3 — Microinteracciones spotlight + ritmo visual
   ====================================================================== */

/* Spotlight que sigue el cursor en cards */
.principle,
.phase,
.guarantee,
.stack-group,
.not-card {
  position: relative;
  overflow: hidden;
}

.principle::after,
.phase::after,
.guarantee::after,
.stack-group::after,
.not-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(217, 33, 50, 0.10),
    transparent 40%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.principle:hover::after,
.phase:hover::after,
.guarantee:hover::after,
.stack-group:hover::after,
.not-card:hover::after {
  opacity: 1;
}

/* Asegurar que el contenido quede sobre el spotlight */
.principle > *,
.phase > *,
.guarantee > *,
.stack-group > *,
.not-card > * {
  position: relative;
  z-index: 1;
}

/* Phase con accent visual al inicio (numero grande de fondo) */
.phase {
  isolation: isolate;
}

.phase-num::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-3);
  box-shadow: 0 0 12px rgba(217, 33, 50, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phase:hover .phase-num::before {
  opacity: 1;
}

/* Stack groups con barrita de luz vertical en hover */
.stack-group {
  position: relative;
  isolation: isolate;
}

.stack-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-1), var(--red-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
  border-radius: 0 1px 1px 0;
  z-index: 2;
}

.stack-group:hover::before {
  transform: scaleY(1);
}

/* Botones con brillo que viaja al hover */
.btn-main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.btn-main:hover::before {
  left: 100%;
}

.btn-main > * {
  position: relative;
  z-index: 2;
}

/* CTA del hero con halo de respiración */
.hero-cta .btn-main {
  box-shadow:
    0 8px 24px rgba(217, 33, 50, 0.35),
    0 0 0 0 rgba(217, 33, 50, 0.4);
  animation: ctaBreathe 4s var(--ease-in-out) infinite;
}

@keyframes ctaBreathe {
  0%, 100% { box-shadow: 0 8px 24px rgba(217, 33, 50, 0.35), 0 0 0 0 rgba(217, 33, 50, 0.4); }
  50% { box-shadow: 0 12px 32px rgba(217, 33, 50, 0.5), 0 0 0 8px rgba(217, 33, 50, 0); }
}

/* Pulse dot del kicker con respiración más rica */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-1);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  animation: kickerPulse 2.4s var(--ease-in-out) infinite;
}

@keyframes kickerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); transform: scale(1.15); }
}

/* Eyebrows con animación de la línea inicial */
.eyebrow::before {
  animation: eyebrowSlide 3s var(--ease-in-out) infinite;
  background: linear-gradient(90deg, transparent, var(--cyan-1));
}

@keyframes eyebrowSlide {
  0%, 100% { width: 28px; opacity: 1; }
  50% { width: 44px; opacity: 0.6; }
}

/* Hero kicker como pill que glow lateral */
.kicker {
  position: relative;
  isolation: isolate;
}

.kicker::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.0),
    rgba(34, 211, 238, 0.35),
    rgba(34, 211, 238, 0.0)
  );
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  z-index: -1;
  animation: kickerShine 4s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes kickerShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Timeline con líneas más vivas */
.timeline-item::before {
  animation: timelineDotPulse 3s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i, 0) * 0.6s);
}

@keyframes timelineDotPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(217, 33, 50, 0.6), 0 0 0 4px var(--bg-0); }
  50% { box-shadow: 0 0 24px rgba(217, 33, 50, 0.9), 0 0 0 5px var(--bg-0); }
}

/* Closer con líneas decorativas */
.closer {
  position: relative;
  overflow: hidden;
}

.closer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: conic-gradient(
    from 90deg at 30% 50%,
    transparent 0deg,
    rgba(217, 33, 50, 0.08) 30deg,
    transparent 60deg,
    transparent 360deg
  );
  animation: closerSweep 12s linear infinite;
  pointer-events: none;
}

@keyframes closerSweep {
  to { transform: rotate(360deg); }
}

/* Bridge quote con borde animado */
.bridge-quote {
  position: relative;
  overflow: hidden;
}

.bridge-quote::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 28%;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--red-2), var(--cyan-1));
  animation: bridgeLineGrow 2.5s var(--ease-out) forwards 0.5s;
}

@keyframes bridgeLineGrow {
  to { height: 72%; }
}

/* Reducir motion total para los que lo piden */
@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn-main { animation: none; }
  .pulse-dot { animation: none; }
  .bot-dot { animation: none; }
  .eyebrow::before { animation: none; }
  .kicker::after { animation: none; }
  .timeline-item::before { animation: none; }
  .closer::before { animation: none; }
  .bridge-quote::after { animation: none; height: 72%; }
}

/* ======================================================================
   SHOWCASE — Workflow animado al scroll
   ====================================================================== */

.section--showcase {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.section--showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(34, 211, 238, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section--showcase > .wrap { position: relative; z-index: 1; }

.workflow-canvas {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  padding: clamp(1rem, 2vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.04), transparent 60%);
  overflow: hidden;
}

.workflow-canvas::before {
  /* grid de fondo del workflow */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 85%);
  pointer-events: none;
}

.workflow-svg {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Nodos del workflow: empiezan invisibles, GSAP solo anima opacity (el transform es del SVG, no se toca) */
.wf-node {
  opacity: 0;
}

/* Líneas: ya tienen stroke-dasharray=100 y stroke-dashoffset=100 (invisibles) */
.wf-line {
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.4));
}

/* Si reduced-motion: mostrar todo directo, sin animación */
@media (prefers-reduced-motion: reduce) {
  .wf-node { opacity: 1; }
  .wf-line { stroke-dashoffset: 0 !important; }
  .wf-cap { opacity: 1 !important; transform: none !important; }
}

/* Captions debajo del SVG */
.workflow-captions {
  margin-top: clamp(1rem, 2vw, 1.6rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 760px) {
  .workflow-captions { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (min-width: 1100px) {
  .workflow-captions { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}

.wf-cap {
  position: relative;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s ease;
}

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

.wf-cap:hover {
  border-color: var(--line-hi);
}

.wf-cap-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cyan-soft);
  text-transform: uppercase;
}

.wf-cap p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Mobile: stack vertical más compacto */
@media (max-width: 760px) {
  .workflow-canvas { padding: 0.5rem; }
  .workflow-svg { min-height: 320px; }
}

/* ======================================================================
   PREMIUM v5 — Cursor custom, section indicator, mobile riguroso
   ====================================================================== */

/* ---------- Cursor Custom (solo desktop) ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s var(--ease-out), opacity 0.2s ease;
  opacity: 0;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: transform 0.5s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s ease, opacity 0.2s ease;
  opacity: 0;
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
  opacity: 1;
}

/* Cursor estado hover sobre interactivos */
body.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(217, 33, 50, 0.8);
  background: rgba(217, 33, 50, 0.1);
}

body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(0);
}

/* Solo desktop con mouse fino — móviles y touch no usan cursor */
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body.cursor-ready { cursor: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* Ocultar cursor nativo cuando hay custom */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body.cursor-ready { cursor: none; }
  body.cursor-ready a,
  body.cursor-ready button,
  body.cursor-ready [role="button"],
  body.cursor-ready input,
  body.cursor-ready textarea,
  body.cursor-ready select { cursor: none; }
}

/* ---------- Section Indicator (sidebar dots) ---------- */
.section-indicator {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.section-indicator.is-ready {
  opacity: 1;
  aria-hidden: false;
}

.si-dot {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.si-dot span {
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: all 0.3s var(--ease-out);
}

.si-dot:hover span {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.4);
}

.si-dot.is-active span {
  background: var(--red-3);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 12px rgba(217, 33, 50, 0.8);
}

/* Tooltip al hover */
.si-dot::before {
  content: attr(title);
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: rgba(15, 15, 18, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
}

.si-dot:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Línea conectora vertical entre dots */
.section-indicator::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%);
  transform: translateX(-50%);
  z-index: -1;
}

/* En móvil/tablet/medium-desktop ocultar el indicator — solo se ve con espacio sobrado */
@media (max-width: 1320px) {
  .section-indicator { display: none; }
}

/* ======================================================================
   MOBILE-FIRST RIGUROSO — overrides finos para todos los breakpoints
   ====================================================================== */

/* === Mobile general (hasta 640px) === */
@media (max-width: 640px) {

  /* Wrap más cómodo */
  .wrap { width: min(1200px, calc(100% - 1.6rem)); }

  /* Nav: ocultar links, dejar solo logo + CTA */
  .nav { min-height: 60px; }
  .nav .btn-main {
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
  }

  /* Top scroll bar más compacta */
  .top { background: rgba(5, 5, 7, 0.78); }

  /* Hero: vertical absoluto, sin turbina arriba (la subimos al H1) */
  .hero {
    padding: 1rem 0 2.5rem;
    min-height: 100vh;
  }

  .hero-narrative {
    min-height: 0;
  }

  .hero-top {
    margin-bottom: 1.5rem;
    flex-direction: row;
    align-items: center;
  }

  .hero-turbina-side {
    width: 56px;
    height: 56px;
  }

  .hero-h1 {
    font-size: clamp(2.2rem, 12vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    max-width: 100%;
  }

  .hero-bottom {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .hero-lead { font-size: 0.95rem; }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .hero-cta .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    border-left: none !important;
    padding-left: 0 !important;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .stat-row {
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 30%;
    align-items: flex-start;
  }

  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }

  /* Secciones más compactas */
  .section { padding: 2.5rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  .section-head h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.1;
  }
  .section-head .sub { font-size: 0.95rem; }
  .eyebrow { font-size: 0.65rem; }

  /* Manifesto: 1 columna */
  .manifesto { grid-template-columns: 1fr !important; }
  .principle h3 { font-size: 1.05rem; }
  .principle p { font-size: 0.9rem; }

  /* Showcase: SVG escala bien pero captions stack */
  .workflow-canvas {
    padding: 0.6rem !important;
    overflow-x: auto;
  }
  .workflow-svg {
    min-width: 720px; /* mantener aspecto, scroll horizontal en móvil */
  }
  .workflow-captions { grid-template-columns: 1fr !important; gap: 0.6rem; }
  .wf-cap { padding: 0.85rem 1rem; }
  .wf-cap p { font-size: 0.88rem; }

  /* Método */
  .phases { grid-template-columns: 1fr !important; gap: 1rem; }
  .phase { padding: 1.2rem 1rem !important; }
  .phase h3 { font-size: 1.15rem; }

  /* Garantías */
  .guarantees { grid-template-columns: 1fr !important; gap: 1rem; }

  /* Stack */
  .stack-grid { grid-template-columns: 1fr 1fr !important; gap: 0.8rem; }
  .stack-group { padding: 1rem 0.85rem !important; }
  .stack-group h4 { font-size: 0.95rem; }
  .stack-item { font-size: 0.85rem; }

  /* Timeline */
  .timeline-item { padding-left: 1.5rem !important; }
  .timeline-item h4 { font-size: 1.1rem; }
  .timeline-head { flex-direction: column; gap: 0.3rem; align-items: flex-start !important; }
  .timeline-year, .timeline-role { font-size: 0.78rem; }

  /* Charlas + Credenciales */
  .creds { grid-template-columns: 1fr !important; gap: 0.8rem; }

  /* Antes de la llamada / Prelude */
  .prelude { padding: 1.2rem 1rem !important; }
  .prelude p { font-size: 0.92rem; }

  /* FAQ */
  .faq details { padding: 0.85rem 1rem !important; }
  .faq summary { font-size: 0.95rem; }
  .faq details p { font-size: 0.88rem; }

  /* Cierre */
  .closer { padding: 1.5rem 1.2rem !important; }
  .closer h2 { font-size: 1.8rem !important; }
  .closer-lead { font-size: 0.95rem; }
  .closer-cta { flex-direction: column; gap: 1rem; }
  .closer-channels {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    text-align: center;
  }
  .closer-channels .dot { display: none; }

  /* Footer */
  .foot { padding: 1.5rem 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .foot-right { text-align: center; }

  /* Chat trigger: más pequeño en móvil para no obstaculizar */
  .chat-trigger {
    bottom: 16px !important;
    right: 16px !important;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.8rem !important;
  }
}

/* === Tablet (641-1019px) === */
@media (min-width: 641px) and (max-width: 1019px) {
  .hero-h1 { font-size: clamp(3rem, 7vw, 5rem); }
  .hero-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { border-left: none; padding-left: 0; }
  .manifesto { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .guarantees { grid-template-columns: 1fr; }
  .workflow-svg { min-height: 380px; }
}

/* === Mobile chico (hasta 380px - iPhone SE) === */
@media (max-width: 380px) {
  .hero-h1 { font-size: clamp(1.9rem, 11vw, 2.6rem); }
  .nav .brand span { display: none; }
  .stack-grid { grid-template-columns: 1fr !important; }
  .stat-row { flex: 1 1 100%; flex-direction: row; align-items: baseline; gap: 0.8rem; }
}

/* Targets touch — mín 44x44px en móvil */
@media (pointer: coarse) {
  .btn, .si-dot, .nav a, .links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ======================================================================
   PAGE TRANSITIONS sutiles entre secciones — efecto fade entre bloques
   ====================================================================== */

.section,
.hero {
  opacity: 1;
  /* Mascara sutil al cambiar de viewport */
}

/* Bloques al entrar al viewport: damos un toque cinematográfico extra */
.section--showcase,
.section--manifiesto,
.section--bridge {
  position: relative;
  isolation: isolate;
}

/* Sutile borde gradient en bordes superior de secciones tinteadas */
.section--tint::before,
.section--tint-cyan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-3), transparent);
  opacity: 0.5;
}

.section--tint-cyan::before {
  background: linear-gradient(90deg, transparent, var(--cyan-1), transparent);
}

