/* ============================================
   RESET Y BASE
   ============================================ */
* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

body {
  background: linear-gradient(180deg, #050510 0%, #000000 40%);
  background-attachment: fixed;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: pageFadeIn 0.6s ease forwards;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glitch {
  0%   { filter: none; }
  25%  { filter: brightness(1.5) blur(1px); }
  50%  { filter: none; }
  75%  { filter: brightness(0.7) blur(1px); }
  100% { filter: none; }
}

/* ============================================
   CURSOR
   ============================================ */
.cursor {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}
/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.nav-logo {
  font-size: 18px;
  letter-spacing: 6px;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: #555555;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('zeus.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.25;
  pointer-events: none;
}

.hero-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-3d canvas {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 100px;
}

.hero h1 {
  font-size: 180px;
  font-weight: 400;
  letter-spacing: 30px;
  color: #ffffff;
  font-family: 'Bebas Neue', sans-serif;
  animation: fadeUp 1s ease forwards;
  line-height: 1;
}

.hero h1:hover {
  animation: glitch 0.4s ease infinite;
}

.hero p {
  font-size: 16px;
  letter-spacing: 4px;
  color: #888888;
  margin-top: 10px;
  text-transform: uppercase;
  animation: fadeUp 1s ease 0.3s forwards;
  opacity: 0;
}

.linea {
  width: 60px;
  height: 1px;
  background-color: #ffffff;
  margin: 30px auto;
}

.boton {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 40px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  animation: fadeUp 1s ease 0.6s forwards;
  opacity: 0;
}

.boton:hover {
  background-color: #ffffff;
  color: #000000;
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios {
  display: flex;
  width: 100%;
  padding: 40px;
  border-top: 1px solid #222222;
  gap: 60px;
  margin-top: 0;
  animation: fadeUp 1s ease 0.9s forwards;
  opacity: 0;
}

.servicio {
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
  padding: 30px;
  border: 1px solid transparent;
}

.servicio h3 {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.servicio p {
  font-size: 13px;
  letter-spacing: 1px;
  color: #555555;
  text-transform: none;
}

.servicio:hover {
  border: 1px solid #333333;
  transform: translateY(-5px);
}

.servicio:hover h3 {
  color: #aaaaaa;
}

/* ============================================
   WORK
   ============================================ */
.work {
  width: 100%;
  padding: 40px;
  border-top: 1px solid #222222;
}

.work-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid #111111;
  transition: all 0.4s ease;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.work-item:hover {
  padding-left: 20px;
  border-bottom: 1px solid #333333;
  background: linear-gradient(90deg, #0a0a0a 0%, transparent 100%);
}

.work-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: #ffffff;
  transition: all 0.6s ease;
}

.work-item:hover::after {
  width: 100%;
}

.work-item:hover h3 {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

.work-num {
  font-size: 11px;
  letter-spacing: 3px;
  color: #333333;
  width: 60px;
  flex-shrink: 0;
}

.work-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-info h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  transition: color 0.3s ease;
  display: block;
}

.work-info p {
  font-size: 11px;
  display: block;
  letter-spacing: 3px;
  color: #444444;
  text-transform: uppercase;
  margin-top: 6px;
}

.work-item:hover .work-info h3 {
  color: #aaaaaa;
}

.work-arrow {
  font-size: 18px;
  color: #333333;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.work-item:hover .work-arrow {
  transform: translateX(8px);
  color: #ffffff;
  opacity: 1;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0 40px;
  margin-top: 120px;
  margin-bottom: 0;
}

.section-label span {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background-color: #1a1a1a;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  width: 100%;
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact h2 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 24px;
  opacity: 1;
  transform: none;
}

.contact p {
  font-size: 11px;
  letter-spacing: 4px;
  color: #444444;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 1;
  transform: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

.footer p {
  font-size: 11px;
  letter-spacing: 3px;
  color: #333333;
  text-transform: uppercase;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.servicio,
.work-item,
.section-label {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   RESPONSIVE MÓVIL
   ============================================ */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-links { gap: 20px; }
  .hero h1 { font-size: 60px; letter-spacing: 10px; }
  .servicios { flex-direction: column; gap: 0; padding: 40px 24px; }
  .work { padding: 40px 24px; }
  .work-item { gap: 12px; }
  .work-info h3 { font-size: 16px; }
  .contact h2 { font-size: 32px; letter-spacing: 2px; }
  .section-label { padding: 0 24px; }
}
/* ============================================
   PAGE TRANSITIONS
   ============================================ */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}