.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  width: 90vw;
  max-width: 1200px;
  height: 50vh;
  margin: 3rem auto 3rem auto;
  background: none;
  place-items: stretch;
}

.region-btn {
  background: #021b1a;
  color: #ffb92a;
  font-size: 2rem;
  font-weight: 400;
  border: 1px solid #ffb92a;
  border-radius: 10px;
  margin: 0px;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  letter-spacing: 1px;
}

.region-btn:hover, 
.region-btn:focus {
  background: #02AC66;
  color: #fff;
}

.region-btn-top {
  margin-bottom: 0;
  font-size: 2rem;
  background: #021b1a;
  color: #ffb92a;
  border: 1px solid #ffb92a;
  border-radius: 10px;
  font-weight: 400;
  width: 66vw;        /* Aumenta el ancho del boton "Las 130 mejores universidades de SudAmérica" */
  max-width: 1000px;  /* Permite que sea más ancho en pantallas grandes */
  min-width: 400px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* Responsividad para la grilla y los botones de región */
@media (max-width: 900px) {
  .region-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: auto;
    min-height: 300px;
    margin: 2rem auto;
  }
  .region-btn, .region-btn-top {
    font-size: 1.3rem;
    height: 80px;
  }
}

@media (max-width: 600px) {
  .region-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    width: 98vw;
    min-height: 50px;
    margin: 0 auto; /* Elimina el margen superior e inferior */
    gap: 0.5rem;    /* Reduce el espacio entre elementos internos */
  }
  .region-btn, .region-btn-top {
    font-size: 1rem;
    height: 60px;
    border-radius: 8px;
  }
}

.region-btn, .region-btn-top {
  transition: transform 0.2s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.2s;
}

.region-btn:hover, .region-btn-top:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(32,70,167,0.18);
}