/* LEAR central — dirección visual del ecosistema */

:root {
  --ecosystem-system: #5aa7ff;
  --ecosystem-cloud: #56e3ff;
  --ecosystem-security: #f4f7fb;
  --ecosystem-digital: #ff7043;
  --ecosystem-it: #82f2bf;
}

.hero {
  min-height: 100svh;
  justify-content: flex-start;
  padding: clamp(7.5rem, 11vw, 10rem) clamp(1.25rem, 4vw, 4rem) 2.5rem;
  isolation: isolate;
}

.hero-bg {
  background:
    radial-gradient(circle at 50% 58%, rgba(34, 128, 255, 0.16), transparent 23%),
    radial-gradient(ellipse 55% 48% at 82% 20%, rgba(86, 227, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 48% 40% at 12% 35%, rgba(255, 112, 67, 0.035), transparent 62%),
    linear-gradient(180deg, #020812 0%, #030b15 56%, #02070e 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(118, 168, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 168, 220, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 88%);
}

.hero .earth,
.hero .stars {
  display: none;
}

.hero-content {
  width: min(1400px, 100%);
  margin: 0 auto clamp(2.5rem, 4vw, 4.25rem);
  text-align: left;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font: 600 0.68rem/1.2 var(--font-display);
  letter-spacing: 0.28em;
  color: #8eb7d7;
}

.hero-eyebrow::before {
  content: '01';
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(98, 181, 255, 0.42);
  color: #62b5ff;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.hero-statement {
  max-width: 12.8ch;
  margin: 0;
  font-size: clamp(2.8rem, 6.2vw, 6.7rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-shadow: none;
}

.hero-statement span {
  color: #a7d4ff;
  text-shadow: 0 0 44px rgba(54, 157, 255, 0.22);
}

.hero-support {
  max-width: 40rem;
  margin-top: 1.15rem;
  color: #89a8c0;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.hero-action {
  display: inline-flex;
  min-height: 46px;
  padding: 0.78rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  border: 1px solid rgba(133, 177, 216, 0.34);
  color: #dceeff;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.hero-action:hover,
.hero-action:focus-visible {
  border-color: rgba(98, 181, 255, 0.72);
  background: rgba(98, 181, 255, 0.08);
  color: #fff;
  outline: none;
}

.hero-action-primary {
  border-color: #62b5ff;
  background: #62b5ff;
  color: #03101c;
}

.hero-action-primary:hover,
.hero-action-primary:focus-visible {
  background: #8bc9ff;
  color: #03101c;
}

.ecosystem-stage {
  position: relative;
  z-index: 3;
  width: min(1400px, 100%);
  min-height: 480px;
  margin: 0 auto 2.5rem;
  border-top: 1px solid rgba(121, 170, 216, 0.18);
  border-bottom: 1px solid rgba(121, 170, 216, 0.18);
  background: linear-gradient(90deg, rgba(7, 23, 40, 0.5), rgba(3, 11, 20, 0.16) 50%, rgba(7, 23, 40, 0.5));
}

.ecosystem-stage::before,
.ecosystem-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(84, 166, 244, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.ecosystem-stage::before {
  width: 440px;
  height: 440px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ecosystem-stage::after {
  width: 310px;
  height: 310px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: dashed;
  animation: ecosystem-orbit 40s linear infinite;
}

.ecosystem-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ecosystem-connection {
  fill: none;
  stroke: rgba(98, 181, 255, 0.22);
  stroke-width: 1;
  stroke-dasharray: 4 9;
  vector-effect: non-scaling-stroke;
  transition: stroke 240ms ease, stroke-width 240ms ease, filter 240ms ease;
  animation: ecosystem-flow 9s linear infinite;
}

.ecosystem-stage[data-active='system'] .ecosystem-connection--system { stroke: var(--ecosystem-system); }
.ecosystem-stage[data-active='cloud'] .ecosystem-connection--cloud { stroke: var(--ecosystem-cloud); }
.ecosystem-stage[data-active='security'] .ecosystem-connection--security { stroke: var(--ecosystem-security); }
.ecosystem-stage[data-active='digital'] .ecosystem-connection--digital { stroke: var(--ecosystem-digital); }
.ecosystem-stage[data-active='it'] .ecosystem-connection--it { stroke: var(--ecosystem-it); }

.ecosystem-stage[data-active] .ecosystem-connection {
  stroke-width: 0.8;
  opacity: 0.25;
}

.ecosystem-stage[data-active='system'] .ecosystem-connection--system,
.ecosystem-stage[data-active='cloud'] .ecosystem-connection--cloud,
.ecosystem-stage[data-active='security'] .ecosystem-connection--security,
.ecosystem-stage[data-active='digital'] .ecosystem-connection--digital,
.ecosystem-stage[data-active='it'] .ecosystem-connection--it {
  stroke-width: 2;
  opacity: 1;
  filter: drop-shadow(0 0 5px currentColor);
}

.ecosystem-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: grid;
  width: clamp(206px, 15vw, 228px);
  height: clamp(206px, 15vw, 228px);
  padding: 2.35rem;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(100, 186, 255, 0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(98, 181, 255, 0.18), transparent 38%),
    #030911;
  box-shadow: 0 0 0 12px rgba(38, 126, 211, 0.035), 0 0 70px rgba(26, 143, 255, 0.22);
}

.ecosystem-core::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: inherit;
}

.ecosystem-core img {
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
}

.ecosystem-core-label {
  position: absolute;
  bottom: 2.15rem;
  font: 600 0.55rem/1 var(--font-display);
  letter-spacing: 0.25em;
  color: #6e9fc6;
  text-transform: uppercase;
}

.units-grid {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.unit-card {
  --unit-accent: var(--ecosystem-system);
  position: absolute;
  z-index: 5;
  display: grid;
  width: clamp(190px, 16vw, 240px);
  min-height: 126px;
  padding: 1.15rem 1.25rem 1.05rem;
  grid-template-columns: 48px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.8rem;
  align-items: center;
  border: 1px solid rgba(133, 177, 216, 0.25);
  border-left: 2px solid var(--unit-accent);
  border-radius: 0;
  background: rgba(4, 14, 25, 0.84);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.unit-card[data-unit='system'] { --unit-accent: var(--ecosystem-system); left: 2%; top: 8%; }
.unit-card[data-unit='cloud'] { --unit-accent: var(--ecosystem-cloud); right: 2%; top: 8%; }
.unit-card[data-unit='security'] { --unit-accent: var(--ecosystem-security); left: 2%; bottom: 8%; }
.unit-card[data-unit='digital'] { --unit-accent: var(--ecosystem-digital); right: 2%; bottom: 8%; }
.unit-card[data-unit='it'] { --unit-accent: var(--ecosystem-it); left: 50%; bottom: 1rem; transform: translateX(-50%); }

.unit-card:hover,
.unit-card:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--unit-accent) 62%, transparent);
  background: rgba(7, 22, 38, 0.96);
  box-shadow: 0 18px 60px color-mix(in srgb, var(--unit-accent) 12%, transparent);
  outline: none;
}

.unit-card[data-unit='it']:hover,
.unit-card[data-unit='it']:focus-visible {
  transform: translate(-50%, -5px);
}

.unit-circle {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--unit-accent) 10%, transparent);
  color: var(--unit-accent);
  backdrop-filter: none;
}

.unit-card:hover .unit-circle,
.unit-card:focus-visible .unit-circle {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--unit-accent) 35%, transparent);
}

