/* =====================================================
   jc.studio — Portfolio
   Dark Electric Green · Bebas Neue + Plus Jakarta Sans
   ===================================================== */

/* ---- TOKENS ----------------------------------------- */
:root {
  --bg:          #080808;
  --bg-2:        #0f0f0f;
  --bg-card:     #111612;
  --bg-card-h:   #131a15;
  --green:       #1A3C34;
  --green-2:     #163129;
  --accent:      #00E87A;   /* neon green — accent eléctrico */
  --accent-dim:  rgba(0, 232, 122, 0.15);
  --accent-glow: rgba(0, 232, 122, 0.35);
  --text:        #D4D8D0;
  --text-2:      rgba(212, 216, 208, 0.7);
  --text-3:      rgba(212, 216, 208, 0.4);
  --line:        rgba(212, 216, 208, 0.08);
  --nav-h:       72px;
  --radius:      12px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---- RESET ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
em { font-style: italic; color: var(--accent); }
button { cursor: none; }

/* ---- SPLASH ----------------------------------------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), clip-path 0.8s var(--ease-out);
  animation: splashSafety 0.01s 5s forwards;
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; }
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.splash-logo {
  width: 64px;
  height: 64px;
  animation: splashPulse 0.8s var(--ease-out) both;
}
@keyframes splashPulse {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.splash-bar {
  width: 120px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.splash-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: splashLoad 1.8s var(--ease-in-out) forwards;
}
@keyframes splashLoad {
  0%   { width: 0%; }
  40%  { width: 60%; }
  100% { width: 100%; }
}

/* ---- CURSOR ----------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  will-change: transform;
  top: 0; left: 0;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 232, 122, 0.6);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease-out), transform 0.12s linear, width 0.25s var(--ease-out), height 0.25s var(--ease-out);
}
.cursor-dot.is-ready,
.cursor-ring.is-ready { opacity: 1; }

body:has(a:hover, button:hover) .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--accent);
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---- NAV -------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background 0.4s var(--ease-out), border-color 0.4s;
}
.nav-wrap.is-scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.95;
  transition: opacity 0.2s;
}
.nav-logo a:hover { opacity: 1; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(212, 216, 208, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
}

.nav-link {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(212, 216, 208, 0.07);
}

/* ---- BUTTONS ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #080808;
  padding: 0.75rem 1.6rem;
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1.6rem;
  border: 1px solid rgba(212, 216, 208, 0.2);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-nav {
  background: var(--accent);
  color: #080808;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.btn-nav:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ---- SOCIAL RAIL ------------------------------------ */
.social-rail {
  position: fixed;
  left: 1.6rem;
  bottom: 3rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.social-rail a {
  color: var(--text-3);
  transition: color 0.2s, transform 0.2s;
  display: flex;
}
.social-rail a:hover { color: var(--accent); transform: translateX(2px); }
.social-line {
  width: 1px;
  height: 60px;
  background: var(--line);
}
@media (max-width: 767px) { .social-rail { display: none; } }

/* ---- REVEAL ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Defensive: split elements never stay invisible */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* ---- HERO ------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-h) 2rem 4rem;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  opacity: 0.4;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(26, 60, 52, 0.5) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 2s var(--ease-out) forwards;
}

/* Logo mark + título apilados */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 2.1s var(--ease-out) forwards;
}

.hero-brand-logo {
  width: clamp(90px, 11vw, 150px);
  height: auto;
  display: block;
  /* Elimina el fondo blanco: invert→negro, brightness+contrast llevan el símbolo a blanco */
  filter: invert(1) brightness(5) contrast(3);
  mix-blend-mode: screen;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 10vw, 11rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0;
  position: relative;
  display: inline-block;
}

/* Green underline animada */
.hero-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 0%;
  background: var(--accent);
  margin: 0.25rem auto 0;
  border-radius: 2px;
  animation: lineGrow 0.7s 3.2s var(--ease-out) forwards;
}
@keyframes lineGrow {
  to { width: 100%; }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  margin: 1.8rem 0 2.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 2.4s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 2.7s var(--ease-out) forwards;
}

