@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Navbar */
.custom-navbar {
  background: linear-gradient(145deg, #5429cc, #8a2be2);
}
.custom-navbar .navbar-brand {
  font-weight: 600;
  color: #fff !important;
}
/* Menú de derecha a izquierda */
.navbar-nav {
  flex-direction: row-reverse;
}
.navbar-nav .nav-item {
  margin-left: 1rem;
}
.custom-navbar .nav-link {
  color: #fff !important;
  transition: background-color 0.3s ease;
}
.custom-navbar .nav-link:hover {
  background-color: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/* Efecto hover en íconos de redes */
.social-icon-link img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s;
  border-radius: 50%;
}
.social-icon-link:hover img {
  background-color: rgba(255,255,255,0.2);
  transform: scale(1.1);
}
.sub-footer {
  background-color: #3b0f99;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(45deg, #e0c3fc 0%, #8ec5fc 100%);
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
}
.hero-image {
  max-width: 70%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.4s, box-shadow 0.4s;
  margin-top: 1rem;
}
.hero-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Sección Info Detallada */
.info-detallada {
  background-color: #fafafa;
  padding: 2rem 1rem;
  border-top: 1px solid #ddd;
  margin-top: 2rem;
}
.info-detallada h3 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #5429cc;
}

/* Sección Proyectos */
.projects-section .card-project {
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.projects-section .card-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Novedades */
.novedades-section h2 {
  font-weight: 700;
  margin-bottom: 2rem;
}
.novedad-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.novedad-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}
.novedad-item h5 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #5429cc;
}
.novedad-footer {
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
}

/* Sidebar Otros Proyectos */
.sidebar-proyectos {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.sidebar-proyectos:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sidebar-proyectos h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}
.sidebar-proyectos ul {
  list-style: none;
  padding-left: 0;
}
.sidebar-proyectos ul li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.sidebar-proyectos ul li img {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
}
.sidebar-proyectos ul li a {
  color: #8a2be2;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}
.sidebar-proyectos ul li a:hover {
  background-color: rgba(138,43,226,0.1);
  color: #6e22b7;
}

/* Paginación */
.pagination .page-link {
  color: #8a2be2;
  border-color: #8a2be2;
}
.pagination .page-link:hover {
  background-color: #8a2be2;
  color: #fff;
}
.pagination .active .page-link {
  background-color: #8a2be2;
  border-color: #8a2be2;
  color: #fff;
}

/* Captcha label */
.captcha-label {
  margin-top: 1rem;
  font-weight: 500;
}

/* Botones extra en Hero */
.btn-github {
  background-color: #333;
  color: #fff;
  border: none;
  margin-left: 1rem;
}
.btn-github:hover {
  background-color: #000;
}
.btn-foro {
  background-color: #6c757d;
  color: #fff;
  border: none;
  margin-left: 1rem;
}
.btn-foro:hover {
  background-color: #5a6268;
}

/* Media Queries */
@media (max-width: 768px) {
  .navbar-nav {
    margin-top: 1rem;
    flex-direction: column-reverse;
  }
  .hero-section {
    text-align: center;
  }
  .hero-image {
    max-width: 60%;
  }
}
