/*
 * Portada comercial V3 de Guild System IA.
 * Capa aislada: no altera las páginas internas ni sus contratos existentes.
 */
.home-v3 {
  --v3-bg-deep: #050816;
  --v3-bg-alt: #090d1a;
  --v3-surface: #0f172a;
  --v3-surface-high: #141e33;
  --v3-border: rgba(148, 163, 184, 0.18);
  --v3-text: #f8fafc;
  --v3-muted: #a6b0c3;
  --v3-blue: #4f6bff;
  --v3-cyan: #00d4ff;
  --v3-violet: #8b5cf6;
  --v3-success: #22c55e;
  background: var(--v3-bg-deep);
}

.home-v3 main {
  min-width: 0;
  overflow: clip;
}

.home-v3 .navbar-brand,
.home-v3 .nav-links > a {
  min-height: 44px;
  align-items: center;
}

.home-v3 .nav-links > a {
  min-width: 44px;
  justify-content: center;
}

.home-v3 main .section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.home-v3 main .section-header,
.home-v3 .enterprise-v3__header,
.home-v3 .trust-v3__header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.home-v3 main .section-header h2,
.home-v3 .enterprise-v3__header h2,
.home-v3 .trust-v3__header h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-v3 main .section-header > p:last-child,
.home-v3 .enterprise-v3__header > p,
.home-v3 .trust-v3__header > p {
  max-width: 650px;
  color: var(--v3-muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.7;
}

.home-v3 .section-kicker,
.home-v3 .hero-v3__kicker {
  color: var(--v3-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.home-v3__section-action {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.anchor-compat {
  position: absolute;
  inset: 0 auto auto 0;
}

/* ===== Hero ===== */
.hero-v3 {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--navbar-height));
  place-items: center;
  padding: clamp(3.25rem, 5.25vw, 4.75rem) 0 clamp(2.75rem, 4.5vw, 4rem);
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 35%, rgba(0, 212, 255, 0.09), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(79, 107, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #050816 0%, #060a18 64%, #090d1a 100%);
}

.hero-v3::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
  pointer-events: none;
}

.hero-v3__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}

.hero-v3__content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-v3__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
}

.hero-v3__kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--v3-cyan), transparent);
}

.hero-v3 h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--v3-text);
  font-size: clamp(2.45rem, 4.45vw, 4rem);
  font-weight: 680;
  line-height: 1.01;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-v3__description {
  max-width: 59ch;
  margin: clamp(1.25rem, 2.4vw, 1.8rem) 0 0;
  color: var(--v3-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.65;
}

.hero-v3__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(1.5rem, 3vw, 2.3rem);
}

.hero-v3__actions .btn {
  min-height: 48px;
}

/* Seis métricas en dos filas de tres. Los separadores se dibujan por posición
   en la fila, no por ser el primer hijo: con más de una fila, el primero de
   CADA fila es el que no lleva borde a la izquierda. */
.hero-v3__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2rem, 4vw, 3.25rem) 0 0;
  padding: 1rem 0;
  border-block: 1px solid var(--v3-border);
}

.hero-v3__proof > div {
  min-width: 0;
  padding: 0.25rem clamp(0.55rem, 1.2vw, 1rem);
  border-left: 1px solid var(--v3-border);
}

.hero-v3__proof > div:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}

.hero-v3__proof > div:nth-child(n + 4) {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--v3-border);
}

.hero-v3__proof dt {
  overflow: hidden;
  color: var(--v3-text);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-v3__proof [data-counter-value] {
  display: inline-block;
  color: var(--v3-cyan);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.hero-v3__proof dd {
  margin: 0.35rem 0 0;
  color: var(--v3-muted);
  font-size: clamp(0.75rem, 0.8vw, 0.8rem);
  line-height: 1.4;
}

.unified-visual-canvas {
  position: absolute;
  z-index: 2;
  inset: 4% 4% 8%;
  display: block;
  width: 92%;
  height: 88%;
  max-width: none;
  pointer-events: none;
}

.unified-visual-canvas {
  z-index: 3;
}

.specialist-v3__status span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--v3-success);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.72);
}

.hero-v3__scroll {
  position: absolute;
  z-index: 4;
  bottom: 0.9rem;
  left: 50%;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  color: var(--v3-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.hero-v3__scroll span {
  width: 1px;
  height: 1.5rem;
  background: linear-gradient(var(--v3-cyan), transparent);
}

/* ===== Proyectos ===== */
.home-v3-projects {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(9, 13, 26, 0.98), rgba(5, 8, 22, 0.98)),
    var(--v3-bg-alt);
}

.home-v3-projects::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5rem 0 auto;
  height: 28rem;
  background: radial-gradient(ellipse at center, rgba(79, 107, 255, 0.09), transparent 66%);
  pointer-events: none;
}

.home-v3-projects .section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.home-v3-projects .section-header .section-kicker,
.home-v3-projects .section-header h2 {
  grid-column: 1;
}

.home-v3-projects .section-header > p:not(.section-kicker) {
  grid-column: 2;
}

.home-v3-projects .live-projects-attribution {
  margin-top: 0.8rem;
  color: rgba(166, 176, 195, 0.75) !important;
  font-size: 0.78rem !important;
}

/* ===== Soluciones ===== */
.home-v3-solutions {
  background: var(--v3-bg-deep);
}

.home-v3-solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-v3-solution {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--v3-border);
  border-radius: 1.35rem;
  background:
    linear-gradient(160deg, rgba(20, 30, 51, 0.82), rgba(8, 13, 29, 0.92)),
    var(--v3-surface);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.home-v3-solution::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 20% 10%, rgba(0, 212, 255, 0.12), transparent 38%);
  transition: opacity 220ms ease;
  pointer-events: none;
}

.home-v3-solution:hover {
  border-color: rgba(0, 212, 255, 0.34);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.36);
  transform: translateY(-4px);
}

.home-v3-solution:hover::before { opacity: 1; }

