
.section-academica {
    font-family: "Montserrat";
    background-color: #323232;
    color: #fff;
    overflow-x: hidden;
}

.h1-academica {
    text-align: center;
    margin: 40px 20px 10px;
    font-weight: 800;
    font-size:3.6rem;
}

/* ======= CONTENEDOR GENERAL ======= */
.cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

/* ======= TARJETAS ======= */
.card {
    background: #fff;
    color: #000;
    border-radius: 20px;
    flex: 1 1 0;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.img-academica {
    width: 120px;
    height: 120px;
    background-color: var(--accent);
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.card ul {
    list-style: disc;
    text-align: left;
    margin-left: 25px;
}

/* ======= SLIDER EN MÓVIL ======= */
@media (max-width: 768px) {
body { overflow-x: hidden; }

.cards-container {
  width: 400vw; /* 4 tarjetas * 100vw cada una */
  max-width: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  animation: slideMobile 16s infinite ease-in-out;
  will-change: transform;
}

.card {
  width: 100vw;
  flex: 0 0 100vw;
  border-radius: 0;
  margin: 0;
  padding: 30px 25px;
}

.card:hover {
  transform: none;
  box-shadow: none;
}
.txtdyna{
font-family:'Montserrat';
font-size:2rem;
}

@keyframes slideMobile {
  0%, 20%   { transform: translateX(0vw); }
  25%, 45%  { transform: translateX(-100vw); }
  50%, 70%  { transform: translateX(-200vw); }
  75%, 95%  { transform: translateX(-300vw); }
  100%      { transform: translateX(0vw); }
}
}
