@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/montserrat-latin.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fafaf9;
  color: #1a1a18;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid #1a1a18; outline-offset: 3px; border-radius: 2px; }

.portada {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 40px;
  text-align: center;
}

.logo { display: block; width: 200px; height: auto; }

/* Los 54 colores de la gama, como un pequeño muro de azulejos con su junta */
.muro {
  display: grid;
  grid-template-columns: repeat(9, 22px);
  gap: 3px;
  margin: 44px 0 40px;
  padding: 3px;
  background: #e5e0d8;
  border-radius: 2px;
}
.muro span { display: block; width: 22px; height: 22px; border-radius: 1px; }

h1 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.texto { margin: 14px 0 0; color: #6f6a64; max-width: 30em; }
.contacto { margin: 28px 0 0; font-size: 14px; color: #6f6a64; }
.contacto a { color: #1a1a18; font-weight: 500; }

.pie {
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 12px;
  color: #6f6a64;
}
.pie a { color: #6f6a64; }

/* Mentions légales */
.legal { width: 100%; max-width: 44rem; margin: 0 auto; padding: 40px 24px 24px; }
.legal .logo { width: 160px; }
.legal h1 { margin: 40px 0 8px; font-size: 28px; }
.legal h2 { margin: 32px 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding: 0; list-style: none; }
.legal li { margin: 0 0 4px; }

@media (max-width: 420px) {
  .logo { width: 170px; }
  .muro { grid-template-columns: repeat(9, 18px); }
  .muro span { width: 18px; height: 18px; }
}
