html,
body {
  overflow-x: hidden;
  width: 100%;
}

.navbar {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 80px;
  padding-bottom: 0.3rem;
}

.logo {
  max-width: 170px;
  height: auto;
  margin-right: 10px;
  padding-top: 7px;
  border-radius: 12px;
}

.encabezado {
  display: inline-block;
}

.encabezado h1 {
  color: #3318ba;
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  font-weight: bold;
}

.encabezado p {
  position: relative;
  color: black;
  top: -6px;
  font-family: Arial;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  font-weight: bold;
}

.collapse {
  color: black;
  font-family: 'Segoe UI';
  font-size: 1rem;
  font-weight: bold;
}

.contenido {
  padding-top: 130px;
}

.inicio1 {
  background-image: url('imagenes/fondo_paisaje5.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 55vh;
  display: flex;
  align-items: center;
  padding-bottom: 60px;
}
.articulo-blog {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 40vh;
  display: flex;
  align-items: center;
  padding-bottom: 60px;
  font-family: 'Lucida Sans';
  font-size: clamp(1.5rem, 8vw, 2.0rem);
  color:white;
  font-weight: bold;
  
}
h1.display-4 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.titulo {
  color: white;
  text-align: center;
  text-decoration: solid;
}

.texto-expandible {
  max-width: 90%;
  margin-bottom: 0.2rem;
  border-radius: 8px;
  padding: 25px;
  margin: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: rgb(249, 250, 251);
}

.texto-expandible img {
  width: 100%;
  height: 180px;          /* altura fija para todas las imágenes */
  object-fit: cover;      /* recorta manteniendo proporción */
  border-radius: 8px;
  margin-bottom: 10px;
}


.inicio img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* Contenedor flotante */
.botones-flotantes {
  position: fixed;
  bottom: 20px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.inicio {
  scroll-margin-top: 120px;
}

.iconos-container img {
  display: inline-block;
  max-width: 5%;
  height: auto;
  margin: 0 30px;
  vertical-align: middle;
}

.iconos-educacion img {
  max-width: 70px; 
  height: auto;
  margin: 50px 0; 
}

/* Contenedor general de botones flotantes */
.botones-flotantes {
  position: fixed;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Redes: se ubican más arriba */
.botones-flotantes.redes {
  bottom: 80px; /* deja espacio para el botón de cita */
}

/* Cita: se ubica más abajo */
.botones-flotantes.cita {
  bottom: 20px;
}

/* Botones redondos (redes sociales) */
.boton-red {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.boton-red img {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  object-fit: cover;
  max-width: 100%;
}

/* Botón rectangular "Agendar Cita" */
.boton-cita {
  background-color: #007bff;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  display: block;
  min-width: 160px;
}

.boton-cita:hover {
  background-color: #0056b3;
}

.educacion {
  text-align: start;
}

.formacion {
  font-style: oblique;
  font-weight: bold;
}

.animated-image {
  max-width: 60%;
  max-height: auto;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  margin-top: 10px;
  margin-bottom: 10px;
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.section h2 {
  font-family:'Gill Sans MT';
  color: #2b02f7;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-top: 13px;
  text-transform: uppercase;
  font-weight: bold;
}

.section h4 {
  font-family: Arial;
  font-size: clamp(1rem, 2.0vw, 1.5rem);
  font-weight: bold;
}

.texto {
  text-align: justify;
  color: black;
  font-family: 'Times New Roman';
  font-size: clamp(1.2rem, 2vw, 1.2rem);
}

.lista {
  text-align: left;
}

/* Tarjetas de servicios */
.cards {
  max-width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: rgb(249, 250, 251);
  height: 400px;              /* altura fija para todas las cards */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Imagen dentro de las tarjetas */
.cards img {
  width: 100%;
  height: 180px;              /* altura fija para todas las imágenes */
  object-fit: cover;          /* recorta manteniendo proporción */
  border-radius: 8px;
  margin-bottom: 10px;
}


#contacto .frase {
  border-left: 4px solid #0d6efd; 
}

.footer {
  position: relative;
}

.frase {
  font-family:sans-serif;
  font-size: larger;
  font-style: oblique;
}
/*Blog*/
.video-container iframe {
      width: 100%;
      height: 220px;
      border-radius: 8px;
    }
/* Ajuste para que imagen y video se alineen siempre */
.object-fit-cover {
  object-fit: cover;
}

.articulo-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.articulo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.articulo-card img {
  border-radius: 12px 12px 0 0;
  height: 140px;
  object-fit: cover;
}

.articulo-card .card-body {
  padding: 12px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(100%);
  width: 24px;
  height: 24px;
}
