/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

section.tutorial {
  background: #fff;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

section.tutorial a {
  text-decoration: none; /* Quita subrayado en el enlace */
  color: inherit;        /* Hereda color para que no cambie */
  outline: none;         /* Quita el contorno al hacer foco */
  border: none;          /* Quita bordes si existieran */
}

/* Estilo para articles dentro de .tutorial y también cuando están dentro de enlaces */
section.tutorial a > article,
section.tutorial > article {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: #ffe6f0;
  padding: 16px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}

/* Hover */
section.tutorial a:hover > article,
section.tutorial a > article:hover,
section.tutorial > article:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.2);
}

/* Imagenes dentro del tutorial */
section.tutorial article img {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 12px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

section.tutorial a:hover > article img,
section.tutorial > article:hover img {
  transform: scale(1.08);
}

/* Texto descriptivo */
section.tutorial article p {
  font-size: 0.88rem;
  color: #333;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
  padding: 0 5px;
}


@media (max-width: 768px) {
  section.tutorial {
    grid-template-columns: repeat(2, 1fr); /* Fuerza 2 columnas */
    font-size: 0.78rem
  }
}