body { margin: 0; font-family: 'Roboto', sans-serif; padding-top: 80px; }

header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 2rem; background-color: #eeeeed; border-bottom: 1px solid #ddd;
  position: fixed; top: 0; width: 100%; z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled { background-color: #1D2A44; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }

.logo img { height: 48px; transition: filter 0.3s ease; }

nav {
   
  display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
  opacity: 1; transition: opacity 0.3s ease;
}

nav a {
  position: relative; text-decoration: none; color: #1D2A44;
  font-weight: 400; font-size: 1rem; display: inline-flex;
  align-items: center; gap: 6px; transition: color 0.3s ease, transform 0.3s ease;
}

nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background-color: #264b8b;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}

nav a:hover { color: #264b8b; transform: scale(1.05); }
nav a:hover::after { transform: scaleX(1); }
nav a.active { font-weight: bold; color: #264b8b; }

header.scrolled nav a { color: white; }
header.scrolled nav a.active { color: #80d0ff; }

.hamburger {
  display: none; font-size: 2rem; cursor: pointer;
  background: none; border: none; color: #1D2A44;
}

header.scrolled .hamburger { color: white; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle; margin-right: 6px; font-size: 20px;
}

@media (max-width: 768px) {
  nav {
    display: none; flex-direction: column; width: 100%;
    background-color: inherit; position: absolute;
    top: 70px; left: 0; padding: 1rem 2rem; border-top: 1px solid #ddd;
  }
  nav.show { display: flex; opacity: 1; }
  .hamburger { display: block; }
}

.dufem-slider .carousel-inner,
.dufem-slider .carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .carousel-item { min-height: 100vh; }
}

.carousel-caption {
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  backdrop-filter: blur(4px);
  padding: 60px 20px;
  top: 0; bottom: 0; left: 0; right: 0;
}

.carousel-caption h1 { font-weight: bold; font-size: 2.5rem; }
.carousel-caption p { max-width: 800px; margin: auto; font-size: 1.1rem; }

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
}

.carousel-indicators [data-bs-target] {
  background-color: #6cbf9b;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

#multiCarousel .carousel-inner {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  



  section.bg-light:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
  }


.btn-custom {
    background-color: #1D2A44;
    color: white;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .btn-custom:hover {
    background-color: #ccc;
    color: #1D2A44;
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  }


  .dufem-slider .carousel-inner,
.dufem-slider .carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
}

#multiCarousel .carousel-item {
  min-height: 1px !important;
  height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.banner-servicios {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
  }

  .card:hover {
    background-color: #1D2A44;
    color: white;
    transform: scale(1.02);
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .card:hover .card-title,
  .card:hover .card-text,
  .card:hover i {
    color: white;
  }