/* AD2N · Quiénes somos
   Este archivo pertenece únicamente a about.php. */

.ad2n-identity {
  --identity-ink: #030817;
  --identity-cyan: #00b4d8;
  --identity-cyan-soft: #8ce7f8;
  --identity-pink: #d50b52;
  --identity-white: #f8fbff;
  --identity-muted: rgba(226, 238, 250, 0.72);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 180, 216, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 88%, rgba(213, 11, 82, 0.13), transparent 32rem),
    var(--identity-ink);
  color: var(--identity-white);
}

.identity-noise,
.identity-ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.identity-noise {
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.identity-ambient {
  width: min(40vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(140, 231, 248, 0.12);
  border-radius: 50%;
}

.identity-ambient--one { top: -18%; left: -13%; }
.identity-ambient--two { right: -15%; bottom: -32%; border-color: rgba(213, 11, 82, 0.18); }

.identity-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 3.6vw, 4.75rem);
  width: min(1480px, calc(100% - 3rem));
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) 0;
}

.identity-copy { position: relative; z-index: 2; max-width: 44rem; }

.identity-panel {
  margin-bottom: 3.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(140, 231, 248, 0.15);
  border-radius: 1.3rem;
  background: linear-gradient(125deg, rgba(14, 28, 56, 0.62), rgba(4, 11, 27, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 22px 70px rgba(0, 0, 0, 0.17);
  backdrop-filter: blur(16px);
}

.identity-panel:last-child { margin-bottom: 0; }

.identity-panel h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--identity-white);
  font-size: clamp(2.1rem, 4.2vw, 4.6rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.055em;
  perspective: 700px;
}

.identity-title-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.08em 0.02em 0.12em;
  vertical-align: top;
}

.identity-title-word {
  display: inline-block;
  will-change: transform, opacity;
}

.identity-panel p {
  max-width: 61ch;
  margin: 0 0 1rem;
  color: var(--identity-muted);
  font-size: clamp(0.98rem, 1.08vw, 1.1rem);
  line-height: 1.78;
}

.identity-panel p:last-of-type { margin-bottom: 0; }

.identity-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.55rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid rgba(140, 231, 248, 0.38);
  border-radius: 999px;
  color: #fff !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.identity-cta:hover,
.identity-cta:focus-visible {
  border-color: var(--identity-pink);
  background: rgba(213, 11, 82, 0.12);
  box-shadow: 0 0 0 5px rgba(213, 11, 82, 0.12), 0 15px 35px rgba(0, 0, 0, 0.28);
  outline: none;
}

.identity-visual {
  position: relative;
  display: grid;
  width: min(100%, 720px);
  min-width: 0;
  aspect-ratio: 1;
  place-self: center;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(140, 231, 248, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(30, 91, 153, 0.82) 0%, rgba(8, 35, 78, 0.72) 34%, rgba(3, 14, 35, 0.42) 56%, rgba(2, 6, 17, 0) 72%),
    linear-gradient(135deg, rgba(0, 180, 216, 0.08), transparent 48%, rgba(213, 11, 82, 0.08));
  box-shadow: inset 0 0 110px rgba(0, 180, 216, 0.2), 0 0 120px rgba(0, 180, 216, 0.14), 0 0 180px rgba(213, 11, 82, 0.06);
  will-change: transform;
}

.identity-visual::before,
.identity-visual::after {
  position: absolute;
  inset: 7%;
  content: "";
  border: 1px solid rgba(140, 231, 248, 0.1);
  border-radius: inherit;
}

.identity-visual::before {
  inset: 4%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.18), transparent 53%),
    repeating-radial-gradient(circle at 50% 50%, rgba(140, 231, 248, 0.08) 0 1px, transparent 1px 2.9rem);
}

.identity-visual::after { inset: 17%; border-color: rgba(213, 11, 82, 0.24); }

.identity-visual__surface {
  position: absolute;
  inset: 8%;
  z-index: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(140, 231, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 231, 248, 0.12) 1px, transparent 1px);
  background-size: 2.9rem 2.9rem;
  mask-image: radial-gradient(circle, #000 0 38%, transparent 73%);
  opacity: 0.58;
  will-change: transform, opacity;
}

.identity-visual__beam {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0.58;
  will-change: transform, opacity;
}

.identity-visual__beam--horizontal {
  top: 50%;
  right: -5%;
  left: -5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 231, 248, 0.28), rgba(213, 11, 82, 0.74), rgba(140, 231, 248, 0.28), transparent);
}

.identity-visual__beam--vertical {
  top: -5%;
  bottom: -5%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(140, 231, 248, 0.28), rgba(0, 180, 216, 0.8), rgba(140, 231, 248, 0.28), transparent);
}

.identity-network,
.identity-pointer-layer,
.identity-orbit,
.identity-core { position: absolute; inset: 0; }

.identity-network { z-index: 1; width: 100%; height: 100%; overflow: visible; }

.identity-network__ring {
  transform-origin: 360px 360px;
  fill: none;
  stroke: rgba(140, 231, 248, 0.22);
  stroke-width: 1.1;
  stroke-dasharray: 5 11;
}

.identity-network__ring--middle { stroke: rgba(213, 11, 82, 0.36); stroke-dasharray: 2 14; }
.identity-network__ring--inner { stroke: rgba(140, 231, 248, 0.34); stroke-dasharray: 1 10; }

