/* =========================
   Global & Layout
   ========================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Courier New', monospace;
  background-color: #0f172a; /* bg-gray-950 */
  color: white;
  position: relative;
}

/* Partículas solo detrás del hero */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* solo la altura del hero */
  z-index: 0; /* detrás de todo */
  pointer-events: none; /* que no interfiera con clicks */
  opacity: 0.4; /* más sutil */
}
.hero {
  position: relative;
  z-index: 1; /* encima de las partículas */
}


/* Menú móvil overlay */
.mobile-menu {
  position: fixed;
  inset: 0; /* top:0; left:0; right:0; bottom:0 */
  background-color: rgba(20,20,20,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 9999; /* aseguramos que esté encima de todo */
  flex-direction: column;
}

.mobile-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Links */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu ul li {
  margin: 1rem 0;
}

.mobile-menu.open ul li a {
  font-size: 1.8rem;
  animation: slideFadeIn 0.4s forwards;
  color: #fff;
  text-shadow: 0 0 5px #ff6ec7, 0 0 10px #00ffff;
}

.mobile-menu.open ul li:nth-child(1) a { animation-delay: 0.1s; }
.mobile-menu.open ul li:nth-child(2) a { animation-delay: 0.2s; }
.mobile-menu.open ul li:nth-child(3) a { animation-delay: 0.3s; }

@keyframes slideFadeIn {
  0%   { opacity: 0; transform: translateY(20px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.mobile-menu ul li a:hover {
  color: #ff6ec7;
  text-shadow: 0 0 8px #ff6ec7, 0 0 12px #9b5de5;
  transform: translateY(-3px);
}

/* Botón cerrar */
#close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: #00ffff;
  cursor: pointer;
  user-select: none;
}

#close-btn:hover {
  color: #ff6ec7;
}

@keyframes bounceClose {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  30%  { transform: translateY(-15px) scale(1.05); opacity: 1; }
  60%  { transform: translateY(10px) scale(0.98); opacity: 0.8; }
  100% { transform: translateY(-100%) scale(0.95); opacity: 0; }
}

.mobile-menu.bouncing-close {
  animation: bounceClose 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

/* =========================
   Glow & Neon Effects
   ========================= */
.neon-text {
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff,
               0 0 40px #00ffff;
}

.neon-sub {
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.neon-card {
  box-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff, inset 0 0 10px #ff00ff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.neon-card:hover {
  transform: scale(1.05) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 0 20px #ff6ec7, 0 0 30px #9b5de5, inset 0 0 15px #ff6ec7;
}

/* Botones con colores coherentes al portfolio */
.glow-button {
  background-color: #0ff; /* cyan */
  color: #111;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #ff6ec7, 0 0 20px #00ffff;
}

.glow-button:hover {
  color: #ffffff;
  background-color: #ff6ec7; /* rosa neón */
  box-shadow: 0 0 25px #ff6ec7, 0 0 35px #00ffff, 0 0 50px #ff6ec7 inset;
  transform: scale(1.05);
}

/* Animación glow base */
@keyframes neonGlow {
  0% { box-shadow: 0 0 5px #ff6ec7, 0 0 10px #00ffff; }
  50% { box-shadow: 0 0 15px #ff6ec7, 0 0 30px #00ffff; }
  100% { box-shadow: 0 0 5px #ff6ec7, 0 0 10px #00ffff; }
}

/* Hover glow más intenso */
@keyframes neonGlowHover {
  0% { box-shadow: 0 0 15px #ff6ec7, 0 0 30px #00ffff, 0 0 40px #ff6ec7 inset; }
  50% { box-shadow: 0 0 25px #ff6ec7, 0 0 45px #00ffff, 0 0 60px #ff6ec7 inset; }
  100% { box-shadow: 0 0 15px #ff6ec7, 0 0 30px #00ffff, 0 0 40px #ff6ec7 inset; }
}

/* === Margen lateral general en móvil === */
section {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* En pantallas medianas o mayores, se mantiene el diseño centrado sin añadir márgenes extras */
@media (min-width: 640px) {
  section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Animación base */
.fade-section {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Variaciones */
.fade-up {
  transform: translateY(30px);
}
.fade-left {
  transform: translateX(-30px);
}
.fade-right {
  transform: translateX(30px);
}
.fade-zoom {
  transform: scale(0.95);
}

/* Cuando entra en pantalla */
.fade-section.visible {
  opacity: 1;
  transform: none;
}

/* Stagger para proyectos */
.project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

a.linkedin-icon svg {
  transform: translateX(1px); /* Ajusta según necesidad */
}

/* =========================
   Footer
   ========================= */
footer {
  border-top: 4px solid;
  border-image: linear-gradient(90deg, #ff6ec7, #9b5de5, #22d3ee) 1;
  text-align: center;
  padding: 1.5rem 0;
  color: #cbd5e1; /* gray-400 */
}

/* =========================
   Hero
   ========================= */
.hero h2 span {
  background-clip: text;
  -webkit-background-clip: text;
  text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
}

/* =========================
   Scroll Up Button
   ========================= */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  background: #ff6ec7;
  color: white;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 0 10px #ff6ec7;
  display: none;
  z-index: 50;
  transition: 0.3s;
}

#scrollTopBtn:hover {
  background: #9b5de5;
  transform: scale(1.1);
}

/* === SECCIÓN HABILIDADES === */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.skills-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: default;
  z-index: 1;
}

.skills-icon img {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.95);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.skills-icon:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Evita que el tooltip se salga en móvil */
@media (max-width: 600px) {
  .tooltip {
    font-size: 0.75rem;
    max-width: 150px;
    white-space: normal;
  }
}

/* Barra de progreso */
.skill-bar {
  width: 5rem;
  height: 0.5rem;
  background: #111;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.skill-fill {
  height: 100%;
  border-radius: 9999px;
  width: var(--skill-level, 100%);
  background: linear-gradient(270deg, #00ffff, #ff00ff, #ff6ec7, #00ffff);
  background-size: 600% 600%;
  animation: neonGradientFill 3s ease infinite, fillSkill 1s forwards;
  box-shadow: 0 0 10px currentColor, 0 0 20px currentColor inset;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes fillSkill {
  to {
    transform: scaleX(1);
  }
}

@keyframes neonGradientFill {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animaciones de brillo por lenguaje */
.skills-icon:nth-child(1) img {
  filter: drop-shadow(0 0 5px #ff3e3e);
  animation: neonLaravel 3s infinite alternate;
}

.skills-icon:nth-child(2) img {
  filter: drop-shadow(0 0 5px #7289da);
  animation: neonPHP 3.2s infinite alternate;
}

.skills-icon:nth-child(3) img {
  filter: drop-shadow(0 0 5px #f7df1e);
  animation: neonPython 2.8s infinite alternate;
}

.skills-icon:nth-child(4) img {
  filter: drop-shadow(0 0 5px #00bcd4);
  animation: neonMySQL 3.1s infinite alternate;
}

.skills-icon:nth-child(5) img {
  filter: drop-shadow(0 0 5px #38bdf8);
  animation: neonTailwind 3.3s infinite alternate;
}

.skills-icon:nth-child(6) img {
  filter: drop-shadow(0 0 5px #f7a008);
  animation: neonJS 3.4s infinite alternate;
}

/* === Keyframes personalizados === */
@keyframes neonLaravel {
  0% { filter: drop-shadow(0 0 5px #ff3e3e); }
  50% { filter: drop-shadow(0 0 20px #ff6ec7); }
  100% { filter: drop-shadow(0 0 5px #ff3e3e); }
}

@keyframes neonPHP {
  0% { filter: drop-shadow(0 0 5px #7289da); }
  50% { filter: drop-shadow(0 0 20px #00bfff); }
  100% { filter: drop-shadow(0 0 5px #7289da); }
}

@keyframes neonPython {
  0% { filter: drop-shadow(0 0 5px #f7df1e); }
  50% { filter: drop-shadow(0 0 20px #ffcc00); }
  100% { filter: drop-shadow(0 0 5px #f7df1e); }
}

@keyframes neonMySQL {
  0% { filter: drop-shadow(0 0 5px #00bcd4); }
  50% { filter: drop-shadow(0 0 20px #22d3ee); }
  100% { filter: drop-shadow(0 0 5px #00bcd4); }
}

@keyframes neonTailwind {
  0% { filter: drop-shadow(0 0 5px #38bdf8); }
  50% { filter: drop-shadow(0 0 20px #0ea5e9); }
  100% { filter: drop-shadow(0 0 5px #38bdf8); }
}

@keyframes neonJS {
  0% { filter: drop-shadow(0 0 5px #f7a008); }
  50% { filter: drop-shadow(0 0 20px #ff9f1c); }
  100% { filter: drop-shadow(0 0 5px #f7a008); }
}

/* Hover general */
.skills-icon:hover img {
  transform: scale(1.2);
  filter: brightness(1.4) drop-shadow(0 0 25px currentColor);
}

/* Responsive */
@media (max-width: 600px) {
  .skills-grid {
    gap: 1.5rem;
  }

  .skills-icon img {
    width: 52px;
    height: 52px;
  }

  .tooltip {
    font-size: 0.75rem;
  }
}


/* Modales animados */

/* Modal base */
.modal-neon {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
}

.modal-neon.show {
  opacity: 1;
  pointer-events: auto;
}

/* Contenido */
.modal-content-neon {
  background-color: #111;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 15px #00ffff, inset 0 0 10px #ff00ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover sutil */
.modal-content-neon:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px #00ffff, inset 0 0 12px #ff6ec7;
}

/* Botón cerrar */
.modal-close-neon {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  color: #ff00ff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-neon:hover {
  color: #00ffff;
  transform: scale(1.2);
}

/* Neon title */
.modal-content-neon h4 {
  color: #0ff;
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
  margin-bottom: 0.5rem;
}

/* Links */
.modal-content-neon a {
  color: #ff6ec7;
  text-decoration: none;
  transition: color 0.2s;
}

.modal-content-neon a:hover {
  color: #00ffff;
}
.project-card {
  background-color: #111;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff, inset 0 0 10px #ff00ff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  perspective: 1000px;
}

.project-card-inner {
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
  transform: rotateY(8deg) rotateX(4deg) scale(1.05);
  box-shadow: 0 0 20px #ff6ec7, 0 0 30px #9b5de5, inset 0 0 12px #ff6ec7;
}

.project-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
  border-radius: 1rem 1rem 0 0;
}

/* Solo afecta a los iconos SVG de proyectos en desarrollo */
.project-card .project-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.9));
}


.project-card .card-content {
  padding: 1rem;
  color: #ccc;
}

.project-card .card-content h4 {
  color: #00ffff;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.project-card .card-content p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.project-card .card-content .buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-card .card-content .buttons a,
.project-card .card-content .buttons button {
  font-size: 0.8rem;
  color: #ff6ec7;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

.project-card .card-content .status {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 0.25rem;
  font-weight: bold;
}
.status-finalizado {
  background: #00ffff;
  color: #111;
}
.status-desarrollo {
  background: #ff6ec7;
  color: white;
}

.shadow-neon {
  box-shadow: 0 0 15px #ff00ff, 0 0 25px #00ffff, inset 0 0 12px #ff6ec7;
}

.contact-btn {
  width: auto;       /* ancho ajustado al contenido */
  min-width: 56px;   /* tamaño mínimo para que el SVG no se comprima */
  max-width: 80px;   /* limita el tamaño en móviles */
  height: 56px;      /* cuadrado uniforme */
}