:root {
  --black: #050505;
  --dark: #0e0e0e;
  --card: #161616;
  --card-hover: #1d1d1d;
  --pink: #F0197A;
  --pink-bright: #FF4D9E;
  --white: #f0f0ec;
  --muted: #6b6b6b;
  --border: rgba(255, 255, 255, 0.07);
  --grad: linear-gradient(90deg, #4FA8DC 0%, #9B59D0 18%, #F0197A 30%, #F0197A 70%, #9B59D0 82%, #4FA8DC 100%);
}

body.light-mode {
  --black: #f0f0ec;
  --dark: #ffffff;
  --card: #e8e8e8;
  --card-hover: #f5f5f5;
  --white: #050505;
  --muted: #7a7a7a;
  --border: rgba(0, 0, 0, 0.1);
  --pink: #d81b70;
  --pink-bright: #f04c9a;
  --grad: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 18%, #d81b70 30%, #d81b70 70%, #8b5cf6 82%, #3b82f6 100%);
  background-color: #f0f0ec;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(216, 27, 112, 0.24) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(216, 27, 112, 0.20) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(216, 27, 112, 0.14) 0%, transparent 60%);
}

body.light-mode .project-card::before {
  background: linear-gradient(135deg, transparent 25%, rgba(216, 27, 112, 0.12) 100%);
}

body.light-mode .project-card:hover::before {
  background: linear-gradient(135deg, transparent 10%, rgba(216, 27, 112, 0.22) 100%);
}

body.light-mode .project-card::after {
  background: linear-gradient(135deg, transparent 50%, rgba(216, 27, 112, 0.04) 100%);
}

body.light-mode .project-card:hover::after {
  background: linear-gradient(135deg, transparent 10%, rgba(216, 27, 112, 0.22) 100%);
}

body.light-mode .project-card:hover {
  background: #f5f0f3;
}

body.light-mode .project-card {
  box-shadow: 0 0 35px rgba(216, 27, 112, 0.2), inset 0 0 45px rgba(216, 27, 112, 0.08);
}

body.light-mode .project-bg-letter {
  color: rgba(0, 0, 0, 0.04);
}

body.light-mode .project-card:hover .project-bg-letter {
  color: rgba(216, 27, 112, 0.08);
}

body.light-mode .project-media {
  border-left-color: rgba(0, 0, 0, 0.08);
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--glow-rgb, 216, 27, 112), 0.1) 0%, rgba(0, 0, 0, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3)),
    #f5f5f5;
}

body.light-mode .project-media::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--glow-rgb, 216, 27, 112), 0.2) 0%, rgba(var(--glow-rgb, 216, 27, 112), 0.06) 18%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 100% 0%, rgba(var(--glow-rgb, 216, 27, 112), 0.18) 0%, rgba(var(--glow-rgb, 216, 27, 112), 0.05) 18%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 0% 100%, rgba(var(--glow-rgb, 216, 27, 112), 0.18) 0%, rgba(var(--glow-rgb, 216, 27, 112), 0.05) 18%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 100% 100%, rgba(var(--glow-rgb, 216, 27, 112), 0.2) 0%, rgba(var(--glow-rgb, 216, 27, 112), 0.06) 18%, rgba(0, 0, 0, 0) 45%);
}

body.light-mode .project-card:hover .project-media {
  border-left-color: rgba(var(--glow-rgb, 216, 27, 112), 0.3);
}

body.light-mode .hero-sub {
  color: rgba(5, 5, 5, 0.55);
}

body.light-mode .hero-social a {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(5, 5, 5, 0.7);
}

body.light-mode .hero-social a:hover {
  border-color: var(--pink);
  color: var(--pink);
}

body.light-mode .section-desc {
  color: rgba(5, 5, 5, 0.6);
}

body.light-mode .service-desc {
  color: rgba(5, 5, 5, 0.45);
}

body.light-mode .service-num {
  color: var(--muted);
}

body.light-mode .service-name {
  color: #050505;
}

body.light-mode .service-card:hover {
  background: #f5f0f3;
  box-shadow: 0 0 40px rgba(216, 27, 112, 0.25), 0 0 80px rgba(216, 27, 112, 0.15), inset 0 0 60px rgba(216, 27, 112, 0.06);
}

body.light-mode .project-desc {
  color: rgba(5, 5, 5, 0.5);
}

body.light-mode .origen-text-block p {
  color: rgba(5, 5, 5, 0.55);
}

body.light-mode .contact-info .section-desc {
  color: rgba(5, 5, 5, 0.6);
}

body.light-mode .contact-social-link {
  color: rgba(5, 5, 5, 0.7);
}

body.light-mode .contact-social-link:hover {
  color: var(--pink);
}

body.light-mode .contact-social-icon {
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .contact-social-link:hover .contact-social-icon {
  border-color: var(--pink);
}

body.light-mode .project-meta {
  color: rgba(5, 5, 5, 0.5);
}

body.light-mode .stat-label {
  color: rgba(5, 5, 5, 0.6);
}

body.light-mode .project-cta p {
  color: rgba(5, 5, 5, 0.5);
}

body.light-mode .service-card::before {
  color: rgba(216, 27, 112, 0.12);
}

body.light-mode .service-card {
  box-shadow: 0 0 30px rgba(216, 27, 112, 0.15), inset 0 0 40px rgba(216, 27, 112, 0.07);
}

body.light-mode .service-card:hover::before {
  color: rgba(216, 27, 112, 0.22);
}

body.light-mode .corner-mark img {
  opacity: 0.85;
}

body.light-mode .mark-icon img {
  opacity: 0.9;
}

body.light-mode .btn-nav {
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: var(--white);
  background: transparent;
}

body.light-mode .btn-nav:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

body.light-mode .nav-lang span {
  color: rgba(0, 0, 0, 0.25) !important;
}

body.light-mode .particle {
  background: rgba(216, 27, 112, 0.85);
  width: 3px;
  height: 3px;
}

body.light-mode .services-grid {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .projects-grid {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-item {
  border-top-color: rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #050505;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(240, 25, 122, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(240, 25, 122, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(240, 25, 122, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  cursor: none;
}

/* CURSOR */
.cursor {
  position: fixed;
  width: 42px;
  height: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23f0197a' stroke-linecap='round' stroke-linejoin='round' opacity='0.72'%3E%3Cellipse cx='32' cy='32' rx='20' ry='8.5' transform='rotate(18 32 32)' stroke-width='2'/%3E%3Cellipse cx='32' cy='32' rx='20' ry='8.5' transform='rotate(-18 32 32)' stroke-width='2'/%3E%3Cellipse cx='32' cy='32' rx='8.5' ry='20' stroke-width='2'/%3E%3Ccircle cx='32' cy='32' r='6' fill='%23f0197a' fill-opacity='0.78' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, opacity 0.15s ease;
  filter: drop-shadow(0 0 3px rgba(240, 25, 122, 0.25));
}

.cursor-follower {
  position: fixed;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(240, 25, 122, 0.28);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  box-shadow: 0 0 14px rgba(240, 25, 122, 0.18);
}

@media (hover: none) {

  .cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preloaderOut 0.6s ease 2.4s forwards;
}

.preloader-logo {
  width: 600px;
  height: 600px;
  position: relative;
  opacity: 1;
  animation: glitch-base 2.2s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .preloader-logo {
    animation: none;
    opacity: 1;
  }

  .preloader-logo::before,
  .preloader-logo::after {
    display: none !important;
  }
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Pseudo-elements for the slicing glitch effect */
.preloader-logo::before,
.preloader-logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/marca/BANDIDO01.png') no-repeat center;
  background-size: contain;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.preloader-logo::before {
  filter: drop-shadow(5px 0 0 #0ff);
  animation: glitch-slice-1 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.preloader-logo::after {
  filter: drop-shadow(-5px 0 0 var(--pink));
  animation: glitch-slice-2 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

@keyframes glitch-base {
  0% {
    opacity: 1;
    transform: scale(1) skewX(0deg);
    filter: blur(0px) contrast(1);
  }

  10% {
    opacity: 1;
    transform: scale(1.1) skewX(-15deg);
    filter: blur(0px) contrast(1);
  }

  15% {
    transform: scale(1) skewX(0);
  }

  25% {
    transform: translate(-10px, 5px) scale(1.05);
    filter: brightness(2) contrast(1.5);
  }

  28% {
    transform: translate(0, 0) scale(1);
    filter: brightness(1) contrast(1);
  }

  35% {
    transform: scale(0.9) skewX(40deg);
    opacity: 0.8;
  }

  40% {
    transform: scale(1.1) skewX(0);
    opacity: 1;
    filter: drop-shadow(0 0 30px var(--pink));
  }

  50% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 0px transparent);
  }

  80% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 60px #F0197A) drop-shadow(0 0 120px #F0197A);
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
    filter: drop-shadow(0 0 100px #F0197A) drop-shadow(0 0 200px #F0197A);
  }
}

@keyframes glitch-slice-1 {

  0%,
  5% {
    clip-path: inset(20% 0 80% 0);
    transform: translate(-40px, 0);
    opacity: 1;
  }

  10% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(40px, 0);
    opacity: 1;
  }

  20% {
    clip-path: inset(10% 0 50% 0);
    transform: translate(-20px, 0);
    opacity: 1;
  }

  30% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(50px, 0);
    opacity: 1;
  }

  40%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
    opacity: 0;
  }
}

@keyframes glitch-slice-2 {

  0%,
  5% {
    clip-path: inset(10% 0 60% 0);
    transform: translate(40px, 0);
    opacity: 1;
  }

  15% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(-30px, 0);
    opacity: 1;
  }

  25% {
    clip-path: inset(30% 0 20% 0);
    transform: translate(60px, 0);
    opacity: 1;
  }

  35% {
    clip-path: inset(5% 0 80% 0);
    transform: translate(-50px, 0);
    opacity: 1;
  }

  40%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
    opacity: 0;
  }
}