/* Floating numbers */
.hero-num {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: 'JetBrains Mono', monospace;
  font-size: calc(var(--s) * 7rem);
  color: rgba(26, 60, 52, 0.25);
  pointer-events: none;
  user-select: none;
  animation: floatNum 6s ease-in-out infinite alternate;
}
.hero-num:nth-child(odd) { animation-delay: -2s; }
@keyframes floatNum {
  from { transform: translateY(0); }
  to   { transform: translateY(-18px); }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 0.6s 3.5s var(--ease-out) forwards;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(212, 216, 208, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ---- MARQUEE ---------------------------------------- */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-track span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  padding: 0 1.5rem;
}
.marquee-dot { color: var(--accent) !important; padding: 0 0.5rem !important; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ---- SECCIÓN LAYOUT --------------------------------- */
.section-header {
  margin-bottom: 3.5rem;
}
.section-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* ---- PROYECTOS -------------------------------------- */
.projects {
  padding: 7rem 2rem 6rem;
  max-width: 1280px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 767px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  border-radius: var(--radius);
  background: transparent;
  cursor: none;
  /* GSAP anima opacity/y aquí — sin transform CSS propio */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card:hover .card-inner {
  border-color: rgba(0, 232, 122, 0.35);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,232,122,0.12);
}

/* Glow verde que sigue el mouse */
.card-glow {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(0,232,122,0.18) 0%,
    rgba(0,232,122,0.06) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .card-glow { opacity: 1; }

/* Stagger reveal delays */
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.15s; }
.project-card:nth-child(4) { transition-delay: 0.2s; }
.project-card:nth-child(5) { transition-delay: 0.25s; }
.project-card:nth-child(6) { transition-delay: 0.3s; }

.card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

/* ---- FOSTER TEAM CAROUSEL --------------------------- */
.foster-card .card-img-wrap {
  aspect-ratio: unset;
  height: 420px;
}

.foster-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.foster-track {
  display: flex;
  gap: 6px;
  height: 100%;
  width: max-content;
  animation: fosterScroll 55s linear infinite;
  will-change: transform;
}
.limache-card .card-img-wrap,
.p3d-card .card-img-wrap,
.varios-card .card-img-wrap {
  aspect-ratio: unset;
  height: 420px;
}
.limache-track {
  animation: fosterScroll 62s linear infinite;
}
.p3d-track {
  animation: fosterScroll 90s linear infinite;
}
.varios-track {
  animation: fosterScroll 58s linear infinite;
}

/* Hundimiento al presionar */
.foster-card .card-inner:active,
.limache-card .card-inner:active,
.p3d-card .card-inner:active,
.varios-card .card-inner:active {
  transform: scale(0.97) translateY(3px) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}

.foster-track img {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
}

@keyframes fosterScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.card-img-placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 40% 50%,
    hsl(var(--hue), var(--sat), 22%) 0%,
    hsl(var(--hue), var(--sat), 8%) 60%,
    #0a0a0a 100%
  );
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .card-img-placeholder {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.7) 0%, transparent 50%);
}

.card-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 232, 122, 0.12);
  border: 1px solid rgba(0, 232, 122, 0.25);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.card-info {
  padding: 1.4rem 1.5rem 1.5rem;
}
.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.project-card:hover .card-title { color: var(--accent); }

.card-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
.project-card:hover .card-cta {
  opacity: 1;
  transform: none;
}

/* Project number watermark */
.project-card::before {
  content: attr(data-index);
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  z-index: 2;
}

/* ---- MANIFESTO -------------------------------------- */
.manifesto {
  padding: 8rem 2rem;
  background: var(--green);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at 60% 40%, rgba(0, 232, 122, 0.12), transparent 65%);
  pointer-events: none;
}

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.manifesto-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}
.manifesto-text em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* ---- SERVICIOS -------------------------------------- */
.services {
  padding: 7rem 2rem 6rem;
  max-width: 1280px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(0, 232, 122, 0.3);
  transform: translateY(-3px);
}

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.service-icon {
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.service-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}

/* Service stagger */
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }

/* ---- ABOUT ------------------------------------------ */
.about {
  padding: 7rem 2rem;
  border-top: 1px solid var(--line);
}
.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.02em;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.about-title em { color: var(--accent); }

.about-col-right { display: flex; flex-direction: column; gap: 1.5rem; }