.home-v3-solution svg {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: auto;
  fill: none;
  stroke: var(--v3-cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.25));
}

.home-v3-solution__index {
  margin: 2.5rem 0 0.7rem;
  color: var(--v3-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-v3-solution h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
}

.home-v3-solution > p:not(.home-v3-solution__index) {
  margin: 0.8rem 0 1.25rem;
  color: var(--v3-muted);
  line-height: 1.6;
}

.home-v3-solution ul {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.home-v3-solution li {
  position: relative;
  padding-left: 1rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.86rem;
}

.home-v3-solution li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--v3-cyan);
}

.home-v3-solution .card-link { margin-top: auto; }

/* ===== Software empresarial ===== */
.enterprise-v3 {
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 212, 255, 0.07), transparent 26%),
    radial-gradient(circle at 88% 88%, rgba(139, 92, 246, 0.08), transparent 30%),
    var(--v3-bg-alt);
}

.enterprise-v3__header,
.trust-v3__header {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.enterprise-v3__header h2,
.trust-v3__header h2 { margin-bottom: 0; }

.enterprise-v3__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.enterprise-v3__card {
  position: relative;
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--v3-border);
  border-radius: 1.35rem;
  background: linear-gradient(150deg, rgba(20, 30, 51, 0.88), rgba(6, 11, 25, 0.94));
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.26);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.enterprise-v3__card::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -15%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.06);
  filter: blur(44px);
  pointer-events: none;
}

.enterprise-v3__card:hover {
  border-color: rgba(0, 212, 255, 0.36);
  box-shadow: 0 28px 75px rgba(2, 6, 23, 0.42), 0 0 40px rgba(0, 212, 255, 0.06);
  transform: translateY(-3px);
}

.enterprise-v3__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--v3-cyan);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.enterprise-v3__meta span:last-child { color: var(--v3-muted); }

