/* =============================================
   GOOD PORTFOLIO — Apple-inspired CSS
   Paleta: #0B0B0B · #FFFFFF · #2563EB · #7C3AED
   ============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
  cursor: none;
  background: var(--surface-1);
  color: var(--text-primary);
}

/* ---- CSS VARIABLES ---- */
:root {
  /* Base */
  --black: #0b0b0b;
  --white: #ffffff;

  /* Nueva base light */
  --surface-1: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;

  /* Bordes */
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);

  /* Texto */
  --text-primary: #0b0b0b;
  --text-secondary: rgba(0, 0, 0, 0.6);
  --text-muted: rgba(0, 0, 0, 0.4);

  /* Glass */
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);

  /* Colores principales (no cambian) */
  --blue: #2563eb;
  --violet: #7c3aed;

  --blue-pastel: #dbeafe;
  --violet-pastel: #ede9fe;

  --blue-dim: #1d4ed8;
  --blue-glow: rgba(37, 99, 235, 0.15);
  --violet-glow: rgba(124, 58, 237, 0.1);

  /* Transiciones */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --t-fast: 0.2s;
  --t-med: 0.4s;
  --t-slow: 0.8s;

  /* Layout */
  --container: 1200px;
  --section-pt: 120px;
  --section-pb: 120px;
}

/* ---- TYPOGRAPHY ---- */
h1,
h2,
h3,
h4 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================
   CURSOR PERSONALIZADO
   ============================== */
.cursor {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(37, 99, 235, 0.7);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s,
    opacity 0.3s;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

.cursor.cursor--hover {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--blue);
}

/* ==============================
   NAVBAR FLOTANTE
   ============================== */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 900px;
  transition: top var(--t-med) var(--ease);
}

.nav__island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 64px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
  transition:
    background var(--t-med),
    box-shadow var(--t-med);
}

.nav.nav--scrolled .nav__island {
  background: rgba(232, 232, 232, 0.92);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 0 0.5px rgba(255, 255, 255, 0.07) inset;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.nav__logo-text {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

/* Menu desktop */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.nav__link {
  padding: 7px 14px;
  border-radius: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    color var(--t-fast),
    background var(--t-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* CTA */
.nav__cta {
  display: flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--blue);
  border-radius: 32px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  transition:
    background var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast);
  box-shadow: 0 0 0 0 var(--blue-glow);
}

.nav__cta:hover {
  background: var(--blue-dim);
  transform: scale(1.03);
  box-shadow: 0 0 20px var(--blue-glow);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #7c3aed64;
  border: none;
  padding: 10px 12px;
  border-radius: 32px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform var(--t-fast),
    opacity var(--t-fast);
}

/* Mobile Drawer */
.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(40px);
  z-index: 1001;
  padding: 80px 32px 40px;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  border-left: 1px solid var(--border);
}

.nav__drawer.is-open {
  transform: translateX(0);
}

.nav__drawer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav__drawer ul li a {
  display: block;
  padding: 14px 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  transition:
    color var(--t-fast),
    padding-left var(--t-fast);
}

.nav__drawer ul li a:hover {
  color: var(--text-primary);
  padding-left: 8px;
}

.nav__drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--t-fast);
}

.nav__drawer-close:hover {
  background: rgba(0, 0, 0, 0.15);
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}

.nav__overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ==============================
   REVEAL ANIMATIONS
   ============================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 {
  transition-delay: 0.1s;
}
.reveal--delay-2 {
  transition-delay: 0.2s;
}
.reveal--delay-3 {
  transition-delay: 0.3s;
}
.reveal--delay-4 {
  transition-delay: 0.4s;
}
.reveal--delay-5 {
  transition-delay: 0.5s;
}

/* ==============================
   GLOBAL COMPONENTS
   ============================== */

/* Section Tag */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

/* Section header */
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section__title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section__text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    background var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--blue-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-radius: 50px;
  border: 1px solid var(--border-light);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

