/* =====================================================================
   [C-05] 01 · SERVICIOS — titular con corte vertical, tres marquesinas de
   chips (patrón "Logo Cloud Marquee" bidireccional) y carrusel apilado con
   pestañas, flechas y puntos ("Feature Carousel" de 21st · Mobbin Mistral/Sketch)
   con inclinación 3D y foco de luz ("Tilt + Spotlight") en las tarjetas.
   ===================================================================== */
.capability .container { padding: 84px 0 147px; }
.capability__title {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 36px; text-align: center;
  font-size: 55px; line-height: 61px; font-weight: 700; letter-spacing: -0.018em;
}

/* [C-05b] Chips en marquesina */
.capability__icons {
  margin-top: 51px;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.capability__icons .marquee + .marquee { margin-top: 24px; }
.marquee--faded { opacity: .6; }
.chip {
  display: inline-flex; align-items: center; gap: 12px; height: 62px; padding: 0 24px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(var(--shadow), 0.08);
  font-size: 19px; font-weight: 500; letter-spacing: -0.012em; color: var(--ink); white-space: nowrap;
  transition: transform .25s var(--ease-out), border-color .25s ease, box-shadow .25s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--blue-soft); box-shadow: 0 14px 28px rgba(var(--shadow), 0.12); }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }

/* [C-05c] Párrafo */
.capability__text {
  margin: 105px 0 0 336px; width: 1024px; max-width: calc(100% - 40px);
  font-size: 24px; line-height: 36px; color: var(--ink); font-weight: 500; letter-spacing: -0.002em;
}

/* [C-05d] Carrusel apilado */
.fcar { position: relative; margin-top: 110px; overflow-x: clip; overflow-y: visible; }
.fcar__tabs {
  display: flex; justify-content: center; gap: 6px; width: max-content; margin: 0 auto;
  padding: 4px; border-radius: 999px; background: var(--s2);
}
.ftab {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 8px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--ink-3); font-size: 18px; letter-spacing: -0.015em;
  transition: color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.ftab__n {
  width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink-3);
  font-size: 12px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.ftab:hover { color: var(--ink); }
.ftab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(var(--shadow), 0.12), 0 0 0 1px rgba(var(--shadow), 0.05); }
.ftab.is-active .ftab__n { background: var(--ac-hi); color: #fff; border-color: var(--ac-hi); }
.ftab::after {
  content: ""; position: absolute; left: 44px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--ac); transform: scaleX(0); transform-origin: 0 50%;
}
.ftab.is-active::after { animation: tabfill var(--auto) linear forwards; }
.fcar.is-paused .ftab.is-active::after { animation-play-state: paused; }

.fcar__stage { position: relative; margin-top: 44px; height: 740px; perspective: 1400px; }
.fslide {
  position: absolute; left: 50%; top: 0; width: 820px; margin: 0 0 0 -410px;
  transform: translateX(var(--x, 0)) scale(var(--sc, 1)) rotate(var(--r, 0deg));
  opacity: var(--o, 1); z-index: var(--z, 1);
  transition: transform .85s var(--ease-soft), opacity .6s ease;
  will-change: transform;
}
.fslide.is-active { --x: 0; --sc: 1; --r: 0deg; --o: 1; --z: 3; }
.fslide.is-prev   { --x: -58%; --sc: .84; --r: -3deg; --o: .5; --z: 2; }
.fslide.is-next   { --x: 58%;  --sc: .84; --r: 3deg;  --o: .5; --z: 2; }
.fslide.is-hidden { --o: 0; --sc: .7; --z: 1; pointer-events: none; }
.fslide__card {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--s2);
  box-shadow: 0 30px 70px -30px rgba(var(--shadow), 0.35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  transform-style: preserve-3d;
}
.fslide__card.is-tilting { transition: transform .1s linear, box-shadow .3s ease; }
.fslide.is-active .fslide__card:hover { box-shadow: 0 40px 80px -30px rgba(var(--shadow), 0.45); }
.fslide:not(.is-active) .fslide__card { cursor: pointer; }
.fslide__card img { width: 100%; height: auto; transition: filter .7s ease; -webkit-user-drag: none; user-select: none; }
.fslide:not(.is-active) .fslide__card img { filter: grayscale(1) blur(2px) brightness(.92); }
.fslide__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 65%);
}
.fslide.is-active .fslide__card:hover .fslide__glow { opacity: 1; }
.ucard__chip {
  position: absolute; left: 22px; top: 22px; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(var(--shadow), 0.10);
  font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -0.005em;
}
.ucard__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.fslide figcaption {
  margin: 24px 22px 0; font-size: 20px; line-height: 31px; color: var(--ink-3); letter-spacing: -0.005em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease .25s, transform .5s var(--ease-out) .25s;
}
.fslide.is-active figcaption { opacity: 1; transform: none; }
.fslide figcaption strong { font-weight: 600; color: var(--ink); }

.fcar__arrow {
  position: absolute; top: 296px; z-index: 5; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(var(--shadow), 0.12);
  transition: transform .2s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.fcar__arrow:hover { transform: scale(1.08); background: #fff; border-color: var(--blue-soft); }
.fcar__arrow:active { transform: scale(.96); }
.fcar__arrow--prev { left: 60px; } .fcar__arrow--next { right: 60px; }
.fcar__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.fdot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line-2); cursor: pointer; transition: width .3s var(--ease-out), background-color .3s ease; }
.fdot:hover { background: var(--blue-soft); }
.fdot.is-active { width: 26px; background: var(--ac); }

@media (max-width: 1719px) {
  .capability__text { margin-left: 20%; width: auto; max-width: 60%; }
  .fslide { width: 50%; margin-left: -25%; }
  .fslide.is-prev { --x: -52%; }
  .fslide.is-next { --x: 52%; }
  .fcar__stage { height: 560px; }
  .fcar__arrow { top: 200px; }
}
@media (max-width: 1100px) {
  .capability__title { font-size: clamp(32px, 5vw, 55px); line-height: 1.1; padding: 0 20px; }
  .chip { height: 44px; padding: 0 16px; font-size: 15px; gap: 8px; }
  .capability__icons .marquee + .marquee { margin-top: 12px; }
  .capability__text { margin: 60px 20px 0; width: auto; max-width: none; font-size: 20px; line-height: 31px; }
  .fcar { margin: 60px 0 0; }
  .fcar__tabs { max-width: calc(100% - 40px); flex-wrap: wrap; justify-content: center; border-radius: 24px; }
  .ftab { height: 38px; font-size: 15px; }
  .fslide { width: 86%; margin-left: -43%; }
  .fslide.is-prev, .fslide.is-next { --o: 0; --x: 0; pointer-events: none; }
  .fcar__arrow { top: auto; bottom: -70px; width: 44px; height: 44px; }
  .fcar__arrow--prev { left: calc(50% - 60px); } .fcar__arrow--next { right: calc(50% - 60px); }
  .fcar__dots { margin-top: 90px; }
  .fslide figcaption { font-size: 17px; line-height: 27px; }
}
