/* =========================================================
   Waka Solutions — web corporativa
   Marca: Manual de Marca Corporativa WAKA
   ========================================================= */

@font-face {
  font-family: "Roboto Flex";
  src: url("/assets/fonts/roboto-flex-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Flex";
  src: url("/assets/fonts/roboto-flex-latin-ext.woff2") format("woff2");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marca */
  --navy: #232859;
  --navy-2: #2b3168;
  --navy-line: #474e8a;
  --primary: #007da4;
  --primary-ink: #006a8b;   /* primario oscurecido para texto pequeño sobre claro (AA) */
  --turquoise: #40d4c5;
  --paper: #f4f6f8;
  --white: #ffffff;
  --line: #dae0e7;
  --muted: #5c6677;
  --muted-on-navy: #b4b9d8;

  /* Tipo */
  --font: "Roboto Flex", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.2vw + 0.8rem, 1.375rem);
  --fs-h2: clamp(2rem, 3.4vw + 0.6rem, 3.5rem);
  --fs-h3: 1.1875rem;

  /* Espacio */
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --max: 1240px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  font-variation-settings: "opsz" 16;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--navy); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.h2 {
  font-size: var(--fs-h2);
  font-weight: 640;
  font-stretch: 104%;
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 18ch;
  text-wrap: balance;
}
.h2--narrow { max-width: 22ch; }
.lead {
  margin-top: 24px;
  font-size: var(--fs-lead);
  font-weight: 360;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}