/* Background orbs */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.18) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.12) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -100px;
  animation: orbFloat 15s ease-in-out infinite reverse;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.1) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.97);
  }
}

@keyframes orbPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Dot grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

/* Hero layout */
.hero__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 100px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 32px;
  font-size: 13px;
  font-weight: 500;
  color: #93c5fd;
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 8px #4ade80;
  }
  50% {
    box-shadow: 0 0 16px #4ade80;
  }
}

/* Titles */
.hero__title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.hero__name {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  background: linear-gradient(
    135deg,
    var(--white) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero__subtitle-accent {
  color: var(--blue);
  font-weight: 600;
}

.hero__text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__social {
  display: flex;
  gap: 8px;
}

.hero__social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 32px;
  font-size: 13px;
  color: var(--text-secondary);
  transition:
    color var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast);
}

.hero__social-link:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.07);
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.hero__avatar-wrap {
  position: relative;
  z-index: 2;

}

.hero__avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.3);
  animation: ringRotate 20s linear infinite;
}

.hero__avatar-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue);
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero__avatar {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 60px rgba(37, 99, 235, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.5);
}

/* Floating cards */
.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero__card-icon {
  font-size: 16px;
}

.hero__card--1 {
  top: 15%;
  right: 0;
  animation: cardFloat 6s ease-in-out infinite;
}

.hero__card--2 {
  bottom: 25%;
  right: -10px;
  animation: cardFloat 7s ease-in-out infinite 1s;
}

.hero__card--3 {
  bottom: 12%;
  left: 10%;
  animation: cardFloat 8s ease-in-out infinite 0.5s;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ==============================
   ABOUT
   ============================== */
.about {
  padding: var(--section-pt) 0 var(--section-pb);
  background: var(--surface-1);
}

.about__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-bg {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--blue-glow), var(--violet-glow));
  border-radius: 32px;
  filter: blur(30px);
  z-index: 0;
}

.about__image {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about__image-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 12px 18px;
  text-align: center;
}

.about__image-badge span {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.about__image-badge small {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* About content */
.about__title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.about__info-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.about__info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.about__skills {
  margin-bottom: 32px;
}

.about__skills-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.about__skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 32px;
  font-size: 13px;
  font-weight: 500;
  color: #93c5fd;
  transition:
    background var(--t-fast),
    border-color var(--t-fast);
}

.skill-tag:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
}

/* ==============================
   SERVICES
   ============================== */
.services {
  padding: var(--section-pt) 0 var(--section-pb);
  background: var(--surface-2);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service__card {
  position: relative;
  padding: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition:
    border-color var(--t-med),
    transform var(--t-med),
    box-shadow var(--t-med);
}

.service__card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(37, 99, 235, 0.08);
}

.service__icon {
  width: 52px;
  height: 52px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  transition:
    background var(--t-fast),
    border-color var(--t-fast);
}

.service__card:hover .service__icon {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
}

.service__card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.service__card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Glow effect on hover */
.service__card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-med);
}

.service__card:hover .service__card-glow {
  opacity: 1;
}

/* Alternating accent */
.service__card:nth-child(2) .service__icon,
.service__card:nth-child(4) .service__icon {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--violet);
}

.service__card:nth-child(2):hover .service__icon,
.service__card:nth-child(4):hover .service__icon {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
}

.service__card:nth-child(2):hover,
.service__card:nth-child(4):hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(124, 58, 237, 0.08);
}

/* ==============================
   PROCESS
   ============================== */
.process {
  padding: var(--section-pt) 0 var(--section-pb);
  background: var(--surface-1);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* Línea conectora */
.process__grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--blue));
  opacity: 0.3;
}

.process__step {
  padding: 0 32px;
  position: relative;
}