@keyframes preloaderOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes origen-glitch-1 {

  0%,
  68%,
  100% {
    opacity: 0;
    transform: translate(0, 0) skewX(0deg);
    clip-path: none;
  }

  70% {
    opacity: 1;
    transform: translate(-45px, 5px) skewX(10deg);
    clip-path: inset(5% 0 75% 0);
  }

  73% {
    opacity: 1;
    transform: translate(40px, -4px) skewX(-12deg);
    clip-path: inset(55% 0 10% 0);
  }

  76% {
    opacity: 1;
    transform: translate(-25px, 3px) skewX(6deg);
    clip-path: inset(15% 0 45% 0);
  }

  79% {
    opacity: 1;
    transform: translate(35px, -5px) skewX(-8deg);
    clip-path: inset(75% 0 5% 0);
  }

  82% {
    opacity: 1;
    transform: translate(-20px, 2px) skewX(5deg);
    clip-path: inset(40% 0 25% 0);
  }

  85% {
    opacity: 1;
    transform: translate(25px, -3px) skewX(-6deg);
    clip-path: inset(10% 0 60% 0);
  }

  88% {
    opacity: 1;
    transform: translate(-15px, 0) skewX(3deg);
    clip-path: inset(65% 0 15% 0);
  }

  91% {
    opacity: 0;
    transform: translate(0, 0) skewX(0deg);
    clip-path: none;
  }
}

@keyframes origen-glitch-2 {

  0%,
  68%,
  100% {
    opacity: 0;
    transform: translate(0, 0) skewX(0deg);
    clip-path: none;
  }

  70% {
    opacity: 1;
    transform: translate(50px, -5px) skewX(-10deg);
    clip-path: inset(25% 0 45% 0);
  }

  73% {
    opacity: 1;
    transform: translate(-35px, 4px) skewX(12deg);
    clip-path: inset(65% 0 10% 0);
  }

  76% {
    opacity: 1;
    transform: translate(25px, -3px) skewX(-6deg);
    clip-path: inset(5% 0 70% 0);
  }

  79% {
    opacity: 1;
    transform: translate(-40px, 5px) skewX(8deg);
    clip-path: inset(45% 0 20% 0);
  }

  82% {
    opacity: 1;
    transform: translate(30px, -2px) skewX(-5deg);
    clip-path: inset(15% 0 55% 0);
  }

  85% {
    opacity: 1;
    transform: translate(-25px, 3px) skewX(7deg);
    clip-path: inset(70% 0 5% 0);
  }

  88% {
    opacity: 1;
    transform: translate(20px, -1px) skewX(-4deg);
    clip-path: inset(35% 0 35% 0);
  }

  91% {
    opacity: 0;
    transform: translate(0, 0) skewX(0deg);
    clip-path: none;
  }
}

/* PARTICLES */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(240, 25, 122, 0.45);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-100px) translateX(30px);
    opacity: 0;
  }
}

/* NAV */
nav {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.5s ease;
}

nav.nav-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes navIn {
  to {
    opacity: 1;
  }
}