.lead--narrow { max-width: 58ch; }
.text-link { display: inline-block; margin-top: 28px; color: var(--primary-ink); font-weight: 560; text-underline-offset: 4px; }
.text-link:hover { color: var(--navy); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: 8px; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--turquoise); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--white); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color .25s, box-shadow .25s, color .25s;
}
.site-header.is-solid { background: var(--white); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand__logo { width: 148px; height: auto; }
.brand__logo--color, .site-header.is-solid .brand__logo--white { display: none; }
.site-header.is-solid .brand__logo--color { display: block; }

.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav__list a { font-size: .9375rem; font-weight: 500; text-decoration: none; opacity: .88; }
.nav__list a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__list .nav__cta { opacity: 1; padding: 10px 18px; border: 1.5px solid currentColor; border-radius: 8px; }
.nav__list .nav__cta:hover { text-decoration: none; background: var(--turquoise); border-color: var(--turquoise); color: var(--navy); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; color: inherit; cursor: pointer;
  }
  .nav-toggle__bar { display: block; height: 2px; background: currentColor; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; background: var(--white); color: var(--navy);
    box-shadow: 0 12px 24px rgba(35,40,89,.12); display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .nav__list a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav__list .nav__cta { margin-top: 16px; text-align: center; border-bottom: 1.5px solid currentColor; }
  .site-header.menu-open { background: var(--white); color: var(--navy); }
  .site-header.menu-open .brand__logo--white { display: none; }
  .site-header.menu-open .brand__logo--color { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 72px;
  color: var(--white);
  background:
    radial-gradient(60% 70% at 88% 100%, rgba(0,125,164,.75) 0%, rgba(0,125,164,0) 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(64,212,197,.18) 0%, rgba(64,212,197,0) 70%),
    var(--navy);
}
.hero__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(20px, 4vw, 64px);
}
.hero__chev { height: clamp(160px, min(24vw, 44vh), 400px); width: auto; fill: var(--primary); }
.hero__chev--r { fill: var(--turquoise); }
/* El titular se dimensiona con su propia columna (cqi): la palabra más larga
   ("especializado.") nunca invade los chevrones, y con la altura (vh) para que
   los botones queden visibles sin hacer scroll. */
.hero__body { max-width: 860px; container-type: inline-size; }
.hero__tagline { font-size: 1.0625rem; font-weight: 500; color: var(--turquoise); letter-spacing: .01em; }
.hero__title {
  margin-top: 18px;
  font-size: clamp(2.25rem, min(11cqi, 8.5vh), 5.75rem);
  font-weight: 760;
  font-stretch: 112%;
  line-height: .96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__lead { margin-top: 32px; max-width: 52ch; font-size: var(--fs-lead); font-weight: 340; line-height: 1.5; color: var(--muted-on-navy); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .hero__chev { animation: chev-open .9s cubic-bezier(.2,.7,.2,1) both .1s; }
  .hero__chev--l { --from: 40%; }
  .hero__chev--r { --from: -40%; }
  .hero__body { animation: body-in .8s ease-out both .35s; }
}
@keyframes chev-open { from { transform: translateX(var(--from)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes body-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 720px) {
  .hero { min-height: 0; padding-bottom: 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__chev { display: none; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .lead { color: var(--muted-on-navy); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Servicios: lista de definición a dos columnas */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.services__item { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.services dt { font-size: var(--fs-h3); font-weight: 600; }
.services dd { margin-top: 8px; color: var(--muted); max-width: 38ch; }
@media (max-width: 600px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* Modelos de colaboración */
.models { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.model { padding: clamp(28px, 4vw, 48px); background: var(--navy-2); border-radius: 12px; display: flex; flex-direction: column; }
.model__title { font-size: clamp(1.625rem, 2vw + .8rem, 2.25rem); font-weight: 620; letter-spacing: -0.015em; line-height: 1.1; }
.model__text { margin-top: 14px; color: var(--muted-on-navy); max-width: 40ch; }
.model__specs { margin-top: auto; padding-top: 36px; }
.model__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--navy-line); }
.model__specs dt { color: var(--muted-on-navy); font-size: .9375rem; }
.model__specs dd { text-align: right; font-weight: 500; }
@media (max-width: 760px) { .models { grid-template-columns: minmax(0, 1fr); } }

.proof { margin-top: 24px; display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 3vw, 36px) clamp(28px, 4vw, 48px); border: 1px solid var(--navy-line); border-radius: 12px; }
.proof__text { color: var(--muted-on-navy); max-width: 64ch; }
.proof__text strong { color: var(--white); font-weight: 600; }
@media (max-width: 640px) { .proof { flex-direction: column; align-items: flex-start; } }

/* Fases: secuencia real, numerada */
.phases { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; counter-reset: phase; }
.phases li { counter-increment: phase; padding-top: 22px; position: relative; }
.phases li::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 8px; border-radius: 4px;
  background: color-mix(in srgb, var(--primary) calc(var(--t, 0) * 100%), var(--navy));
}
.phases li:nth-child(1) { --t: .1; } .phases li:nth-child(2) { --t: .25; } .phases li:nth-child(3) { --t: .4; }
.phases li:nth-child(4) { --t: .55; } .phases li:nth-child(5) { --t: .7; } .phases li:nth-child(6) { --t: .85; } .phases li:nth-child(7) { --t: 1; }
.phases h3 { font-size: var(--fs-h3); font-weight: 600; }
.phases h3::before { content: counter(phase) ". "; color: var(--primary-ink); font-weight: 500; }
.phases p { margin-top: 6px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 1000px) { .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 560px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Logos: máscara monocroma con tamaño óptico equivalente */
.logo {
  --s: 1;
  display: block;
  width: calc(var(--w) * var(--s) * 1px);
  height: calc(var(--h) * var(--s) * 1px);
  background-color: var(--navy);
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}
.logo--barcelo    { --src: url("/assets/img/clients/barcelo.svg");          --w: 111; --h: 40; }
.logo--iberostar  { --src: url("/assets/img/clients/iberostar.png");        --w: 104; --h: 56; }
.logo--naturgy    { --src: url("/assets/img/clients/naturgy.svg");          --w: 135; --h: 33; }
.logo--repsol     { --src: url("/assets/img/clients/repsol.svg");           --w: 137; --h: 32; }
.logo--mapfre     { --src: url("/assets/img/clients/mapfre.svg");           --w: 136; --h: 37; }
.logo--finpay     { --src: url("/assets/img/clients/finpay.png");           --w: 90;  --h: 49; }
.logo--air-europa { --src: url("/assets/img/clients/air-europa.png");       --w: 149; --h: 30; }
.logo--globalia   { --src: url("/assets/img/clients/globalia.png");         --w: 150; --h: 20; }
.logo--eulen      { --src: url("/assets/img/clients/eulen.png");            --w: 110; --h: 40; }
.logo--orona      { --src: url("/assets/img/clients/orona.png");            --w: 110; --h: 40; }
.logo--janssen    { --src: url("/assets/img/clients/janssen.png");          --w: 94;  --h: 47; }
.logo--ajuntament { --src: url("/assets/img/clients/ajuntament-palma.png"); --w: 102; --h: 43; }
.logo--allsun     { --src: url("/assets/img/clients/allsun.png");           --w: 118; --h: 37; }
.logo--zafiro     { --src: url("/assets/img/clients/zafiro.png");           --w: 108; --h: 41; }
.logo--keepler    { --src: url("/assets/img/clients/keepler-accenture.png"); --w: 168; --h: 65; background-color: var(--white); flex: none; }

.clients {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.clients li { display: grid; place-items: center; min-height: 128px; padding: 20px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clients li { min-height: 104px; } .clients .logo { --s: .85; } }

/* Contacto */
.contact { background:
    radial-gradient(50% 80% at 0% 100%, rgba(0,125,164,.6) 0%, rgba(0,125,164,0) 70%),
    var(--navy); }
.contact__mail {
  display: inline-block; margin-top: 32px;
  font-size: clamp(1.5rem, 4.2vw, 3.25rem); font-weight: 520; font-stretch: 100%; letter-spacing: -0.02em;
  color: var(--turquoise); text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 2px solid rgba(64,212,197,.4);
}
.contact__mail:hover { border-bottom-color: var(--turquoise); }
.contact__info { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.contact__info div { padding-top: 18px; border-top: 1px solid var(--navy-line); }
.contact__info dt { font-size: .9375rem; color: var(--muted-on-navy); }
.contact__info dd { margin-top: 6px; font-weight: 500; }
.contact__info a { text-underline-offset: 4px; }
@media (max-width: 900px) { .contact__info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .contact__info { grid-template-columns: minmax(0, 1fr); } }

/* Pie */
.site-footer { background: #1b1f47; color: var(--muted-on-navy); padding-block: 32px; font-size: .9375rem; }
.site-footer__inner { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.site-footer__inner img { width: 120px; height: auto; }
.site-footer__links { display: flex; gap: 24px; margin-left: auto; }
.site-footer__links a { text-underline-offset: 4px; }
.site-footer__links a:hover { color: var(--white); }

/* Páginas legales */
.legal { padding: calc(var(--header-h) + 64px) 0 var(--section-y); }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-size: var(--fs-h2); font-weight: 640; letter-spacing: -0.02em; line-height: 1.05; }
.legal h2 { margin-top: 48px; font-size: 1.375rem; font-weight: 600; }
.legal p, .legal ul { margin-top: 14px; color: #3a4258; }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal .pending { background: #fff4c2; padding: 0 4px; border-radius: 3px; }
.site-header .text-link { margin-top: 0; }
.page--light .site-header { background: var(--white); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.page--light .brand__logo--white { display: none; }
.page--light .brand__logo--color { display: block; }

/* =========================================================
   Diagramas y animación (solo donde explican algo)
   La animación se activa cuando el diagrama entra en pantalla
   (.is-visible, ver main.js) y se desactiva con reduced motion.
   ========================================================= */
.section--deep { background: #1b1f47; color: var(--white); }
.section--deep .lead { color: var(--muted-on-navy); }

/* Boutique */
.boutique { margin-top: 36px; }
.boutique div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.boutique dt { font-weight: 600; }
.boutique dd { color: var(--muted); }
@media (max-width: 520px) { .boutique div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
#servicios .services { margin-top: clamp(56px, 7vw, 96px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { #servicios .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { #servicios .services { grid-template-columns: minmax(0, 1fr); } }

/* Capas de una solución */
.layers { position: relative; margin: 0; padding-left: 44px; }
.layers__list { display: grid; gap: 10px; }
.layers__item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 0 24px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line);
}
.layers__item span { font-weight: 600; }
.layers__item small { font-size: .875rem; color: var(--muted); text-align: right; }
.layers__item--dash { background: transparent; border: 1.5px dashed #9aa3b5; box-shadow: none; }
.layers__item--ink { background: var(--navy); border-color: var(--navy); color: var(--white); }
.layers__item--ink small { color: var(--muted-on-navy); }
.layers__bracket {
  position: absolute; left: 14px; top: calc(2 * (64px + 10px)); height: calc(2 * 64px + 10px);
  width: 6px; border-radius: 3px; background: var(--primary);
}
.layers__bracket span {
  position: absolute; left: -10px; top: 50%; transform: translate(-100%, -50%) rotate(180deg);
  writing-mode: vertical-rl; font-size: .8125rem; font-weight: 600; color: var(--primary-ink); white-space: nowrap;
}
@media (max-width: 520px) {
  .layers__item { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 12px 18px; }
  .layers__item small { text-align: left; }
}

/* Mini diagramas de modelos */
.model__fig { display: block; height: 120px; width: auto; max-width: 100%; margin-bottom: 32px; overflow: visible; }
.fig-team__ring { fill: none; stroke: var(--navy-line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.fig-team__m { fill: rgba(255,255,255,.55); }
.fig-team__dot { fill: var(--turquoise); }
.fig-team__halo { fill: none; stroke: var(--turquoise); stroke-width: 1.5; }
.fig-flow__bracket { fill: none; stroke: var(--turquoise); stroke-width: 2; }
.fig-flow__bar:nth-of-type(1) { fill: #3b4182; } .fig-flow__bar:nth-of-type(2) { fill: #33508e; }
.fig-flow__bar:nth-of-type(3) { fill: #2a5f99; } .fig-flow__bar:nth-of-type(4) { fill: #1f6ea0; }
.fig-flow__bar:nth-of-type(5) { fill: #127aa3; } .fig-flow__bar:nth-of-type(6) { fill: #00869f; }
.fig-flow__bar:nth-of-type(7) { fill: var(--turquoise); }
.fig-flow__chev { fill: none; stroke: var(--turquoise); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* IA con criterio */
.ai { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ai__steps { margin-top: 40px; counter-reset: step; }
.ai__steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); padding: 18px 0; border-top: 1px solid var(--navy-line); }
.ai__steps li::before { content: counter(step); grid-row: span 2; font-size: 1.75rem; font-weight: 700; color: var(--turquoise); line-height: 1.1; }
.ai__steps h3 { font-size: var(--fs-h3); font-weight: 600; }
.ai__steps p { margin-top: 4px; color: var(--muted-on-navy); }
.cycle { width: 100%; max-width: 420px; height: auto; justify-self: center; overflow: visible; }
.cycle__track { fill: none; stroke: var(--navy-line); stroke-width: 2; }
.cycle__arc { fill: none; stroke: var(--turquoise); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 200px 200px; }
.cycle__runner { transform-origin: 200px 200px; }
.cycle__runner circle { fill: var(--turquoise); }
.cycle__node circle { fill: var(--navy); stroke: var(--primary); stroke-width: 2; }
.cycle__node text { fill: var(--white); font-size: 26px; font-weight: 700; }
.cycle__center { fill: var(--white); font-size: 52px; font-weight: 760; font-stretch: 112%; }
.cycle__center-s { fill: var(--muted-on-navy); font-size: 17px; }
@media (max-width: 900px) { .ai { grid-template-columns: minmax(0, 1fr); } .cycle { max-width: 320px; } }

/* Perfiles y tecnología */
.caps2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.profiles2 { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.profiles2 li { padding: 14px 0; border-top: 1px solid var(--line); }
.profiles2 h3 { font-size: 1.0625rem; font-weight: 600; }
.profiles2 p { font-size: .9375rem; color: var(--muted); }
.fe { margin-top: 36px; }
.fe__title { font-size: .9375rem; font-weight: 600; color: var(--primary-ink); }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; font-weight: 500; }
.orbit { width: 100%; height: auto; overflow: visible; }
.orbit__ring { fill: none; stroke: #c3cad6; stroke-width: 1.5; transform-origin: 300px 300px; }
.orbit__ring--dash { stroke-dasharray: 5 8; }
.orbit__core { fill: var(--primary); }
.orbit__core-t { fill: var(--white); font-size: 24px; font-weight: 650; }
.orbit__label rect { fill: var(--paper); }
.orbit__label text { fill: var(--primary-ink); font-size: 14px; font-weight: 600; }
.orbit__node rect { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.orbit__node text { fill: var(--navy); font-size: 15px; font-weight: 500; }
@media (max-width: 1000px) { .caps2 { grid-template-columns: minmax(0, 1fr); } .orbit { max-width: 620px; margin-inline: auto; } }
@media (max-width: 520px) { .profiles2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Animaciones de diagramas ---------- */
[data-i="0"]{--i:0} [data-i="1"]{--i:1} [data-i="2"]{--i:2} [data-i="3"]{--i:3} [data-i="4"]{--i:4} [data-i="5"]{--i:5}
[data-i="6"]{--i:6} [data-i="7"]{--i:7} [data-i="8"]{--i:8} [data-i="9"]{--i:9} [data-i="10"]{--i:10}
.layers__item:nth-child(1){--i:0} .layers__item:nth-child(2){--i:1} .layers__item:nth-child(3){--i:2}
.layers__item:nth-child(4){--i:3} .layers__item:nth-child(5){--i:4} .layers__item:nth-child(6){--i:5}
.phases li:nth-child(1){--i:0} .phases li:nth-child(2){--i:1} .phases li:nth-child(3){--i:2} .phases li:nth-child(4){--i:3}
.phases li:nth-child(5){--i:4} .phases li:nth-child(6){--i:5} .phases li:nth-child(7){--i:6}
.fig-flow__bar:nth-of-type(1){--i:0} .fig-flow__bar:nth-of-type(2){--i:1} .fig-flow__bar:nth-of-type(3){--i:2} .fig-flow__bar:nth-of-type(4){--i:3}
.fig-flow__bar:nth-of-type(5){--i:4} .fig-flow__bar:nth-of-type(6){--i:5} .fig-flow__bar:nth-of-type(7){--i:6}

@media (prefers-reduced-motion: no-preference) {
  /* Estado inicial oculto solo si hay JS (clase .js en <html>) */
  .js .layers:not(.is-visible) .layers__item { opacity: 0; transform: translateX(32px); }
  .js .layers:not(.is-visible) .layers__bracket { transform: scaleY(0); }
  .layers__item { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 90ms); }
  .layers__bracket { transform-origin: top; transition: transform .6s ease .6s; }

  .js .fig-team:not(.is-visible) .fig-team__waka { transform: translateX(110px); opacity: 0; }
  .fig-team__waka { transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .2s, opacity .4s ease .2s; }
  .fig-team.is-visible .fig-team__halo { animation: pulse 2.4s ease-out 1.4s infinite; transform-origin: 190px 54px; }

  .js .fig-flow:not(.is-visible) .fig-flow__bar { transform: scaleX(0); }
  .fig-flow__bar { transform-box: fill-box; transform-origin: left; transition: transform .35s ease; transition-delay: calc(var(--i) * 110ms); }

  .js .phases:not(.is-visible) li::before { transform: scaleX(0); }
  .phases li::before { transform-origin: left; transition: transform .5s ease; transition-delay: calc(var(--i) * 110ms); }

  .js .cycle:not(.is-visible) .cycle__arc { stroke-dashoffset: 100; }
  .cycle__arc { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease; }
  .cycle.is-visible .cycle__runner { animation: spin 9s linear 1.6s infinite; }

  .js .orbit:not(.is-visible) .orbit__ring { transform: scale(.4); opacity: 0; }
  .js .orbit:not(.is-visible) .orbit__node,
  .js .orbit:not(.is-visible) .orbit__label { opacity: 0; }
  .orbit__ring { transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .6s ease; transition-delay: calc(var(--i) * 150ms); }
  .orbit__label { transition: opacity .5s ease; transition-delay: calc(.4s + var(--i) * 150ms); }
  .orbit__node { transition: opacity .5s ease; transition-delay: calc(.8s + var(--i) * 70ms); }
  .orbit.is-visible .orbit__ring--dash { animation: spin 60s linear 1.2s infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