.process__step-num {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.process__step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.process__step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==============================
   COLLABORATIONS
   ============================== */
.collaborations {
  padding: var(--section-pt) 0 var(--section-pb);
  background: var(--surface-2);
}

.collaboration__carousel {
  max-width: 980px;
  margin: 0 auto;
}

.collaboration__viewport {
  overflow: hidden;
  border-radius: 28px;
}

.collaboration__track {
  display: flex;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}

.collaboration__card {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  transition:
    border-color var(--t-med),
    box-shadow var(--t-med);
}

.collaboration__card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(37, 99, 235, 0.07);
}

.collaboration__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 46px;
  background:
    radial-gradient(circle at 16% 18%, rgba(124, 58, 237, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(37, 99, 235, 0.08), transparent 65%);
  border-right: 1px solid var(--border);
}

.collaboration__logo {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 104px;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.collaboration__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.collaboration__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collaboration__status i {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.collaboration__brand h3 {
  margin-bottom: 5px;
  color: var(--text-primary);
  font-size: 27px;
  letter-spacing: -0.025em;
}

.collaboration__brand p {
  color: var(--text-secondary);
  font-size: 14px;
}

.collaboration__service {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 54px;
}

.collaboration__label {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.collaboration__service h4 {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: -0.025em;
}

.collaboration__service p {
  max-width: 500px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.collaboration__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
  transition:
    color var(--t-fast),
    gap var(--t-fast);
}

.collaboration__link:hover {
  gap: 13px;
  color: var(--blue);
}

.collaboration__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.collaboration__controls[hidden] {
  display: none;
}

.collaboration__arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition:
    color var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
}

.collaboration__arrow:hover {
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.collaboration__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.collaboration__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(0, 0, 0, 0.18);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition:
    width var(--t-fast),
    background var(--t-fast);
}

.collaboration__dot.is-active {
  width: 24px;
  background: var(--blue);
  border-radius: 10px;
}

.collaboration__counter {
  min-width: 34px;
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* ==============================
   PROJECTS
   ============================== */
.projects {
  padding: var(--section-pt) 0 var(--section-pb);
  background: var(--surface-1);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project__card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition:
    border-color var(--t-med),
    transform var(--t-med),
    box-shadow var(--t-med);
}

.project__card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.project__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-3);
}

.project__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project__card:hover .project__image {
  transform: scale(1.05);
}

.project__image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-med);
}

.project__card:hover .project__image-overlay {
  opacity: 1;
}

.project__links {
  display: flex;
  gap: 12px;
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgb(255, 255, 255);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--t-fast);
}

.project__link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.project__body {
  padding: 24px 28px 28px;
}

.project__meta {
  margin-bottom: 10px;
}

.project__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #93c5fd;
}

.project__body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.project__body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==============================
   GOOD GAMES INVITE
   ============================== */
.games-invite {
  padding: 44px 0 120px;
  background: var(--surface-1);
}

.games-invite__card {
  position: relative;
  min-height: 300px;
  padding: 54px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  align-items: center;
  gap: 56px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(115, 97, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #0c1430 0%, #111128 52%, #18102b 100%);
  box-shadow: 0 30px 70px rgba(30, 41, 90, 0.18);
}

.games-invite__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.7px, transparent 0.7px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
}

.games-invite__copy,
.games-invite__action {
  position: relative;
  z-index: 2;
}

.games-invite__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(224, 229, 255, 0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.games-invite__eyebrow i,
.games-invite__available i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6de2ae;
  box-shadow: 0 0 12px #6de2ae;
}

.games-invite h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.045em;
}

.games-invite h2 em {
  color: #a897ff;
}

.games-invite__copy p {
  max-width: 580px;
  color: rgba(222, 226, 245, 0.66);
  font-size: 15px;
  line-height: 1.75;
}

.games-invite__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.games-invite__available {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  color: rgba(217, 223, 244, 0.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.games-invite__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 9px 9px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #14162a;
  background: #f7f8ff;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast);
}

.games-invite__button > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #5d7bf5, #8c5add);
  transition: transform var(--t-med) var(--ease);
}

.games-invite__button:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(93, 82, 222, 0.3);
}

