* {
  box-sizing: border-box;
}



html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}


.manuales-cards-container {
  width: 100vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  background-color: #f9f9f9;
}

.acu-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 300px;
  min-height: 450px;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  padding-bottom: 1rem;
}

.acu-card:hover {
  transform: translateY(-5px);
}

.acu-img-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.acu-img-card {
  width: 100%;
  height: auto;         /* ← cambia esto para que no fuerce altura fija */
  max-width: 100%;      /* ← asegura que nunca se salga del contenedor */
  display: block;
  object-fit: cover;    /* mantiene estética si vuelves a usar height fija */
}

.acu-details {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.acu-details h3 {
  font-size: 1.1em;
  color: #005353;
  margin-bottom: 0.5em;
  text-align: center;
}

.acu-p-text {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 0.5em;
  text-align: justify;
}

.acu-btn-center {
  text-align: center;
}

.acu-btn-card {
  background-color: #007BFF;
  color: white;
  padding: 0.5em 1em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}



.acu-btn-card:hover {
  background-color: #0056b3;
}


@media (max-width: 768px) {
  .acu-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: 340px;     /* ← controla que no se extienda demasiado */
    margin: 0 auto 1.2rem; /* ← centra la tarjeta horizontalmente */
    min-height: unset;
    height: auto;
    padding-bottom: 0.5rem;
  }

  .manuales-cards-container {
    justify-content: center;
    align-items: flex-start;
  }

  .acu-img-container {
    height: 140px;
  }

  .acu-img-card {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .acu-details {
    padding: 0.6rem;
  }

  .acu-details h3 {
    font-size: 0.95em;
    margin-bottom: 0.3em;
  }

  .acu-p-text {
    font-size: 0.85em;
    line-height: 1.3;
    margin-bottom: 0.4em;
  }

  .acu-btn-card {
    padding: 0.4em 0.8em;
    font-size: 0.85em;
  }
}
