body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #000000;
  color: #ffffff;
  cursor: none;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

/* ========== CUSTOM CURSOR ========== */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease;
  mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.1);
  border-color: #ff00ff;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #ff00ff);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  width: 100%;
}

/* ========== HEADER MODERNO ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 212, 255, 0.5) 50%, 
    transparent 100%);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.logo-link:hover {
  color: #00d4ff;
  transform: translateY(-2px);
}

.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.logo-text {
  background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navegación */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #ff00ff);
  transition: width 0.3s ease;
}

.nav-list a:hover {
  color: #00d4ff;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Botón menú móvil */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: #00d4ff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle:hover span {
  background: #ff00ff;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

/* Ajuste para el contenido principal */
.site-main {
  margin-top: 0;
  background: #000000;
}

.site-footer {
  padding: 3rem 2rem;
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== HERO MODERN ========== */
.hero-modern {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
}

#threejs-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#threejs-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-text-container {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  margin: 0;
  letter-spacing: -0.03em;
  perspective: 1000px;
}

.hero-title .line {
  display: block;
  transform-style: preserve-3d;
  color: #ffffff;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  opacity: 0.6;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ========== SECTIONS ========== */
.section-padding {
  padding: 120px 0;
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.row-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.section-number {
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.1;
  position: absolute;
  left: -2rem;
  top: -3rem;
  color: #00d4ff;
}

.section-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
  position: relative;
}

.section-title-center {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  text-align: center;
  margin: 0 0 6rem 0;
  letter-spacing: -0.02em;
}

.large-text {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.3;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.body-text {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.7;
  font-weight: 300;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background: #000000;
  position: relative;
}

.col-left {
  position: relative;
}

.profile-image-container {
  margin-top: 3rem;
  position: relative;
}

.profile-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 20px;
  filter: grayscale(20%);
  transition: all 0.5s ease;
  border: 2px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.profile-image:hover {
  filter: grayscale(0%);
  transform: scale(1.02) translateY(-5px);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

/* ========== PROJECTS SECTION ========== */
.projects-section {
  background: #0a0a0a;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.project-card-link:hover .project-card {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.project-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00d4ff15 0%, #ff00ff15 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 255, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.project-year {
  font-size: 0.9rem;
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.2em;
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.project-category {
  font-size: 1rem;
  opacity: 0.7;
  margin: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: #000000;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 3rem 0;
  letter-spacing: -0.03em;
}

.cta-title .line {
  display: block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 50px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.btn-primary svg {
  transition: transform 0.4s ease;
}

.btn-primary:hover svg {
  transform: translateX(10px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .container-fluid {
    padding: 0 2rem;
  }

  .row-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-number {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
  }

  .section-padding {
    padding: 80px 0;
  }

  .container-fluid {
    padding: 0 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card {
    min-height: 300px;
  }

  .custom-cursor {
    display: none;
  }

  body {
    cursor: auto;
  }
}