/* WORA — stylesheet principal */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --accent:  #1b50d6;
  --accent-2: #0fae9c;
  --ink:     #0d1117;
  --ink-2:   #5a6373;
  --paper:   #f4f3ef;
  --card:    #ffffff;
  --line:    rgba(13,17,23,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }

@keyframes wora-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes wora-float   { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }
@keyframes wora-spin    { to { transform: rotate(360deg) } }

/* Responsive helpers */
.w-burger { display: none; }

@media (max-width: 960px) {
  .w-desk    { display: none !important; }
  .w-burger  { display: inline-flex !important; }
  .w-hero    { grid-template-columns: 1fr !important; }
  .w-2col    { grid-template-columns: 1fr !important; }
  .w-svcgrid { grid-template-columns: 1fr !important; }
  .w-svc     { grid-column: auto !important; grid-row: auto !important; min-height: 200px !important; }
  .w-clients { grid-template-columns: repeat(2,1fr) !important; }
  .w-contact { grid-template-columns: 1fr !important; }
  .w-foot    { grid-template-columns: 1fr 1fr !important; }
  .w-h1      { font-size: clamp(40px, 11vw, 60px) !important; }
  .w-sec     { padding: 84px 0 !important; }
  .w-feat    { grid-template-columns: 1fr !important; }
  .w-grid    { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 560px) {
  .w-clients { grid-template-columns: 1fr !important; }
  .w-foot    { grid-template-columns: 1fr !important; }
  .w-grid    { grid-template-columns: 1fr !important; }
}

/* Image slot placeholder */
.w-img-slot {
  background: var(--line);
  display: block;
}

/* Logo */
.wora-logo {
  width: 120px;
  height: 42px;
  object-fit: contain;
  display: block;
}
.wora-logo-lg {
  width: 130px;
  height: 46px;
  object-fit: contain;
  display: block;
}
.wora-logo-sm {
  width: 110px;
  height: 38px;
  object-fit: contain;
  display: block;
}

/* Nav scrolled state */
[data-nav].scrolled {
  padding: 12px 0 !important;
  background: rgba(244,243,239,.94) !important;
  border-bottom-color: var(--line) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mobile menu */
#wora-mobile.open,
#wora-mobile-p.open {
  display: flex !important;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Equipo · Hermes ─────────────────────────────────────────────────────── */
.hx-sec { padding: 0 32px 110px; }
.hx {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 48px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 28px; overflow: hidden;
  padding: 60px 54px;
}
.hx::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 74% 48%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 46%),
    radial-gradient(circle at 74% 48%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 30%),
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 22px 22px;
}
.hx-eyebrow { font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 14px; }
.hx-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.06; letter-spacing: -.02em; margin: 0; }
.hx-title span { color: rgba(255,255,255,.55); }
.hx-lead { margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 46ch; }
.hx-lead strong { color: #fff; font-weight: 600; }
.hx-skills { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hx-skills li {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 100px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.88);
}
.hx-console {
  margin-top: 26px; border-radius: 16px; padding: 14px 16px 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px;
}
.hx-console-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.hx-live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-2); }
.hx-live i, .hx-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: hx-blink 1.8s ease-out infinite; }
.hx-clock b { color: #fff; font-weight: 600; }
.hx-console-line { margin: 0; color: #fff; min-height: 1.5em; line-height: 1.5; }
.hx-prompt { color: var(--accent-2); }
.hx-caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent-2); animation: hx-caret 1s steps(1) infinite; }

/* Órbita */
.hx-visual { min-width: 0; }
.hx-stage {
  --r: 38cqw; --s: 15cqw; --spin: 120s;
  position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 1;
  container-type: inline-size;
}
.hx-stage.hx-many { --r: 40cqw; --s: 11.5cqw; }
.hx-orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hx-orbit--team { width: calc(var(--r) * 2); height: calc(var(--r) * 2); border: 1px dashed rgba(255,255,255,.16); }
.hx-orbit--clients { width: 98cqw; height: 98cqw; border: 1px solid rgba(255,255,255,.07); }
.hx-orbit-label {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55); background: var(--ink); padding: 2px 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,.12);
}
.hx-clients { position: absolute; inset: 1cqw; pointer-events: none; }
.hx-clients i { position: absolute; inset: 0; animation: hx-rot 40s linear infinite; animation-delay: var(--d); }
.hx-clients i::before { content: ""; position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.7); }

.hx-ring { position: absolute; inset: 0; animation: hx-rot var(--spin) linear infinite; }
.hx-counter { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: hx-rot var(--spin) linear infinite reverse; }
.hx-stage:hover .hx-ring, .hx-stage:hover .hx-counter,
.hx-stage:focus-within .hx-ring, .hx-stage:focus-within .hx-counter { animation-play-state: paused; }