.games-invite__button:hover > span {
  transform: rotate(-12deg) translateX(2px);
}

.games-invite__ambient {
  position: absolute;
  width: 280px;
  height: 280px;
  top: -120px;
  right: 15%;
  pointer-events: none;
}

.games-invite__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(164, 172, 255, 0.14);
  border-radius: 50%;
  animation: gamesOrbit 18s linear infinite;
}

.games-invite__orbit::after {
  content: "";
  position: absolute;
  left: 33px;
  bottom: 39px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9f8aff;
  box-shadow: 0 0 16px #8471ff;
}

.games-invite__spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.games-invite__spark--1 { top: 68%; left: -26%; }
.games-invite__spark--2 { top: 84%; right: -12%; }
.games-invite__spark--3 { top: 53%; right: 35%; opacity: 0.65; }

@keyframes gamesOrbit {
  to { transform: rotate(360deg); }
}

/* ==============================
   CONTACT
   ============================== */
.contact {
  padding: var(--section-pt) 0 var(--section-pb);
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.contact__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.12) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
}

.contact__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.1) 0%,
    transparent 70%
  );
  bottom: -50px;
  left: -50px;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact__title {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact__data {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__data-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact__data-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.contact__data-item span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact__data-item p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Form */
.contact__form-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__group input,
.form__group textarea {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition:
    border-color var(--t-fast),
    background var(--t-fast),
    box-shadow var(--t-fast);
  outline: none;
  resize: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--text-muted);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer__wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer__text {
  max-width: 480px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition:
    color var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast);
}

.footer__social-link:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.07);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer__links a:hover {
  color: var(--text-primary);
}

/* ==============================
   BACK TO TOP
   ============================== */
.btn-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--t-med),
    transform var(--t-med),
    box-shadow var(--t-fast);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.35);
}

.btn-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-top:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  :root {
    --section-pt: 80px;
    --section-pb: 80px;
  }

  .hero__wrapper {
    gap: 40px;
  }
  .about__wrapper {
    gap: 48px;
  }
  .process__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process__grid::before {
    display: none;
  }
  .process__step {
    padding: 0;
  }
  .collaboration__card {
    grid-template-columns: 1fr;
  }
  .collaboration__brand {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav__menu,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }

  /* Hero */
  .hero__wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding-bottom: 80px;
  }

  .hero__actions {
    justify-content: center;
  }
  .hero__social {
    justify-content: center;
  }
  .hero__text {
    margin: 0 auto 36px;
  }
  .hero__visual {
    display: none;
  }

  /* About */
  .about__wrapper {
    grid-template-columns: 1fr;
  }

  /* About info */
  .about__info {
    grid-template-columns: 1fr;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Collaborations */
  .collaboration__brand,
  .collaboration__service {
    padding: 36px;
  }

  /* Projects */
  .projects__grid {
    grid-template-columns: 1fr;
  }

  /* Good Games */
  .games-invite {
    padding: 20px 0 80px;
  }
  .games-invite__card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 34px;
  }
  .games-invite__action {
    max-width: 360px;
  }

  /* Contact */
  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Footer */
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Cursor - desactivar en móvil */
  .cursor,
  .cursor-dot {
    display: none;
  }
  body {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .nav {
    width: calc(100% - 32px);
  }
  .hero__badge {
    font-size: 12px;
  }
  .hero__title {
    font-size: clamp(38px, 10vw, 56px);
  }
  .btn-top {
    bottom: 20px;
    right: 20px;
  }
  .games-invite__card {
    padding: 36px 24px;
    border-radius: 24px;
  }
  .games-invite__action {
    width: 100%;
  }
  .games-invite__button {
    padding-left: 18px;
  }
  .collaboration__card {
    border-radius: 22px;
  }
  .collaboration__brand,
  .collaboration__service {
    padding: 28px 24px;
  }
  .collaboration__logo {
    height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-invite__orbit {
    animation: none;
  }
  .collaboration__track {
    transition: none;
  }
}
