/* Bloques home adicionales (paridad seahaven-web) */

:root {
  --sh-mint: #7fc8ff;
  --sh-border: #2f4b68;
  --sh-bg-surface: #0d1322;
  --sh-bg-subtle: #161f34;
  --fw-line: #7fc8ff;
  --fw-line-dim: #40668d;
  --fw-pill-bg: rgba(127, 200, 255, 0.12);
  --fw-pill-text: #e8f4ff;
  --fw-fill: #7fc8ff;
  --fw-fill-text: #030710;
}

/* ——— Pastillas Lottie: IDs exactos seahaven-web ——— */
.home_animation-words {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative;
  z-index: 4;
  align-self: start;
  width: min(80rem, 100%);
  pointer-events: none;
}

.home_animation-words .is-tag {
  margin-top: 0 !important;
  justify-self: auto;
}

#home-anim-tag-automatiza { justify-self: center; }
#home-anim-tag-aprende { justify-self: start; }
#home-anim-tag-escala { justify-self: end; }
#home-anim-tag-crece { justify-self: center; }

@media screen and (max-width: 991px) {
  .home_animation-words {
    grid-template-columns: 1fr 1.25fr 1.25fr 1fr;
  }
  #home-anim-tag-automatiza { justify-self: start; }
  #home-anim-tag-crece { justify-self: end; }
}

/* ≤767: reset posiciones desktop; el 2×2 vive en home-layout.css */
@media screen and (max-width: 767px) {
  #home-anim-tag-automatiza,
  #home-anim-tag-aprende,
  #home-anim-tag-escala,
  #home-anim-tag-crece {
    justify-self: center !important;
  }
}

/* Quote con animación por letras (SplitType + GSAP), como seahaven-web */
.home_text-animation-wrapper {
  z-index: 3;
  background-color: transparent;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 1rem var(--gutter) 2rem;
  display: flex;
  position: relative;
  width: 100%;
}

.home_text-animation-wrapper .anim-quote {
  width: min(100%, 53rem);
  position: relative;
  z-index: 1;
}

/* Máscara local sobre el rail para que no corte las letras (seahaven-web .line-bg) */
.home_text-animation-wrapper .line-bg {
  background-image: linear-gradient(
    180deg,
    #03071000,
    #030710 12%,
    #030710 88%,
    #03071000
  );
  width: 1.75rem;
  height: 160%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Recorrido del rail+bullet tras la frase, hasta el siguiente bloque */
.home_animation-rail-tail {
  width: 100%;
  min-height: 14rem;
  position: relative;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.home_text-animation-wrapper .home-anim-lead {
  margin: 0;
  color: #7fc8ff;
  font-family: "Twklausanne", Tahoma, sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: left;
}

/* SplitType: evitar espacios fantasma entre chars */
.home-anim-lead[text-letters-animation] .word {
  font-size: 0;
  line-height: 0;
}

.home-anim-lead[text-letters-animation] .word .char {
  font-family: "Twklausanne", Tahoma, sans-serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: inline-block;
}

@media screen and (max-width: 991px) {
  .home-anim-lead[text-letters-animation] .word .char {
    font-size: 1.5rem;
    line-height: 1.2;
  }
}

/* ——— GEO / authority ——— */
.geo-summary-band {
  position: relative;
  z-index: 2;
  background: #030710;
  border-top: 1px solid #161f34;
  padding: 1.25rem 0 1.5rem;
  width: 100%;
  max-width: none;
  margin: 0 !important;
}

.geo-summary-band .inner {
  width: min(100% - (var(--gutter) * 2), 88.5rem);
  margin: 0 auto;
}

.geo-summary-band .resumen-directo {
  margin: 0;
  max-width: 52rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0;
}

.sh-authority-section {
  padding: 1.5rem 0 2.5rem;
  width: 100%;
  max-width: none;
  margin: 0 !important;
}

.sh-authority-section .inner {
  width: min(100% - (var(--gutter) * 2), 88.5rem);
  margin: 0 auto;
}

.sh-authority-text {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.75;
  color: #99d3ff;
  max-width: 52rem;
  margin: 0;
  opacity: 0.9;
}

/* ——— Method steps (paridad visual seahaven-web / custom.css) ——— */
.sh-method-section {
  padding-block: 5rem;
  border-top: 1px solid var(--sh-border);
  width: 100%;
  max-width: none;
  margin: 0 !important;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(127, 200, 255, 0.06), transparent 55%),
    #030710;
}

.sh-method-section .inner {
  width: min(100% - (var(--gutter) * 2), 88.5rem);
  margin: 0 auto;
}

.sh-method-header {
  margin-bottom: 3rem;
}

.sh-overline {
  font-family: "Aeonik", Tahoma, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sh-mint);
  margin: 0 0 0.75rem;
}