.enterprise-v3__card h3 {
  margin: 1rem 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.enterprise-v3__card > p {
  max-width: 52ch;
  margin: 0.5rem 0 1rem;
  color: var(--v3-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.enterprise-flow {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.1rem 0 0.4rem;
  overflow: visible;
}

.enterprise-flow__line {
  fill: none;
  stroke: rgba(0, 212, 255, 0.36);
  stroke-width: 2;
}

.enterprise-flow g circle,
.enterprise-flow g rect {
  fill: rgba(79, 107, 255, 0.12);
  stroke: rgba(0, 212, 255, 0.88);
  stroke-width: 2;
}

.enterprise-flow g text {
  fill: rgba(226, 232, 240, 0.78);
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.enterprise-v3__mobile-flow { display: none; }

.enterprise-v3__card.is-in-view .enterprise-flow g circle,
.enterprise-v3__card.is-in-view .enterprise-flow g rect {
  animation: enterprise-node-pulse 3.2s ease-in-out infinite;
}

.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(2) circle,
.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(2) rect { animation-delay: 0.35s; }
.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(3) circle,
.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(3) rect { animation-delay: 0.7s; }
.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(4) circle,
.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(4) rect { animation-delay: 1.05s; }
.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(5) circle,
.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(5) rect { animation-delay: 1.4s; }
.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(6) circle,
.enterprise-v3__card.is-in-view .enterprise-flow g:nth-of-type(6) rect { animation-delay: 1.75s; }

@keyframes enterprise-node-pulse {
  0%, 100% { fill: rgba(79, 107, 255, 0.1); stroke-opacity: 0.62; }
  45% { fill: rgba(0, 212, 255, 0.2); stroke-opacity: 1; }
}

.enterprise-v3__attribution {
  max-width: 920px;
  margin: 1.3rem auto 0;
  padding: 1rem 1.25rem;
  border-left: 2px solid rgba(0, 212, 255, 0.55);
  color: var(--v3-muted);
  background: rgba(15, 23, 42, 0.45);
  font-size: 0.8rem;
  line-height: 1.65;
}

/* ===== Especialista ===== */
.specialist-v3 {
  min-height: auto !important;
  background: var(--v3-bg-deep);
}

.specialist-v3 .specialist-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.specialist-v3 .specialist-heading h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.specialist-v3 .specialist-heading > p:last-child {
  max-width: 58ch;
  color: var(--v3-muted);
}

.specialist-v3__layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.specialist-v3__visual {
  position: relative;
  min-width: 0;
}

.specialist-v3 .specialist-portrait-stage {
  position: relative;
  width: min(100%, 510px);
  min-height: 620px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 50% 60%, rgba(0, 212, 255, 0.12), transparent 42%),
    linear-gradient(155deg, rgba(20, 30, 51, 0.78), rgba(5, 8, 22, 0.94));
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.48), inset 0 1px rgba(255, 255, 255, 0.04);
  perspective: 900px;
  transform: rotateX(var(--specialist-tilt-x, 0deg)) rotateY(var(--specialist-tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 260ms ease;
  contain: layout paint;
}

/* La portada V3 usa exclusivamente el recorte final; evita que el pseudo
   legado solicite dylan-especialista.png y duplique la silueta. */
.specialist-v3 .specialist-portrait-stage::before {
  content: none;
}

.specialist-v3__halo {
  position: absolute;
  inset: 14% 8% 5%;
  border-radius: 48% 48% 22% 22%;
  background: radial-gradient(circle at 50% 38%, rgba(0, 212, 255, 0.24), rgba(79, 107, 255, 0.08) 42%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.specialist-v3__photo {
  position: absolute;
  z-index: 2;
  inset: 4% 2% 0;
  display: grid;
  align-items: end;
  justify-items: center;
  transform: translateZ(24px);
}

.specialist-v3__photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
  object-position: center bottom;
  opacity: var(--specialist-photo-opacity, 1);
  filter:
    drop-shadow(-2px 0 2px rgba(0, 212, 255, 0.68))
    drop-shadow(2px 0 2px rgba(139, 92, 246, 0.52))
    drop-shadow(0 22px 38px rgba(2, 6, 23, 0.7));
  transition: opacity 240ms ease;
}

.specialist-v3 .unified-visual-canvas {
  z-index: 3;
  inset: 3% 2% 2%;
  width: 96%;
  height: 95%;
}

.specialist-v3__orbit {
  position: absolute;
  z-index: 4;
  inset: 10% 6% 12%;
  pointer-events: none;
}

.specialist-v3__orbit span {
  position: absolute;
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 50%;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(5, 8, 22, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(8px);
}

.specialist-v3__orbit span:nth-child(1) { top: 12%; right: 2%; }
.specialist-v3__orbit span:nth-child(2) { top: 42%; left: 0; }
.specialist-v3__orbit span:nth-child(3) { right: 0; bottom: 24%; }
.specialist-v3__orbit span:nth-child(4) { bottom: 2%; left: 14%; }

.specialist-v3__status {
  position: absolute;
  z-index: 5;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.9);
  background: rgba(5, 8, 22, 0.82);
  font-size: 0.68rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.specialist-v3__content { min-width: 0; }

.specialist-v3__label {
  margin: 0 0 0.8rem;
  color: var(--v3-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.specialist-v3 .specialist-name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

/* Jerarquía del perfil: el título profesional pesa más que la formación
   técnica, y ambos más que el rol y la descripción secundaria. */
.specialist-v3 .specialist-title {
  max-width: 34ch;
  margin: 1.1rem 0 0;
  color: var(--v3-text);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.specialist-v3 .specialist-education {
  max-width: 48ch;
  margin: 0.7rem 0 0;
  color: var(--v3-text);
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  font-weight: 600;
  line-height: 1.55;
}

.specialist-v3 .specialist-role {
  max-width: 50ch;
  margin: 0.7rem 0 0;
  color: var(--v3-muted);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  line-height: 1.65;
}

.specialist-v3__skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.specialist-v3__skills li {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--v3-border);
  border-radius: 0.75rem;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.8rem;
}

.specialist-v3 .specialist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.specialist-v3__credentials {
  margin-top: 1.4rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 212, 255, 0.09), transparent 34%),
    rgba(8, 13, 29, 0.84);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 18px 44px rgba(2, 6, 23, 0.18);
}

.specialist-v3__credentials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.specialist-v3__credentials-header p {
  margin: 0 0 0.35rem;
  color: var(--v3-cyan);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.specialist-v3__credentials-header h4 {
  margin: 0;
  color: var(--v3-text);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.2;
}

.specialist-v3__credentials-header a {
  display: inline-flex;
  min-height: 44px;
  flex: none;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 0.25rem;
  color: var(--v3-cyan);
  font-size: 0.76rem;
  font-weight: 700;
}

.specialist-v3__credentials ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.specialist-v3__credentials li {
  display: flex;
  min-width: 0;
  min-height: 116px;
  flex-direction: column;
  padding: 0.8rem;
  border: 1px solid var(--v3-border);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.58);
}

.specialist-v3__credentials li span,
.specialist-v3__credentials li small {
  color: var(--v3-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.specialist-v3__credentials li strong {
  margin-block: 0.5rem;
  color: rgba(248, 250, 252, 0.95);
  font-size: 0.78rem;
  line-height: 1.32;
}

.specialist-v3__credentials li small { margin-top: auto; }

.home-v3-details,
.contact-v3__optional {
  margin-top: 1.2rem;
  border: 1px solid var(--v3-border);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.5);
}

.home-v3-details summary,
.contact-v3__optional summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--v3-text);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.home-v3-details summary::-webkit-details-marker,
.contact-v3__optional summary::-webkit-details-marker { display: none; }

.home-v3-details summary::after,
.contact-v3__optional summary::after {
  content: "+";
  color: var(--v3-cyan);
  font-size: 1.3rem;
}

.home-v3-details[open] summary::after,
.contact-v3__optional[open] summary::after { content: "−"; }

.home-v3-details > div,
.contact-v3__optional > div {
  padding: 0 1rem 1rem;
  color: var(--v3-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ===== Precios, confianza y proceso ===== */
.home-v3-pricing {
  background:
    radial-gradient(circle at 50% 0, rgba(79, 107, 255, 0.1), transparent 35%),
    var(--v3-bg-alt);
}

.trust-v3 { background: var(--v3-bg-deep); }

.trust-v3__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--v3-border);
}

.trust-v3__footer p {
  max-width: 760px;
  margin: 0;
  color: var(--v3-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.process-v3 {
  background:
    linear-gradient(180deg, rgba(9, 13, 26, 0.98), rgba(5, 8, 22, 0.98)),
    var(--v3-bg-alt);
}

.process-v3__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--v3-border);
  border-radius: 1.25rem;
  background: var(--v3-border);
  list-style: none;
}

.process-v3__steps li {
  min-width: 0;
  min-height: 250px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 29, 0.98));
}

.process-v3__steps span {
  color: var(--v3-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.process-v3__steps h3 {
  margin: 4.5rem 0 0.7rem;
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
}

.process-v3__steps p {
  margin: 0;
  color: var(--v3-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ===== Contacto ===== */
.contact-v3 {
  background:
    radial-gradient(circle at 10% 14%, rgba(0, 212, 255, 0.08), transparent 30%),
    var(--v3-bg-deep);
}

.contact-v3__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.contact-v3__intro {
  position: sticky;
  top: calc(var(--navbar-height) + 2rem);
}

.contact-v3__intro h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.contact-v3__intro > p:not(.section-kicker) {
  margin: 1.1rem 0;
  color: var(--v3-muted);
  line-height: 1.65;
}

.contact-v3__intro ul {
  display: grid;
  gap: 0.6rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.contact-v3__intro li {
  position: relative;
  padding-left: 1.15rem;
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.86rem;
}

.contact-v3__intro li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--v3-cyan);
}

.contact-v3__intro > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--v3-cyan);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.contact-v3__form-wrap { min-width: 0; }

.contact-v3 #contact-form {
  padding: clamp(1.2rem, 3vw, 2.25rem);
  border-color: rgba(0, 212, 255, 0.18);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.9), rgba(8, 13, 29, 0.96));
}

.contact-v3 #contact-form .field-full { margin-top: 1rem; }
.contact-v3 #turnstile-widget {
  width: 100%;
  max-width: 100%;
  margin-block: 1rem;
}
.contact-v3 .checkbox-field { margin-block: 1rem; }
.contact-v3 #form-status { margin-top: 1rem; }

.contact-v3__optional .field-grid {
  padding-top: 0.5rem;
}

.contact-v3__faq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.contact-v3__faq details {
  border: 1px solid var(--v3-border);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.5);
}

.contact-v3__faq summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 0.8rem 1rem;
  color: var(--v3-text);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.contact-v3__faq p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--v3-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* ===== Motion control ===== */
@media (min-width: 1101px) {
  .home-v3 .trust-v3 .certifications-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hero-v3__grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
    gap: 2rem;
  }

  /* Dos columnas: tres filas de dos. Se reescriben las reglas de tres columnas. */
  .hero-v3__proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-v3__proof > div:nth-child(3n + 1) {
    padding-left: clamp(0.55rem, 1.2vw, 1rem);
    border-left: 1px solid var(--v3-border);
  }

  .hero-v3__proof > div:nth-child(2n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-v3__proof > div:nth-child(n + 3) {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--v3-border);
  }

  .specialist-v3 .specialist-portrait-stage { min-height: 560px; }
  .specialist-v3__photo img { max-height: 550px; }

  .enterprise-flow { display: none; }

  .enterprise-v3__mobile-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 1.15rem 0 0.65rem;
    padding: 0;
    counter-reset: enterprise-mobile-flow;
    list-style: none;
  }

  .enterprise-v3__mobile-flow li {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 0.7rem;
    color: rgba(226, 232, 240, 0.9);
    background: rgba(15, 23, 42, 0.58);
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.3;
  }

  .enterprise-v3__mobile-flow li::before {
    content: counter(enterprise-mobile-flow, decimal-leading-zero);
    flex: none;
    color: var(--v3-cyan);
    font-size: 0.7rem;
    font-weight: 750;
    counter-increment: enterprise-mobile-flow;
  }
}