.unit-icon {
  width: 26px;
  height: 26px;
  color: var(--unit-accent);
}

.unit-card:hover .unit-icon,
.unit-card:focus-visible .unit-icon {
  color: var(--unit-accent);
}

.unit-name {
  align-self: end;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  color: #edf6ff;
  text-align: left;
}

.unit-name span { color: var(--unit-accent); }

.unit-desc {
  align-self: start;
  max-width: none;
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: #7594ad;
  text-align: left;
}

.unit-btn {
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--unit-accent) 40%, transparent);
  border-radius: 50%;
  color: transparent;
  font-size: 0;
}

.unit-btn::after {
  content: '↗';
  color: var(--unit-accent);
  font-size: 0.82rem;
}

.values-strip {
  width: min(1400px, 100%);
  margin-top: 0;
  border-top: 0;
  opacity: 0.72;
}

.value-item {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: #7f9fb8;
}

/* En escritorio, mensaje y ecosistema conviven en el primer golpe visual. */
@media (min-width: 1180px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(400px, 0.72fr) minmax(640px, 1.28fr);
    grid-template-rows: 1fr auto;
    column-gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
    padding-top: clamp(7rem, 8vw, 8rem);
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin: 0;
  }

  .hero-statement {
    max-width: 12ch;
    font-size: clamp(3.4rem, 4.7vw, 4.9rem);
  }

  .ecosystem-stage {
    grid-column: 2;
    grid-row: 1;
    min-height: 460px;
    margin: 0;
  }

  .unit-card[data-unit='it'] { bottom: -1.5rem; }

  .values-strip {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-inline: auto;
    padding-top: 4rem;
  }
}