.identity-route { fill: none; stroke-linecap: round; stroke-width: 1.8; filter: drop-shadow(0 0 7px rgba(140, 231, 248, 0.32)); }
.identity-route--cyan { stroke: url(#identity-cyan-route); }
.identity-route--pink { stroke: url(#identity-pink-route); }
.identity-route--fine { stroke: rgba(140, 231, 248, 0.12); stroke-width: 0.7; stroke-dasharray: 5 13; }

.identity-node { transform-box: fill-box; transform-origin: center; }
.identity-network__nodes .identity-node:not(.identity-node--core) { display: none; }
.identity-node--cyan { fill: #8ce7f8; filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.9)); }
.identity-node--pink { fill: #f04d8a; filter: drop-shadow(0 0 8px rgba(213, 11, 82, 0.9)); }
.identity-node--core { fill: url(#identity-node); }

.identity-pointer-layer { z-index: 2; will-change: transform; }

.identity-orbit { border: 1px solid rgba(140, 231, 248, 0.2); border-radius: 50%; }

/* Remove particle dots — scroll parallax replaces them */
.identity-orbit::before,
.identity-orbit::after,
.identity-orbit span { display: none; }

.identity-orbit--one { inset: 23%; }
.identity-orbit--two { inset: 32%; border-color: rgba(213, 11, 82, 0.34); }

.identity-core {
  inset: 31%;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(140, 231, 248, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #3d75b5 0%, #123264 31%, #061737 66%, #020611 100%);
  box-shadow: 0 0 0 16px rgba(0, 180, 216, 0.07), 0 0 110px rgba(0, 180, 216, 0.68), inset 0 0 52px rgba(140, 231, 248, 0.32);
  will-change: transform;
}

.identity-core::before,
.identity-core::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.identity-core::after { inset: 24%; border-color: rgba(213, 11, 82, 0.58); box-shadow: 0 0 20px rgba(213, 11, 82, 0.24); }

.identity-core__halo { position: absolute; inset: -30%; border: 1px solid rgba(140, 231, 248, 0.12); border-radius: 50%; }
.identity-core__halo--one { border-top-color: rgba(140, 231, 248, 0.8); }
.identity-core__halo--two { inset: -52%; border-right-color: rgba(213, 11, 82, 0.68); }
.identity-core__frame { position: absolute; inset: 0.55rem; border: 1px dashed rgba(140, 231, 248, 0.3); border-radius: inherit; }

.identity-core__glass {
  position: absolute;
  top: 14%;
  left: 21%;
  width: 32%;
  height: 19%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(5px);
  transform: rotate(-38deg);
}

.identity-core__brand { position: relative; z-index: 1; font-family: "Nunito Sans", sans-serif; font-weight: 900; }

.identity-core__brand { color: #fff; font-size: clamp(1rem, 2.25vw, 1.7rem); letter-spacing: -0.09em; transform: translateY(0.25rem); }
.identity-core__brand span { color: var(--identity-pink); }

/* En navegadores con GSAP, esta sección deja los bucles en manos del motor
   para que la escena permanezca sincronizada con el scroll. */
@media (min-width: 992px) {
  .ad2n-identity:not(.is-enhanced) .identity-stage { align-items: start; }
  .ad2n-identity:not(.is-enhanced) .identity-visual { position: sticky; top: 2.5rem; align-self: start; margin-top: 0; }
  .ad2n-identity.is-enhanced .identity-stage { min-height: 100vh; padding: 3rem 0; }
  .ad2n-identity.is-enhanced .identity-panels { position: relative; min-height: 40rem; }
  .ad2n-identity.is-enhanced .identity-panel { position: absolute; inset: 0; margin: 0; pointer-events: none; transform-origin: 0 50%; }
  .ad2n-identity.is-enhanced .identity-panel.is-current { pointer-events: auto; }
  .ad2n-identity.is-enhanced .identity-panel--system { padding: clamp(1.25rem, 1.8vw, 2rem); }
  .ad2n-identity.is-enhanced .identity-panel--system h2 { font-size: clamp(2.4rem, 2.8vw, 3.35rem); }
  .ad2n-identity.is-enhanced .identity-panel--system p { margin-bottom: 0.55rem; font-size: clamp(0.82rem, 0.8vw, 0.93rem); line-height: 1.42; }
  .ad2n-identity.is-enhanced .identity-panel--system .identity-cta { margin-top: 0.5rem; padding: 0.78rem 1.1rem; }
}

@media (max-width: 1100px) {
  .identity-stage { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr); gap: 2.5rem; width: min(100% - 2.25rem, 1380px); }
  .identity-panel h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
}

@media (max-width: 991px) {
  .identity-stage { grid-template-columns: 1fr; min-height: auto; padding: 5.5rem 0; }
  .identity-copy { order: 2; }
  .identity-visual { display: none !important; }
  .identity-panel { padding: 1.5rem; }
  .identity-panel h2 { max-width: 15ch; }
}

@media (max-width: 575px) {
  .identity-stage { width: min(100% - 1.5rem, 1380px); gap: 2.6rem; padding: 4rem 0; }
  .identity-visual { width: min(96vw, 440px); }
  .identity-panel { margin-bottom: 1rem; padding: 1.25rem; border-radius: 1rem; }
  .identity-panel h2 { font-size: clamp(2rem, 10.5vw, 3.1rem); }
  .identity-panel p { font-size: 0.95rem; line-height: 1.68; }
}

@media (prefers-reduced-motion: reduce) {
  .ad2n-identity *, .ad2n-identity *::before, .ad2n-identity *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
