/* LuigiVelo.ch — Werkstatt page CSS (v2)
   - Usa variables globales y capas
   - Componentiza las tarjetas de servicio
*/

/* Overrides específicos de la página */
@layer pages {
  /* Más respiro debajo del header en ESTA página */
  .content-block:first-of-type {
    margin-top: 4rem;
  }

  .service-section .section-title {
    margin: 0 0 1rem;
  }
}

/* Componentes de la página (tarjetas y grid) */
@layer components {
  .velo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
  }

  .velo-card:where(*) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .velo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  .velo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--surface-2);
  }

  .velo-card h3 {
    color: var(--brand-600);
    margin: 0 0 0.5rem;
  }

  .velo-card .card-desc {
    flex-grow: 1;
    margin: 0 0 1.5rem;
    line-height: 1.55;
    color: var(--text);
  }

  .velo-card .btn {
    align-self: center;
    display: inline-block;
    background: var(--brand-500);
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease;
  }
  .velo-card .btn:hover {
    background: var(--brand-600);
  }

  /* Accesibilidad: respeta usuarios con animaciones reducidas */
  @media (prefers-reduced-motion: reduce) {
    .velo-card:hover {
      transform: none;
      box-shadow: var(--shadow-1);
    }
  }
  .service-section {
    margin-bottom: 3rem; /* puedes ajustar a 4rem si prefieres más aire */
  }
}
