.vi-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.vi-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vi-campo label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #9aa3c0;
}
.vi-form input,
.vi-form textarea {
  font: inherit;
  color: #e8ecf8;
  background: rgba(20, 27, 56, 0.85);
  border: 1px solid #2a3258;
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.vi-form textarea {
  resize: vertical;
  min-height: 130px;
}
.vi-form input::placeholder,
.vi-form textarea::placeholder {
  color: #5d6688;
}
.vi-form input:focus,
.vi-form textarea:focus {
  border-color: #1fa596;
  box-shadow: 0 0 0 3px rgba(31, 165, 150, 0.18);
}
.vi-boton {
  align-self: flex-start;
  font: inherit;
  font-weight: 600;
  color: #0c1330;
  background: #1fa596;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}
.vi-boton:hover {
  background: #26bfae;
}
.vi-boton:active {
  transform: translateY(1px);
}
.vi-boton:disabled {
  opacity: 0.6;
  cursor: wait;
}
.vi-estado {
  min-height: 1.4em;
  font-size: 14px;
  color: #9aa3c0;
  margin: 0;
}
.vi-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, sans-serif;
  color: #edeff5;
  background-color: #0b1330;
}
a {
  text-decoration: none;
}
a.nav-link {
  color: #edeff5;
  position: relative;
  padding-bottom: 3px;
}
a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
a.nav-link:hover {
  color: var(--accent);
}
a.nav-link:hover::after {
  transform: scaleX(1);
}
a.foot-link {
  color: #8fa0bc;
}
a.foot-link:hover {
  color: #edeff5;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  transition:
    opacity 0.15s,
    transform 0.2s ease;
}
.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.icon-wrap {
  display: inline-flex;
  animation: floatY 3.4s ease-in-out infinite;
}
.icon-inner {
  display: inline-flex;
  transition: transform 0.3s ease;
}
.card {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.2s ease;
}
@keyframes cardGlow {
  0%,
  100% {
    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.45),
      0 0 0 1.5px rgba(47, 230, 199, 0.25),
      0 10px 28px rgba(31, 138, 133, 0.2);
  }
  50% {
    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.45),
      0 0 0 2.5px rgba(47, 230, 199, 0.9),
      0 0 34px rgba(31, 138, 133, 0.6);
  }
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(47, 230, 199, 0.4);
  animation: cardGlow 1.8s ease-in-out infinite;
}
.card:hover .icon-inner {
  transform: scale(1.15) rotate(-8deg);
}
@keyframes radarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.radar-sweep {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: radarSpin 4s linear infinite;
}
@keyframes radarPing {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
.radar-blip-ring {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: radarPing 2.6s ease-out infinite;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    width 0.2s ease;
}
.carousel-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}
#carousel-prev:hover,
#carousel-next:hover {
  background: rgba(11, 19, 48, 0.95);
  border-color: rgba(47, 230, 199, 0.45);
}
#back-to-top:hover {
  transform: translateY(-3px);
}
.pillar {
  transition:
    transform 0.25s ease,
    border-color 0.2s ease;
}
@keyframes pillarGlow {
  0%,
  100% {
    box-shadow: 0 0 0 1.5px rgba(47, 230, 199, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 2.5px rgba(47, 230, 199, 0.9),
      0 0 28px rgba(31, 138, 133, 0.55);
  }
}
.pillar:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.32);
  animation: pillarGlow 1.8s ease-in-out infinite;
}
@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
}
.reveal.is-visible {
  animation: revealIn 0.7s ease forwards;
}
.reveal-1.is-visible {
  animation-delay: 0.08s;
}
.reveal-2.is-visible {
  animation-delay: 0.16s;
}
.reveal-3.is-visible {
  animation-delay: 0.24s;
}
#nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #f6f4ef;
}
#nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 40px 18px;
  background: #0b1330ee;
}
#nav-mobile-menu a {
  padding: 12px 4px;
  color: #edeff5;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
#nav-mobile-menu.open {
  display: flex;
}
#privacy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.72);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#privacy-overlay.open {
  display: flex;
}
#privacy-modal {
  position: relative;
  background: #0f1b3e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px;
}
.diff-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 26px;
  transition: border-color 0.2s ease;
}
.diff-card:hover {
  border-color: rgba(47, 230, 199, 0.4);
}
@media (max-width: 860px) {
  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr !important;
  }
  #nav-links-desktop {
    display: none !important;
  }
  #nav-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .hero-h1 {
    font-size: 30px !important;
  }
  .hero-radar-deco {
    display: none;
  }
}
input,
select,
textarea {
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #edeff5;
}
select option {
  background-color: #0b1330;
  color: #edeff5;
}
input::placeholder,
textarea::placeholder {
  color: #7c8aa3;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8fa0bc;
  margin-bottom: 6px;
  display: block;
}