.nav-lang {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-lang a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-lang a:hover {
  color: var(--pink);
}

.nav-lang a.lang-active {
  color: var(--pink);
  font-weight: 700;
}

.nav-lang span {
  margin: 0 2px;
}

#themeToggle {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.3s;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}

#themeToggle:hover {
  color: var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.8;
  transition: opacity 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--pink);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  opacity: 1;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-nav:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.light-mode .hamburger span {
  background: #050505;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: var(--dark);
  border-left: 1px solid var(--border);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

body.light-mode .mobile-menu {
  background: #f0f0ec;
}

.mobile-menu.open {
  right: 0;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.mobile-links a:hover {
  color: var(--pink);
}

body.light-mode .mobile-links a {
  color: #050505;
}

body.light-mode .mobile-links a:hover {
  color: var(--pink);
}

.mobile-links .mobile-cta {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  padding: 12px 28px;
  border: 1px solid var(--pink);
  border-radius: 100px;
  color: var(--white);
  background: var(--pink);
}

body.light-mode .mobile-links .mobile-cta {
  color: #fff;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 104;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

body.light-mode .mobile-overlay {
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(36px, 10vw, 100px);
    column-gap: 0.2em;
  }

  .title-glitch {
    font-size: clamp(36px, 10vw, 100px);
    column-gap: 0.2em;
  }

  .hero-watermark {
    width: 200px;
    height: 200px;
  }

  .mark-icon {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  body {
    cursor: auto;
    overflow-x: hidden;
  }

  .cursor,
  .cursor-follower {
    display: none !important;
  }

  .side-nav {
    right: 14px;
    gap: 8px;
  }

  .side-dot {
    width: 5px;
    height: 5px;
  }

  #hero {
    padding: 0 20px 10vh 20px;
    gap: 20px;
  }

  .hero-title {
    /* Subimos la intro y la apilamos para evitar el corte de la segunda palabra. */
    font-size: clamp(40px, 12vw, 82px);
    column-gap: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    line-height: 0.92;
  }

  .hero-title .title-left,
  .hero-title .title-right {
    display: block;
    text-align: center;
  }

  .title-glitch span:first-child,
  .title-glitch span:last-child {
    display: block;
    text-align: center;
  }

  .title-glitch {
    font-size: clamp(40px, 12vw, 82px);
    column-gap: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    line-height: 0.92;
  }

  .title-glitch span:first-child,
  .title-glitch span:last-child {
    display: block;
  }

  .hero-watermark {
    width: 150px;
    height: 150px;
  }

  .hero-sub {
    font-size: 15px;
    left: 0 !important;
    max-width: 340px;
  }

  .corner-mark {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }

  .hero-social {
    bottom: 24px;
    gap: 12px;
  }

  .hero-social a {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .scroll-hint {
    right: 20px;
    bottom: 24px;
  }

  .scroll-line {
    height: 30px;
  }

  #servicios,
  #proyectos,
  #origen,
  #contacto {
    padding: 60px 20px;
  }

  .section-label {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .section-title {
    font-size: clamp(32px, 7vw, 54px);
  }

  .section-subtitle {
    font-size: clamp(32px, 7vw, 54px);
  }

  .section-desc {
    font-size: 14px;
  }

  .servicios-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 28px 24px;
  }

  .service-name {
    font-size: 12px;
  }

  .service-desc {
    font-size: 14px;
  }

  .service-card::before {
    font-size: 72px;
    top: -10px;
    right: -5px;
  }

  .mark-icon {
    width: 80px;
    height: 80px;
    margin-top: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 32px 20px 32px;
    min-height: auto;
  }

  .project-media {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 200px;
    margin: 14px 0 14px;
    border-radius: 16px;
  }

  .project-content {
    max-width: 100%;
  }

  .project-meta {
    font-size: 11px;
  }

  .project-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .project-desc {
    font-size: 14px;
    max-width: 100%;
  }

  .project-arrow {
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .project-cta {
    padding: 32px 20px;
  }

  .origen-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .origen-content {
    gap: 40px;
  }

  .origen-text-block p {
    font-size: 17px;
  }

  .stat-num {
    font-size: 32px;
  }

  .stat-item {
    padding-top: 18px;
  }

  .origen-stats {
    gap: 32px;
  }

  .contact-social {
    margin-top: 24px;
  }

  .contact-social-link {
    gap: 12px;
  }

  .contact-social-label {
    font-size: 13px;
  }

  .location-card {
    margin-top: 28px;
    padding: 24px 24px;
    min-height: auto;
  }

  .location-card-map {
    display: none;
  }

  .location-card-icon {
    width: 44px;
    height: 44px;
  }

  .location-card-value {
    font-size: 16px;
  }

  .location-card-sub {
    font-size: 12px;
  }

  .contact-form-atom {
    top: 40px;
    right: 20px;
    width: 80px;
    height: 80px;
  }

  .form-input,
  .form-textarea {
    font-size: 14px;
    padding: 14px 16px;
    border-radius: 10px;
  }

  .form-textarea {
    height: 120px;
  }

  .btn-submit {
    padding: 16px 24px;
    font-size: 12px;
    border-radius: 10px;
  }

  footer {
    padding: 20px;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .footer-links {
    gap: 20px;
  }

  [data-parallax] {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .project-media::before,
  .project-media::after {
    display: none;
  }

  .preloader-logo {
    width: min(200vw, 600px);
    height: min(200vw, 600px);
  }
}

@media (max-width: 480px) {
  #hero {
    gap: 16px;
    padding: 0 16px 8vh 16px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .hero-title {
    /* En móvil pequeño mantenemos la intro grande y legible. */
    font-size: clamp(34px, 11vw, 58px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    column-gap: 0;
    text-align: center;
    line-height: 0.9;
  }

  .title-glitch {
    font-size: clamp(34px, 11vw, 58px);
    column-gap: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
    line-height: 0.9;
  }

  .hero-title .title-left,
  .hero-title .title-right {
    text-align: center;
  }

  .hero-watermark {
    width: 110px;
    height: 110px;
  }

  .hero-sub {
    font-size: 13px;
    max-width: 290px;
  }

  .corner-mark {
    width: 40px;
    height: 40px;
    bottom: 14px;
    left: 14px;
  }

  nav {
    padding: 14px 16px;
  }

  .nav-lang {
    font-size: 11px;
    gap: 6px;
  }

  #themeToggle svg {
    width: 16px;
    height: 16px;
  }

  .btn-nav {
    padding: 8px 16px;
    font-size: 11px;
  }

  #servicios,
  #proyectos,
  #origen,
  #contacto {
    padding: 48px 16px;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 24px 18px;
  }

  .service-card::before {
    font-size: 56px;
  }

  .project-media {
    height: 160px;
  }

  .section-title {
    font-size: clamp(26px, 6vw, 38px);
  }

  .section-subtitle {
    font-size: clamp(26px, 6vw, 38px);
  }

  .mobile-menu {
    width: 85%;
  }

  .mobile-links a {
    font-size: 18px;
  }

  .preloader-logo {
    width: min(200vw, 600px);
    height: min(200vw, 600px);
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: clamp(30px, 10vw, 46px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
    line-height: 0.9;
  }

  .title-glitch {
    font-size: clamp(30px, 10vw, 46px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
    line-height: 0.9;
  }

  .hero-title .title-left,
  .hero-title .title-right {
    display: block;
    text-align: center;
  }

  .title-glitch span:first-child,
  .title-glitch span:last-child {
    display: block;
    text-align: center;
  }

  .hero-watermark {
    width: 80px;
    height: 80px;
  }

  .hero-sub {
    font-size: 11px;
    max-width: 220px;
  }

  .btn-nav {
    padding: 6px 12px;
    font-size: 10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 20px 14px;
  }

  .project-media {
    height: 130px;
  }
}

/* SIDE NAV DOTS */
.side-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: navIn 0.8s ease 2.6s forwards;
}

.side-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.side-dot.active {
  background: var(--pink);
  transform: scale(1.4);
}

body.light-mode .side-dot {
  background: rgba(0, 0, 0, 0.2);
}

body.light-mode .side-dot.active {
  background: var(--pink);
}

/* SECTIONS */
section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
  will-change: opacity, transform, filter;
}

section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

section>* {
  position: relative;
  z-index: 1;
}

[data-parallax] {
  will-change: transform, opacity;
}

section.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
}

section.is-active::before {
  opacity: 1;
}

section.is-past {
  opacity: 0.28;
  transform: scale(0.985);
  filter: blur(6px) saturate(0.72);
}

section.is-upcoming {
  opacity: 0.72;
  transform: translateY(18px) scale(0.992);
  filter: blur(1.5px) saturate(0.88);
}

/* HERO */
#hero {
  flex-direction: column;
  text-align: center;
  padding: 0 0 14vh 0;
  overflow: hidden;
  gap: 28px;
  position: relative;
}

.hero-watermark {
  position: relative;
  width: 300px;
  height: 300px;
  opacity: 0.07;
  pointer-events: none;
  filter: grayscale(1) contrast(1.1);
}

.hero-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-watermark .glitch-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

.hero-watermark .glitch-layer--red {
  filter: brightness(1.5) sepia(1) saturate(6) hue-rotate(-60deg);
  animation: watermarkGlitchRed 4s ease-in-out infinite;
}

.hero-watermark .glitch-layer--cyan {
  filter: brightness(1.5) sepia(1) saturate(6) hue-rotate(-20deg);
  animation: watermarkGlitchCyan 4s ease-in-out infinite;
}

.hero-watermark img:first-child {
  animation: watermarkDistort 4s ease-in-out infinite;
}

@keyframes titleDistort {

  0%,
  100% {
    transform: skewX(0) scale(1);
    filter: blur(0) contrast(1) drop-shadow(0 0 0 transparent);
  }

  8% {
    transform: skewX(-8deg) scale(1.02);
    filter: blur(1px) contrast(1.3);
  }

  16% {
    transform: skewX(5deg) scale(0.98);
    filter: blur(0) contrast(1);
  }

  24% {
    transform: translate(-3px, 1px) skewX(-3deg) scale(1.01);
    filter: brightness(1.4) contrast(1.2);
  }

  30% {
    transform: translate(0, 0) skewX(0) scale(1);
    filter: brightness(1) contrast(1);
  }

  40% {
    transform: skewX(10deg) scale(0.95);
    filter: blur(2px) contrast(1.5);
  }

  50% {
    transform: skewX(-4deg) scale(1.04);
    filter: blur(0) contrast(1);
  }

  55% {
    transform: translate(2px, -1px) scale(1);
    filter: drop-shadow(0 0 20px var(--pink));
  }

  60% {
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }

  70% {
    transform: skewX(-6deg) scale(0.97);
    filter: blur(1px) contrast(1.3);
  }

  80% {
    transform: skewX(4deg) scale(1.03);
    filter: blur(0) contrast(1);
  }

  85% {
    transform: translate(-2px, 1px) scale(1);
    filter: drop-shadow(0 0 25px var(--pink)) brightness(1.2);
  }

  90% {
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}

@keyframes watermarkDistort {
  0% {
    transform: scale(1) skewX(0);
    filter: blur(0) contrast(1);
  }

  8% {
    transform: scale(1.05) skewX(-12deg);
    filter: blur(2px) contrast(1.5);
  }

  16% {
    transform: scale(0.95) skewX(8deg);
    filter: blur(0) contrast(1);
  }

  24% {
    transform: translate(-4px, 2px) scale(1.03);
    filter: brightness(1.5) contrast(1.3);
  }

  30% {
    transform: translate(0, 0) scale(1);
    filter: brightness(1) contrast(1);
  }

  40% {
    transform: scale(0.92) skewX(15deg);
    filter: blur(3px) contrast(1.8);
  }

  50% {
    transform: scale(1.08) skewX(-5deg);
    filter: blur(0) contrast(1);
  }

  55% {
    transform: translate(3px, -2px) scale(1);
    filter: drop-shadow(0 0 15px var(--pink));
  }

  60% {
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }

  70% {
    transform: scale(0.96) skewX(-10deg);
    filter: blur(1px) contrast(1.4);
  }

  80% {
    transform: scale(1.04) skewX(6deg);
    filter: blur(0) contrast(1);
  }

  85% {
    transform: translate(-2px, 1px) scale(1);
    filter: drop-shadow(0 0 20px var(--pink)) brightness(1.3);
  }

  90% {
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }

  100% {
    transform: scale(1) skewX(0);
    filter: blur(0) contrast(1);
  }
}

@keyframes watermarkGlitchRed {

  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  5% {
    opacity: 0.8;
    transform: translate(-6px, 2px) skewX(-2deg);
  }

  10% {
    opacity: 0.3;
    transform: translate(5px, -1px) skewX(1deg);
  }

  15% {
    opacity: 0.7;
    transform: translate(-3px, 1px) skewX(-1deg);
  }

  20% {
    opacity: 0;
    transform: translate(0, 0);
  }

  50% {
    opacity: 0;
    transform: translate(0, 0);
  }

  55% {
    opacity: 0.6;
    transform: translate(4px, -2px) skewX(2deg);
  }

  60% {
    opacity: 0.9;
    transform: translate(-5px, 1px) skewX(-2deg);
  }

  65% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes watermarkGlitchCyan {

  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  5% {
    opacity: 0.7;
    transform: translate(6px, -2px) skewX(2deg);
  }

  10% {
    opacity: 0.9;
    transform: translate(-4px, 1px) skewX(-1deg);
  }

  15% {
    opacity: 0.5;
    transform: translate(3px, -1px) skewX(1deg);
  }

  20% {
    opacity: 0;
    transform: translate(0, 0);
  }

  50% {
    opacity: 0;
    transform: translate(0, 0);
  }

  55% {
    opacity: 0.8;
    transform: translate(-6px, 2px) skewX(-2deg);
  }

  60% {
    opacity: 0.6;
    transform: translate(5px, -1px) skewX(2deg);
  }

  65% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

.hero-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 11vw, 150px);
  line-height: 0.98;
  background: var(--grad);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: scale(0.85);
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards, gradientJaspe 8s ease infinite;
  user-select: none;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.3em;
  width: fit-content;
  margin: 0 auto;
}

.title-glitch {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.3em;
  width: fit-content;
  margin: 0 auto;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 11vw, 150px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.title-glitch span:first-child {
  text-align: right;
}

.title-glitch span:last-child {
  text-align: left;
}

.title-glitch--red {
  color: var(--pink);
  animation: titleGlitchRed 4s ease-in-out infinite;
}

.title-glitch--cyan {
  color: var(--pink);
  animation: titleGlitchCyan 4s ease-in-out infinite;
}

@keyframes titleGlitchRed {

  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  5% {
    opacity: 0.7;
    transform: translate(-4px, 1px);
  }

  10% {
    opacity: 0.3;
    transform: translate(3px, -1px);
  }

  15% {
    opacity: 0.6;
    transform: translate(-2px, 0);
  }

  20%,
  50% {
    opacity: 0;
    transform: translate(0, 0);
  }

  55% {
    opacity: 0.5;
    transform: translate(3px, -1px);
  }

  60% {
    opacity: 0.8;
    transform: translate(-4px, 1px);
  }

  65%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes titleGlitchCyan {

  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  5% {
    opacity: 0.6;
    transform: translate(4px, -1px);
  }

  10% {
    opacity: 0.8;
    transform: translate(-3px, 1px);
  }

  15% {
    opacity: 0.4;
    transform: translate(2px, 0);
  }

  20%,
  50% {
    opacity: 0;
    transform: translate(0, 0);
  }

  55% {
    opacity: 0.7;
    transform: translate(-4px, 1px);
  }

  60% {
    opacity: 0.5;
    transform: translate(3px, -1px);
  }

  65%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

.hero-title .title-left {
  text-align: right;
}

.hero-title .title-right {
  text-align: left;
}

@keyframes gradientJaspe {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 50% 0%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: rgba(240, 240, 236, 0.55);
  max-width: 480px;
  opacity: 0;
  animation: navIn 1s ease 2.6s forwards;
  text-align: center;
  margin: 0 auto;
  position: relative;
  left: -40px;
}

.hero-social {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  animation: navIn 0.8s ease 2.8s forwards;
  z-index: 1;
}

.hero-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s;
}

.hero-social a:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-3px);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: navIn 1s ease 3s forwards;
}

.scroll-hint span {
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  color: var(--muted);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: .4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

.corner-mark {
  position: absolute;
  bottom: 32px;
  left: 32px;
  width: 76px;
  height: 76px;
  opacity: 0;
  animation: navIn 1s ease 3s forwards;
}

.corner-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spin 10s linear infinite;
  opacity: 0.55;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* SERVICIOS */
#servicios {
  padding: 120px 80px;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.servicios-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.servicios-text {
  max-width: 650px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.section-subtitle-inline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #6F7280;
}

.section-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #6F7280;
  display: block;
}

.section-title-gradient {
  display: inline;
  color: inherit;
}

.section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(240, 240, 236, 0.6);
  max-width: 540px;
  font-weight: 300;
}

.mark-icon {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  margin-top: 40px;
  margin-right: 60px;
  opacity: 0.9;
}

.mark-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spin 14s linear infinite;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.service-card {
  background: var(--dark);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
  box-shadow: 0 0 25px rgba(240, 25, 122, 0.12), inset 0 0 35px rgba(240, 25, 122, 0.05);
}

.service-card::before {
  content: attr(data-num);
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 100px;
  color: rgba(240, 25, 122, 0.15);
  pointer-events: none;
  transition: color 0.4s;
}

.service-card:hover {
  background: #1a1218;
  box-shadow: 0 0 40px rgba(240, 25, 122, 0.25), 0 0 80px rgba(240, 25, 122, 0.15), inset 0 0 60px rgba(240, 25, 122, 0.06);
}

.service-card:hover::before {
  color: rgba(240, 25, 122, 0.25);
}

.service-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.service-name {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
  transition: color 0.3s;
}

.service-card:hover .service-name {
  color: var(--pink);
}

.service-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240, 240, 236, 0.45);
  font-weight: 300;
}

