* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0a0a0a;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}
/* HERO */

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}


.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}



.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
}

.hero-content {
  position: relative;
  z-index: 1; /* Bajamos este valor */
  text-align: center;
  top: 65%;
  transform: translateY(-50%);
  opacity: 0;
  transition: 1s ease;
}

.hero-content.show {
  opacity: 1;
}

.hero h1 {
  font-size: 100px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -3px;
}

.hero p {
  margin-top: 20px;
  opacity: 0.7;
}

.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 40px;
  background: #ea1d5d;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  letter-spacing: 2px;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  background: #c0174c;
}

/* SECTIONS */

.section {
  padding: 140px 20px;
  text-align: center;
}

.section h2 {
  font-size: 60px;
  margin-bottom: 30px;
}

.section p {
  max-width: 700px;
  margin: auto;
  opacity: 0.7;
  line-height: 1.8;
}

.dark {
  background: #111;
}

/* SERVICES */

.services {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 1000px;
  margin-inline: auto;
}

.service h3 {
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.service p {
  font-size: 15px;
}

/* PORTFOLIO */

.portfolio {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 60px;
}

.project {
  width: 300px;
  height: 200px;
  background: #1a1a1a;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.project:hover {
  transform: scale(1.05);
  background: #222;
}

/* ANIMATIONS */

.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s ease;
}

.fade-up {
  opacity: 1 !important;
  transform: none !important;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* HERO TEXT ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: reveal 1s forwards;
}

.delay { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;

  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 700;
  letter-spacing: 2px;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
}

/* Hover elegante */
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 0;
  background: #ea1d5d;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Botón especial */
nav .cta {
  border: 1px solid #ea1d5d;
  padding: 8px 20px;
  border-radius: 30px;
}

nav .cta:hover {
  background: #ea1d5d;
}


/* ========================= */
/* 📱 TABLET (1024px ↓) */
/* ========================= */

@media (max-width: 1024px) {

  .hero h1 {
    font-size: 70px;
  }

  .section h2 {
    font-size: 45px;
  }

  .services {
    gap: 40px;
    padding: 0 20px;
  }

}


/* ========================= */
/* 📱 MOBILE (768px ↓) */
/* ========================= */

@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    padding: 20px;
  }

  nav {
    display: none; /* ocultamos menú (luego si quieres lo hacemos hamburguesa) */
  }

  /* HERO */
  .hero h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 16px;
    padding: 0 20px;
  }

  .hero-content {
    padding: 0 15px;
  }



  /* SECTIONS */
  .section {
    padding: 100px 20px;
  }

  .section h2 {
    font-size: 34px;
  }

  .section p {
    font-size: 15px;
  }

  /* SERVICES */
  .services {
    grid-template-columns: 1fr; /* 🔥 clave */
    gap: 40px;
  }

  /* PORTFOLIO */
  .portfolio {
    flex-direction: column; /* 🔥 clave */
    align-items: center;
  }

  .project {
    width: 100%;
    max-width: 350px;
  }

}


/* ========================= */
/* 📱 SMALL MOBILE (480px ↓) */
/* ========================= */

@media (max-width: 480px) {

  .hero h1 {
    font-size: 38px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 14px;
  }

  .section {
    padding: 80px 15px;
  }

}

/* ========================= */
/* 📱 MOBILE MENU PREMIUM */
/* ========================= */

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  z-index: 1100;
}

/* MENU FULLSCREEN */
.mobile-menu {
  display: flex;
  position: fixed; /* Mantiene el menú pegado a la pantalla */
  top: 0;
  right: -100%; /* Escondido a la derecha */
  width: 100%;
  height: 100vh;
  background: #0a0a0a;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.5s ease;
  z-index: 10000;
  /* Eliminamos el isolation para que no bloquee a la X */
}


.mobile-menu a {
  font-size: 28px;
  margin: 20px 0;
  text-decoration: none;
  color: white;
  letter-spacing: 2px;
  transition: 0.3s;
}

.mobile-menu a:hover {
  color: #ea1d5d;
}

/* ACTIVO */
.mobile-menu.active {
  right: 0;
}

/* ========================= */
/* 📱 RESPONSIVE NAVBAR */
/* ========================= */

@media (max-width: 768px) {

  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

}




.close-btn {
  /* Cambiamos fixed por absolute para que se mueva JUNTO con el menú */
  position: absolute; 
  top: 25px;
  right: 25px;
  background: #ea1d5d;
  border: none;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10001; /* Solo un poco más que el mobile-menu */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: auto;
}
.close-btn:hover {
  color: #ea1d5d;
}