/* ==========================================================================
   BLOG (listado y plantilla de artículo)
   ========================================================================== */
:root {
  --accent: #1f8a85;
}
a.nav-link.is-active {
  color: var(--accent);
}
a.nav-link.is-active::after {
  transform: scaleX(1);
}

.blog-section {
  padding: 72px 40px;
}
.blog-container {
  max-width: 1040px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1f8a85;
}
.blog-title {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  color: #f6f4ef;
  line-height: 1.15;
  margin: 16px 0 0;
  font-size: 40px;
}
.blog-lead {
  font-size: 17px;
  line-height: 1.7;
  color: #b9c0cc;
  margin: 18px 0 0;
}

/* Listado */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: inherit;
}
.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px;
}
.post-card h2 {
  font-family: "Exo 2", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #f6f4ef;
  margin: 0;
}
.post-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #b9c0cc;
  margin: 0;
}
.post-card .post-meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: #8fa0bc;
}
.tag {
  align-self: flex-start;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #2fe6c7;
  border: 1px solid rgba(47, 230, 199, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Artículo */
.breadcrumb {
  font-size: 13px;
  color: #8fa0bc;
  margin-bottom: 28px;
}
.breadcrumb a {
  color: #8fa0bc;
}
.breadcrumb a:hover {
  color: #edeff5;
}
.breadcrumb span[aria-hidden] {
  margin: 0 6px;
}
.article-header {
  max-width: 760px;
  margin: 0 auto;
}
.article-header .tag {
  margin-bottom: 18px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 22px;
  font-size: 13.5px;
  color: #8fa0bc;
}
.article-meta strong {
  color: #edeff5;
  font-weight: 600;
}
.article-cover {
  max-width: 960px;
  margin: 44px auto 0;
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.article-cover figcaption,
.prose figcaption {
  font-size: 13px;
  color: #8fa0bc;
  margin-top: 10px;
}
.prose {
  max-width: 720px;
  margin: 48px auto 0;
  font-size: 17px;
  line-height: 1.8;
  color: #c9cfda;
}
.prose h2 {
  font-family: "Exo 2", sans-serif;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #f6f4ef;
  margin: 2.2em 0 0.6em;
}
.prose h3 {
  font-family: "Exo 2", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #f6f4ef;
  margin: 1.8em 0 0.5em;
}
.prose p {
  margin: 0 0 1.2em;
}
.prose a {
  color: #2fe6c7;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: #f6f4ef;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}
.prose li {
  margin-bottom: 0.45em;
}
.prose li::marker {
  color: #1f8a85;
}
.prose strong {
  color: #edeff5;
}
.prose blockquote {
  margin: 2em 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: "Exo 2", sans-serif;
  font-size: 21px;
  line-height: 1.45;
  color: #edeff5;
}
.prose blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-style: normal;
  color: #8fa0bc;
}
.prose figure {
  margin: 2em 0;
}
.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.callout {
  margin: 2em 0;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(31, 138, 133, 0.12);
  border: 1px solid rgba(47, 230, 199, 0.3);
  font-size: 16px;
  line-height: 1.7;
  color: #edeff5;
}
.callout strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Exo 2", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #2fe6c7;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 36px auto 0;
  max-width: 720px;
}
.tag-list li {
  font-size: 12.5px;
  color: #8fa0bc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 12px;
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 720px;
  margin: 48px auto 0;
  padding: 28px 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.cta-box h2 {
  font-family: "Exo 2", sans-serif;
  font-size: 21px;
  line-height: 1.3;
  color: #f6f4ef;
  margin: 0 0 6px;
}
.cta-box p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #b9c0cc;
  margin: 0;
}
.cta-box .btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
}
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.author-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #0b1330;
}
.author-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #b9c0cc;
}
.author-box strong {
  color: #f6f4ef;
}

