/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --negro-base: #050A1F;
  --azul-profundo: #0A1B5C;
  --azul-corporativo: #0D2C8B;
  --azul-electrico: #2979FF;
  --cian-neon: #00E5FF;
  --turquesa-tech: #2CB9C6;
  --blanco-frio: #F4F8FF;
  --gris-azulado: #8FA9C9;
  --gris-oscuro: #1B1F2E;

  --glass-bg: rgba(10, 27, 92, 0.2);
  --glass-border: rgba(0, 229, 255, 0.15);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 229, 255, 0.1) inset;
  --glow-neon: 0 0 20px rgba(0, 229, 255, 0.3);
  --transition-slow: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--negro-base);
  color: var(--blanco-frio);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== FONDO MULTICAPA ===== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 229, 255, 0.02) 0px,
      rgba(0, 229, 255, 0.02) 2px,
      transparent 2px,
      transparent 6px),
    radial-gradient(circle at 20% 30%, rgba(41, 121, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.08) 0%, transparent 45%),
    linear-gradient(135deg, var(--negro-base) 0%, var(--azul-profundo) 70%, #0A1F4A 100%);
  pointer-events: none;
  z-index: 0;
}

/* Grid tecnológico animado */
.tech-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
  animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

/* Partículas canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Cursor personalizado - solo en desktop */
@media (min-width: 901px) {
  body {
    cursor: none;
  }

  .custom-cursor {
    width: 32px;
    height: 32px;
    border: 2px solid var(--cian-neon);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    box-shadow: 0 0 20px var(--cian-neon);
    backdrop-filter: blur(4px);
    background: rgba(0, 229, 255, 0.05);
  }

  .custom-cursor.hover {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 229, 255, 0.15);
    border-color: var(--blanco-frio);
    box-shadow: 0 0 30px var(--azul-electrico);
  }
}

/* Contenedor principal */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 5;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: rgba(5, 10, 31, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--cian-neon));
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: var(--cian-neon);
  cursor: pointer;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--blanco-frio);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  transition: color 0.3s;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--cian-neon);
}

/* ===== HERO EXPERIENCIAS ===== */
.hero-experiencias {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, var(--negro-base) 0%, var(--azul-profundo) 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--blanco-frio) 0%, var(--cian-neon) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}

.hero-content .hero-desc {
  font-size: 1.5rem;
  color: var(--gris-azulado);
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
  border-left: 4px solid var(--cian-neon);
  border-right: 4px solid var(--cian-neon);
  padding: 1rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 60px;
}

/* ===== TÍTULOS DE SECCIÓN ===== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title span {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blanco-frio) 0%, var(--cian-neon) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 2px solid var(--cian-neon);
  padding-bottom: 0.5rem;
}

/* ===== COLLAGE DE EXPERIENCIAS ===== */
.collage-container {
  column-count: 3;
  /* Número de columnas */
  column-gap: 1.5rem;
  margin: 3rem 0;
}

.collage-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  transition: var(--transition-slow);
  transform-style: preserve-3d;
  perspective: 1000px;
  background-color: var(--negro-base);
  break-inside: avoid;
  /* Evita que se rompa entre columnas */
}

.collage-item:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(1deg);
  border-color: var(--cian-neon);
  box-shadow: 0 30px 50px -20px rgba(0, 229, 255, 0.3);
  z-index: 10;
}

.collage-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* Cada imagen se ajusta a su contenedor, pero respeta su proporción */
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.collage-item:hover img {
  transform: scale(1.05);
}

.collage-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(5, 10, 31, 0.95), transparent);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  backdrop-filter: blur(5px);
}

.collage-item:hover .collage-overlay {
  transform: translateY(0);
}

.collage-lugar {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blanco-frio);
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.collage-lugar i {
  color: var(--cian-neon);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.collage-fecha {
  font-family: 'Space Mono', monospace;
  color: var(--cian-neon);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.collage-desc {
  color: var(--gris-azulado);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== BOTÓN CONTACTO ===== */
.contacto-final {
  text-align: center;
  margin: 4rem 0;
}

.btn-contacto {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--cian-neon);
  border-radius: 50px;
  color: var(--blanco-frio);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.btn-contacto:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--glow-neon);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 4rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 10, 31, 0.5);
  backdrop-filter: blur(10px);
}

.social-buttons {
  display: flex;
  gap: 1rem;
}

.btn-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cian-neon);
  transition: 0.3s;
}

.btn-social:hover {
  background: var(--cian-neon);
  color: var(--negro-base);
  transform: translateY(-3px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--cian-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cian-neon);
  text-decoration: none;
  transition: 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--cian-neon);
  color: var(--negro-base);
}

/* ===== ANIMACIONES SCROLL ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 31, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border: 3px solid var(--cian-neon);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.3);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--blanco-frio);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--cian-neon);
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--blanco-frio);
  font-family: 'Space Mono', monospace;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 31, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 99;
  }

  .menu-toggle:checked~.nav-links {
    transform: translateY(0);
  }

  .menu-toggle {
    display: none;
  }

  .hamburger {
    font-size: 2rem;
    user-select: none;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content .hero-desc {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .collage-container {
    column-count: 2;
    /* 2 columnas en tablets */
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 550px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .section-title span {
    font-size: 2rem;
  }

  .collage-container {
    column-count: 1;
    /* 1 columna en móviles */
  }
}
/* Responsive para que no se amontonen */
@media (max-width: 600px) {
    .tech-grid-container {
        grid-template-columns: 1fr;
    }
}
/* Ocultar el cursor por defecto en toda la web */
html, body {
    cursor: none !important;
}

/* Asegurar que los enlaces y botones tampoco muestren la "manito" nativa */
a, button, label, .btn-social, .ampliable {
    cursor: none !important;
}

/* Estilo base del cursor personalizado (por si no lo tienes así) */
#customCursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(0, 229, 255, 0.5); /* Cian neón */
    border-radius: 50%;
    pointer-events: none; /* Crucial: para que no bloquee los clics */
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference; /* Efecto tecnológico al pasar sobre colores */
}

/* Estado cuando pasas sobre un link */
#customCursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(0, 229, 255, 0.2);
    border: 2px solid #00e5ff;
}
/* ESTRUCTURA DEL NAVBAR - Manteniendo tus colores */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Lógica del Dropdown (Solo posicionamiento) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    /* Usamos fondo traslúcido para que combine con tu Glassmorphism */
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.9rem;
    border: none !important; /* Evita conflictos */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Botón Login - Solo estructura */
.btn-nav-login {
    margin-left: 10px;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    border: 1px solid currentColor !important; /* Usa el color de texto actual */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}