html, body {
  height: 100%;
  margin: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}


.row.bg-columns {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* NAVBAR TRANSPARENTE */
.navbar {
  background-color: rgba(101, 2, 126, 0.4) !important; /* semitransparente */
  backdrop-filter: blur(8px); /* para efecto vidrio */
  -webkit-backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-brand, .nav-link {
  color: white !important;
}


.navbar-brand img {
    height: 50px;
}

/* Para evitar que el contenido quede bajo el navbar */
main {
  padding-top: 100px; /* según el alto de tu navbar */
}


/* Columnas con fondo translúcido */
#sidebar, #toc, main {
    border-radius: 0px;
    background-color: rgba(0, 0, 0, 0.605); /* opcional, si querés contraste */
}

#sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    pointer-events: auto;
    padding: 2rem 1rem;
}

#sidebar .nav-link.active {
    background-color: #007bff;
    color: white !important;
}

#toc {
    position: sticky;
    top: 120px;
    padding: 2rem 1rem;
}

.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: 130px;
}

h2 {
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

footer {
    background-color: rgba(0, 0, 0, 0.85);
}

.section {
  padding-top: 100px; /* depende del alto de tu navbar */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* si quieres efecto paralax */
  position: relative;
  min-height: 100vh;
}

.img-thumbnail-wrapper {
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .img-thumbnail-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #037dff;
  }

  .modal-img {
    display: none;
    position: fixed;
    z-index: 1050;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
  }

  .modal-content-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    animation: zoom 0.3s;
  }

  @keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
  }

  .close {
    position: absolute;
    top: 15px; right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

  .close:hover {
    color: #037dff;
  }

  .carousel-container {
    overflow: hidden;
    position: relative;
    max-width: 100%;
    margin: auto;
  }

  .carousel-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
  }

  .carousel-track img {
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s, filter 0.3s, opacity 0.3s;
    filter: grayscale(0%);
    opacity: 1;
  }

  .carousel-track img:hover {
    transform: scale(1.1);
    filter: grayscale(100%);
    opacity: 0.6;
  }

  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  .carousel-track::after {
    content: "";
    display: flex;
  }



  header {
      background: linear-gradient(rgba(0,0,0,0.5), rgba(85, 0, 119, 0.363)), url('../../img/servicios-fondo.jpg') center/cover no-repeat;
      height: 60vh;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-align: center;
      position: relative;
    }

    header h1 {
      font-size: 3rem;
      z-index: 2;
      text-shadow: 2px 2px 5px #000;
    }

    .decor-line {
      width: 80px;
      height: 4px;
      background: linear-gradient(to right, #ff4e50, #f9d423);
      margin: 20px auto;
      border-radius: 10px;
    }

    .container1 {
      max-width: 1200px;
      margin: auto;
      padding: 60px 20px;
    }

    .section-title {
      text-align: center;
      font-size: 2.8rem;
      margin-bottom: 10px;
      color: #222;
    }

    .section-subtitle {
      text-align: center;
      font-size: 1.2rem;
      margin-bottom: 50px;
      color: #555;
    }

    .service-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 40px;
    }

    .service-card {
      background: white;
      border-radius: 20px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
      overflow: hidden;
      transition: transform 0.3s;
    }

    .service-card:hover {
      transform: translateY(-8px);
    }

    .service-img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      transition: 0.3s ease;
    }

    .service-content {
      padding: 25px;
    }

    .service-content h3 {
      font-size: 1.3rem;
      color: #222;
      margin-bottom: 10px;
      position: relative;
    }

    .service-content p {
      font-size: 0.95rem;
      color: #666;
    }

     .decor-line {
      width: 80px;
      height: 4px;
      background: linear-gradient(to right, #ff4e50, #f9d423);
      margin: 20px auto;
      border-radius: 10px;
    }

    .container2 {
      max-width: 1200px;
      margin: auto;
      padding: 60px 20px;
    }

    .intro {
      text-align: center;
      margin-bottom: 60px;
    }

    .intro p {
      font-size: 1.1rem;
      color: #555;
    }

    .project {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: 60px;
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.06);
      overflow: hidden;
    }

    .project:nth-child(even) {
      flex-direction: row-reverse;
    }

    .project img {
      flex: 1 1 50%;
      max-width: 100%;
      width: 10% !important;
      height: auto;
    }

    .project-text {
      flex: 1 1 50%;
      padding: 40px;
    }

    .project-text h2 {
      font-size: 1.6rem;
      margin-bottom: 15px;
      color: #222;
    }

    .project-text p {
      font-size: 1rem;
      color: #555;
      line-height: 1.6;
    }

    footer {
      background: #111;
      color: #eee;
      text-align: center;
      padding: 30px 10px;
      margin-top: 50px;
    }

    @media (max-width: 768px) {
      .project {
        flex-direction: column;
      }
      .project:nth-child(even) {
        flex-direction: column;
      }
      .project-text {
        padding: 20px;
      }
      header {
        margin-top: 50px !important;
      }

      .project img {
            flex: 1 1 50%;
            max-width: 100%;
            width: 100% !important;
        }
    }