/* ===== RESET Y CONFIGURACIÓN BASE ===== */
/* Reseteo de estilos por defecto del navegador */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables CSS para colores cósmicos y espaciado */
:root {
  /* Colores principales del tema cósmico */
  --primary-color: #6366f1; /* Índigo brillante */
  --secondary-color: #8b5cf6; /* Violeta */
  --accent-color: #06b6d4; /* Cian */
  --background-dark: #0f0f23; /* Azul muy oscuro */
  --background-darker: #050505; /* Negro profundo */
  --text-primary: #ffffff; /* Blanco puro */
  --text-secondary: #a1a1aa; /* Gris claro */
  --text-muted: #71717a; /* Gris medio */

  /* Gradientes cósmicos */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-nebula: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

  /* Espaciado y tipografía */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --border-radius: 12px;
  --transition: all 0.3s ease;

  /* Fuentes */
  --font-primary: "Poppins", sans-serif;
  --font-heading: "Orbitron", monospace;
}

/* Configuración base del body */
body {
  font-family: var(--font-primary);
  background: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Contenedor principal para centrar contenido */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== FONDO ANIMADO DE ESTRELLAS ===== */
/* Contenedor del fondo estrellado con múltiples capas */
.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

/* Primera capa de estrellas - más grandes y lentas */
.stars {
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow:
    1541px 1046px #fff, 1651px 1164px #fff, 1286px 1270px #fff,
    1364px 1446px #fff, 1738px 1581px #fff, 1688px 1638px #fff,
    1418px 1784px #fff, 1673px 1859px #fff, 1280px 1997px #fff,
    1503px 2094px #fff, 1378px 2147px #fff, 1726px 2234px #fff;
  animation: animStar 50s linear infinite;
}

/* Segunda capa de estrellas - medianas */
.stars2 {
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow:
    679px 1506px #fff, 1717px 1129px #fff, 1381px 1469px #fff,
    1404px 1687px #fff, 1736px 1781px #fff, 1850px 1884px #fff,
    1980px 1997px #fff, 2094px 2147px #fff, 2234px 2294px #fff;
  animation: animStar 100s linear infinite;
}

/* Tercera capa de estrellas - más pequeñas y rápidas */
.stars3 {
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow: 1446px 1164px #fff, 1581px 1270px #fff, 1638px 1364px #fff, 1784px 1446px #fff, 1859px 1581px #fff, 1997px
    1688px #fff;
  animation: animStar 150s linear infinite;
}

/* Animación de movimiento de estrellas */
@keyframes animStar {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-2000px);
  }
}

/* ===== NAVEGACIÓN ===== */
/* Barra de navegación fija con efecto glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo con efecto de brillo */
.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Menú de navegación horizontal */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Efecto de subrayado animado en links */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Menú hamburguesa para móviles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== SECCIÓN HERO ===== */
/* Sección principal de presentación con altura completa */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem 0;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Avatar con efecto de brillo cósmico */
.hero-avatar {
  position: relative;
  width: 200px;
  height: 200px;
}

.avatar-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.7;
  animation: pulse 2s ease-in-out infinite alternate;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 3px solid var(--primary-color);
}

