/* Home de Ruta Legal. Los colores vienen de ciudadano.css, también en modo oscuro. */

.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.home main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-cabecera {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
}

.home-marca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--texto);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.home-marca-icono,
.producto-icono {
  fill: none;
  stroke: var(--acento);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-marca-icono {
  width: 26px;
  height: 26px;
}

.home-presentacion {
  max-width: 680px;
  padding: 32px 0 40px;
}

.home-presentacion h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.home-presentacion p {
  margin: 0;
  color: var(--texto-suave);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.home-productos h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
}

.home-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.producto {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--superficie);
  color: var(--texto);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.producto:hover {
  border-color: var(--acento);
  box-shadow: 0 10px 28px rgb(0 0 0 / 10%);
  transform: translateY(-2px);
}

.producto:focus-visible,
.home-marca:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 3px;
}

.producto-icono {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.producto h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.producto-resumen {
  margin: 0 0 16px;
}

.producto-puntos {
  flex: 1;
  margin: 0 0 24px;
  padding: 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
  list-style: none;
}

.producto-puntos li {
  position: relative;
  padding-left: 22px;
}

.producto-puntos li + li {
  margin-top: 6px;
}

.producto-puntos li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--acento);
  font-weight: 700;
}

.producto-accion {
  align-self: flex-start;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--acento);
  color: var(--acento-texto);
  font-weight: 600;
}

.home-pronto {
  margin: 20px 0 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.home-pie {
  width: 100%;
  max-width: 960px;
  margin: 48px auto 0;
  padding: 0 16px 32px;
  color: var(--texto-suave);
  font-size: 0.875rem;
}

.home-pie p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--borde);
}

@media (prefers-reduced-motion: reduce) {
  .producto {
    transition: none;
  }

  .producto:hover {
    transform: none;
  }
}