/* PROYECTOS */
#proyectos {
  padding: 120px 80px;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
}

.proyectos-header {
  max-width: 640px;
}

.projects-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--dark);
  padding: 48px 360px 44px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  cursor: pointer;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 0 25px rgba(240, 25, 122, 0.1), inset 0 0 35px rgba(240, 25, 122, 0.04);
}

.project-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--glow-rgb, 240, 25, 122), 0.16) 0%, rgba(0, 0, 0, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    #0b0b10;
  box-shadow: none;
  z-index: 1;
  isolation: isolate;
  transform: translateZ(0);
  transition: border-color 0.4s;
}

.project-media::before {
  content: '';
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--glow-rgb, 240, 25, 122), 0.32) 0%, rgba(var(--glow-rgb, 240, 25, 122), 0.1) 18%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 100% 0%, rgba(var(--glow-rgb, 240, 25, 122), 0.3) 0%, rgba(var(--glow-rgb, 240, 25, 122), 0.09) 18%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 0% 100%, rgba(var(--glow-rgb, 240, 25, 122), 0.3) 0%, rgba(var(--glow-rgb, 240, 25, 122), 0.09) 18%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 100% 100%, rgba(var(--glow-rgb, 240, 25, 122), 0.32) 0%, rgba(var(--glow-rgb, 240, 25, 122), 0.1) 18%, rgba(0, 0, 0, 0) 45%);
  filter: blur(14px);
  transform: scale(1);
  opacity: 0.9;
  pointer-events: none;
  z-index: 5;
}