/* Compacto y marcado como en seahaven-web (.sh-section-heading), no el H2 global */
.sh-method-section .sh-section-heading,
.sh-method-section h2.sh-section-heading {
  font-family: "Twklausanne", Tahoma, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  color: #7fc8ff;
  max-width: 34rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 0;
}

.sh-method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sh-method-step {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--sh-border);
  background: linear-gradient(180deg, #121822 0%, var(--sh-bg-surface) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  min-height: 100%;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sh-method-step:hover {
  border-color: #40668d;
  transform: translateY(-2px);
}

.sh-method-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--sh-mint);
  opacity: 0.5;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sh-method-title {
  font-family: "Twklausanne", Tahoma, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #f2faff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sh-method-desc {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.75rem;
  font-family: "Twklausanne", Tahoma, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #99d3ff;
  line-height: 1.65;
  margin: 0;
  opacity: 0.9;
}

.sh-method-desc .plazo {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 200, 255, 0.28);
  background: rgba(127, 200, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: #7fc8ff;
  letter-spacing: 0.02em;
}

.sh-method-section .method-link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Aeonik", Tahoma, sans-serif;
  font-size: 0.9rem;
  color: #7fc8ff;
  text-decoration: none;
}

.sh-method-section .method-link:hover {
  color: #99d3ff;
}

@media (max-width: 991px) {
  .sh-method-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .sh-method-steps { grid-template-columns: 1fr; }
}

/* ——— Frameworks (casos de uso, fondo claro) ——— */
.home_frameworks-section {
  background: #f2faff;
  color: #030710;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  display: block;
}

.home_frameworks-section .inner {
  width: min(100% - (var(--gutter) * 2), 88.5rem);
  margin: 0 auto;
  padding: 6rem 0 5rem;
}

.home_frameworks-section h2 {
  color: #030710;
  max-width: 28rem;
  margin: 0;
}

.frameworks-heading-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.frameworks-heading-wrapper .lead {
  max-width: 26rem;
  margin: 0;
  color: #2f4b68;
  font-size: 1.05rem;
  line-height: 1.5;
}

