/* Estilos generales del contenedor */
.image-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  transition: min-height 0.3s ease;
  min-height: 300px;
  background: #f6f6f6;
  border-bottom: 4px solid #00c18a;
}
.site-surfaceengineeringtom .image-container, .site-surfaceengineering .image-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  transition: min-height 0.3s ease;
  min-height: 300px;
  background: #ffffff;
  border-bottom: 4px solid #00c18a;
}

/* Estilos de la imagen */
.image-container .imagen {
  width: 60%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Estilos del bloque de contenido */
.image-container .contenido {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: #00c18a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.site-surfaceengineeringtom .image-container .contenido, .site-surfaceengineering .image-container .contenido {
  background-color: #00c18a;
}

/* Mostrar el contenido por encima de la imagen al hacer hover en el contenedor */
.image-container:hover .contenido {
  opacity: 1; /* Mostrar el contenido */
}

/* Estilos del texto */
.image-container .texto {
  color: #fff; /* Color del texto */
  text-align: left;
  padding: 10px;
  font-size: 16px; /* Tamaño del texto */
  width: 100%; /* Ancho completo del contenedor */
  box-sizing: border-box; /* Evitar que el padding afecte el ancho del texto */
  line-height: 26px;
}

/* Estilos del enlace */
.image-container .enlace a {
  color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-bottom: 1px solid #fff;
    border-radius: 0px;
    font-size: 16px;
    text-align: left;
}

.image-container .enlace a:hover {
  background-color: #fff; /* Color de fondo al hacer hover */
  color: #000; /* Cambio de color del texto al hacer hover */
}

@media only screen and (max-width: 480px) {
.image-container {
  margin-bottom: 20px;
}
}