html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: #020617;
  color: white;
  overflow-x: hidden;
}

/* Ocultar hamburguesa en desktop */
#hamburger {
  display: none;
}

/* NAVBAR PREMIUM */
header {
  position: fixed;
  width: 100%;
  backdrop-filter: blur(20px);
  background: rgba(2,6,23,0.6);
  transition: 0.3s;
  z-index: 1000; /* ✅ AGREGA ESTO */
}

header.scrolled {
  background: rgba(2,6,23,0.95);
}

nav {
  display: flex;
  gap: 35px;
}

/* LINKS */
nav a {
  position: relative;
  text-decoration: none;
  color: #94a3b8; /* gris elegante */
  font-weight: 500;
  padding: 5px 0;
  transition: 0.3s;
}

/* HOVER (EFECTO MODERNO) */
nav a:hover {
  color: white;
}

/* LINEA ANIMADA (TIPO UNIVERSIDAD) */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #ff1c1c; /* color de tu marca */
  transition: 0.3s;
}

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

nav {
  justify-content: center;
  flex: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1, transparent);
  filter: blur(120px);
  animation: float 8s infinite alternate;
}

@keyframes float {
  from {transform: translateY(-50px);}
  to {transform: translateY(50px);}
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.hero span {
  background: linear-gradient(90deg, #6366f1, #06b6d4);

  -webkit-background-clip: text; /* Chrome, Safari */
  background-clip: text;         /* estándar */

  color: transparent;
}


/* BOTONES */
.btn {
  padding: 14px 28px;
  border-radius: 30px;
  margin: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.primary {
  background: linear-gradient(135deg,#6366f1,#06b6d4);
}

.primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #6366f1;
}

.ghost {
  border: 1px solid #6366f1;
}

/* GRID */
.grid {
  display: grid;
  gap: 30px;
  padding: 40px;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
}

/* CARDS CON EFECTO */
.card {
  padding: 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  transition: 0.4s;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(99,102,241,0.3), transparent);
  opacity: 0;
  transition: 0.3s;
}

.card:hover::before {
  opacity: 1;
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg,#6366f1,#06b6d4);
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  padding: 15px;
  border-radius: 50%;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* LOGO IMG */
.logo-img {
  width: 45px;
  height: auto;
  transition: 0.4s;
}

/* EFECTO HOVER PRO */
.logo-container:hover .logo-img {
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
}

.logo-text {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

/* FLOTANTE */
.project::before {
  content: "Ver proyecto →";
  position: absolute;
  top: 15px;
  right: 15px;

  background: rgba(0, 0, 0, 0.6);
  color: white;

  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;

  opacity: 0;
  transform: translateY(-5px);
  transition: 0.3s;
}

/* APARECE AL HOVER */
.project:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.project {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  transition: 0.4s;
}

/* IMAGEN */
.project img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: 0.5s;
}

/* CONTENIDO */
.card-content {
  padding: 20px;
}

/* HOVER PRO */
.project:hover img {
  transform: scale(1.1);
}

/* OVERLAY */
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0.8;
}

/* TEXTO SOBRE IMAGEN */
.project h3 {
  position: absolute;
  bottom: 60px;
  left: 20px;
  color: white;
  z-index: 2;
}

.project p {
  position: absolute;
  bottom: 30px;
  left: 20px;
  color: #cbd5e1;
  font-size: 0.9rem;
  z-index: 2;
}

/* EFECTO GLOW */
.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

.project {
  position: relative; /* IMPORTANTE */
}

.contact-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-links a {
  padding: 10px 15px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}

.contact-links a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 12px;

  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  text-decoration: none;

  transition: 0.3s;
}

/* ICONOS */
.contact-links i {
  font-size: 1.1rem;
}

/* HOVER PRO */
.contact-links a:hover {
  color: white;
  transform: translateY(-3px);

  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}
.contact-links a:hover .fa-instagram {
  color: #e1306c;
}

.contact-links a:hover .fa-tiktok {
  color: #25f4ee;
}

.contact-links a:hover .fa-linkedin {
  color: #0077b5;
}

.contact-links a:hover .fa-envelope {
  color: #ff1c1c;
}
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 20px;
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25d366;
  border-radius: 50%;

  font-size: 28px;
  color: white;

  box-shadow: 0 5px 20px rgba(0,0,0,0.3);

  transition: 0.3s;
  z-index: 999;
}

.whatsapp:hover {
  transform: scale(1.1);

  box-shadow: 
    0 0 15px #25d366,
    0 0 30px #25d366;
}
/* =========================
   MENU RESPONSIVE MOVIL
========================= */
@media (max-width: 768px) {

  /* Ocultar menú por defecto */
  nav {
    position: absolute;
    top: 80px;
    right: 0;
    background: rgba(2,6,23,0.95);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none;
  }

  /* Mostrar menú cuando está activo */
  nav.active {
    display: flex;
  }

  /* Mostrar botón hamburguesa */
  #hamburger {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
}