/* ============================================
   NoiDah Studios — Rediseño 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fondo: #0A0A0A;
  --fondo-2: #121218;
  --fondo-card: #0f0f17;
  --borde: #1E1E2E;
  --borde-hover: rgba(0, 174, 239, 0.3);
  --azul: #00AEEF;
  --purpura: #8A2BE2;
  --gris: #B0B0C0;
  --texto: #d0d0dd;
  --blanco: #F0F0F5;
  --degradado: linear-gradient(135deg, #00AEEF, #8A2BE2);
  --fuente: 'Inter', system-ui, sans-serif;
  --fuente-titulo: 'Orbitron', sans-serif;
  --fuente-subtitulo: 'Exo 2', sans-serif;
  --fuente-codigo: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--azul);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--purpura); }

::selection {
  background: rgba(0, 174, 239, 0.25);
  color: var(--blanco);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Canvas de fondo --- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 30, 46, 0.5);
  transition: background 0.4s, box-shadow 0.4s;
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__monogram {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--degradado);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(0, 174, 239, 0.4));
}

.nav__brand {
  font-family: var(--fuente-subtitulo);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--gris);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--fuente-subtitulo);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gris);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--degradado);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav__links a:hover {
  color: var(--blanco);
}

.nav__links a:hover::after {
  width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 6rem 1.5rem 4rem;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: heroEntrada 1s ease-out;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fuente-subtitulo);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 50px;
  background: rgba(0, 174, 239, 0.05);
  margin-bottom: 2rem;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azul);
  box-shadow: 0 0 8px var(--azul);
  animation: pulso 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--blanco);
  text-transform: uppercase;
}

.glow-text {
  background: var(--degradado);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brilloTexto 4s linear infinite;
  filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.2));
}

.hero__tagline {
  font-family: var(--fuente-subtitulo);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gris);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero__description {
  font-size: 1.05rem;
  color: var(--gris);
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  max-width: 520px;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.07) 0%, rgba(138, 43, 226, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: respirar 6s ease-in-out infinite;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gris);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  animation: flotar 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--azul), transparent);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-family: var(--fuente-subtitulo);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--degradado);
  color: #0A0A0A;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.2);
}

.btn--primary:hover {
  box-shadow: 0 6px 25px rgba(0, 174, 239, 0.35);
  color: #0A0A0A;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--gris);
  border: 1px solid var(--borde);
}

.btn--outline:hover {
  border-color: var(--azul);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.1);
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section--alt {
  background: var(--fondo-2);
}

.section__label {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azul);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--blanco);
  letter-spacing: 0.04em;
}

.section__subtitle {
  text-align: center;
  color: var(--gris);
  font-size: 1rem;
  margin-bottom: 3.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Línea decorativa bajo títulos */
.section__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--degradado);
  border-radius: 3px;
  margin: 0.75rem auto 0;
}

/* ============================================
   SOBRE MÍ
   ============================================ */
.about__content {
  display: grid;
  gap: 3rem;
}

.about__text {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.about__text p {
  color: var(--gris);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.85;
}

.highlight {
  color: var(--azul);
  font-weight: 500;
}

.about__values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.value-card {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--degradado);
  opacity: 0;
  transition: opacity 0.4s;
}

.value-card:hover {
  border-color: var(--borde-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 174, 239, 0.08);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-family: var(--fuente-subtitulo);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--blanco);
}

.value-card p {
  font-size: 0.8rem;
  color: var(--gris);
  line-height: 1.5;
}

/* ============================================
   PROYECTOS
   ============================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  row-gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--degradado);
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover {
  border-color: var(--borde-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 174, 239, 0.08);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card__badge {
  display: inline-block;
  font-family: var(--fuente-subtitulo);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.15);
  border-radius: 50px;
  color: var(--azul);
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.project-card__header {
  margin-bottom: 1rem;
}

.project-card__title {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.project-card__tagline {
  font-family: var(--fuente-subtitulo);
  font-size: 0.82rem;
  color: var(--purpura);
  font-style: italic;
  opacity: 0.8;
}

.project-card__body {
  flex: 1;
}

.project-card__body > p {
  color: var(--gris);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.project-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-card__features span {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  background: rgba(0, 174, 239, 0.06);
  border: 1px solid rgba(0, 174, 239, 0.08);
  border-radius: 6px;
  color: var(--texto);
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.project-card__tech span {
  font-family: var(--fuente-codigo);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: rgba(138, 43, 226, 0.06);
  border: 1px solid rgba(138, 43, 226, 0.12);
  border-radius: 5px;
  color: var(--purpura);
}

.project-card__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.projects__more {
  text-align: center;
  color: var(--gris);
  font-size: 0.9rem;
  margin-top: 2.5rem;
  opacity: 0.5;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--borde);
  border-radius: 14px;
  color: var(--gris);
  font-family: var(--fuente-subtitulo);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: var(--fondo-card);
}

.contact-link:hover {
  border-color: var(--borde-hover);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--borde);
  padding: 2.5rem 0;
  background: var(--fondo);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--fuente-subtitulo);
  font-size: 0.9rem;
  color: var(--gris);
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--purpura);
  opacity: 0.6;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--gris);
  opacity: 0.4;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes heroEntrada {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brilloTexto {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes pulso {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--azul); }
  50% { opacity: 0.4; box-shadow: 0 0 4px var(--azul); }
}

@keyframes respirar {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

@keyframes flotar {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Animación de entrada al scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav {
    padding: 0.8rem 1.2rem;
  }

  .nav__links {
    gap: 1.2rem;
  }

  .nav__links a {
    font-size: 0.75rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .about__values {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .contact__links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .about__values {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 1.5rem;
  }

  .hero__scroll {
    display: none;
  }
}
