/* Eclipse Checker — estilos comunes de la web.
   Tokens de color y tipografía calcados del design system de la app
   (EclipseApp/DesignSystem/Theme). Las fuentes se sirven desde este mismo
   dominio: la web no hace ninguna petición externa, igual que la app. */

@font-face {
  font-family: "Questrial";
  src: url("fonts/Questrial-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SUSE";
  src: url("fonts/SUSE-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --coral: #fb6c6b;
  --coral-soft: #fc9d9d;
  --logo-coral: #ff7474;
  --ink: #2a2a2f;
  --paper: #fffcff;
  --panel: #f2f2f7;
  --border: #d9d9d9;
  --yellow: #f0c34c;
  --muted: rgba(42, 42, 47, 0.66);

  --title-font: "SUSE", ui-sans-serif, system-ui, sans-serif;
  --body-font: "Questrial", ui-sans-serif, system-ui, sans-serif;
  --margin: clamp(20px, 5vw, 36px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f7;
    --paper: #17171b;
    --panel: #22222a;
    --border: #35353f;
    --muted: rgba(242, 242, 247, 0.68);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--title-font);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(32px, 6vw, 46px);
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--coral);
}

.contenedor {
  width: min(980px, 100%);
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* El contenido empuja el pie hasta abajo en páginas cortas (soporte). */
main {
  flex: 1;
}

/* --- Cabecera --------------------------------------------------------- */

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

.marca svg {
  width: 30px;
  height: auto;
  display: block;
}

.cabecera nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.cabecera nav a:hover {
  color: var(--coral);
}

/* --- Portada ---------------------------------------------------------- */

.portada {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #22375c 0%, #3f5d88 42%, #b9805c 82%, #e8a15c 100%);
  color: #fffcff;
  text-align: center;
  padding: clamp(48px, 9vw, 88px) 0 clamp(56px, 10vw, 96px);
  border-radius: 0 0 28px 28px;
}

.portada .logo-grande {
  display: block;
  width: clamp(84px, 14vw, 116px);
  height: auto;
  margin: 0 auto 24px;
}

.portada h1 {
  max-width: 16ch;
  margin-inline: auto;
}

.portada .entradilla {
  max-width: 46ch;
  margin: 0 auto 28px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(255, 252, 255, 0.86);
}

/* Guiño al Liquid Glass del visor */
.cuenta-atras {
  display: inline-block;
  margin-bottom: 24px;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(242, 242, 247, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 15px;
}

.boton {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 12px;
  background: var(--coral);
  color: #fffcff;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.boton:hover {
  background: var(--coral-soft);
  transform: translateY(-1px);
}

.pie-portada {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(255, 252, 255, 0.72);
}

/* --- Secciones -------------------------------------------------------- */

section {
  padding-block: clamp(40px, 7vw, 68px);
}

.centrado {
  text-align: center;
}

.centrado > p {
  max-width: 58ch;
  margin-inline: auto;
}

.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
  text-align: left;
}

.tarjeta {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.tarjeta h3 {
  margin-bottom: 8px;
}

.tarjeta p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 100px;
  background: var(--coral);
  color: #fffcff;
  font-family: var(--title-font);
  font-size: 15px;
}

.lista {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 32px;
  text-align: left;
}

.lista li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 100px;
  background: var(--coral);
}

.lista strong {
  color: var(--ink);
  font-weight: 400;
}

/* --- Capturas --------------------------------------------------------- */

.capturas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.capturas img {
  width: min(240px, 68vw);
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
}

/* --- Avisos ----------------------------------------------------------- */

.aviso {
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid var(--coral-soft);
  background: rgba(251, 108, 107, 0.08);
}

.aviso h2 {
  font-size: 22px;
}

.aviso p:last-child {
  margin-bottom: 0;
}

/* --- Página legal (privacidad) ---------------------------------------- */

.legal {
  width: min(720px, 100%);
  padding-block: clamp(32px, 6vw, 56px) clamp(40px, 7vw, 64px);
}

.legal h1 {
  font-size: clamp(30px, 5vw, 40px);
  margin-bottom: 8px;
}

.legal .fecha {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 24px;
  margin-top: 40px;
}

.legal h3 {
  font-size: 19px;
  color: var(--coral);
  margin-top: 28px;
  margin-bottom: 4px;
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.resumen {
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.resumen p:last-child {
  margin-bottom: 0;
}

/* --- Página de soporte ------------------------------------------------ */

.soporte {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.soporte p {
  font-size: clamp(20px, 3vw, 26px);
  max-width: 24ch;
  margin: 0;
}

/* --- Pie -------------------------------------------------------------- */

.pie {
  border-top: 1px solid var(--border);
  padding-block: 28px 40px;
  font-size: 15px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.pie a {
  color: var(--muted);
  text-decoration: none;
}

.pie a:hover {
  color: var(--coral);
}