.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.08) 45%, transparent 56% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 6px);
  mix-blend-mode: overlay;
  opacity: 0.28;
  animation: mediaGrain 8s steps(2) infinite;
  pointer-events: none;
}

.project-media .blend-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.4;
  transform: scale(1.08);
}

.project-media img {
  /* La imagen debe llenar el 100% del cuadro y recortarse dentro del wrapper. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  max-width: none;
  max-height: none;
  z-index: 2;
  padding: 0;
  margin: 0;
  transform-origin: center;
  transform: scale(1.08);
  mix-blend-mode: normal;
  filter:
    saturate(1.05) contrast(1.05) drop-shadow(0 0 10px rgba(var(--glow-rgb, 240, 25, 122), 0.22)) drop-shadow(0 0 24px rgba(var(--glow-rgb, 240, 25, 122), 0.14));
  animation: iconBreath 4.2s ease-in-out infinite;
}

.project-card:hover .project-media {
  border-left-color: rgba(var(--glow-rgb, 240, 25, 122), 0.34);
}

.project-media .light-img {
  display: none;
}

body.light-mode .project-media .dark-img {
  display: none;
}

body.light-mode .project-media .light-img {
  display: block;
}

/* GLITCH ELÉCTRICO CONTINUO: capas duplicadas rojo/cian corriendo en loop
       infinito, simulando aberración cromática constante. */
.project-media .glitch-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

.project-media .glitch-layer--red {
  filter: brightness(1.5) sepia(1) saturate(6) hue-rotate(-60deg);
  animation: glitchLoopRed 5s ease-in-out infinite;
}

.project-media .glitch-layer--cyan {
  filter: brightness(1.5) sepia(1) saturate(6) hue-rotate(-20deg);
  animation: glitchLoopCyan 5s ease-in-out infinite;
}

@keyframes glitchLoopRed {

  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  6% {
    opacity: 0.5;
    transform: translate(-4px, 1px);
  }

  12% {
    opacity: 0.15;
    transform: translate(3px, -1px);
  }

  18% {
    opacity: 0.4;
    transform: translate(-2px, 0);
  }

  24% {
    opacity: 0;
    transform: translate(0, 0);
  }

  60% {
    opacity: 0;
    transform: translate(0, 0);
  }

  66% {
    opacity: 0.35;
    transform: translate(2px, -1px);
  }

  72% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes glitchLoopCyan {

  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  6% {
    opacity: 0.45;
    transform: translate(4px, -1px);
  }

  12% {
    opacity: 0.15;
    transform: translate(-3px, 1px);
  }

  18% {
    opacity: 0.4;
    transform: translate(2px, 0);
  }

  24% {
    opacity: 0;
    transform: translate(0, 0);
  }

  60% {
    opacity: 0;
    transform: translate(0, 0);
  }

  66% {
    opacity: 0.3;
    transform: translate(-2px, 1px);
  }

  72% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 25%, rgba(240, 25, 122, 0.22) 100%);
  opacity: 1;
  transition: background 0.4s;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover::before {
  background: linear-gradient(135deg, transparent 10%, rgba(240, 25, 122, 0.38) 100%);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(240, 25, 122, 0.06) 100%);
  opacity: 1;
  transition: background 0.4s;
  pointer-events: none;
  z-index: 2;
}

.project-card:hover::after {
  background: linear-gradient(135deg, transparent 10%, rgba(240, 25, 122, 0.38) 100%);
}

.project-card:hover {
  background: #130d12;
}

.project-bg-letter {
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 200px;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s;
}

.project-card:hover .project-bg-letter {
  color: rgba(240, 25, 122, 0.06);
}

.project-media--ferking {
  --glow-rgb: 240, 25, 122;
}

.project-media--rrhh {
  --glow-rgb: 240, 25, 122;
}

.project-media--bandit {
  --glow-rgb: 240, 25, 122;
}

.project-media--sisstar {
  --glow-rgb: 240, 25, 122;
}

.project-media--coca {
  --glow-rgb: 240, 25, 122;
}

.project-content {
  position: relative;
  z-index: 3;
  max-width: 360px;
}

.project-meta {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}

.project-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.3s;
  letter-spacing: 0.01em;
}