@media (max-width: 860px) {
  .blog-section {
    padding: 52px 20px;
  }
  .blog-title {
    font-size: 30px;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .prose {
    font-size: 16px;
  }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Responsivo: móvil (Enfoque en tarjetas verticales + ajustes generales)
   ========================================================================== */
.method-mobile {
  display: none;
}
@media (max-width: 860px) {
  .method-desktop {
    display: none !important;
  }
  .method-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 460px;
    margin: 0 auto;
  }
  .method-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 20px 22px;
  }
  .method-step.is-last {
    background: rgba(31, 138, 133, 0.14);
    border-color: rgba(47, 230, 199, 0.5);
  }
  .method-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #1f8a85;
  }
  .method-step.is-last .method-num {
    color: #2fe6c7;
  }
  .method-step h3 {
    font-family: "Exo 2", sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #f6f4ef;
    margin: 8px 0 6px;
  }
  .method-step strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2fe6c7;
    margin-bottom: 6px;
  }
  .method-step.is-last strong {
    color: #f6f4ef;
  }
  .method-step p {
    font-size: 14.5px;
    line-height: 1.55;
    color: #b9c6d8;
    margin: 0;
  }
  .method-arrow {
    display: flex;
    justify-content: center;
    padding: 6px 0;
  }
  .method-loop {
    align-self: center;
    margin-top: 18px;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(47, 230, 199, 0.35);
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #2fe6c7;
  }

  /* espaciados y títulos de las secciones del inicio */
  #inicio,
  #quienes-somos,
  #enfoque,
  #servicios,
  #productos,
  #contacto {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  #quienes-somos,
  #enfoque,
  #servicios,
  #productos,
  #contacto {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
  #inicio {
    padding-top: 72px !important;
    padding-bottom: 64px !important;
  }
  #inicio h2,
  #quienes-somos h2,
  #enfoque h2,
  #servicios h2,
  #productos h2,
  #contacto h2 {
    font-size: 26px !important;
  }
  nav > div:first-child {
    padding: 12px 20px !important;
  }
  #nav-mobile-menu {
    padding: 8px 20px 18px;
  }
  #privacy-modal {
    padding: 28px 22px;
  }
  /* legibilidad y áreas táctiles en móvil */
  .method-num,
  .tag-ilustrativa {
    font-size: 12px !important;
  }
  #panel-track svg text {
    font-size: 12px;
  }
  footer a {
    display: inline-block;
    padding: 12px 4px;
  }
  footer .foot-link {
    font-size: 14px !important;
  }
  .carousel-dot {
    position: relative;
  }
  .carousel-dot::after {
    content: "";
    position: absolute;
    inset: -14px -8px;
  }
  .breadcrumb a {
    display: inline-block;
    padding: 8px 0;
  }
  .link-macropld {
    padding: 10px 0;
    margin-bottom: 6px !important;
  }
  .prose a {
    padding: 4px 0;
  }

  /* flechas del carrusel abajo, junto a los puntos, para no tapar las gráficas */
  #carousel-prev,
  #carousel-next {
    top: auto !important;
    bottom: 6px !important;
    transform: none !important;
  }
  footer {
    padding: 32px 20px !important;
  }
}

/* ==========================================================================
   ESCENAS ANIMADAS (assets/js/escenas.js)
   ========================================================================== */

/* ---------- Hero: texto a la izquierda, escena a la derecha ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.hero-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-scene-caption {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 19, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #edeff5;
  white-space: nowrap;
}
.hero-scene-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93a2bb;
  transition: background 0.4s ease;
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }
  .hero-copy {
    margin: 0;
    text-align: left;
  }
  .hero-copy .hero-p {
    margin-left: 0 !important;
  }
  .hero-copy .hero-cta {
    justify-content: flex-start !important;
  }
  .hero-scene {
    max-width: 540px;
    margin: 0 0 0 auto;
  }
}

/* ---------- Enfoque: escena fijada mientras se avanza con scroll ---------- */
.scene-pin {
  position: relative;
  height: 330vh;
}
.scene-stage {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: calc(100vh - 116px);
  height: calc(100svh - 116px);
  min-height: 520px;
  max-height: 780px;
}
.scene-steps {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.scene-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #b9c0cc;
  font:
    600 13.5px "Inter",
    sans-serif;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}
.scene-step b {
  font:
    700 11px "Inter",
    sans-serif;
  letter-spacing: 0.12em;
  color: #1f8a85;
}
.scene-step:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 230, 199, 0.45);
}
.scene-step.is-active {
  background: rgba(31, 138, 133, 0.2);
  border-color: rgba(47, 230, 199, 0.6);
  color: #f6f4ef;
}
.scene-step.is-active b {
  color: #2fe6c7;
}
.scene-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(11, 19, 48, 0.82) 0%,
    rgba(11, 19, 48, 0.55) 62%,
    rgba(11, 19, 48, 0) 100%
  );
}
.scene-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.scene-loop {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translate(-50%, 8px);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(47, 230, 199, 0.4);
  background: rgba(11, 19, 48, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2fe6c7;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.scene-loop.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.scene-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.scene-cap-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 560px;
}
.scene-cap-box.is-in {
  animation: capIn 0.5s ease both;
}
@keyframes capIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.scene-cap-title {
  font-family: "Exo 2", sans-serif;
  font-size: 20px;
  color: #f6f4ef;
}
.scene-cap-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #b9c6d8;
}
.scene-caption em {
  font-size: 12px;
  font-style: normal;
  color: #8fa0bc;
}
/* si la escena arranca, el diagrama estático sobra */
#enfoque.has-scene .method-desktop,
#enfoque.has-scene .method-mobile {
  display: none !important;
}
@media (max-width: 860px) {
  .scene-pin {
    height: 300vh;
  }
  .scene-stage {
    top: 84px;
    gap: 10px;
    height: calc(100svh - 100px);
    min-height: 500px;
  }
  .scene-steps {
    gap: 6px;
  }
  .scene-step {
    padding: 8px 11px;
    font-size: 12.5px;
    gap: 6px;
  }
  .scene-cap-title {
    font-size: 18px;
  }
  .scene-cap-text {
    font-size: 14px;
  }
}