@media (max-width: 900px) {
  .hero-v3 {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-v3__grid,
  .specialist-v3__layout,
  .contact-v3__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-v3 h1 { max-width: 14ch; }
  .hero-v3__scroll { display: none; }

  .home-v3-projects .section-header,
  .enterprise-v3__header,
  .trust-v3__header {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .home-v3-projects .section-header > *,
  .home-v3-projects .section-header > p:not(.section-kicker) {
    grid-column: 1;
  }

  .home-v3-solutions__grid { grid-template-columns: minmax(0, 1fr); }

  .home-v3-solution {
    min-height: 0;
  }

  .home-v3-solution svg { margin-bottom: 2rem; }
  .home-v3-solution__index { margin-top: 0; }

  .specialist-v3__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .specialist-v3__content { display: contents; }
  .specialist-v3__label,
  .specialist-v3 .specialist-name,
  .specialist-v3 .specialist-role,
  .specialist-v3__skills { order: 1; }
  .specialist-v3__visual {
    order: 2;
    width: 100%;
    margin-top: 2rem;
  }
  .specialist-v3 .specialist-actions { order: 3; }
  .specialist-v3__credentials { order: 4; }
  .specialist-v3 .home-v3-details { order: 5; }

  .contact-v3__intro { position: static; }
}

@media (max-width: 760px) {
  .home-v3 main .section {
    padding-block: clamp(4rem, 16vw, 5.5rem);
  }

  .hero-v3 {
    padding: 3.25rem 0 3.5rem;
  }

  .hero-v3__content { text-align: left; }

  .enterprise-v3__grid,
  .process-v3__steps,
  .contact-v3__faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-v3__steps li {
    min-height: 0;
  }

  .process-v3__steps h3 { margin-top: 2.4rem; }

  .specialist-v3 .specialist-portrait-stage {
    min-height: min(126vw, 580px);
  }

  .specialist-v3__photo img {
    max-height: min(122vw, 565px);
  }

  .trust-v3__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-v3__footer .btn { align-self: flex-start; }
}

@media (max-width: 520px) {
  .home-v3 .section-shell {
    width: min(100% - 2.5rem, var(--container-max));
  }

  .hero-v3 h1 {
    max-width: none;
    font-size: clamp(2.05rem, 10.6vw, 2.75rem);
  }

  .hero-v3__description {
    font-size: 0.98rem;
  }

  .hero-v3__proof { margin-top: 1.5rem; }

  .hero-v3__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-v3__actions .btn {
    width: 100%;
  }

  .hero-v3__proof dt { white-space: normal; }

  .hero-v3__proof dd { font-size: 0.75rem; }

  .unified-visual-canvas {
    inset: 6% 0 8%;
    width: 100%;
    height: 86%;
  }

  .home-v3 main .section-header h2,
  .home-v3 .enterprise-v3__header h2,
  .home-v3 .trust-v3__header h2,
  .specialist-v3 .specialist-heading h2 {
    max-width: none;
  }

  .home-v3-solution,
  .enterprise-v3__card {
    padding: 1.2rem;
    border-radius: 1rem;
  }

  .enterprise-v3__mobile-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specialist-v3 .specialist-portrait-stage {
    min-height: min(128vw, 530px);
    border-radius: 1.2rem;
  }

  .specialist-v3__photo img {
    max-height: min(124vw, 520px);
  }

  .specialist-v3__credentials-header {
    align-items: flex-start;
  }

  .specialist-v3__credentials-header p,
  .specialist-v3__credentials li span,
  .specialist-v3__credentials li small {
    font-size: 0.75rem;
  }

  .specialist-v3__credentials ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .specialist-v3__credentials li { min-height: 0; }

  .specialist-v3 .specialist-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .specialist-v3 .specialist-actions .btn { width: 100%; }

  .contact-v3 #contact-form { padding: 1rem; }
}

@media (max-width: 350px) {
  .home-v3 .section-shell {
    width: min(100% - 2rem, var(--container-max));
  }

  .hero-v3 h1 { font-size: clamp(1.95rem, 10.2vw, 2.2rem); }
  .specialist-v3__skills { grid-template-columns: minmax(0, 1fr); }

  .specialist-v3__orbit span {
    min-width: 40px;
    height: 40px;
  }
}

@media (hover: none), (pointer: coarse) {
  .home-v3-solution:hover,
  .enterprise-v3__card:hover {
    transform: none;
  }

  .specialist-v3 .specialist-portrait-stage {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .enterprise-v3__card.is-in-view .enterprise-flow g circle,
  .enterprise-v3__card.is-in-view .enterprise-flow g rect {
    animation: none !important;
  }

  .home-v3-solution,
  .enterprise-v3__card,
  .specialist-v3 .specialist-portrait-stage {
    transition: none !important;
    transform: none !important;
  }
}

.home-v3-save-data .enterprise-v3__card.is-in-view .enterprise-flow g circle,
.home-v3-save-data .enterprise-v3__card.is-in-view .enterprise-flow g rect {
  animation: none !important;
}

/* ===== Tarjeta de contexto del fundador ==================================
   Apoyo visual bajo el perfil, NO protagonista: el retrato con partículas es
   el elemento principal. Por eso la tarjeta se limita en ancho y la imagen a
   132 px — antes era una figura a todo el ancho que competía con el retrato.
   Fotografía propia (ver data/media.json). */
.founder-context {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.35rem);
  /* Contenida a propósito: nunca ocupa el ancho completo de la sección. */
  max-width: 34rem;
  margin: clamp(1.75rem, 3.2vw, 2.5rem) 0 0;
  padding: 0.85rem;
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 1rem;
  background: rgba(8, 13, 29, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 14px 34px rgba(2, 6, 23, 0.24);
  transition: border-color var(--transition-slow, 420ms) ease;
}

.founder-context:hover {
  border-color: rgba(0, 212, 255, 0.34);
}

/* La proporción se fija aquí: el archivo ya viene recortado a 4:5, así que el
   contenedor usa la misma y object-fit: cover no recorta nada del rostro. */
.founder-context__media {
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  width: clamp(92px, 24vw, 132px);
  aspect-ratio: 4 / 5;
  border-radius: 0.7rem;
  background: rgba(8, 13, 29, 0.9);
}

.founder-context__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.founder-context__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.32rem;
  min-width: 0;
}

.founder-context__tag {
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--color-accent, #00d4ff);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.founder-context__body strong {
  color: var(--color-text, #e2e8f0);
  font-size: var(--fs-sm);
}

.founder-context__body > span:last-of-type {
  color: var(--color-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.founder-context__body a {
  margin-top: 0.15rem;
  color: var(--color-accent, #00d4ff);
  font-size: var(--fs-xs);
  font-weight: 600;
}

@media (max-width: 520px) {
  .founder-context {
    gap: 0.85rem;
    padding: 0.7rem;
  }
}

/* ===== Promoción de lanzamiento =========================================
   Sección destacada antes de los precios. Sin temporizadores, sin urgencia
   inventada: el plazo es real y depende de que el cliente entregue el
   contenido, y eso se dice en la propia tarjeta. */
.launch-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 212, 255, 0.13), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(139, 92, 246, 0.14), transparent 46%),
    linear-gradient(160deg, #070c1c 0%, #0a1024 58%, #070b18 100%);
}

/* Rejilla técnica muy tenue: textura, no ruido. */
.launch-promo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 78% 66% at 50% 42%, #000 32%, transparent 78%);
  pointer-events: none;
}

.launch-promo__shell {
  max-width: 62rem;
  text-align: center;
}

.launch-promo__badge {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.32rem 0.95rem;
  border: 1px solid rgba(0, 212, 255, 0.42);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.18);
  color: var(--v3-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.launch-promo__title {
  max-width: 18ch;
  margin: 0 auto;
  color: var(--v3-text);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.launch-promo__lead {
  max-width: 46ch;
  margin: clamp(1rem, 2vw, 1.5rem) auto 0;
  color: var(--v3-text);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.launch-promo__sub {
  max-width: 62ch;
  margin: 0.7rem auto 0;
  color: var(--v3-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.launch-promo__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}

.launch-promo__price-label {
  color: var(--v3-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch-promo__price strong {
  color: var(--v3-cyan);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 34px rgba(0, 212, 255, 0.28);
}

.launch-promo__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: clamp(1.4rem, 2.6vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.launch-promo__list li {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--v3-border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: var(--v3-text);
  font-size: 0.78rem;
}

.launch-promo__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.launch-promo__note {
  max-width: 68ch;
  margin: clamp(1.4rem, 2.6vw, 2rem) auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--v3-border);
  color: var(--v3-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Estado inicial de la animación. Solo se aplica cuando hay JS y movimiento
   permitido: si el script no corre, `is-ready` nunca llega y el contenido
   queda visible sin depender de la animación. */
.launch-promo.is-animatable [data-launch-step] {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  .launch-promo.is-animatable [data-launch-step] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .launch-promo__list {
    gap: 0.4rem;
  }

  .launch-promo__list li {
    font-size: 0.72rem;
  }
}

/* Destellos del precio. Solo existen mientras dura la animación de entrada:
   el script los elimina del DOM al terminar. */
.launch-promo__sparkles {
  position: absolute;
  inset: -18% -8%;
  pointer-events: none;
}

.launch-promo__sparkles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--v3-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.85);
  opacity: 0;
}

.launch-promo__price {
  position: relative;
}

/* ===== Guild Lab · teaser en la home ====================================
   Solo la invitación. Los scripts de la herramienta NO se cargan aquí: viven
   en /herramientas/ para no afectar el LCP de la portada. */
.lab-teaser {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 25%, rgba(0, 212, 255, 0.1), transparent 42%),
    radial-gradient(circle at 88% 70%, rgba(91, 96, 255, 0.13), transparent 46%),
    linear-gradient(150deg, #060a14 0%, #080e1c 62%, #060a14 100%);
}

.lab-teaser__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .lab-teaser__shell { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.lab-teaser__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--v3-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lab-teaser h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--v3-text);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* Píldora de resaltado, el recurso visual de la referencia. */
.lab-teaser .lab-pill {
  display: inline-block;
  padding: 0.05em 0.45em;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.22), rgba(91, 96, 255, 0.22));
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.36);
  color: var(--v3-cyan);
}

.lab-teaser__lead {
  max-width: 56ch;
  margin: clamp(1rem, 2vw, 1.4rem) 0 0;
  color: var(--v3-muted);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.65;
}

.lab-teaser__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin: clamp(1.4rem, 2.6vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.lab-teaser__cards li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
}

.lab-teaser__cards strong { color: var(--v3-text); font-size: 0.9rem; }
.lab-teaser__cards span { color: var(--v3-muted); font-size: 0.78rem; line-height: 1.5; }

.lab-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: clamp(1.4rem, 2.8vw, 2rem);
}

/* Tarjetas flotantes: decorativas y con placeholder honesto, sin cifras
   inventadas. Ocultas a lectores de pantalla por aria-hidden en el markup. */
.lab-teaser__floats {
  display: grid;
  gap: 0.85rem;
  justify-items: stretch;
}

@media (min-width: 900px) {
  .lab-teaser__floats { justify-items: end; }
  .lab-teaser__float--alt { transform: translateX(-1.75rem); }
}

.lab-teaser__float {
  width: 100%;
  max-width: 17rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(16, 24, 38, 0.94), rgba(10, 16, 25, 0.9));
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.4);
}

.lab-teaser__float--alt { border-color: rgba(46, 213, 115, 0.28); }

.lab-teaser__float-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--v3-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-teaser__float strong { color: var(--v3-cyan); font-size: 0.95rem; font-weight: 600; }
.lab-teaser__float--alt strong { color: #a6f7ce; }

/* ===== 11. Garantías y propiedad =====
   Franja de confianza: mismas superficies y bordes que el resto de la home,
   sin efectos nuevos. Cada tarjeta es una condición verificable de los planes
   publicados. */
.ownership-v3 {
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.98), rgba(9, 13, 26, 0.98)),
    var(--v3-bg-alt);
}

.ownership-v3__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ownership-v3__grid li {
  min-width: 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--v3-border);
  border-radius: 1rem;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 29, 0.96));
}