.project-card:hover .project-title {
  color: var(--pink);
}

.project-desc {
  font-size: 15px;
  color: rgba(240, 240, 236, 0.4);
  line-height: 1.6;
  max-width: 340px;
  font-weight: 300;
}

.project-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.3s;
  opacity: 0;
  z-index: 2;
  text-decoration: none;
}

.project-card:hover .project-arrow {
  opacity: 1;
  border-color: var(--pink);
  color: var(--pink);
  transform: rotate(45deg);
}

@keyframes mediaPulse {

  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes iconBreath {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes iconFloat {

  0%,
  100% {
    filter:
      drop-shadow(0 0 10px rgba(var(--glow-rgb, 240, 25, 122), 0.22)) drop-shadow(0 0 24px rgba(var(--glow-rgb, 240, 25, 122), 0.14));
  }

  50% {
    filter:
      drop-shadow(0 0 14px rgba(var(--glow-rgb, 240, 25, 122), 0.30)) drop-shadow(0 0 30px rgba(var(--glow-rgb, 240, 25, 122), 0.20));
  }
}

@keyframes mediaGrain {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 24px 0, 0 18px, 18px 0;
  }
}

.project-cta {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 44px;
  text-align: center;
  flex-direction: column;
  border: none;
  transition: background 0.4s;
}

.project-cta:hover {
  background: #130d12;
}

.project-cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: var(--white);
}

.project-cta p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 300;
}

.project-cta-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--pink);
  font-size: 18px;
  transition: all 0.3s;
  text-decoration: none;
}

.project-cta:hover .project-cta-arrow {
  border-color: var(--pink);
  transform: rotate(45deg);
}

/* ORIGEN */
#origen {
  padding: 120px 80px;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
}

#origen .reveal {
  width: 100%;
}

#origen .section-title,
#origen .section-subtitle {
  display: block;
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}

.origen-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: 100%;
  align-items: start;
}

.origen-stats {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  justify-content: center;
  align-self: start;
  margin-top: -80px;
  position: relative;
}

.origen-stats img {
  position: relative;
  z-index: 1;
  animation: scanline-glitch 4s steps(1) infinite;
}

@keyframes scanline-glitch {

  0%,
  85%,
  100% {
    transform: translateX(0) scaleX(1);
    clip-path: inset(0 0 0 0);
    filter: none;
  }

  86% {
    transform: translateX(-15px) scaleX(1.02);
    clip-path: inset(0 0 85% 0);
    filter: contrast(1.5) brightness(1.2);
  }

  87% {
    transform: translateX(20px) scaleX(0.98);
    clip-path: inset(10% 0 60% 0);
    filter: contrast(2) brightness(0.8);
  }

  88% {
    transform: translateX(-25px) scaleX(1.03);
    clip-path: inset(20% 0 40% 0);
    filter: contrast(1.8) brightness(1.3);
  }

  89% {
    transform: translateX(30px) scaleX(0.97);
    clip-path: inset(5% 0 75% 0);
    filter: contrast(2.2) brightness(0.7);
  }

  90% {
    transform: translateX(-18px) scaleX(1.01);
    clip-path: inset(40% 0 30% 0);
    filter: contrast(1.6) brightness(1.1);
  }

  91% {
    transform: translateX(22px) scaleX(0.99);
    clip-path: inset(15% 0 55% 0);
    filter: contrast(1.9) brightness(0.9);
  }

  92% {
    transform: translateX(-30px) scaleX(1.02);
    clip-path: inset(60% 0 10% 0);
    filter: contrast(2.5) brightness(1.4);
  }

  93% {
    transform: translateX(15px) scaleX(0.96);
    clip-path: inset(30% 0 50% 0);
    filter: contrast(1.7) brightness(0.6);
  }

  94% {
    transform: translateX(-10px) scaleX(1.04);
    clip-path: inset(70% 0 5% 0);
    filter: contrast(2) brightness(1.2);
  }

  95% {
    transform: translateX(25px) scaleX(0.98);
    clip-path: inset(8% 0 70% 0);
    filter: contrast(2.3) brightness(0.8);
  }

  96% {
    transform: translateX(-20px) scaleX(1.01);
    clip-path: inset(45% 0 25% 0);
    filter: contrast(1.5) brightness(1.1);
  }

  97% {
    transform: translateX(10px) scaleX(0.97);
    clip-path: inset(25% 0 50% 0);
    filter: contrast(1.8) brightness(0.9);
  }

  98% {
    transform: translateX(0) scaleX(1);
    clip-path: inset(0 0 0 0);
    filter: contrast(1.2) brightness(1.05);
  }
}

.origen-stats::before,
.origen-stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/marca/BANDIT1.png') no-repeat center / contain;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.origen-stats::before {
  animation: origen-glitch-1 6s steps(1) infinite;
}

.origen-stats::after {
  animation: origen-glitch-2 6s steps(1) infinite;
}

.stat-item {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  color: var(--pink);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 300;
}

.origen-text-block p {
  font-size: 19px;
  line-height: 1.85;
  color: rgba(240, 240, 236, 0.55);
  font-weight: 300;
}

.origen-text-block p+p {
  margin-top: 24px;
}

/* CONTACTO */
#contacto {
  padding: 120px 80px;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  width: 100%;
  align-items: start;
}

.contact-form-atom {
  position: absolute;
  top: 200px;
  right: 80px;
  width: 130px;
  height: 130px;
  z-index: 0;
}

.contact-form-atom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spin 10s linear infinite;
  opacity: 0.55;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s;
  width: fit-content;
}

.contact-social-link:hover {
  color: var(--pink);
}

.contact-social-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  transition: border-color 0.3s, color 0.3s;
}

.contact-social-link:hover .contact-social-icon {
  border-color: var(--pink);
  color: var(--pink);
}

.contact-social-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.location-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 42px;
  margin-top: 40px;
  border: 1px solid rgba(240, 25, 122, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  min-height: 200px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(240, 25, 122, 0.3) 20%, rgba(240, 25, 122, 0.3) 80%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.location-card:hover {
  border-color: rgba(240, 25, 122, 0.25);
  box-shadow: 0 0 50px rgba(240, 25, 122, 0.06), inset 0 0 40px rgba(240, 25, 122, 0.02);
  transform: translateY(-2px);
}

.location-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(240, 25, 122, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.location-card-map {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 65%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 8%, black 30%, black 85%, transparent 96%);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, black 30%, black 85%, transparent 96%);
}

.location-card-map iframe {
  width: 125%;
  height: 125%;
  top: -12.5%;
  right: -12.5%;
  position: relative;
  border: none;
  display: block;
  filter: grayscale(100%) invert(92%) contrast(105%) brightness(0.75);
  opacity: 0.55;
  pointer-events: none;
}

.location-card-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.06) 35%, transparent 55%, rgba(10, 10, 10, 0.6) 100%);
  pointer-events: none;
}

.location-card-icon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(240, 25, 122, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  flex-shrink: 0;
  background: rgba(240, 25, 122, 0.06);
  box-shadow: 0 0 20px rgba(240, 25, 122, 0.04);
}

.location-card-icon svg {
  width: 22px;
  height: 22px;
}

