.enlaces-rapidos {
  text-align: center;
  padding: 40px 20px;
}

.enlaces-rapidos h2 {
  font-weight: bold;
  margin-bottom: 30px;
}

h2 span {
  color: #f6303a;
}

.enlaces-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 🔵 Fuerza a tener 5 columnas */
  gap: 25px;
}

.enlace-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enlace-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.icono i {
  width: 60px;
  height: 60px;
  background: #1e3a8a;
  color: #ffffff;
  font-size: 35px;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 2px solid #1e3a8a; /* Borde azul */
  display: flex;
  align-items: center;
  justify-content: center;
}

.icono i:hover {
  color: #f6303a;
  background: #ffffff;
  color: #1e3a8a;
}

.enlace-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.enlace-item p,
.enlace-item ul {
  font-size: 15px;
  color: #555;
}

.enlace-item ul {
  list-style: none;
  padding: 0;
}

.enlace-item ul li {
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .enlaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .enlaces-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   AGREGADO DE RESPONSIVIDAD EXTRA
   ========================================== */

/* Paso intermedio para evitar que las 5 columnas se amontonen en tablets/laptops */
@media (max-width: 1100px) and (min-width: 901px) {
  .enlaces-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .enlaces-rapidos {
    padding: 30px 15px;
  }
  
  .enlace-item {
    padding: 20px 15px;
  }

  .icono i {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .enlace-item h3 {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .enlaces-rapidos h2 {
    font-size: 1.4rem;
  }
  
  .enlace-item p {
    font-size: 14px;
  }
}