/* Web de enoky.es: los colores, fuentes y botones de la app (src/constants/theme.ts). */
@font-face { font-family: 'Instrument Serif'; src: url('fuentes/instrument-serif.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url('fuentes/instrument-serif-italic.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; src: url('fuentes/jakarta-400.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; src: url('fuentes/jakarta-600.ttf') format('truetype'); font-display: swap; }

:root {
  --crema: #F0EAD2;
  --marfil: #FAF6EA;
  --arena: #E6DCBE;
  --tinta: #2F271D;
  --corteza: #6D594D;
  --lima: #DDEE6E;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--crema);
  color: var(--tinta);
  font: 400 16px/1.6 var(--sans);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: 6px; }

/* Botones de la app: alto 52, radio 14, contorno de tinta de 1,5 px (lo que se toca). */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1.5px solid var(--tinta);
  border-radius: 14px;
  background: var(--marfil);
  font: 600 16px/1.25 var(--sans);
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.boton:hover { background: var(--arena); }
.boton:active { transform: scale(.98); }
.boton.principal { background: var(--tinta); color: var(--crema); }
.boton.principal:hover { background: #413524; }

/* Portada: todo centrado, mucho aire. */
.portada main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 24px;
}
.aviso {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lima);
  font: 600 12px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portada h1 { margin: 40px 0 0; line-height: 0; }
.logo { width: min(260px, 64vw); height: auto; }
.lema {
  margin: 36px 0 0;
  font: 400 clamp(28px, 6vw, 36px)/1.15 var(--serif);
}
.lema em { font-style: italic; }
.intro { max-width: 30em; margin: 16px 0 0; color: var(--corteza); }
.botones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin-top: 40px;
}
.botones .principal { grid-column: 1 / -1; }

/* Páginas de texto legal. */
.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
}
.cabecera img { display: block; height: 22px; width: auto; }
.volver { font-weight: 600; font-size: 14px; text-decoration: none; }
.volver:hover { text-decoration: underline; }
.texto main { flex: 1; max-width: 720px; width: 100%; margin: 0 auto; padding: 16px 20px 48px; }
.texto h1 { margin: 24px 0 24px; font: 400 clamp(40px, 9vw, 56px)/1.05 var(--serif); letter-spacing: -.01em; }
.texto h2 { margin: 40px 0 8px; font: 400 26px/1.2 var(--serif); }
.texto p, .texto ul { margin: 0 0 14px; }
.texto ul { padding-left: 1.2em; }
.texto li { margin-bottom: 6px; }
.texto a { text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.texto .boton { overflow-wrap: normal; }
.texto main > p:first-of-type { color: var(--corteza); font-size: 14px; }
.contacto { margin-top: 40px !important; }
mark { background: var(--lima); color: var(--tinta); padding: 0 3px; border-radius: 4px; }

/* Pie. */
.pie {
  padding: 24px 20px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--corteza);
}
.pie p { margin: 0; }
.pie nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 12px; }
.pie nav a { font-weight: 600; color: var(--tinta); text-decoration: none; }
.pie nav a:hover { text-decoration: underline; }
.texto .pie { border-top: 1.5px solid var(--arena); max-width: 720px; width: calc(100% - 40px); margin: 0 auto; }

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