.location-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.location-card-label {
  position: relative;
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.location-card-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--pink);
  border-radius: 1px;
}

.location-card-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
}

.location-card-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 2px;
}

body.light-mode .location-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .location-card:hover {
  border-color: rgba(216, 27, 112, 0.25);
  box-shadow: 0 0 50px rgba(216, 27, 112, 0.06), inset 0 0 40px rgba(216, 27, 112, 0.02);
}

body.light-mode .location-card-bg {
  background:
    radial-gradient(circle at 20% 60%, rgba(216, 27, 112, 0.06) 0%, transparent 60%);
}

body.light-mode .location-card-map iframe {
  filter: grayscale(100%) contrast(105%) brightness(1.05);
  opacity: 0.5;
}

body.light-mode .location-card-map-overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.75) 100%);
}

body.light-mode .location-card-icon {
  border-color: rgba(216, 27, 112, 0.3);
  background: rgba(216, 27, 112, 0.08);
}

body.light-mode .location-card-value {
  color: var(--white);
}

body.light-mode .form-input,
body.light-mode .form-textarea {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(5, 5, 5, 0.85);
}

body.light-mode .form-input::placeholder,
body.light-mode .form-textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

body.light-mode .form-input:focus,
body.light-mode .form-textarea:focus {
  border-color: rgba(216, 27, 112, 0.25);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(216, 27, 112, 0.08);
}

body.light-mode .btn-submit {
  background: var(--pink);
}

body.light-mode .btn-submit:hover {
  box-shadow: 0 8px 30px rgba(216, 27, 112, 0.2);
}

body.light-mode .form-label {
  color: rgba(5, 5, 5, 0.65);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.12);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(240, 25, 122, 0.25);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(240, 25, 122, 0.08), inset 0 0 30px rgba(240, 25, 122, 0.02);
}

.form-textarea-wrap {
  position: relative;
}

.form-textarea {
  height: 140px;
  padding-right: 64px;
  resize: none;
}

.form-textarea-icon {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  opacity: 0.3;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(240, 25, 122, 0.3));
}

.btn-submit {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--pink) 0%, #c01a6b 100%);
  border: none;
  border-radius: 12px;
  color: var(--white);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #f02a7e 0%, #d61d72 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240, 25, 122, 0.25);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(240, 25, 122, 0.15);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 600px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--white);
}

.modal-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--white);
}

.modal-content p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240, 240, 236, 0.6);
  margin-bottom: 16px;
}

body.light-mode .modal {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .modal-content h2 {
  color: #050505;
}

body.light-mode .modal-content p {
  color: rgba(5, 5, 5, 0.85);
}

body.light-mode .modal-close {
  color: rgba(5, 5, 5, 0.4);
}

body.light-mode .modal-close:hover {
  color: #050505;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  z-index: 999;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(240, 25, 122, 0.15);
}

body.light-mode .whatsapp-float {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(5, 5, 5, 0.7);
}

body.light-mode .whatsapp-float:hover {
  border-color: var(--pink);
  color: var(--pink);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: rgba(240, 25, 122, 0.35);
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-title,
  .hero-sub,
  .hero-social,
  .scroll-hint,
  .corner-mark,
  nav,
  .side-nav {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .mark-icon img,
  .corner-mark img {
    animation: none;
  }

  section,
  section::before {
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }
}

@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}

/* MOBILE OVERRIDES FINALES
       Estas reglas van al final para ganar sobre las reglas antiguas que siguen
       más abajo en el archivo y estaban revirtiendo el tamaño del hero. */
@media (max-width: 768px) {
  #hero {
    padding: 0 20px 8vh 20px !important;
    gap: 24px !important;
  }

  .hero-watermark {
    width: min(78vw, 240px) !important;
    height: min(78vw, 240px) !important;
  }

  .hero-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    font-size: clamp(38px, 12vw, 78px) !important;
    line-height: 0.9 !important;
    column-gap: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .hero-title .title-left,
  .hero-title .title-right {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .title-glitch {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(38px, 12vw, 78px) !important;
    line-height: 0.9 !important;
    column-gap: 0 !important;
  }

  .title-glitch span:first-child,
  .title-glitch span:last-child {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .hero-sub {
    font-size: 15px !important;
    letter-spacing: 0.18em !important;
    max-width: 340px !important;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 0 16px 7vh 16px !important;
    gap: 20px !important;
  }

  .hero-watermark {
    width: min(84vw, 220px) !important;
    height: min(84vw, 220px) !important;
  }

  .hero-title,
  .title-glitch {
    font-size: clamp(32px, 11vw, 58px) !important;
  }

  .hero-sub {
    font-size: 13px !important;
    max-width: 290px !important;
  }
}

/* MOBILE FINAL OVERRIDES
       Forzamos una sola línea para el hero y ampliamos controles superiores
       únicamente en celular. */
@media (max-width: 768px) {
  #hero {
    overflow: visible !important;
  }

  .hero-watermark {
    width: min(94vw, 300px) !important;
    height: min(94vw, 300px) !important;
  }

  .hero-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    gap: 0.12em !important;
    font-size: clamp(28px, 9.5vw, 58px) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
    overflow: visible !important;
    white-space: nowrap !important;
    color: transparent !important;
    background-image: var(--grad) !important;
    background-size: 200% auto !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    padding: 0 !important;
  }

  .hero-title .title-left,
  .hero-title .title-right {
    display: inline !important;
    width: auto !important;
    text-align: center !important;
    padding: 0 !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    -webkit-text-fill-color: transparent !important;
  }

  .title-glitch {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.12em !important;
    font-size: clamp(28px, 9.5vw, 58px) !important;
    line-height: 1.3 !important;
    pointer-events: none !important;
    filter: drop-shadow(0 0 6px rgba(240, 25, 122, 0.12)) !important;
  }

  .title-glitch--red {
    color: rgba(240, 25, 122, 0.7) !important;
  }

  .title-glitch--cyan {
    color: rgba(240, 25, 122, 0.7) !important;
  }

  .title-glitch span:first-child,
  .title-glitch span:last-child {
    display: inline !important;
    width: auto !important;
    padding: 0 !important;
  }

  .title-glitch span:first-child {
    text-align: right !important;
  }

  .title-glitch span:last-child {
    text-align: left !important;
  }

  .hero-sub {
    font-size: 14px !important;
    letter-spacing: 0.16em !important;
    max-width: 320px !important;
  }

  .nav-lang {
    font-size: 15px !important;
    gap: 8px !important;
  }

  .nav-lang a {
    font-size: 15px !important;
  }

  #themeToggle svg {
    width: 22px !important;
    height: 22px !important;
  }

  .btn-nav {
    padding: 11px 20px !important;
    font-size: 14px !important;
  }

  .nav-right {
    gap: 12px !important;
  }

  .hero-social {
    bottom: 26px !important;
  }

  .corner-mark {
    left: 50% !important;
    bottom: 70px !important;
    width: 64px !important;
    height: 64px !important;
    margin-left: -32px !important;
    z-index: 2 !important;
  }

  .mobile-menu {
    padding-top: 72px !important;
  }

  .mobile-close {
    display: flex !important;
  }
}