.ownership-v3__grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--v3-text);
  font-size: 0.98rem;
  font-weight: 600;
}

/* Marca de verificación discreta: verde = estado positivo, sin iconografía nueva. */
.ownership-v3__grid strong::before {
  content: "✓";
  margin-right: 0.5rem;
  color: #2ed573;
  font-weight: 700;
}

.ownership-v3__grid span {
  color: var(--v3-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ==========================================================================
   2. DIAGNÓSTICO RÁPIDO
   Índigo = selección y CTA principal. Menta = resultado correcto.
   Ámbar = precio. Dos acentos dominantes por vista, no seis.
   ========================================================================== */
.quick-diagnostic {
  background:
    radial-gradient(ellipse 70% 60% at 15% 0%, rgba(103, 92, 255, 0.13), transparent 62%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
}

.qd__intro { max-width: 46rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.qd__intro h2 { margin: 0.4rem 0 0.6rem; color: var(--text-main); }
.qd__lead { margin: 0; color: var(--text-muted); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.65; }

.qd__panel {
  max-width: 52rem;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid var(--edge-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-1), var(--ink-900));
  box-shadow: var(--shadow-md);
}

/* --- Progreso --- */
.qd__progress { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.3rem; }
.qd__progress-label { margin: 0; color: var(--text-muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.qd__dots { display: flex; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }

.qd__dot {
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  transition: background var(--transition-fast);
}

.qd__dot.is-done { background: var(--success-mint); }
.qd__dot.is-current { background: var(--brand-indigo); }

/* --- Pasos --- */
.qd__step { min-width: 0; margin: 0; padding: 0; border: 0; }

.qd__legend {
  padding: 0;
  color: var(--text-main);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}

.qd__legend:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 6px; border-radius: 4px; }

.qd__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.55rem;
  margin-top: 1.1rem;
}

/* Sin JS los tres pasos quedan visibles y separados. */
.qd__panel:not(.is-enhanced) .qd__step + .qd__step { margin-top: 2rem; }

.qd__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  /* 44px reales de área táctil. */
  min-height: 56px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--edge-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.qd__option:hover { border-color: var(--edge-strong); }

/* Radio real, oculto accesiblemente: conserva foco y semántica. */
.qd__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.qd__option-mark {
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--edge-strong);
  border-radius: 50%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.qd__option input:checked ~ .qd__option-mark {
  border-color: var(--brand-indigo);
  box-shadow: inset 0 0 0 4px var(--brand-indigo);
}

.qd__option:has(input:checked) { border-color: var(--edge-active); background: rgba(103, 92, 255, 0.12); }
.qd__option:has(input:focus-visible) { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
.qd__option-text { min-width: 0; }

.qd__nav { margin-top: 1.2rem; }

.qd__back {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--edge-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.qd__back:hover { border-color: var(--edge-strong); color: var(--text-main); }
.qd__back:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }

/* --- Resultado --- */
.qd__loading { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.qd__result {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--edge-subtle);
}

.qd__result-eyebrow { margin: 0; color: var(--success-mint); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.qd__result-plan { margin: 0.35rem 0 0.2rem; color: var(--text-main); font-size: clamp(1.4rem, 3vw, 1.95rem); line-height: 1.2; }
.qd__result-plan:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 5px; border-radius: 4px; }
/* Ámbar = precio, según la regla del sistema de color. */
.qd__result-price { margin: 0; color: var(--attention-amber); font-size: 1.2rem; font-weight: 700; }
.qd__result-why { margin: 0.9rem 0 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

.qd__result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.6rem;
  margin: 1.2rem 0 0;
}

.qd__result-row { padding: 0.7rem 0.85rem; border: 1px solid var(--edge-subtle); border-radius: var(--radius-sm); background: var(--surface-2); }
.qd__result-row dt { color: var(--text-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.qd__result-row dd { margin: 0.25rem 0 0; color: var(--text-main); font-size: 0.88rem; line-height: 1.45; }

.qd__why { margin-top: 1rem; }
.qd__why-summary { color: var(--brand-cyan); cursor: pointer; font-size: 0.88rem; font-weight: 600; }
.qd__why-summary:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 3px; border-radius: 4px; }
.qd__why-list { margin: 0.7rem 0 0; padding-left: 1.15rem; color: var(--text-muted); font-size: 0.86rem; line-height: 1.6; }
.qd__why-list li { margin-bottom: 0.4rem; }
.qd__why-note { margin: 0.6rem 0 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; }

.qd__result-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

.qd__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

/* Índigo sólido: blanco encima da 5.51:1. */
.qd__cta--primary { border: 1px solid var(--brand-indigo-solid); background: var(--brand-indigo-solid); color: #fff; }
.qd__cta--primary:hover { background: var(--brand-indigo); transform: translateY(-1px); }
.qd__cta--ghost { border: 1px solid var(--edge-strong); background: transparent; color: var(--text-main); }
.qd__cta--ghost:hover { border-color: var(--brand-cyan); }
.qd__cta:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 3px; }

.qd__disclaimer { margin: 1.1rem 0 0; color: var(--text-muted); font-size: 0.78rem; line-height: 1.6; }
.qd__fail { margin: 0 0 0.9rem; color: var(--danger-coral); font-size: 0.92rem; }
.qd__noscript { margin: 1.2rem 0 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
.qd__noscript a { color: var(--brand-cyan); }
.qd__foot { max-width: 52rem; margin: 1rem 0 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; }
.qd__foot a { color: var(--brand-cyan); }

.hero-v3__proof-price { color: var(--attention-amber); }

@media (prefers-reduced-motion: reduce) {
  .qd__dot, .qd__option, .qd__option-mark, .qd__cta { transition: none; }
  .qd__cta--primary:hover { transform: none; }
}

/* ==========================================================================
   ROBOT 3D DEL HERO (Spline)
   Sustituye por completo al núcleo «GS» anterior. Va SUELTO sobre el hero:
   sin tarjeta, sin borde cyan, sin fondo propio y sin aspecto de iframe.
   La altura está reservada para que la carga diferida no provoque CLS.
   ========================================================================== */

/* Reparto pedido: texto 54–58 %, robot 38–44 %, resto para respirar. */
@media (min-width: 1101px) {
  .hero-v3__grid { grid-template-columns: minmax(0, 56fr) minmax(0, 41fr); }
}

.hero-v3__robot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  /* Ancho y alto reservados: 520–580 px de ancho, 500–620 de alto, y nunca
     más del 72 % de la altura visible del hero. */
  max-width: 580px;
  height: clamp(500px, 52vw, 620px);
  max-height: 72vh;
  margin-inline: auto;
  /* El canvas no debe capturar el gesto de scroll de la página. */
  touch-action: pan-y;
}

/* Glow tenue detrás del robot. No es una esfera: es un degradado radial
   difuminado al 26 % que solo separa la figura del fondo. */
/* Halo de separación. El torso del robot es negro sobre fondo casi negro y se
   perdía contra él; este halo lo despega sin dibujar una tarjeta, un círculo
   sólido ni un borde recto. Opacidad máxima ~20 %, como pide el encargo.
   El tono lo controla --robot-glow, que cambia con el estado del asistente. */
.hero-v3__robot-glow {
  position: absolute;
  inset: 10% 6% 16%;
  z-index: 0;
  background:
    /* realce lateral índigo: da volumen al hombro derecho */
    radial-gradient(ellipse 42% 62% at 74% 42%, rgba(103, 92, 255, 0.13), transparent 70%),
    /* luz principal cyan, ligeramente arriba a la izquierda */
    radial-gradient(circle at 52% 45%, var(--robot-glow, rgba(34, 199, 243, 0.15)), rgba(103, 92, 255, 0.07) 38%, transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  transition: background 520ms ease;
}

/* Fundido entre el póster y la escena. El módulo usa el mismo valor
   (FADE_MS en hero-spline-robot.js): si se cambia aquí, cambiarlo allí. */
.hero-v3__robot { --robot-fade: 420ms; }

/* El viewer ocupa el espacio reservado y aparece con un fundido corto.
   NO entra con scale ni translateY: el póster muestra el mismo robot, en la
   misma pose y al mismo tamaño, así que cualquier desplazamiento delataría el
   cambio. Fundir opacidad y nada más es lo que lo hace imperceptible. */
.hero-v3__robot-viewer {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--robot-fade) ease-out;
}

.hero-v3__robot[data-robot-state="listo"] .hero-v3__robot-viewer { opacity: 1; }

/* El viewer de Spline trae su propio fondo y su logo dentro del shadow DOM.
   Se neutralizan para que no aparezca ni recuadro ni marca flotante. */
.hero-v3__robot-viewer::part(logo) { display: none !important; }

/* Póster: render real del robot. Visible desde el primer pintado y definitivo
   si no hay WebGL, si la escena falla, con Save-Data o con movimiento
   reducido. Opacidad 1: es el robot, no un fantasma que insinúa que falta algo. */
.hero-v3__robot-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity var(--robot-fade) ease-out;
  pointer-events: none;
}

/* CÓMO SE ALINEA CON EL CANVAS.
   Spline encuadra el modelo por ALTURA: medido en seis tamaños de lienzo, el
   robot ocupa siempre del 13,2 % al 100 % del alto, cambie como cambie el
   ancho. Por eso el póster se escala por altura y se centra, en vez de usar
   object-fit: contain (que lo encogería en lienzos anchos) o cover (que le
   recortaría la cabeza). El sobrante horizontal lo recorta el overflow, igual
   que hace el propio canvas. */
/* <picture> no debe formar caja: si la forma, es ELLA la que se centra y la
   imagen deja de medir el alto del hueco. */
.hero-v3__robot-poster picture { display: contents; }

/* La imagen se posiciona en absoluto, no como elemento de la rejilla.
   Con place-items: center la fila queda de tamaño automático y un height:100%
   sobre ella entra en dependencia cíclica: el navegador lo resuelve como
   auto y la imagen sale a su tamaño natural (1160×1240). Contra el envoltorio
   —que sí tiene alto definido— el porcentaje resuelve bien. */
.hero-v3__robot-poster img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}

.hero-v3__robot-poster[data-faded="true"] { opacity: 0; }

/* Estados sin 3D: el póster se queda y es lo único visible. No se atenúa:
   en esos casos no hay nada mejor que enseñar y debe verse bien. */
.hero-v3__robot[data-robot-state="reduced-motion"] .hero-v3__robot-poster,
.hero-v3__robot[data-robot-state="save-data"] .hero-v3__robot-poster,
.hero-v3__robot[data-robot-state="sin-webgl"] .hero-v3__robot-poster,
.hero-v3__robot[data-robot-state="error"] .hero-v3__robot-poster,
.hero-v3__robot[data-robot-state="sin-escena"] .hero-v3__robot-poster { opacity: 1; }

/* Indicador de carga: tres puntos que laten, sin texto. El módulo lo retira a
   los 2 s. Discreto a propósito: el póster ya enseña el robot. */
.hero-v3__robot-loader {
  position: absolute;
  bottom: 6%;
  z-index: 3;
  display: flex;
  gap: 6px;
  margin: 0;
  pointer-events: none;
}

.hero-v3__robot-loader span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--v3-muted);
  opacity: 0.45;
  animation: robot-loader 1.2s ease-in-out infinite;
}

/* `display: flex` de arriba gana al `display: none` que el navegador aplica a
   [hidden], así que sin esta línea el atributo hidden no ocultaría nada y los
   puntos se quedarían puestos con el robot ya cargado. */
.hero-v3__robot-loader[hidden] { display: none; }

.hero-v3__robot-loader span:nth-child(2) { animation-delay: 0.15s; }
.hero-v3__robot-loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes robot-loader {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-3px); }
}

