/* Services + why-us, orbit */
#services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-visual { position: relative; align-self: center; }
.about-content { padding-top: 12px; }


/* ─── SERVICES · ALT A · ORBIT ─────────────
   Categories sit on a ring around a hub. Picking one spins the ring so the chosen
   category docks at the "output" position (right on desktop, bottom on mobile) and its
   subcategories fan out from it. Layout is driven by the column width (container query),
   so it also works in the 1024-1280px range. */
.orbit { container-type: inline-size; position: relative; --rot: 0; }
.orbit-stage { position: relative; height: 244px; --R: 104px; --tgt: 90; }
.orbit-origin { position: absolute; left: 50%; top: 108px; width: 0; height: 0; }
.orbit-ring {
  position: absolute; left: calc(var(--R) * -1); top: calc(var(--R) * -1);
  width: calc(var(--R) * 2); height: calc(var(--R) * 2); border-radius: 50%;
  border: 1.5px dashed rgba(27,107,122,0.28);
}
.orbit-hub {
  position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 4px;
  background: var(--hubc, var(--light-2)); color: var(--hubon, var(--teal));
  box-shadow: 0 12px 30px rgba(27,107,122,0.28);
  transition: background 0.5s, color 0.5s;
}
.orbit[data-sel="datos"]      { --hubc: var(--teal);      --hubon: #fff; }
.orbit[data-sel="seguridad"]  { --hubc: var(--green);     --hubon: var(--dark); }
.orbit[data-sel="desarrollo"] { --hubc: var(--blue-link); --hubon: #fff; }
.orbit[data-sel="tecnologia"] { --hubc: #1E93A5;  --hubon: #fff; }
.orbit[data-sel="ai"]         { --hubc: var(--dark);      --hubon: #fff; }
.hub-face {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  opacity: 0; transform: scale(0.7); transition: opacity 0.25s, transform 0.4s cubic-bezier(.2,.85,.25,1.08);
  pointer-events: none;
}
.hub-face.on { opacity: 1; transform: none; transition-delay: 0.25s; }
.hub-face svg { width: 22px; height: 22px; }
.hub-face b { font-family: var(--font-head); font-weight: 800; font-size: 0.78rem; line-height: 1.1; }
.hub-face small { font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; line-height: 1.1; }
.hub-face.idle b { font-size: 0.66rem; }

.onode {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  --ang: calc((var(--b) + var(--rot) + var(--tgt)) * 1deg);
  transform: rotate(var(--ang)) translateX(var(--R)) rotate(calc(var(--ang) * -1)) translate(-50%, -50%);
  transition: transform 0.9s cubic-bezier(.6,0,.2,1), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; white-space: nowrap;
  border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--dark); border: 1.5px solid var(--border);
  font: 800 0.76rem var(--font-head); letter-spacing: -0.005em;
  box-shadow: 0 4px 12px rgba(27,107,122,0.12);
}
.onode svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--teal); transition: color 0.35s; }
.onode:hover { border-color: var(--teal); box-shadow: 0 8px 20px rgba(27,107,122,0.2); }
.onode:focus-visible, .osub:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.onode[aria-expanded="true"] { background: var(--c); color: var(--on); border-color: transparent; box-shadow: 0 10px 26px var(--glow); }
.onode[aria-expanded="true"] svg { color: var(--on); }
.k-teal     { --c: var(--teal);      --on: #fff;        --glow: rgba(27,107,122,0.4); }
.k-green    { --c: var(--green);     --on: var(--dark); --glow: rgba(141,198,63,0.5); }
.k-light    { --c: var(--blue-link); --on: #fff;        --glow: rgba(27,114,184,0.4); }
.k-teal-mid { --c: #1E93A5;  --on: #fff;        --glow: rgba(30,147,165,0.4); }
.k-dark     { --c: var(--dark);      --on: #fff;        --glow: rgba(26,37,53,0.4); }

/* subcategories: below the wheel on narrow widths */
.osubs { display: grid; margin-top: 10px; }
.orbit-all { display: flex; justify-content: center; margin-top: 22px; }
.orbit-all a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; color: var(--teal); border: 1.5px solid var(--teal); border-radius: 50px; padding: 12px 26px; transition: background 0.2s, color 0.2s; }
.orbit-all a:hover { background: var(--teal); color: #fff; }
.orbit-all a svg { transition: transform 0.2s; }
.orbit-all a:hover svg { transform: translateX(4px); }
.osub-group { grid-area: 1 / 1; list-style: none; display: flex; flex-direction: column; gap: 8px; visibility: hidden; transition: visibility 0s 0.3s; }
.osub-group.on { visibility: visible; transition-delay: 0s; }
.osub {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 8px 16px; border-radius: 14px; text-decoration: none;
  background: var(--light); border: 1.5px solid var(--border); color: var(--dark);
  font-weight: 700; font-size: 0.9rem; line-height: 1.25;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.osub-group.on .osub {
  opacity: 1; transform: none;
  transition: opacity 0.4s calc(0.35s + var(--i) * 70ms), transform 0.55s cubic-bezier(.2,.85,.25,1.08) calc(0.35s + var(--i) * 70ms),
              background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.osub:hover { background: #fff; border-color: var(--teal); color: var(--teal); box-shadow: 0 8px 22px rgba(27,107,122,0.15); }
.osub .arr { flex-shrink: 0; color: var(--teal); transition: transform 0.2s; }
.osub:hover .arr { transform: translateX(4px); }

@container (min-width: 500px) {
  .orbit-stage { height: 356px; --R: 162px; }
  .orbit-origin { top: 168px; }
  .orbit-hub { left: -64px; top: -64px; width: 128px; height: 128px; padding: 10px; }
  .orbit .hub-prog { left: -78px; top: -78px; width: 156px; height: 156px; }
  .hub-face svg { width: 38px; height: 38px; }
  .hub-face { gap: 4px; }
  .hub-face b { font-size: 1.12rem; }
  .hub-face.idle b { font-size: 0.9rem; }
  .onode { height: 44px; padding: 0 16px 0 12px; gap: 8px; font-size: 0.95rem; }
  .onode svg { width: 21px; height: 21px; }
  /* subcategories burst out of the docked category and settle in a centred row underneath */
  .osubs { margin-top: 16px; }
  .osub-group { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 10px; }
  .osub-group li { flex: 0 0 auto; }
  .osub { min-height: 46px; padding: 8px 14px 8px 18px; font-size: 0.95rem; gap: 12px;
    transform: translateY(-90px) scale(0.6); }
  .osub-group.on .osub { transform: none; }
}

/* auto-rotation: a ring around the hub fills while a category is on show */
.hub-prog { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; transform: rotate(-90deg); pointer-events: none; overflow: visible; transition: opacity 0.3s; }
.hub-prog circle { fill: none; stroke: var(--hubc, var(--teal)); stroke-width: 0.045; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke 0.5s; opacity: 0.55; }
.hub-prog circle.run { animation: dwell var(--dwell, 5s) linear forwards; }
@keyframes dwell { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.orbit.hold .hub-prog circle.run { animation-play-state: paused; }
.orbit.stopped .hub-prog, .orbit[data-sel=""] .hub-prog { opacity: 0; }
.orbit-ctl { position: absolute; top: 0; right: 0; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--teal); box-shadow: 0 4px 12px rgba(27,107,122,0.12); transition: border-color 0.2s, box-shadow 0.2s; }
.orbit-ctl:hover { border-color: var(--teal); box-shadow: 0 8px 20px rgba(27,107,122,0.2); }
.orbit-ctl:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.orbit-ctl svg { width: 15px; height: 15px; grid-area: 1 / 1; }
.orbit-ctl .i-play { display: none; }
.orbit-ctl[aria-pressed="true"] .i-play { display: block; }
.orbit-ctl[aria-pressed="true"] .i-pause { display: none; }

/* subcategories wear their category's colour, so it is obvious which wheel node they belong to */
.osub-group.on .osub { background: var(--c); color: var(--on); border-color: transparent; box-shadow: 0 8px 20px var(--glow); }
.osub-group.on .osub:hover { background: var(--c); color: var(--on); border-color: transparent; filter: brightness(1.1); box-shadow: 0 12px 26px var(--glow); }
.osub-group.on .osub .arr { color: currentColor; }
.osub-group.on .osub:focus-visible { outline-color: var(--dark); }

@media (prefers-reduced-motion: reduce) {
  .onode, .osub, .hub-face, .orbit-hub, .hub-prog { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

.about-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.about-float-badge {
  background: var(--teal); color: white; border-radius: 16px;
  padding: 12px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 30px rgba(27,107,122,0.22);
}
.badge-num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--green); line-height: 1; }
.badge-txt strong { display: block; font-size: 0.85rem; font-weight: 700; }
.badge-txt small { font-size: 0.7rem; opacity: 0.7; }

.features-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: 12px;
  background: var(--light); border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.feature-item:hover { border-color: var(--border); background: white; }
.feature-dot {
  width: 24px; height: 24px; flex-shrink: 0; background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.7rem; font-weight: 800; margin-top: 2px;
}
.feature-text strong { display: block; font-weight: 700; font-size: 0.95rem; color: var(--dark); margin-bottom: 2px; }
.feature-text span { font-size: 0.85rem; color: var(--muted); }