/* === ARREGLO DEFINITIVO PARA QUE NO SE CORTEN B Y T === */
@media (max-width: 768px) {

  .hero-title,
  .title-glitch {
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.15em !important;
    font-size: clamp(34px, 11vw, 70px) !important;
    line-height: 1.1 !important;
    letter-spacing: 0.02em !important;
  }

  .hero-title .title-left,
  .hero-title .title-right,
  .title-glitch span:first-child,
  .title-glitch span:last-child {
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  /* El contenedor principal de hero también debe dejar pasar el texto */
  #hero {
    overflow: visible !important;
  }
}

@media (max-width: 480px) {

  .hero-title,
  .title-glitch {
    font-size: clamp(26px, 9vw, 44px) !important;
    gap: 0.1em !important;
    letter-spacing: 0.01em !important;
  }
}

/* ============================================
   CONSOLIDATED MOBILE OVERRIDES — ALL SECTIONS
   Added at the end to win over scattered rules.
   Hero section intentionally NOT modified.
   ============================================ */

@media (max-width: 768px) {

  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  /* ── SERVICIOS ── */
  #servicios {
    padding: 60px 20px !important;
    gap: 40px !important;
  }

  .servicios-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 32px !important;
  }

  .servicios-text {
    max-width: 100% !important;
    text-align: left !important;
  }

  .servicios-text .section-title {
    text-align: left !important;
  }

  .servicios-text .section-desc {
    max-width: 100% !important;
  }

  .mark-icon {
    width: 100px !important;
    height: 100px !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .service-card {
    padding: 28px 20px !important;
  }

  .service-card::before {
    font-size: 72px !important;
    top: -10px !important;
    right: -5px !important;
  }

  .service-name {
    font-size: 11px !important;
  }

  .service-desc {
    font-size: 13px !important;
  }

  /* ── PROYECTOS ── */
  #proyectos {
    padding: 60px 20px !important;
    gap: 40px !important;
  }

  .proyectos-header {
    max-width: 100% !important;
    text-align: left !important;
  }

  .proyectos-header .section-desc {
    max-width: 100% !important;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
  }

  .project-card {
    padding: 24px 20px 24px !important;
    min-height: auto !important;
  }

  .project-media {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 200px !important;
    margin: 0 0 16px 0 !important;
    border-radius: 12px !important;
    border-left: none !important;
  }

  .project-content {
    max-width: 100% !important;
    position: relative !important;
    z-index: 3 !important;
  }

  .project-bg-letter {
    left: auto !important;
    right: 12px !important;
    top: 240px !important;
    font-size: 130px !important;
    z-index: 2 !important;
  }

  .project-arrow {
    top: 16px !important;
    right: 16px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
    z-index: 4 !important;
  }

  .project-meta {
    font-size: 11px !important;
    gap: 10px !important;
  }

  .project-title {
    font-size: clamp(22px, 5vw, 32px) !important;
    margin-bottom: 10px !important;
  }

  .project-desc {
    font-size: 13px !important;
    max-width: 100% !important;
  }

  .project-cta {
    padding: 32px 20px !important;
  }

  .project-cta-title {
    font-size: 24px !important;
  }

  .project-cta p {
    font-size: 14px !important;
  }

  .project-media::before,
  .project-media::after {
    display: none !important;
  }

  /* ── ORIGEN / BANDIT ── */
  #origen {
    padding: 60px 20px !important;
    gap: 40px !important;
  }

  #origen .reveal {
    text-align: left !important;
  }

  #origen .section-title,
  #origen .section-subtitle {
    text-align: left !important;
  }

  .origen-content {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .origen-text-block p {
    font-size: 16px !important;
    text-align: left !important;
  }

  .origen-stats {
    margin-top: 0 !important;
    gap: 24px !important;
    align-items: center !important;
  }

  .origen-stats img {
    max-width: 420px !important;
  }

  /* ── CONTACTO ── */
  #contacto {
    padding: 60px 20px !important;
    gap: 40px !important;
  }

  #contacto .reveal {
    text-align: left !important;
  }

  #contacto .section-title {
    text-align: left !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .contact-form-atom {
    display: none !important;
  }

  .contact-info .section-desc {
    text-align: left !important;
    max-width: 100% !important;
  }

  .contact-social {
    align-items: flex-start !important;
    margin-top: 24px !important;
  }

  .contact-social-link {
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .contact-social-label {
    font-size: 13px !important;
  }

  .location-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 20px !important;
    margin-top: 28px !important;
    min-height: auto !important;
    gap: 16px !important;
  }

  .location-card-map {
    display: none !important;
  }

  .location-card-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .location-card-content {
    align-items: center !important;
  }

  .location-card-label::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .location-card-value {
    font-size: 16px !important;
  }

  .location-card-sub {
    font-size: 12px !important;
  }

  .form-input,
  .form-textarea {
    font-size: 14px !important;
    padding: 14px 16px !important;
    border-radius: 10px !important;
  }

  .form-textarea {
    height: 120px !important;
  }

  .btn-submit {
    padding: 16px 24px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  /* ── FOOTER ── */
  footer {
    padding: 20px !important;
    flex-direction: column !important;
    gap: 14px !important;
    text-align: center !important;
  }

  .footer-links {
    gap: 20px !important;
    justify-content: center !important;
  }

  /* ── DISABLE PARALLAX ON MOBILE ── */
  [data-parallax] {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

@media (max-width: 480px) {

  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  /* ── SERVICIOS ── */
  #servicios {
    padding: 48px 16px !important;
    gap: 32px !important;
  }

  .servicios-top {
    gap: 24px !important;
  }

  .mark-icon {
    width: 80px !important;
    height: 80px !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    padding: 24px 18px !important;
  }

  .service-card::before {
    font-size: 56px !important;
  }

  .service-name {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }

  .service-desc {
    font-size: 13px !important;
  }

  /* ── PROYECTOS ── */
  #proyectos {
    padding: 48px 16px !important;
    gap: 32px !important;
  }

  .project-media {
    height: 160px !important;
    margin-bottom: 12px !important;
  }

  .project-bg-letter {
    left: auto !important;
    right: 8px !important;
    top: 190px !important;
    font-size: 100px !important;
    z-index: 2 !important;
  }

  .project-card {
    padding: 20px 16px 20px !important;
  }

  .project-title {
    font-size: clamp(20px, 5vw, 28px) !important;
  }

  .project-desc {
    font-size: 13px !important;
  }

  .project-cta {
    padding: 24px 16px !important;
  }

  /* ── ORIGEN ── */
  #origen {
    padding: 48px 16px !important;
    gap: 32px !important;
  }

  .origen-content {
    gap: 28px !important;
  }

  .origen-text-block p {
    font-size: 15px !important;
  }

  .origen-stats img {
    max-width: 360px !important;
  }

  .section-title {
    font-size: clamp(26px, 6vw, 36px) !important;
  }

  .section-subtitle {
    font-size: clamp(26px, 6vw, 36px) !important;
  }

  /* ── CONTACTO ── */
  #contacto {
    padding: 48px 16px !important;
    gap: 32px !important;
  }

  .contact-grid {
    gap: 32px !important;
  }

  .location-card {
    padding: 20px 16px !important;
  }

  .btn-submit {
    padding: 14px 20px !important;
    font-size: 11px !important;
  }

  /* ── FOOTER ── */
  footer {
    padding: 16px !important;
    gap: 12px !important;
  }

  .footer-copy {
    font-size: 11px !important;
  }

  .footer-links a {
    font-size: 11px !important;
  }
}