.hx-spoke {
  position: absolute; left: 50%; top: 50%; width: var(--r); height: 1px; transform-origin: 0 50%; transform: rotate(var(--a));
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 70%, transparent) 40%, rgba(255,255,255,.12));
  pointer-events: none;
}
.hx-spoke::before, .hx-spoke::after {
  content: ""; position: absolute; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; opacity: 0;
}
.hx-spoke::before { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: hx-out 3.2s ease-in-out infinite; animation-delay: var(--d); }
.hx-spoke::after  { background: #fff; box-shadow: 0 0 10px #fff; animation: hx-in 3.2s ease-in-out infinite; animation-delay: calc(var(--d) - 1.6s); }

.hx-slot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.hx-member {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: var(--s); height: var(--s); padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
  font: inherit; color: inherit;
}
.hx-member .hx-face {
  display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: #1a2233; border: 2px solid rgba(255,255,255,.2);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.hx-member img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-initial { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: calc(var(--s) * .4); color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.hx-online { position: absolute; right: 6%; bottom: 6%; width: 18%; height: 18%; min-width: 9px; min-height: 9px; border-radius: 50%; background: var(--accent-2); border: 2px solid var(--ink); }
.hx-name {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, -4px); white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; font-weight: 600;
  background: #fff; color: var(--ink); padding: 4px 10px; border-radius: 100px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 5;
}
.hx-member:hover, .hx-member:focus-visible, .hx-member.is-active { z-index: 4; outline: none; }
.hx-member:hover .hx-face, .hx-member:focus-visible .hx-face, .hx-member.is-active .hx-face {
  transform: scale(1.12); border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 30%, transparent), 0 14px 30px rgba(0,0,0,.5);
}
.hx-member:hover .hx-name, .hx-member:focus-visible .hx-name, .hx-member.is-active .hx-name { opacity: 1; transform: translate(-50%, 0); }

/* Hermes */
.hx-core { position: absolute; left: 50%; top: 50%; width: 36cqw; height: 36cqw; transform: translate(-50%, -50%); z-index: 3; }
.hx-hero {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 6px rgba(13,17,23,.9), 0 0 60px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 120px color-mix(in srgb, var(--accent-2) 30%, transparent);
  animation: hx-float 6s ease-in-out infinite;
}
.hx-hero svg { width: 100%; height: 100%; display: block; }
.hx-visor { animation: hx-visor 4s ease-in-out infinite; }
.hx-halo {
  position: absolute; inset: -7%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-2), var(--accent), transparent 45%, transparent 55%, var(--accent-2));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: hx-rot 5s linear infinite;
}
.hx-ripple { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent-2); animation: hx-ripple 3.2s ease-out infinite; }
.hx-badge {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 55%); white-space: nowrap; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(10px, 2.2cqw, 12.5px); font-weight: 700; letter-spacing: .12em;
  background: #fff; color: var(--ink); padding: 6px 13px; border-radius: 100px; box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.hx-caption { text-align: center; margin: 18px 0 0; min-height: 1.5em; font-size: 15px; color: rgba(255,255,255,.62); }
.hx-caption strong { color: #fff; font-family: 'Space Grotesk', sans-serif; }
.hx-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.hx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hx-legend i { width: 7px; height: 7px; border-radius: 50%; }
.hx-dot-in  { background: #fff; box-shadow: 0 0 8px #fff; }
.hx-dot-out { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }

@keyframes hx-rot     { to { transform: rotate(360deg); } }
@keyframes hx-float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.5%); } }
@keyframes hx-ripple  { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes hx-out     { 0% { left: 44%; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { left: 78%; opacity: 0; } }
@keyframes hx-in      { 0% { left: 78%; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { left: 44%; opacity: 0; } }
@keyframes hx-blink   { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 70%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes hx-caret   { 50% { opacity: 0; } }
@keyframes hx-visor   { 0%,100% { opacity: 1; } 50% { opacity: .65; } }

@media (max-width: 960px) {
  .hx-sec { padding: 0 16px 84px; }
  .hx { grid-template-columns: 1fr; gap: 36px; padding: 40px 22px 34px; border-radius: 22px; }
  .hx::before { background:
    radial-gradient(circle at 50% 72%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 50%),
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; }
  .hx-spoke::before, .hx-spoke::after { opacity: 0; }
}

/* Form */
.wora-form input::placeholder,
.wora-form textarea::placeholder {
  color: rgba(255,255,255,.45);
}
.wora-form select option { color: #111; }

#wora-form-btn.loading {
  opacity: .7;
  pointer-events: none;
}
#wora-msg {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent-2);
}
#wora-msg.error { color: #ff6b6b; }
#wora-msg.show  { display: block; }

/* Portfolio filter */
[data-filter].active {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}
[data-filter]:not(.active) {
  background: var(--card);
  color: var(--ink);
}
#wora-grid article.hidden { display: none !important; }
