 .portafolio-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Ratio 1:1 */
  }
  .portafolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .portafolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .portafolio-container:hover .portafolio-overlay {
    height: 100%;
  }
  .portafolio-text {
    color: #FFFFFF;
    font-size: 25px;
    margin-bottom: 10px;
  }
  .portafolio-button {
    background-color: #FFC107;
    color: #343A40;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
  }
  .portafolio-table-container {
    width: 80%;
    margin: 0 auto;
    border-spacing: 10px;
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
  }
  .modal-content {
	background-color: #fefefe; /* Centra horizontalmente */
	margin-top: 0%; /* Margen superior para dejar espacio */
	margin-right: 0%;
	margin-bottom: 0%;
	margin-left: 0%;
	padding: 20px;
	border: 1px solid #888;
	width: 90%; /* Ajusta el ancho del contenido del modal */
	max-width: 1500px; /* Ancho máximo del contenido del modal */
	max-height: 80%; /* Altura máxima del contenido del modal */
	overflow-y: auto; /* Agrega scroll vertical si es necesario */
	text-align: center; /* Centra el texto dentro del modal */
	position: fixed; /* Fija la posición en la ventana */
	bottom: -1%; /* Distancia desde abajo */
	left: 50%; /* Centra horizontalmente */
	transform: translateX(-50%); /* Centra horizontalmente */
	box-sizing: border-box;
	display: block;
	border-radius: 5px;
}

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .modal-image {
    width: 80%;
    height: auto;
  }
  .modal-title {
	font-size: 40px;
	color:#000000;
	margin: 20px 0;
	font-family: OpenSans-Regular;
  }
  .modal-text {
	font-size: 18px;
	margin: 20px 0;
	text-align: justify;
	font-family: OpenSans-Regular;
  }
  
  /* Estilos para los botones de flecha */
.prev, .next {
	cursor: pointer;
	position: absolute;
	top: 50%;
	width: auto;
	padding: 16px;
	margin-top: -22px;
	color: #000;
	font-weight: bold;
	font-size: 24px;
	transition: 0.3s;
	user-select: none;
}

.prev {
  left: 0;
  color: #000;
}

.next {
  right: 0;
  color: #000;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: #FFF;
}