/* --- VARIABLES --- */
:root {
  --bg-dark: #07070a; /* Negro profundo */
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;

  /* Colores para los brillos del fondo */
  --glow-cyan: #00f2fe;
  --glow-purple: #8b5cf6;
  --glow-blue: #3b82f6;

  /* Estilo del cristal */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* --- COMPORTAMIENTO DE SCROLL SUAVE --- */
html {
  scroll-behavior: smooth;
}

/* --- NAVEGACIÓN FLOTANTE TIPO CRISTAL --- */
.floating-nav {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000; /* Asegura que siempre esté por encima de todo */
  background: rgba(7, 7, 10, 0.4); /* Cristal ahumado más oscuro */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px; /* Forma de píldora */
  padding: 0.8rem 2rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: "Fira Code", monospace;
  font-weight: 500;
  letter-spacing: 1px;
  transition:
    color 0.3s,
    text-shadow 0.3s;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--glow-cyan); /* Brillo neón al pasar el mouse */
}

/* --- RESPONSIVE DEL MENÚ FLOTANTE --- */
@media (max-width: 768px) {
  .floating-nav {
    top: auto;
    bottom: 2rem; /* En móviles es mejor tenerlo abajo para el pulgar */
    padding: 0.8rem 1.5rem;
    width: 90%; /* Que ocupe casi todo el ancho */
    max-width: 400px;
  }

  .nav-links {
    gap: 0;
    justify-content: space-between;
    width: 100%;
  }

  .nav-links a {
    font-size: 0.75rem;
  }
} /* --- COMPORTAMIENTO DE SCROLL SUAVE --- */
html {
  scroll-behavior: smooth;
}

/* --- NAVEGACIÓN FLOTANTE TIPO CRISTAL --- */
.floating-nav {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000; /* Asegura que siempre esté por encima de todo */
  background: rgba(7, 7, 10, 0.4); /* Cristal ahumado más oscuro */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px; /* Forma de píldora */
  padding: 0.8rem 2rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: "Fira Code", monospace;
  font-weight: 500;
  letter-spacing: 1px;
  transition:
    color 0.3s,
    text-shadow 0.3s;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--glow-cyan); /* Brillo neón al pasar el mouse */
}

/* --- RESPONSIVE DEL MENÚ FLOTANTE --- */
@media (max-width: 768px) {
  .floating-nav {
    top: auto;
    bottom: 2rem; /* En móviles es mejor tenerlo abajo para el pulgar */
    padding: 0.8rem 1.5rem;
    width: 90%; /* Que ocupe casi todo el ancho */
    max-width: 400px;
  }

  .nav-links {
    gap: 0;
    justify-content: space-between;
    width: 100%;
  }

  .nav-links a {
    font-size: 0.75rem;
  }
}
/* --- FONDOS DIFUMINADOS (GLOWING ORBS) --- */
.background-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none; /* Para que no interfieran con los clics */
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px); /* Aquí ocurre la magia del difuminado */
  opacity: 0.5;
  animation: float 20s infinite alternate ease-in-out;
}

.glow-cyan {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--glow-cyan);
}

.glow-purple {
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: var(--glow-purple);
  animation-delay: -5s;
}

.glow-blue {
  top: 40%;
  left: 40%;
  width: 500px;
  height: 500px;
  background: var(--glow-blue);
  animation-delay: -10s;
}

/* Animación sutil para que los brillos se muevan lentamente */
@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* --- CONTENEDOR PRINCIPAL --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* --- TARJETAS DE CRISTAL (GLASSMORPHISM) --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px); /* Desenfoque detrás de la tarjeta */
  -webkit-backdrop-filter: blur(16px); /* Para Safari */
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

