:root {
  --primary-color: #6c63ff;
  --secondary-color: #4d44db;
  --dark-color: #2a2a2a;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
}

/* --------------------------------------
   ESTRUCTURA BÁSICA Y GENERALES
-------------------------------------- */
.navbar,
footer {
  background-color: var(--light-color);
}

hr.my-5 {
  border: 0;
  height: 1px;
  background-color: #f0f0f0;
  max-width: 80%;
  margin: 2rem auto;
}

/* --------------------------------------
   PROYECTOS - LAYOUT Y CONTENIDO
-------------------------------------- */
.portfolio-project {
  padding: 3rem 0;
  margin: 0 auto;
  max-width: 1200px;
}

.portfolio-project .row {
  justify-content: center;
}

.row.g-4.align-items-center {
  min-height: 60vh;
}

.project-info {
  padding: 2rem 0 0 5rem;
  text-align: start;
  width: 100%;
}

.project-info-col {
  flex: 0 0 38%;
  max-width: 38%;
  padding-right: 2rem;
}

.project-image-col {
  flex: 0 0 50%;
  max-width: 50%;
}

.brand-logo {
  max-height: 500px;
  width: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.project-image-container {
  padding: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.project-image-container img {
  max-height: 600px;
  width: 100%;
  object-fit: contain;
  display: block;
}

/* --------------------------------------
   HERRAMIENTAS Y BADGES
-------------------------------------- */
.tools-used .badge {
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  margin: 0.25rem;
}

.tool-icon {
  transition: transform 0.3s ease;
}

.tool-icon:hover {
  transform: translateY(-3px);
}

/* --------------------------------------
   BOTONES DE FILTRO
-------------------------------------- */
.filter-btn {
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
  border: 1px solid #dee2e6;
}

.filter-btn.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

/* --------------------------------------
   HERO SECTION
-------------------------------------- */
.portfolio-hero-section {
  position: relative;
  padding: 120px 0;
  background-image: url('../img/patron-verde.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: rgb(49, 113, 52); /* fallback */
  transition: all 0.5s ease;
}

.portfolio-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%); */
  z-index: 1;
}

.portfolio-hero-section:hover {
  transform: scale(1.01);
}

.portfolio-hero-section .container {
  position: relative;
  z-index: 2;
}

.portfolio-main-title {
  color: #ffffff;
  font-size: 5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 0.8s ease-out;
}

.portfolio-main-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* --------------------------------------
   ANIMACIONES
-------------------------------------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------
   RESPONSIVE
-------------------------------------- */
@media (max-width: 992px) {
  .portfolio-hero-section {
    padding: 100px 0;
  }

  .portfolio-main-title {
    font-size: 2.5rem;
  }

  .row.g-4.align-items-center {
    min-height: auto;
    flex-direction: column;
  }

  .project-info-col,
  .project-image-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .project-info-col {
    margin-bottom: 2rem;
  }

  .brand-logo {
    max-height: 100px;
  }

  .project-image-container img {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .portfolio-hero-section {
    padding: 80px 0;
    background-attachment: scroll;
  }

  .portfolio-main-title {
    font-size: 2rem;
  }

  .portfolio-main-subtitle {
    font-size: 1.1rem;
  }

  .brand-logo {
    max-height: 80px;
  }

  .project-image-container img {
    max-height: 400px;
  }

  .portfolio-project {
    padding: 2rem 0;
  }
}

@media (max-width: 576px) {
  .project-image-container img {
    max-height: 300px;
  }

  .filter-btn {
    min-width: 90px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
}
.nav-tabs .nav-link {
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}