/* Imagen Enigma — web pública. Colores y tipografías del tema de la app
   (src/theme en el repo de la app). Fuentes servidas desde este mismo
   dominio: sin peticiones a terceros. */

@font-face {
  font-family: "Cardo";
  src: url("/assets/fonts/Cardo-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Graduate";
  src: url("/assets/fonts/Graduate-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-muted: #F2EDE4;
  --text: #1F1B16;
  --text-muted: #6B5F52;
  --primary: #C8553D;
  --primary-dark: #9C3F2E;
  --primary-light: #F1D5C9;
  --accent: #E8A33D;
  --accent-light: #FCEDD0;
  --border: #E6DED2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cardo", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--primary-dark); }
a:hover { color: var(--primary); }

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Cabecera */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span {
  font-family: "Graduate", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

/* Contenido */
main { padding: 2rem 0 3rem; }

h1, h2, h3 {
  font-family: "Graduate", Georgia, serif;
  font-weight: normal;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; color: var(--primary-dark); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

.updated { color: var(--text-muted); font-size: 0.95rem; margin-top: 0; }

ul, ol { padding-left: 1.4rem; }
li { margin: 0.25rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1rem;
  background: var(--surface);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
}
th { background: var(--surface-muted); font-weight: normal; }
.table-scroll { overflow-x: auto; }

.note {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

/* Marcadores de datos aún sin rellenar: buscar "[PENDIENTE" */
.pendiente {
  background: #FFE9A8;
  outline: 1px dashed var(--primary);
  padding: 0 0.2rem;
}

/* Landing */
.hero { text-align: center; padding: 1.5rem 0 1rem; }
.hero img { width: 112px; height: 112px; border-radius: 24px; box-shadow: 0 4px 16px rgba(31, 27, 22, 0.12); }
.hero h1 { font-size: 2.3rem; margin-top: 1rem; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin: 0.5rem auto 0; max-width: 32rem; }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.steps .num {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: "Graduate", Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { display: block; }

.badge-soon {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: "Graduate", Georgia, serif;
  font-size: 1rem;
}
.center { text-align: center; }

/* Pie */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-bottom: 0.75rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary-dark); }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
}

/* Restablecer contraseña */
.reset-form { display: grid; gap: 0.75rem; max-width: 26rem; }
.reset-form label { font-family: "Graduate", Georgia, serif; font-size: 1rem; }
.password-row { display: flex; gap: 0.5rem; }
.password-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.password-row input:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }
.toggle, .button-primary {
  font: inherit;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.6rem 1.1rem;
}
.toggle { background: var(--surface-muted); border: 1px solid var(--border); color: var(--text); }
.button-primary { background: var(--primary); color: #fff; border: none; justify-self: start; }
.button-primary:disabled { opacity: 0.6; cursor: wait; }
.form-message { margin-top: 1rem; }
.form-message.error { color: var(--primary-dark); }