/* ---------- Servicios: micro-escenas al pasar el cursor (o al entrar en pantalla en táctil) ---------- */
.svc-scene {
  margin: 0 0 20px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.svc-scene svg {
  display: block;
  width: 100%;
  height: auto;
}
.svc-scene svg * {
  transform-box: fill-box;
}
.s1-bar {
  transform-origin: 50% 100%;
}
.s1-pt {
  transform-origin: 50% 50%;
}
.s1-line {
  stroke-dasharray: 1;
}
.s1-donut {
  stroke-dasharray: 68 100;
}
.s2-arc {
  stroke-dasharray: 78 100;
}
.s2-needle {
  transform-box: view-box;
  transform-origin: 80px 92px;
  transform: rotate(50deg);
}
.s2-fill {
  transform-origin: 0 50%;
}
.s2-badge {
  transform-origin: 50% 50%;
}
.s3-c,
.s3-ring {
  transform-origin: 50% 50%;
}
.s3-p {
  opacity: 0;
  offset-distance: 100%;
}

:is(.card:hover, .card.is-playing) .s1-bar {
  animation: s1Bar 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 0.1s);
}
:is(.card:hover, .card.is-playing) .s1-line {
  animation: s1Line 1.1s ease-out 0.5s both;
}
:is(.card:hover, .card.is-playing) .s1-pt {
  animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: calc(0.6s + var(--i) * 0.14s);
}
:is(.card:hover, .card.is-playing) .s1-donut {
  animation: s1Donut 1.1s ease-out 0.7s both;
}
:is(.card:hover, .card.is-playing) .s1-fade {
  animation: capIn 0.6s ease 1s both;
}
:is(.card:hover, .card.is-playing) .s2-arc {
  animation: s2Arc 1.3s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
:is(.card:hover, .card.is-playing) .s2-needle {
  animation: s2Needle 1.3s cubic-bezier(0.3, 1.25, 0.4, 1) both;
}
:is(.card:hover, .card.is-playing) .s2-val {
  animation: capIn 0.5s ease 0.9s both;
}
:is(.card:hover, .card.is-playing) .s2-fill {
  animation: s2Fill 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.4s + var(--i) * 0.18s);
}
:is(.card:hover, .card.is-playing) .s2-badge {
  animation: pop 0.5s cubic-bezier(0.3, 1.8, 0.5, 1) 1.3s both;
}
:is(.card:hover, .card.is-playing) .s3-d {
  animation: s3Float 1.8s ease-in-out both;
  animation-delay: calc(var(--i) * 0.07s);
}
:is(.card:hover, .card.is-playing) .s3-ring {
  animation: s3Gate 1.1s ease-in-out 0.6s 2;
}
:is(.card:hover, .card.is-playing) .s3-p {
  animation: s3Move 1.5s cubic-bezier(0.5, 0, 0.3, 1) both;
  animation-delay: calc(0.3s + var(--i) * 0.28s);
}
:is(.card:hover, .card.is-playing) .s3-c {
  animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: calc(1.1s + var(--i) * 0.08s);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes s1Bar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes s1Line {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes s1Donut {
  from {
    stroke-dasharray: 0 100;
  }
  to {
    stroke-dasharray: 68 100;
  }
}
@keyframes s2Arc {
  from {
    stroke-dasharray: 0 100;
  }
  to {
    stroke-dasharray: 78 100;
  }
}
@keyframes s2Needle {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(50deg);
  }
}
@keyframes s2Fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes s3Float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  35% {
    transform: translate(3px, -4px);
  }
  70% {
    transform: translate(-3px, 3px);
  }
}
@keyframes s3Gate {
  0%,
  100% {
    transform: scale(1);
    fill: rgba(31, 138, 133, 0.14);
  }
  50% {
    transform: scale(1.18);
    fill: rgba(47, 230, 199, 0.4);
  }
}
@keyframes s3Move {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

/* respeta a quien pide menos movimiento: todo queda en su fotograma final */
@media (prefers-reduced-motion: reduce) {
  .svc-scene * {
    animation: none !important;
  }
  .scene-cap-box.is-in {
    animation: none;
  }
}

@media (max-width: 860px) {
  .in-scene #back-to-top {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
