:root {
    --color: #3c3163;
    --transition-time: 0.5s;
}


.card-img {
    /* Establece un tamaño fijo para el contenedor de las imágenes */
    width: 100%; /* Ocupa todo el ancho disponible del contenedor */
    height: 200px; /* Ajusta esta altura según sea necesario */
    overflow: hidden; /* Oculta cualquier parte de la imagen que sobresalga */
    display: flex;
    justify-content: center; /* Centra la imagen horizontalmente */
    align-items: center; /* Centra la imagen verticalmente */
  }
  
  .card-img img {
    /* Ajusta la imagen para que se mantenga proporcional y no se estire */
    max-width: 100%; /* Ajusta el ancho máximo al contenedor */
    max-height: 100%; /* Ajusta la altura máxima al contenedor */
    object-fit: contain; /* Mantiene la proporción de la imagen */
  }


  .card ul {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.card ul li {
  font-size: 0.82em !important;
  color: inherit !important;
  font-weight: normal !important;
  margin-bottom: 0.5em !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Open Sans';
  background: #fafafa;
}

a {
  color: inherit;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30em, 1fr)); /* Ajusta según el tamaño mínimo de la tarjeta */
    grid-gap: 2rem;
    padding: 4rem;
    margin: 0 auto;
  }
  
  .card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Permite que la tarjeta ocupe toda la altura del contenedor */
    background-color: #eaeaea;
    border-radius: 1em;
    padding: 1em;
    box-shadow: 0 0 5em -1em black;
    transition: background-color var(--transition-time);
    position: relative;
    overflow: hidden;
    border: 10px solid #ccc;
    text-decoration: none;
  }

.card .date {
    font-size: 0.75em;
    padding: 1em;
    margin-top: auto; /* Empuja la fecha al fondo del contenedor */
    opacity: .8;
  }

.card:hover {
    transform: rotate(0);
  }

  .card h4 {
    margin-top: 1em; /* Ajusta el valor según sea necesario */
    font-size: 1.25em; /* Tamaño de fuente más pequeño */
    line-height: 1.2em;
  }

.card p {
  font-size: 0.96em; /* Ajuste de tamaño de fuente */
  font-family: 'Open Sans';
  margin-top: 0.5em;
  line-height: 1.5em; /* Ajuste de altura de línea */
}

.card .tags {
  display: flex;
}

.card .tags .tag {
  font-size: 0.75em;
  background: rgba(255,255,255,0.5);
  border-radius: 0.3rem;
  padding: 0 0.5em;
  margin-right: 0.5em;
  line-height: 1.5em;
  transition: all var(--transition-time);
}

.card:hover .tags .tag {
  background: var(--color);
  color: white;
}



.card:before, .card:after {
  content: '';
  transform: scale(0);
  transform-origin: top left;
  border-radius: 50%;
  position: absolute;
  left: -50%;
  top: -50%;
  z-index: -5;
  transition: all var(--transition-time);
  transition-timing-function: ease-in-out;
}

.card:before {
  background: #040231;
  width: 250%;
  height: 250%;
}

.card:after {
  background: white;
  width: 200%;
  height: 200%;
}


p {
    font-family: 'Roboto', sans-serif;
    color: #2c2c2c;
    font-size: 15px;
    font-weight: 500;
    margin-top: 0;
    line-height: 1.9;
}

.card:hover {
  color: var(--color);
}

.card:hover:before, .card:hover:after {
  transform: scale(1);
}

/* MEDIA QUERIES */
@media screen and (max-width: 1285px) {
  .cards-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 900px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 500px) {
  .cards-wrapper {
    padding: 4rem 2rem;
  }
  .card {
    max-width: calc(100vw - 4rem);
  }
}

@media screen and (max-width: 450px) {
  .info {
    display: block;
    text-align: center;
  }
  .info h1 {
    margin: 0;
  }
}
