body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #ddd;
  padding-top: 0 !important;

}

/* NAVBAR */
.navbar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: transparent !important; 
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1050 !important; 
}
.navbar-nav {
    display: flex;
    flex-direction: row;
    justify-content: center; 
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
}
.nav-link:hover {
    border-bottom-color: #ffffff; 
    color: #ffffff;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding-bottom: 8px; 
    border-bottom: 3px solid #84a9e0a1; 
    transition: 0.3s;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ===== BANNER / CAROUSEL ===== */

.banner {
  width: 100%;
  position: relative; 
  margin: 0;
  padding: 0;
}
.carousel {
    margin-top: 0 !important;
    z-index: 1;
}
.carousel-inner {
    height: 700px; 
    width: 100%;
}

.carousel-item img {
    width: 100% !important;
    height: 700px;
    object-fit: cover;
    object-position: center;
}
.img-ajustada {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%; 
}

@media (max-width: 768px) {
  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 250px;
  }
  .carousel-item img {
    height: 600px !important;
    object-fit: cover;
    object-position: center;
}
  .carousel-inner {
    height: 600px !important; 
    width: 100%;
}
}
/* PERFIL */

.perfil-container-overlay {
  display: flex; 
  flex-direction: row;
  align-items: center; 
  gap: 20px; 
  
  
  position: absolute;
  bottom: 80px; 
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  padding: 20px;
  background: rgba(238, 238, 238, 0.2); 
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
}


.foto-perfil img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid white;
}


.info-box h2 {
  margin: 0;
  color: rgb(0, 0, 0);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.info-box .sub {
  color: #000000;
  font-weight: bold;
  margin-bottom: 5px;
}
.info-box h2, 
.info-box .sub, 
.info-box p {
    color: rgb(56, 56, 56) !important; 
    text-shadow: 1px 1px 3px rgba(44, 44, 44, 0.952);
}

.info-box p {
  color: rgb(26, 3, 3);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  background: transparent;
}

@media (max-width: 768px) {
  
  
  .perfil-container-overlay {
    position: relative !important; 
    bottom: 0 !important;
    transform: none !important;
    left: 0 !important;
    width: 95% !important;
    margin: 20px auto !important;
    flex-direction: column !important; 
    text-align: center;
    background: rgba(255, 255, 255, 0.9) !important; 
    backdrop-filter: none !important;
  }

 
  .foto-perfil {
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 10px;
  }

  
  .carousel-inner, 
  .carousel-item img {
    height: 350px !important; 
  }

  
  .navbar-nav {
    gap: 15px !important;
    padding: 10px 0;
  }
  
  .nav-link {
    font-size: 0.9rem !important;
  }
}


.foto-perfil {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; 
}

/* --- RESPONSIVE: MÓVIL --- */
@media (max-width: 768px) {
  .perfil-container {
    flex-direction: column; 
    text-align: center;    
  }

  .perfil-izq {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .foto-perfil {
    margin: 0 auto 15px auto; 
  }
}

/* 🔥 NUEVO */
.foto-perfil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info {
  flex: 1;
}

.sub {
  color: gray;
}

.info-box {
  margin-top: 10px;
  background: #ccc;
  padding: 10px;
}
/* GALERIA */
.galeria {
  padding: 40px;
}

/* FILA */
.galeria .row {
  display: flex;
}

/* COLUMNAS */
.galeria .col-lg-4 {
  display: flex;
  flex-direction: column;
}

/* IMAGENES */
.galeria img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 10px;
}


.galeria .col-lg-4 img {
  flex: 1;
}

/* SERVICIOS */
.servicios {
  padding: 40px;
}

/* CARDS */
.card {

  border: none;
}


.card-img-top {
  height: 250px;
  object-fit: cover;
   border-radius: 8px 8px 8px 8px;
}

/* TEXTO */
.card-body {
  text-align: center;
  position: relative; 
  top: -59px;
 
}
.card-text{
  font-weight: bold;
  font-size: 22px;
  background-color: #FFFFFF94;
  color: #286a7f;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 8px 8px;
}
/* CONTACTO */
.contacto {
  padding: 40px;
  background: #bbb;
  text-align: center;
}