:root {
  --azul: #2563eb;
  --azul-oscuro: #1d4ed8;
  --texto: #1f2937;
  --texto-suave: #6b7280;
  --fondo: #ffffff;
  --fondo-suave: #f3f4f6;
  --borde: #e5e7eb;
  --verde: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.5;
}

.contenedor {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

header.cabecera {
  padding: 20px 0;
  border-bottom: 1px solid var(--borde);
}
header.cabecera .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 22px; font-weight: 700; color: var(--azul); text-decoration: none; }
nav a { margin-left: 24px; color: var(--texto); text-decoration: none; font-size: 16px; }

.hero {
  text-align: center;
  padding: 64px 20px 48px;
  background: linear-gradient(180deg, var(--fondo-suave), var(--fondo));
}
.hero h1 { font-size: 34px; margin: 0 0 16px; }
.hero p.subtitulo { font-size: 19px; color: var(--texto-suave); max-width: 560px; margin: 0 auto 32px; }

.boton {
  display: inline-block;
  background: var(--azul);
  color: white;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.boton:hover { background: var(--azul-oscuro); }
.boton.secundario { background: white; color: var(--azul); border: 2px solid var(--azul); }

.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 48px 0;
}
.paso {
  text-align: center;
  padding: 24px;
}
.paso .numero {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--azul); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  margin: 0 auto 16px;
}

section.seccion { padding: 48px 0; border-top: 1px solid var(--borde); }
section.seccion h2 { font-size: 26px; text-align: center; margin-bottom: 32px; }

.rejilla-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.tarjeta-producto {
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.tarjeta-producto img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: 16px;
  background: var(--fondo-suave);
}
.tarjeta-producto h3 { margin: 8px 0; font-size: 18px; }
.tarjeta-producto p.descripcion { color: var(--texto-suave); font-size: 14px; min-height: 40px; }
.precio { font-size: 22px; font-weight: 700; margin: 12px 0; }

.tiendas-externas {
  display: grid;
  gap: 16px;
}
.tienda-externa {
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer {
  padding: 32px 0;
  text-align: center;
  color: var(--texto-suave);
  font-size: 14px;
  border-top: 1px solid var(--borde);
}

.centrado { text-align: center; }
