:root {
  /* Colores principales */
  --colPrimario: #00386f; /* Azul oscuro */
  --colSecundario: #96f8db; /* Gris azulado oscuro */
  --colAcento: #ff1e00; /* Rojo coral */
  --colFondo: #3a7ca5; /* Gris suave */
  
  /* Colores de botón */
  --colBoton: #2980B9; /* Azul brillante */
  --colHoverBoton: #1F618D; /* Azul más oscuro */
  
  /* Colores adicionales */
  --colBlanco: #FFFFFF; /* Blanco puro */
  --colNegro: #000; /* Negro puro */
  --colGris: #7F8C8D; /* Gris medio */
}

/* Estilos para la sección de inicio */
.banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: auto; 
  height: 350px;
}

.seccion {
  padding: 20px;
  padding-top: 100px; 
  background-color: var(--colFondo);
}

.titulo {
  text-align: center;
  font-size: 2.5em;
  font-weight: bold; /* Texto en negrita */
  color: var(--colPrimario);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), /* Primer resplandor más cercano */
               0 0 20px rgba(255, 255, 255, 0.6), /* Segundo resplandor */
               0 0 30px rgba(255, 255, 255, 0.4); /* Tercer resplandor más amplio */
}

.centrado {
  text-align: center; 
}

.justificado {
  text-align: justify;
  padding: 10px;
}

body {
  margin: 0;
  padding: 0;
}
/* Estilo base del carrusel */
.carousel-item {
  text-align: center;  
  height: 500px;  
  width: 100%;
  position: relative; /* Asegura que la leyenda se posicione correctamente */
} 

.carousel-img { 
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  padding: 10px;
  font-weight: bold; 
  color: rgba(0, 0, 0, 0.8);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 
               0 0 20px rgba(255, 255, 255, 0.6), 
               0 0 30px rgba(255, 255, 255, 0.4);
  font-size: 2.8rem; 
  -webkit-text-stroke: 0.2px white;
}

#carouselExample {
  margin-top: 80px; /* Ajusta según el alto de tu navbar */
}

/* Controles de navegación */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5); 
  border-radius: 50%; 
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%; 
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.616); 
}

.tarjeta {
    width: 100%;
    margin: auto;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}
.tarjeta-header {
    background: linear-gradient(to left, var(--colPrimario), var(--colSecundario));
    color: #fff;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold; /* Texto en negrita */
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tarjeta-body {
    background: var(--colSecundario);
    color: #000;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.img-fluid {
  width: 100%;
  height: auto;
}

.btn-agendar {
  background-color: var(--colPrimario);
  color: white;
  padding: 10px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

.btn-agendar:hover {
  background-color: var(--colAcento);
}

@media (max-width: 768px) {
  .carousel-caption {
    font-size: 1.2rem;
    padding: 8px;
  }
  .carousel-item {
    padding-top: 10px;
    height: 300px;
  }
  .carousel-item {
    padding-top: 10px;
    height: auto; /* Ajusta el contenedor según la altura de la imagen */
  }  
  .titulo {
    font-size: 1.5em; 
  }
  .tarjeta-header {
    font-size: 1em; 
  }  
}