/* ========================
   BASE
======================== */
body {
  background-image: url("../img/fondo1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Inter', sans-serif;
  color: #e6edf3;
}

/* layout */
.main-layout {
  max-width: 1100px;
  margin: 0 auto;
}

section {
  margin-bottom: 80px;
}

.container {
  max-width: 1100px;
}

/* ========================
   TIPOGRAFÍA
======================== */
h1, h2, h5 {
  letter-spacing: 0.5px;
  color: #e6edf3;
}

h1 {
  font-weight: 600;
}

h2 {
  font-weight: 500;
}

p {
  color: #9da7b3;
}

/* ========================
   HERO
======================== */
.hero-img {
  max-width: 280px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* ========================
   NAVBAR
======================== */
.nav-box {
  background: rgba(33, 37, 41, 0.6);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-link {
  padding: 6px 12px;
  transition: 0.3s;
}

/* ========================
   SECCIONES
======================== */
.section-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 1100px;
  margin: 0 auto;
}

/* ========================
   CARDS
======================== */
.card {
  border-radius: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.project-card {
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* ========================
   BOTONES (SISTEMA UNIFICADO)
======================== */
.ui-btn {
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;

  color: #e6edf3;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);

  transition: all 0.3s ease;
}

.ui-btn:hover {
  color: #3b82f6;
  border-color: #3b82f6;
  background: rgba(59,130,246,0.1);
}

/* botón importante */
.ui-btn.primary {
  background: #3b82f6;
  color: white;
  border: none;
}

.ui-btn.primary:hover {
  background: #2563eb;
  box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* ========================
   SKILLS (CINTA)
======================== */
.skills-wrapper {
  overflow: hidden;
  position: relative;
}

.skills-track {
  display: flex;
  gap: 15px;
  width: max-content;
  animation: scrollSkills 25s linear infinite;
}

@keyframes scrollSkills {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.skills-wrapper:hover .skills-track {
  animation-play-state: paused;
}

/* skills individuales */
.skill-item {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #e6edf3;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);

  transition: all 0.3s ease;
  white-space: nowrap;
}

.skill-item:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* ========================
   REDES
======================== */
.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}