:root {
  --mbd-primary: #0e1f28;    /* Color corporativo actual */
  --mbd-dark: #0b132b;
}

html { 
  scroll-behavior: smooth; 
}

#heroCarousel {
  max-height: 600px;
  overflow: hidden;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

#heroCarousel .carousel-indicators {
  margin-bottom: 2rem;
}

#heroCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 5%;
  background: rgba(0,0,0,0.2);
  height: 100%;
}

#heroCarousel .carousel-caption {
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  bottom: 40px;
}

#heroCarousel .carousel-caption h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#heroCarousel .carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  #heroCarousel .carousel-caption {
    display: none;
  }
}

.navbar .nav-link.active { 
  font-weight: 600; 
}

section { 
  scroll-margin-top: 80px; /* compensa navbar fija */ 
}

.about-header { 
  background: var(--mbd-primary); 
  color: #fff; 
  padding: 2rem 0; 
  text-align: center; 
}

.about-header img { 
  max-width: 320px; 
  width: 90vw; 
  border-radius: 10px; 
  margin-bottom: 1rem; 
}

.about-section { 
  background: #fff; 
  border-radius: 12px; 
  box-shadow: 0 2px 12px #0001; 
  padding: 2.5rem 2rem; 
  margin-top: -3rem; 
}

.about-section h1 { 
  color: var(--mbd-primary); 
  font-weight: 700; 
}

.about-section p { 
  font-size: 1.1rem; 
  color: #3a4a5a; 
}

@media (max-width: 600px) {
  .about-section { 
    padding: 1.2rem 0.7rem; 
  }
}

/* Navigation styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: color 0.3s ease !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #0dcaf0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #0dcaf0 !important;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.7rem 1rem !important;
        border-radius: 5px;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(13,202,240,0.1);
    }
}