/* Escritorio medio: se recorta la altura para que en 1366×768 quepan
   cabeza, manos y los botones del hero sin cortar nada. */
@media (max-width: 1440px) and (min-width: 1101px) {
  .hero-v3__robot { height: clamp(440px, 46vw, 540px); max-height: 66vh; }
}

@media (max-height: 800px) and (min-width: 1101px) {
  .hero-v3__robot { height: clamp(400px, 42vw, 500px); max-height: 62vh; }
}

/* Móvil y tablet: bajo el texto y los CTA, 300–360 px, dejando ver que
   debajo continúa el diagnóstico rápido. */
@media (max-width: 1100px) {
  .hero-v3__robot {
    height: clamp(300px, 62vw, 360px);
    max-height: 46vh;
    max-width: 420px;
  }
  .hero-v3__robot-glow { inset: 14% 10% 16%; filter: blur(20px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v3__robot-viewer { transition: none; opacity: 1; transform: none; }
  .hero-v3__robot-poster { transition: none; }
  /* Con movimiento reducido la escena no se descarga: el póster es el
     resultado final y los puntos no deben latir. */
  .hero-v3__robot-loader { display: none; }
}

/* ---------- Guía del diagnóstico rápido ----------
   Rastreador de pasos, sobrio y sin animación permanente. NO es un sustituto
   del robot: la escena 3D vive una sola vez, en el hero. */
.qd__layout { display: grid; gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.qd__guide { display: none; }

@media (min-width: 1024px) {
  .qd__layout { grid-template-columns: minmax(0, 52rem) minmax(0, 17rem); }
  .qd__guide {
    display: block;
    position: sticky;
    top: 6rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--edge-subtle);
    border-radius: var(--radius-lg);
    background: var(--surface-1);
  }
}

.qd__guide-steps { margin: 0; padding: 0; list-style: none; }

.qd__guide-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.qd__guide-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--edge-subtle);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}