/* --- PERFIL PRINCIPAL --- */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.gradient-text {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.profile-info h2 {
  font-size: 1.5rem;
  color: var(--glow-cyan);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.profile-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Etiquetas de Stack */
.tech-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-tags span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: "Fira Code", monospace;
  color: var(--text-main);
}

/* Botones */
.profile-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- GRID DE PROYECTOS --- */
.section-title {
  font-family: "Fira Code", monospace;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.project-content h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.tech-mono {
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
  color: var(--glow-purple);
}

.link-hover {
  color: var(--glow-cyan);
  text-decoration: none;
  transition: color 0.3s;
}

.link-hover:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-section {
    padding: 2rem;
  }
  .gradient-text {
    font-size: 2.5rem;
  }
  .profile-actions {
    flex-direction: column;
  }
} /* --- VARIABLES --- */
:root {
  --bg-dark: #07070a; /* Negro profundo */
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;

  /* Colores para los brillos del fondo */
  --glow-cyan: #00f2fe;
  --glow-purple: #8b5cf6;
  --glow-blue: #3b82f6;

  /* Estilo del cristal */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* --- FONDOS DIFUMINADOS (GLOWING ORBS) --- */
.background-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none; /* Para que no interfieran con los clics */
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px); /* Aquí ocurre la magia del difuminado */
  opacity: 0.5;
  animation: float 20s infinite alternate ease-in-out;
}

.glow-cyan {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--glow-cyan);
}

.glow-purple {
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: var(--glow-purple);
  animation-delay: -5s;
}

.glow-blue {
  top: 40%;
  left: 40%;
  width: 500px;
  height: 500px;
  background: var(--glow-blue);
  animation-delay: -10s;
}

/* Animación sutil para que los brillos se muevan lentamente */
@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* --- CONTENEDOR PRINCIPAL --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* --- TARJETAS DE CRISTAL (GLASSMORPHISM) --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px); /* Desenfoque detrás de la tarjeta */
  -webkit-backdrop-filter: blur(16px); /* Para Safari */
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

/* --- PERFIL PRINCIPAL --- */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.gradient-text {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.profile-info h2 {
  font-size: 1.5rem;
  color: var(--glow-cyan);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.profile-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Etiquetas de Stack */
.tech-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-tags span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: "Fira Code", monospace;
  color: var(--text-main);
}

/* Botones */
.profile-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- GRID DE PROYECTOS --- */
.section-title {
  font-family: "Fira Code", monospace;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.project-content h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.tech-mono {
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
  color: var(--glow-purple);
}

.link-hover {
  color: var(--glow-cyan);
  text-decoration: none;
  transition: color 0.3s;
}

.link-hover:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-section {
    padding: 2rem;
  }
  .gradient-text {
    font-size: 2.5rem;
  }
  .profile-actions {
    flex-direction: column;
  }
}

/* --- PIE DE PÁGINA (FOOTER CRISTAL) --- */
.glass-footer {
  margin-top: 6rem;
  padding: 4rem 2rem 2rem 2rem;
  background: linear-gradient(to bottom, transparent, rgba(7, 7, 10, 0.8));
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  display: block;
}

.footer-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.group-title {
  font-family: "Fira Code", monospace;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.link-group a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.hover-glow:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--glow-cyan);
}

.text-dim {
  color: rgba(148, 163, 184, 0.6); /* Gris muy tenue */
}

/* Línea inferior del footer */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top {
  color: var(--glow-cyan);
  text-decoration: none;
  font-size: 0.85rem;
}

/* Responsive del Footer */
@media (max-width: 768px) {
  .glass-footer {
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2rem;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
} /* --- PIE DE PÁGINA (FOOTER CRISTAL) --- */
.glass-footer {
  margin-top: 6rem;
  padding: 4rem 2rem 2rem 2rem;
  background: linear-gradient(to bottom, transparent, rgba(7, 7, 10, 0.8));
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  display: block;
}

.footer-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.group-title {
  font-family: "Fira Code", monospace;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.link-group a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.hover-glow:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--glow-cyan);
}

.text-dim {
  color: rgba(148, 163, 184, 0.6); /* Gris muy tenue */
}

/* Línea inferior del footer */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top {
  color: var(--glow-cyan);
  text-decoration: none;
  font-size: 0.85rem;
}

/* Responsive del Footer */
@media (max-width: 768px) {
  .glass-footer {
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2rem;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