.frameworks-3col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.frameworks-col-wrapper {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.frameworks-col-wrapper h3 a { color: inherit; text-decoration: none; }
.frameworks-col-wrapper h3 a:hover { color: #0a4d80; }
.frameworks-col-wrapper .fw-cta { text-decoration: none; }
.frameworks-col-wrapper .fw-cta:hover { color: #0a4d80; }

.framework-diagram.sh-mock-v2 {
  --sh-mock-bg: #0e0e0e;
  --sh-mock-surface: #141414;
  --sh-mock-muted: #1f1f1f;
  --sh-mock-border: #2a2a2a;
  --sh-mock-text: #f5f5f5;
  --sh-mock-dim: rgba(245, 245, 245, 0.45);
  --sh-mock-accent: #7fc8ff;
  aspect-ratio: 456 / 300;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  display: block;
  font-family: "Aeonik Mono", "Aeonik", ui-monospace, monospace;
  box-shadow: none;
  pointer-events: none;
}
.framework-diagram.sh-mock-v2 .sh-mock-browser {
  height: 100%;
  box-shadow: 0 14px 36px rgba(3, 7, 16, 0.18);
}
.framework-diagram.sh-mock-v2 .sh-mock-body {
  min-height: 11.5rem;
}
.framework-diagram.sh-mock-v2 .sh-flow-node {
  font-size: 0.6rem;
  padding: 0.3rem 0.55rem;
}
.framework-diagram.sh-mock-v2 .sh-flow-agent--label span {
  font-size: 0.62rem;
}
.framework-diagram.sh-mock-v2 .sh-stack-pill,
.framework-diagram.sh-mock-v2 .sh-stack-node {
  font-size: 0.6rem;
  padding: 0.32rem 0.55rem;
  width: min(100%, 12.5rem);
}

.framework-content-wrapper .fw-label {
  font-family: "Aeonik", Tahoma, sans-serif;
  font-size: 0.9rem;
  color: #40668d;
  margin-bottom: 0.75rem;
}

.home_frameworks-section h3 {
  color: #030710;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 0 0 0.65rem;
}

.home_frameworks-section h3 a {
  color: inherit;
  text-decoration: none;
}

.framework-content-wrapper p {
  margin: 0 0 1rem;
  color: #2f4b68;
  font-size: 0.95rem;
}

.framework-content-wrapper .fw-cta {
  font-family: "Aeonik", Tahoma, sans-serif;
  font-size: 0.85rem;
  color: #0d1322;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 991px) {
  .frameworks-3col-grid { grid-template-columns: 1fr; }
  .frameworks-heading-wrapper { flex-direction: column; align-items: flex-start; }
}

/* ——— Dual split (asesor/ejecutor) ——— */
.home-split-band {
  width: min(100% - (var(--gutter) * 2), 88.5rem);
  margin-left: auto;
  margin-right: auto;
}

/* ——— Authority / dogfood / herencia / Valencia ——— */
.home-authority-band {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(47, 75, 104, 0.55);
  border-bottom: 1px solid rgba(47, 75, 104, 0.55);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(127, 200, 255, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(127, 200, 255, 0.04), transparent 50%),
    #0d1322;
}

.home-authority-inner {
  width: min(100% - (var(--gutter) * 2), 88.5rem);
  margin: 0 auto;
  padding: 1.25rem 0;
}

.home-authority-row {
  display: grid;
  grid-template-columns: minmax(14rem, 0.92fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  margin: 0;
  border-top: 1px solid rgba(127, 200, 255, 0.12);
}

.home-authority-row:first-child {
  border-top: none;
}

.home-authority-head h2 {
  margin: 0;
  color: var(--sh-mint, #7fc8ff);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
  text-wrap: balance;
}

.home-authority-body {
  padding-top: 0.2rem;
}

.home-authority-body p {
  margin: 0;
  max-width: 40rem;
  font-family: "Aeonik", Tahoma, sans-serif;
  font-size: clamp(0.95rem, 1.35vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: #cce9ff;
  opacity: 0.88;
}

.home-authority-body p strong {
  color: #7fc8ff;
  font-weight: 400;
}

.home-authority-body a {
  color: #7fc8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 200, 255, 0.35);
  transition: border-color 0.2s, color 0.2s;
}

.home-authority-body a:hover {
  color: #99d3ff;
  border-bottom-color: #99d3ff;
}

@media (max-width: 791px) {
  .home-authority-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.25rem 0;
  }

  .home-authority-head h2 {
    max-width: none;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .home-authority-body {
    padding-top: 0;
  }
}

/* ——— CTA final estilo home_cta ——— */
.home_cta-section {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  border-top: 1px solid var(--sh-border);
}

.home_cta-section .home-cta-wrapper {
  width: min(100% - (var(--gutter) * 2), 88.5rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.home_cta-section .cta-visual {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--sh-border);
  background: radial-gradient(ellipse at 30% 20%, rgba(127, 200, 255, 0.2), transparent 55%), #0d1322;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home_cta-section .cta-visual-lottie,
.home_cta-section .cta-visual-fallback {
  width: 100%;
  height: auto;
  max-width: none;
  opacity: 0.95;
}
.home_cta-section .cta-visual-lottie {
  display: block;
  aspect-ratio: 1025 / 450;
  /* El JSON trae margen interno: escala para que las puntas toquen el marco */
  transform: scale(1.12);
  transform-origin: center center;
}
.home_cta-section .cta-visual-lottie svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.home_cta-section .cta-visual-fallback {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home_cta-section .cta-copy h2 {
  color: var(--sh-mint);
  margin-top: 0;
}

.home_cta-section .cta-copy p {
  color: #99d3ff;
  max-width: 36ch;
}

.home_cta-section .cta-copy .button-group { margin-top: 1.5rem; }
.home_cta-section .cta-copy > a:not(.cta) {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Aeonik", Tahoma, sans-serif;
  color: #99d3ff;
  text-decoration: none;
}
.home_cta-section .cta-copy > a:not(.cta):hover { color: #fff; }

@media (max-width: 800px) {
  .home_cta-section .home-cta-wrapper { grid-template-columns: 1fr; }
  .home_cta-section .cta-visual { order: -1; aspect-ratio: 16 / 9; }
}