/* El paso en curso se marca con índigo; los completados, con menta. */
.qd__guide[data-qd-state="1"] [data-qd-step="1"],
.qd__guide[data-qd-state="2"] [data-qd-step="2"],
.qd__guide[data-qd-state="3"] [data-qd-step="3"] { color: var(--text-main); }

.qd__guide[data-qd-state="1"] [data-qd-step="1"] .qd__guide-num,
.qd__guide[data-qd-state="2"] [data-qd-step="2"] .qd__guide-num,
.qd__guide[data-qd-state="3"] [data-qd-step="3"] .qd__guide-num {
  border-color: var(--brand-indigo);
  background: var(--brand-indigo);
  color: #fff;
}

.qd__guide[data-qd-state="2"] [data-qd-step="1"] .qd__guide-num,
.qd__guide[data-qd-state="3"] [data-qd-step="1"] .qd__guide-num,
.qd__guide[data-qd-state="3"] [data-qd-step="2"] .qd__guide-num,
.qd__guide[data-qd-state="listo"] .qd__guide-num {
  border-color: var(--success-mint);
  color: var(--success-mint);
}

.qd__guide[data-qd-state="listo"] .qd__guide-steps li { color: var(--text-main); }

.qd__guide-caption {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--edge-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  line-height: 1.5;
}

.qd__guide-note { margin: 0.5rem 0 0; color: var(--text-muted); font-size: 0.76rem; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .qd__guide-steps li { transition: none; }
}