/* Reseñas reales: una voz protagonista, sin carrusel de tarjetas genérico. */
#testimonios.reviews-editorial {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(3rem, 8vw, 9rem);
  max-width: none;
  padding: clamp(6rem, 10vw, 10rem) max(6rem, calc((100vw - 1400px) / 2));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 22, 37, 0.96), rgba(3, 11, 20, 0.94)),
    radial-gradient(circle at 80% 30%, rgba(26, 143, 255, 0.18), transparent 45%);
}

#testimonios.reviews-editorial::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 181, 255, 0.65), transparent);
}

.reviews-intro .section-label {
  margin-bottom: 1.4rem;
}

.reviews-intro .section-title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.35rem, 4.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.reviews-intro p:last-child {
  max-width: 33rem;
  color: #819db4;
  font-size: 0.86rem;
  line-height: 1.7;
}

.reviews-stage {
  position: relative;
  min-height: 420px;
  padding: clamp(2rem, 4vw, 4.25rem);
  border: 1px solid rgba(115, 169, 218, 0.22);
  background: rgba(2, 9, 17, 0.74);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.reviews-stage::before {
  content: '“';
  position: absolute;
  right: 2rem;
  top: 0.35rem;
  font: 400 clamp(6rem, 10vw, 10rem)/1 Georgia, serif;
  color: rgba(98, 181, 255, 0.1);
}

.review-slide {
  display: none;
  min-height: 285px;
  grid-template-rows: auto 1fr auto;
}

.review-slide.is-active {
  display: grid;
  animation: review-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.review-theme {
  margin-bottom: 2rem;
  font: 600 0.64rem/1 var(--font-display);
  letter-spacing: 0.24em;
  color: #62b5ff;
  text-transform: uppercase;
}

.review-quote {
  max-width: 31ch;
  margin: 0;
  font: 400 clamp(1.4rem, 2.4vw, 2.35rem)/1.28 var(--font-display);
  letter-spacing: -0.025em;
  color: #edf6ff;
}

.review-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(123, 170, 211, 0.16);
}

.review-author {
  display: block;
  margin-bottom: 0.35rem;
  font: 600 0.78rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  color: #e9f5ff;
  text-transform: uppercase;
}

.review-source {
  color: #66849c;
  font-size: 0.72rem;
}

.review-index {
  font: 500 0.72rem/1 var(--font-display);
  letter-spacing: 0.18em;
  color: #62b5ff;
}

.review-controls {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.review-control {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(113, 163, 207, 0.3);
  border-radius: 0;
  background: rgba(2, 9, 17, 0.7);
  color: #dceeff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.review-control:hover,
.review-control:focus-visible {
  border-color: #62b5ff;
  background: rgba(26, 143, 255, 0.12);
  outline: 2px solid transparent;
}

@keyframes ecosystem-flow {
  to { stroke-dashoffset: -52; }
}

@keyframes ecosystem-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes review-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .ecosystem-stage { min-height: 560px; }

  .unit-card[data-unit='system'] { left: 0; }
  .unit-card[data-unit='cloud'] { right: 0; }
  .unit-card[data-unit='security'] { left: 0; }
  .unit-card[data-unit='digital'] { right: 0; }

  #testimonios.reviews-editorial {
    padding-inline: clamp(1.5rem, 5vw, 4rem);
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding: 7rem 1rem 2.25rem;
  }

  .hero-content {
    margin-bottom: 2.75rem;
  }

  .hero-statement {
    max-width: 14ch;
    font-size: clamp(2.55rem, 12.5vw, 4.6rem);
    line-height: 0.97;
  }

  .ecosystem-stage {
    display: flex;
    min-height: 0;
    padding: 1.25rem 0 0;
    flex-direction: column;
    background: transparent;
  }

  .ecosystem-stage::before,
  .ecosystem-stage::after,
  .ecosystem-connections {
    display: none;
  }

  .ecosystem-core {
    position: relative;
    left: auto;
    top: auto;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    padding: 1.7rem;
    transform: none;
  }

  .ecosystem-core-label { bottom: 1.4rem; }

  .units-grid {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .unit-card,
  .unit-card[data-unit='system'],
  .unit-card[data-unit='cloud'],
  .unit-card[data-unit='security'],
  .unit-card[data-unit='digital'],
  .unit-card[data-unit='it'] {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 86px;
    transform: none;
  }

  .unit-card:hover,
  .unit-card:focus-visible,
  .unit-card[data-unit='it']:hover,
  .unit-card[data-unit='it']:focus-visible {
    transform: translateY(-2px);
  }

  .values-strip {
    gap: 0.7rem 1.15rem;
    padding-top: 1.75rem;
  }

  .value-item { font-size: 0.66rem; }
  .value-sep { display: none; }

  #testimonios.reviews-editorial {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 5.5rem 1rem;
  }

  .reviews-stage {
    min-height: 470px;
    padding: 2rem 1.25rem 1.5rem;
  }

  .review-slide { min-height: 360px; }
  .review-quote { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .review-meta { align-items: start; flex-direction: column; }
}

/* El consentimiento acompaña la interfaz sin tapar la acción de WhatsApp. */
.lear-consent {
  left: 1rem;
  bottom: 1rem;
  width: min(760px, calc(100% - 7.5rem));
  padding: 1rem 1.1rem;
  transform: none;
}

.lear-consent p {
  max-width: 360px;
  font-size: 0.72rem;
}

.lear-consent button {
  padding: 0.75rem 0.8rem;
  font-size: 0.68rem;
}

@media (max-width: 760px) {
  .lear-consent {
    left: 0.5rem;
    bottom: 0.5rem;
    width: calc(100% - 1rem);
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .lear-consent p {
    max-width: none;
    font-size: 0.66rem;
    line-height: 1.4;
  }

  .lear-consent .lear-consent-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .lear-consent button {
    min-height: 42px;
    padding: 0.55rem 0.35rem;
    font-size: 0.58rem;
  }

  body:has(.lear-consent.is-visible) .wa-float {
    bottom: 17rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-stage::after,
  .ecosystem-connection,
  .review-slide.is-active {
    animation: none;
  }

  .unit-card,
  .review-control {
    transition: none;
  }
}

/* ─── Consolidación visual y de experiencia ───────────────────────────── */

.skip-link {
  position: fixed;
  z-index: 20000;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: #fff;
  color: #020810;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(98, 181, 255, 0.35);
  background: rgba(2, 8, 16, 0.86);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: #dceeff;
  transition: transform 180ms ease;
}

nav[data-menu-open='true'] .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
nav[data-menu-open='true'] .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* La información nunca depende de la animación para existir. */
.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Entrada propia del ecosistema: breve, informativa y no bloqueante. */
.hero-content {
  animation: hero-copy-enter 850ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ecosystem-stage {
  animation: ecosystem-stage-enter 900ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ecosystem-core {
  animation: ecosystem-core-ignite 1100ms 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ecosystem-stage .unit-card {
  opacity: 0;
  animation: ecosystem-node-enter 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ecosystem-stage .unit-card[data-unit='system'] { animation-delay: 560ms; }
.ecosystem-stage .unit-card[data-unit='cloud'] { animation-delay: 660ms; }
.ecosystem-stage .unit-card[data-unit='security'] { animation-delay: 760ms; }
.ecosystem-stage .unit-card[data-unit='digital'] { animation-delay: 860ms; }
.ecosystem-stage .unit-card[data-unit='it'] { animation-delay: 960ms; }

.ecosystem-connection {
  animation: ecosystem-connection-enter 1100ms 420ms ease-out both, ecosystem-flow 9s 1.4s linear infinite;
}

@keyframes hero-copy-enter {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(28px); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0); }
}

@keyframes ecosystem-stage-enter {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ecosystem-core-ignite {
  0% { opacity: 0; filter: blur(12px) brightness(2); }
  55% { opacity: 1; filter: blur(0) brightness(1.8); }
  100% { opacity: 1; filter: none; }
}

@keyframes ecosystem-node-enter {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes ecosystem-connection-enter {
  from { opacity: 0; stroke-dashoffset: 80; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

/* Prueba institucional sin cuadrícula de tarjetas genérica. */
#nosotros {
  padding-block: clamp(6rem, 9vw, 9rem);
}

.about-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(520px, 0.9fr);
  gap: clamp(4rem, 9vw, 9rem);
}

.stats-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(98, 181, 255, 0.2);
  border-left: 1px solid rgba(98, 181, 255, 0.2);
}

.stat-card {
  min-height: 150px;
  padding: 1.7rem;
  border: 0;
  border-right: 1px solid rgba(98, 181, 255, 0.2);
  border-bottom: 1px solid rgba(98, 181, 255, 0.2);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(13, 37, 61, 0.46), rgba(4, 14, 25, 0.16));
}

.stat-number { font-size: clamp(2rem, 3.5vw, 3.4rem); }

/* Directorio editorial: una sola decisión, cinco puntos de entrada. */
.solution-directory {
  max-width: none;
  padding: clamp(6rem, 10vw, 10rem) max(6rem, calc((100vw - 1400px) / 2));
  border-top: 1px solid rgba(98, 181, 255, 0.16);
  border-bottom: 1px solid rgba(98, 181, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(6, 21, 36, 0.8), rgba(2, 8, 16, 0.94)),
    radial-gradient(circle at 78% 18%, rgba(86, 227, 255, 0.08), transparent 40%);
}

.solution-directory-head {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
}

.solution-directory-head .section-title {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.solution-directory-head > p {
  max-width: 40rem;
  color: #8ca9bf;
  line-height: 1.75;
}

.solution-list {
  border-top: 1px solid rgba(133, 177, 216, 0.25);
}

.solution-row {
  --solution-accent: var(--ecosystem-system);
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(175px, 0.72fr) minmax(230px, 0.95fr) minmax(280px, 1.25fr) 42px;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  min-height: 136px;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(133, 177, 216, 0.2);
  color: #eaf5ff;
  text-decoration: none;
  transition: background 180ms ease, padding 180ms ease;
}

.solution-row[data-unit='cloud'] { --solution-accent: var(--ecosystem-cloud); }
.solution-row[data-unit='security'] { --solution-accent: var(--ecosystem-security); }
.solution-row[data-unit='digital'] { --solution-accent: var(--ecosystem-digital); }
.solution-row[data-unit='it'] { --solution-accent: var(--ecosystem-it); }

.solution-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--solution-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 180ms ease;
}

.solution-row:hover,
.solution-row:focus-visible {
  padding-inline: 1.5rem 0.5rem;
  background: color-mix(in srgb, var(--solution-accent) 6%, transparent);
  outline: none;
}

.solution-row:hover::before,
.solution-row:focus-visible::before { transform: scaleY(1); }

.solution-index {
  font: 600 0.63rem/1 var(--font-display);
  letter-spacing: 0.16em;
  color: var(--solution-accent);
}

.solution-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.35rem;
  font: 600 0.78rem/1.25 var(--font-display);
  letter-spacing: 0.08em;
}

.solution-brand b { color: var(--solution-accent); }
.solution-brand small { width: 100%; margin-top: 0.45rem; color: #648199; font-size: 0.56rem; letter-spacing: 0.16em; }
.solution-problem { font: 500 clamp(1.25rem, 2vw, 2rem)/1.1 var(--font-display); letter-spacing: -0.025em; }
.solution-description { max-width: 42rem; color: #86a3ba; font-size: 0.86rem; line-height: 1.65; }
.solution-arrow { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid color-mix(in srgb, var(--solution-accent) 45%, transparent); border-radius: 50%; color: var(--solution-accent); }

/* Contacto: conversión y confianza al mismo nivel visual. */
.contact-v2 {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 0.9fr);
  gap: clamp(4rem, 9vw, 9rem);
  max-width: 1400px;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.5rem, 5vw, 6rem);
}

.contact-v2 .section-title {
  font-size: clamp(2.5rem, 4.5vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.contact-path {
  display: grid;
  gap: 0;
  margin: 2.5rem 0;
  list-style: none;
  border-top: 1px solid rgba(133, 177, 216, 0.18);
}

.contact-path li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(133, 177, 216, 0.18);
}

.contact-path li > span { color: #62b5ff; font: 600 0.62rem/1.5 var(--font-display); letter-spacing: 0.12em; }
.contact-path div { display: grid; gap: 0.25rem; }
.contact-path strong { color: #eaf5ff; font-size: 0.86rem; }
.contact-path small { color: #7896ad; font-size: 0.76rem; line-height: 1.5; }

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

.contact-channel {
  min-height: 72px;
  padding: 1rem;
  border: 1px solid rgba(133, 177, 216, 0.25);
  color: #dceeff;
  font-size: 0.75rem;
  text-decoration: none;
}

.contact-channel:first-child { grid-column: 1 / -1; }
.contact-channel span { display: block; margin-bottom: 0.35rem; color: #6f90a9; font: 600 0.55rem/1 var(--font-display); letter-spacing: 0.16em; }
.contact-channel-primary { border-color: rgba(130, 242, 191, 0.42); color: var(--ecosystem-it); }

.contact-form-v2 {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(11, 31, 51, 0.78), rgba(4, 14, 25, 0.68));
}

.field-error {
  min-height: 1.1em;
  color: #ff9b82;
  font-size: 0.68rem;
}

.form-field [aria-invalid='true'] { border-color: #ff765d; }

.privacy-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  align-items: start;
  margin-top: 0.4rem;
  color: #8ca9bf;
  font-size: 0.72rem;
  line-height: 1.5;
}

.privacy-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: #1a8fff; }
.form-status { margin-top: 0.85rem; color: #82f2bf; font-size: 0.78rem; text-align: center; }
.form-status.is-error { color: #ff9b82; }
.contact-form-v2 .form-note a { color: #8bc6ff; }

/* Footer institucional completo. */
.site-footer-v2 {
  max-width: none;
  padding: clamp(4rem, 7vw, 7rem) max(1.5rem, calc((100vw - 1400px) / 2)) 1.5rem;
  border-top: 1px solid rgba(98, 181, 255, 0.22);
  background: #01060c;
}

.footer-v2-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(160px, 0.55fr) minmax(250px, 0.7fr);
  gap: clamp(3rem, 7vw, 7rem);
  padding-bottom: 3.5rem;
}

.footer-v2-brand img { width: 190px; height: auto; }
.footer-v2-brand > p { max-width: 30rem; margin: 1.25rem 0 1.5rem; color: #87a5bc; font-size: 0.84rem; line-height: 1.65; }
.footer-v2-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.footer-v2-actions a { padding: 0.7rem 0.9rem; border: 1px solid rgba(133, 177, 216, 0.3); color: #dceeff; font-size: 0.72rem; text-decoration: none; }
.footer-v2-label { margin-bottom: 1rem; color: #62b5ff; font: 600 0.6rem/1 var(--font-display); letter-spacing: 0.2em; }
.footer-v2-units,
.footer-v2-contact { position: static; display: flex; padding: 0; flex-direction: column; align-items: flex-start; gap: 0.65rem; background: none !important; backdrop-filter: none; }
.footer-v2-units a,
.footer-v2-contact a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: #91adc2;
  font-size: 0.78rem;
  text-decoration: none;
}
.footer-v2-units a:hover,
.footer-v2-contact a:hover { color: #fff; }

.footer-v2-offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(133, 177, 216, 0.18);
  border-bottom: 1px solid rgba(133, 177, 216, 0.18);
}

.footer-v2-offices article { padding-right: 1rem; }
.footer-v2-offices a { color: inherit; text-decoration: none; }
.footer-v2-offices address { color: #a6bacb; font-size: 0.76rem; line-height: 1.6; font-style: normal; }
.footer-v2-offices a > span { display: inline-block; margin-top: 0.85rem; color: #62b5ff; font-size: 0.66rem; }

.footer-v2-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  color: #7896ad;
  font-size: 0.7rem;
}

.footer-v2-bottom nav { position: static; display: flex; padding: 0; gap: 1.25rem; background: none !important; backdrop-filter: none; }
.footer-v2-bottom a,
.footer-v2-bottom button {
  display: inline-flex;
  min-height: 32px;
  padding: 0;
  align-items: center;
  border: 0;
  background: none;
  color: #91adc2;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.legacy-footer { display: none !important; }

/* El flotante no invade controles ni textos del footer. */
.wa-float { bottom: 1.25rem; right: 1.25rem; }
.wa-tooltip { pointer-events: none; }

@media (max-width: 980px) {
  .about-grid,
  .solution-directory-head,
  .contact-v2 { grid-template-columns: 1fr; }

  .about-grid { gap: 3rem; }
  .solution-row { grid-template-columns: 44px minmax(150px, 0.7fr) minmax(210px, 0.9fr) 1fr 36px; gap: 1.2rem; }
  .contact-v2 { gap: 3.5rem; }
}

@media (max-width: 820px) {
  nav { flex-wrap: nowrap; }
  .nav-toggle { display: block; order: 3; flex: 0 0 auto; }
  .nav-cta { order: 2; margin-left: auto; }
  .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    max-height: 0;
    padding: 0 1rem;
    overflow: hidden;
    background: rgba(2, 8, 16, 0.98);
    border-bottom: 1px solid rgba(98, 181, 255, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease;
  }

  nav[data-menu-open='true'] .nav-links {
    max-height: 320px;
    padding-block: 1rem 1.25rem;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { display: block; padding: 0.75rem 0.25rem; }

  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-action { width: 100%; }

  .ecosystem-stage .unit-card {
    grid-template-columns: 48px 1fr;
    padding-right: 4.5rem;
  }

  .ecosystem-stage .unit-btn { display: none; }

  #nosotros { padding-block: 5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { min-height: 112px; padding: 1.1rem; }
  .stat-label { font-size: 0.64rem; }

  .solution-directory { padding: 5.5rem 1rem; }
  .solution-directory-head { gap: 1.75rem; margin-bottom: 3rem; }
  .solution-directory-head .section-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .solution-directory-head > p { font-size: 0.84rem; }
  .solution-row {
    grid-template-columns: 38px 1fr 36px;
    gap: 0.65rem 1rem;
    min-height: 0;
    padding: 1.35rem 0.75rem;
  }
  .solution-brand { grid-column: 2; }
  .solution-problem { grid-column: 2 / 4; font-size: 1.35rem; }
  .solution-description { grid-column: 2 / 4; font-size: 0.78rem; }
  .solution-arrow { grid-column: 3; grid-row: 1; width: 34px; height: 34px; }
  .solution-row:hover,
  .solution-row:focus-visible { padding-inline: 0.75rem; }

  .contact-v2 { padding: 5.5rem 1rem; }
  .contact-v2 .section-title { font-size: clamp(2.45rem, 11vw, 4rem); }
  .contact-channels { grid-template-columns: 1fr; }
  .contact-channel:first-child { grid-column: auto; }
  .contact-form-v2 { width: 100%; padding: 1.25rem; }
  .contact-form-v2 .form-row { grid-template-columns: 1fr; }

  .site-footer-v2 { padding: 4.5rem 1rem 1.5rem; }
  .footer-v2-top { grid-template-columns: 1fr 1fr; gap: 2.75rem 1.5rem; }
  .footer-v2-brand { grid-column: 1 / -1; }
  .footer-v2-brand img { width: 170px; }
  .footer-v2-offices { grid-template-columns: 1fr; gap: 0; }
  .footer-v2-offices article { padding: 1.25rem 0; border-bottom: 1px solid rgba(133, 177, 216, 0.12); }
  .footer-v2-offices article:last-child { border-bottom: 0; }
  .footer-v2-bottom { align-items: flex-start; flex-direction: column; }
  .footer-v2-bottom nav { flex-wrap: wrap; gap: 0.85rem 1.2rem; }

  .reviews-stage { padding-bottom: 5rem; }
  .review-controls { justify-content: flex-start; }
  .wa-float { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .ecosystem-stage,
  .ecosystem-core,
  .ecosystem-stage .unit-card,
  .ecosystem-connection {
    animation: none !important;
    opacity: 1;
    clip-path: none;
    filter: none;
  }

  .nav-links,
  .nav-toggle span,
  .solution-row,
  .solution-row::before {
    transition: none;
  }
}
