/* =========================================================
   Siente Studio · Inicio: Somos Siente, Marcas y Puente a Recursos
   Parciales: src/parciales/{manifiesto,marcas,puente}.html · JS: js/inicio.js
   ========================================================= */

/* ---------- Somos Siente: manifiesto ---------- */
.mani { row-gap: var(--s-8); align-items: end; }
.mani__txt { margin: 0; max-width: 21ch; font: 500 clamp(2rem, 1rem + 3.6vw, 4.6rem) / 1.06 var(--sans); letter-spacing: -0.035em; color: var(--t-1); text-wrap: balance; }
.mani__txt em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mani__soft { color: var(--t-2); }
/* cada palabra: aparece en orden y lleva un reflejo de espectro donde está el cursor */
.mani.is-split .w {
  --o: 1; --x: calc(var(--px, -999px) - var(--ox, 0px)); --y: calc(var(--py, -999px) - var(--oy, 0px));
  display: inline-block; color: transparent;
  background:
    radial-gradient(circle var(--r, 190px) at var(--x) var(--y), rgba(246, 247, 248, 0) 0%, var(--base, #f6f7f8) 78%),
    linear-gradient(rgba(246, 247, 248, 0.4), rgba(246, 247, 248, 0.4)),
    conic-gradient(from var(--spin) at var(--x) var(--y), var(--spectrum));
  -webkit-background-clip: text; background-clip: text;
  opacity: 0.1; filter: blur(6px); transform: translateY(0.18em);
  transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out), transform 1s var(--ease-out);
  animation: spin 9s linear infinite;
}
.mani.is-split .mani__soft .w { --base: #a3a7ac; }
.is-active .mani.is-split .w, .mani.is-split.is-seen .w { opacity: var(--o); filter: none; transform: none; transition-delay: calc(var(--i) * 55ms); }
.mani__pie .gbtn { margin-top: var(--s-2); }
@media (max-width: 600px) { .mani__txt { --r: 120px !important; } }

/* ---------- Marcas: rejilla de logos que se encienden con el cursor ---------- */
.marcas { row-gap: var(--s-8); }
.marcas__rejilla { --c: 6; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.marca { --k: 0; --dx: 0px; --dy: 0px; position: relative; display: grid; place-items: center; height: clamp(92px, 15vh, 160px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
  opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.is-active .marca, .marcas.is-seen .marca { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms); }
.marca::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 220px at var(--cx, 50%) var(--cy, 50%), rgba(255, 255, 255, 0.07), transparent 70%); opacity: var(--k); }
.marca__logo { width: var(--w); max-width: 78%; max-height: 52%; height: auto;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  background:
    radial-gradient(circle 120px at var(--lx, -999px) var(--ly, -999px), rgba(246, 247, 248, 0) 0%, #f6f7f8 80%),
    linear-gradient(rgba(246, 247, 248, 0.5), rgba(246, 247, 248, 0.5)),
    conic-gradient(from var(--spin) at var(--lx, 50%) var(--ly, 50%), var(--spectrum));
  opacity: calc(var(--op, 0.52) + var(--k) * (1 - var(--op, 0.52)));
  transform: translate(var(--dx), var(--dy)) scale(calc(1 + var(--k) * 0.05));
  animation: spin 9s linear infinite; will-change: transform, opacity; }
/* tamaño estandarizado: cada logo ocupa solo su tinta (sin márgenes del archivo) y un área visual parecida (calculada en marcas.html) */
.marca { container-type: size; }
.marca__logo { width: min(calc(var(--w) * 1cqw), calc(var(--hmax, 52) * 1cqh * var(--a))); max-width: none; max-height: none; aspect-ratio: var(--a);
  -webkit-mask-size: var(--ms); mask-size: var(--ms); -webkit-mask-position: var(--mp); mask-position: var(--mp); }
/* vista previa: celda en espera del logotipo real (se quita al recibirlo) */
.marca__nombre { font: 300 clamp(11px, 0.9vw, 14px)/1.3 var(--font-sans, Montserrat, sans-serif); letter-spacing: 0.04em; text-align: center;
  color: rgba(246,247,248,0.42); padding: 0 12%; position: relative; z-index: 1; }
.marca--pendiente { outline: 1px dashed rgba(246,247,248,0.16); outline-offset: -10px; }
@media (max-width: 960px) { .marcas__rejilla { --c: 4; } }
@media (max-width: 600px) { .marcas__rejilla { --c: 3; } .marca { height: 84px; } }

/* ---------- Puente a Recursos: rueda de categorías ---------- */
.puente { align-items: center; row-gap: var(--s-7); }
.puente__rueda { position: relative; height: clamp(260px, 52vh, 480px); perspective: 1400px; perspective-origin: 18% 50%;
  -webkit-mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.puente__rueda ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; transform-style: preserve-3d; }
.puente__rueda li { --d: 0; --R: 2.9em; position: absolute; left: 0; top: 50%; margin-top: -0.6em; line-height: 1.2; white-space: nowrap;
  font: 500 clamp(1.9rem, 1rem + 2.8vw, 3.6rem) / 1.2 var(--sans); letter-spacing: -0.035em; color: var(--t-1);
  transform-origin: 0 50% calc(var(--R) * -1);
  transform: rotateX(calc(var(--d) * -22deg)); backface-visibility: hidden;
  opacity: var(--op, 1); transition: transform 1s var(--ease-out), opacity 1s var(--ease-out), color 0.6s; }
.puente__rueda li:not(.is-on) { color: var(--t-3); }
.puente__rueda li.is-on { color: var(--t-1); }
@media (max-width: 960px) { .puente__rueda { height: 240px; } .puente__rueda li { font-size: clamp(1.7rem, 1rem + 3vw, 2.6rem); } }

@media (prefers-reduced-motion: reduce) {
  .mani.is-split .w, .marca { opacity: var(--o, 1); filter: none; transform: none; transition: none; animation: none; }
  .marca__logo { animation: none; }
  .puente__rueda li { transition: none; }
}