/* Animación de pulso para el avatar */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Texto principal del hero */
.hero-text {
  max-width: 600px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-motto {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

/* Botones de acción del hero */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== BOTONES GENERALES ===== */
/* Estilos base para todos los botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

/* Botón primario con gradiente */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* Botón secundario con borde */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Botón grande para descargas importantes */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ===== INDICADOR DE SCROLL ===== */
/* Flecha animada para indicar scroll hacia abajo */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

/* ===== TÍTULOS DE SECCIÓN ===== */
/* Estilo consistente para todos los títulos de sección */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-icon {
  font-size: 2rem;
}

/* ===== SECCIÓN SOBRE MÍ ===== */
.about {
  padding: var(--section-padding);
  background: rgba(255, 255, 255, 0.02);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Destacados con iconos */
.about-highlights {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
}

.highlight-item i {
  font-size: 1.2rem;
}

/* ===== SECCIÓN HABILIDADES ===== */
.skills {
  padding: var(--section-padding);
}

/* Grid de categorías de habilidades */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Cada categoría de habilidades */
.skill-category {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Lista de habilidades dentro de cada categoría */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.skill-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: scale(1.05);
}

.skill-item i {
  font-size: 2rem;
  color: var(--accent-color);
}

/* ===== HABILIDADES BLANDAS ===== */
.soft-skills {
  text-align: center;
}

.soft-skills-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.soft-skills-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.soft-skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--gradient-cosmic);
  border-radius: var(--border-radius);
  min-width: 120px;
  transition: var(--transition);
}

.soft-skill:hover {
  transform: translateY(-5px);
}

.soft-skill i {
  font-size: 2rem;
  color: white;
}

.soft-skill span {
  font-weight: 600;
  color: white;
  text-align: center;
}

/* ===== SECCIÓN EXPERIENCIA ===== */
.experience {
  padding: var(--section-padding);
  background: rgba(255, 255, 255, 0.02);
}

/* Timeline vertical para mostrar experiencia cronológicamente */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

/* Punto de conexión en la timeline */
.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Contenido de cada item de la timeline */
.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 45%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-content p {
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ===== SECCIÓN PROYECTOS ===== */
.projects {
  padding: var(--section-padding);
}

/* Grid responsivo para mostrar proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Tarjeta individual de proyecto */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Imagen del proyecto con overlay de enlaces */
.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

/* Enlaces del proyecto (demo y código) */
.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.project-link:hover {
  transform: scale(1.1);
}

/* Información del proyecto */
.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Tags de tecnologías utilizadas */
.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: var(--gradient-cosmic);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== SECCIÓN CERTIFICADOS ===== */
.certificates {
  padding: var(--section-padding);
  background: rgba(255, 255, 255, 0.02);
}

/* Grid de certificados */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Item individual de certificado */
.certificate-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Logo/icono del certificado */
.certificate-logo {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.certificate-logo i {
  font-size: 1.5rem;
  color: white;
}

/* Información del certificado */
.certificate-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.certificate-info p {
  color: var(--accent-color);
  margin-bottom: 0.3rem;
}

.certificate-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== SECCIÓN CONTACTO ===== */
.contact {
  padding: var(--section-padding);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Información de contacto */
.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Métodos de contacto */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-method i {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-method div h4 {
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.contact-method div a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-method div a:hover {
  color: var(--accent-color);
}

/* ===== FORMULARIO DE CONTACTO ===== */
.contact-form-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-primary);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== SECCIÓN DE DESCARGA DE CV ===== */
.cv-download-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-download-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.cv-download-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--background-darker);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text p {
  color: var(--text-muted);
}

/* Enlaces sociales del footer */
.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablets y pantallas medianas */
@media (max-width: 768px) {
  /* Navegación móvil */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(15, 15, 35, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  /* Hero responsive */
  .hero-name {
    font-size: 2.5rem;
  }

  .hero-role {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Timeline responsive */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 50px;
  }

  .timeline-dot {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-content {
    width: 100%;
  }

  /* Contacto responsive */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer responsive */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-name {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .soft-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-highlights {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== ANIMACIONES ADICIONALES ===== */
/* Animación de entrada para elementos */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicar animación a elementos cuando entran en viewport */
.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== EFECTOS DE HOVER ADICIONALES ===== */
/* Efecto de brillo en hover para tarjetas */
.project-card::before,
.skill-category::before,
.certificate-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.project-card:hover::before,
.skill-category:hover::before,
.certificate-item:hover::before {
  left: 100%;
}

/* Asegurar posición relativa para el efecto */
.project-card,
.skill-category,
.certificate-item {
  position: relative;
  overflow: hidden;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
/* Estilo personalizado para la barra de scroll */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ===== UTILIDADES ===== */
/* Clases de utilidad para espaciado y alineación */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

/* Clase para ocultar elementos en móviles */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

/* Clase para mostrar solo en móviles */
.show-mobile {
  display: none;
}
@media (max-width: 768px) {
  .show-mobile {
    display: block;
  }
}