.about-text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Stat cards — tilt igual que project cards */
.stat-card {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius);
  background: transparent;
}
.stat-card .card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}
.stat-arrow {
  color: var(--accent);
  font-size: 0.8em;
  transition: transform 0.2s;
  display: inline-block;
}
.stat-card:hover .stat-arrow { transform: translate(2px, -2px); }
.stat-card:hover .card-inner {
  border-color: rgba(0,232,122,0.35);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,232,122,0.1);
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}
.stat-num.stat-plus::after {
  content: '+';
  font-size: 2rem;
  opacity: 0.7;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---- CONTACTO --------------------------------------- */
.contact {
  padding: 8rem 2rem 7rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact-inner {
  max-width: 860px;
  margin: 0 auto;
}
.contact-head {
  margin-bottom: 3.5rem;
}
.contact-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 8rem);
  color: var(--text);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.contact-sub {
  font-size: 1rem;
  color: var(--text-2);
  font-weight: 300;
  max-width: 500px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.3s var(--ease-out), background 0.25s;
}
.contact-link:hover {
  border-color: rgba(0, 232, 122, 0.4);
  background: var(--bg-card-h);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-link > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}
.contact-link-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-link-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.contact-link-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s, transform 0.2s;
}
.contact-link:hover .contact-link-arrow {
  opacity: 1;
  transform: none;
}

/* ---- FOOTER ----------------------------------------- */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ---- HERO MOUSE GLOW (CSS puro, sin canvas) --------- */
#heroCanvas { display: none; } /* canvas desactivado */

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle 500px at var(--mx, 50%) var(--my, 50%),
    rgba(0,232,122,0.07) 0%,
    rgba(26,60,52,0.04) 40%,
    transparent 70%
  );
  transition: background 0.1s;
}

/* ---- HERO 3D LOGOS ---------------------------------- */
.hero-logo3d {
  position: absolute;
  width: clamp(260px, 26vw, 440px);
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-logo3d img {
  width: 100%;
  height: auto;
  display: block;
  filter: invert(1) brightness(0.95) contrast(1.05);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.hero-logo3d img.is-loaded {
  opacity: 0.85;
}

/* Top-right */
.hero-logo3d--right {
  top: 4%;
  right: -2%;
}

/* Bottom-left */
.hero-logo3d--left {
  bottom: 3%;
  left: -2%;
}

@media (max-width: 1100px) {
  .hero-logo3d { width: clamp(160px, 20vw, 280px); }
  .hero-logo3d--right { right: -4%; }
  .hero-logo3d--left  { left: -4%; }
}

@media (max-width: 767px) {
  .hero-logo3d { display: none; }
  #heroCanvas  { display: none; }
}

/* ---- CLUBS SHOWCASE OVERLAY ------------------------- */
.clubs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 18, 14, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.clubs-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.clubs-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 1rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.clubs-close:hover { border-color: var(--accent); color: var(--accent); }

.clubs-counter {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-3);
  display: flex;
  gap: 0.4rem;
}
.clubs-counter #clubsCurrent { color: var(--accent); }
.clubs-sep { opacity: 0.4; }

/* Stage */
.clubs-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clubs-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.clubs-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
.clubs-slide.exit-up {
  opacity: 0;
  transform: scale(1.05) translateY(-25px);
  transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}
.clubs-slide.exit-down {
  opacity: 0;
  transform: scale(1.05) translateY(25px);
  transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

.clubs-slide img {
  max-width: 280px;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1);
  /* logos son blancos — se ven sobre fondo oscuro */
}

.clubs-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--text-2);
  text-align: center;
}

/* Dots */
.clubs-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.clubs-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s, transform 0.3s;
}
.clubs-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* Scroll hint */
.clubs-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  animation: hintPulse 2s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* Trigger labels */
.clubs-trigger,
.countries-trigger,
.brands-trigger {
  cursor: pointer;
  transition: color 0.2s;
}
.clubs-trigger:hover,
.countries-trigger:hover,
.brands-trigger:hover { color: var(--accent); }

/* Country card */
.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.country-code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 16vw, 12rem);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.08em;
  opacity: 0.95;
}
.country-flag {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

/* ---- RESPONSIVE TWEAKS ------------------------------ */
@media (max-width: 767px) {
  .nav-pill { display: none; }
  .nav-wrap { padding: 0 1.25rem; }
  .hero { padding: var(--nav-h) 1.25rem 3rem; }
  .projects, .services, .about { padding-inline: 1.25rem; }
  .about-stats { gap: 2rem; }
  .manifesto { padding: 5rem 1.25rem; }
  .contact { padding: 5rem 1.25rem 4rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
