/* Almaris – Finding Souls · paleta Noche dorada (la de la app, lib/core/tema/paletas.dart).
   Sin recursos externos: la tipografía es la de la app (TeX Gyre Pagella, licencia GUST) y se sirve desde aquí. */

@font-face {
  font-family: "Pagella";
  src: url("/fuentes/texgyrepagella-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pagella";
  src: url("/fuentes/texgyrepagella-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --arriba: #3a2477;
  --medio: #150d2e;
  --abajo: #0b0719;
  --tarjeta: #241a47;
  --tarjeta2: #160f2e;
  --linea: #ffffff1a;
  --texto: #ece8f8;
  --texto2: #d9d2f2;
  --suave: #a99fc9;
  --oro: #f2c46d;
  --oro-claro: #ffe9b8;
  --crema: #f5e6c4;
  --violeta: #9b7bff;
  --lila: #c9b8ff;
  --verde: #5ad6a3;
  --sobre-oro: #1a1033;
  --serif: "Pagella", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ancho: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.65 var(--sans);
  color: var(--texto);
  background: var(--abajo);
  isolation: isolate;
  overflow-x: hidden;
}

/* Cielo: degradado de la app y un puñado de estrellas que titilan despacio. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background: radial-gradient(130% 80% at 50% -15%, var(--arriba) 0, var(--medio) 52%, var(--abajo) 100%);
}
body::after {
  z-index: -1;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 14%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 19% 38%, #ffe9b8 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 27% 9%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 34% 62%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 44% 22%, #c9b8ff 50%, transparent 52%),
    radial-gradient(1px 1px at 52% 81%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 61% 12%, #ffe9b8 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 68% 47%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 77% 28%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 84% 71%, #c9b8ff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 91% 8%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 95% 54%, #ffe9b8 50%, transparent 52%),
    radial-gradient(1px 1px at 4% 72%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 14% 90%, #c9b8ff 50%, transparent 52%),
    radial-gradient(1px 1px at 39% 95%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 73% 92%, #fff 50%, transparent 52%);
  opacity: .55;
  animation: titilar 9s ease-in-out infinite alternate;
}
@keyframes titilar { to { opacity: .9; } }

a { color: var(--oro); text-underline-offset: .18em; }
a:hover { color: var(--oro-claro); }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }

.saltar {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: .5rem 1rem;
  border-radius: 99px;
  background: var(--oro);
  color: var(--sobre-oro);
  font-weight: 600;
  text-decoration: none;
}
.saltar:focus { top: 1rem; }

/* Cabecera */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0b0719b8;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.cabecera .dentro {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: .65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.marca {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .6rem;
  color: var(--oro);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}
.marca:hover { color: var(--oro-claro); }
.marca img { width: 32px; height: 32px; border-radius: 8px; }
.cabecera nav { margin-left: auto; display: flex; gap: .2rem; }
.cabecera nav a {
  color: var(--suave);
  text-decoration: none;
  font-size: .92rem;
  padding: .35rem .8rem;
  border-radius: 99px;
  transition: color .2s, background .2s;
}
.cabecera nav a:hover,
.cabecera nav a[aria-current="page"] { color: var(--texto); background: #ffffff0f; }
@media (max-width: 600px) {
  .cabecera nav .solo-ancho { display: none; }
}

/* Portada */
.portada {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem clamp(3.5rem, 9vw, 6rem);
  text-align: center;
}
.emblema {
  display: block;
  width: clamp(170px, 32vw, 250px);
  height: auto;
  margin: 0 auto 1.4rem;
  overflow: visible;
  filter: drop-shadow(0 0 26px #9b7bff59);
}
.emblema .estrella {
  transform-box: fill-box;
  transform-origin: center;
  animation: latir 5s ease-in-out infinite;
}
@keyframes latir { 50% { transform: scale(1.1); opacity: .85; } }
.antetitulo {
  margin: 0 0 .7rem;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--suave);
}
.titulo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 6.4rem);
  line-height: 1;
  background: linear-gradient(90deg, var(--oro), var(--oro-claro) 48%, var(--violeta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitulo {
  margin: .4rem 0 1.6rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  letter-spacing: .08em;
  color: var(--oro-claro);
  opacity: .85;
}
.portada .entrada {
  max-width: 34ch;
  margin: 0 auto .9rem;
  font-size: clamp(1.08rem, 2.4vw, 1.25rem);
  color: var(--texto2);
}
.lema {
  margin: 0 auto 2.1rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  color: var(--oro);
}
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.boton {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.45rem;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.boton.principal {
  background: linear-gradient(90deg, var(--oro), #ffd98f);
  color: var(--sobre-oro);
  box-shadow: 0 10px 30px #f2c46d33;
}
.boton.principal:hover { color: var(--sobre-oro); transform: translateY(-1px); box-shadow: 0 14px 36px #f2c46d55; }
.boton.secundario { border: 1px solid #f2c46d80; color: var(--oro); }
.boton.secundario:hover { background: #f2c46d14; }
.datos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 2.2rem 0 0;
  padding: 0;
}
.datos li {
  padding: .3rem .85rem;
  border: 1px solid var(--linea);
  border-radius: 99px;
  background: #ffffff08;
  font-size: .84rem;
  color: var(--suave);
}
.datos b { color: var(--texto); font-weight: 600; }

.aparecer { animation: aparecer .9s ease both; }
.aparecer.d1 { animation-delay: .12s; }
.aparecer.d2 { animation-delay: .24s; }
.aparecer.d3 { animation-delay: .36s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } }

/* Secciones */
.seccion {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
  border-top: 1px solid var(--linea);
  scroll-margin-top: 3.5rem;
}
.etiqueta {
  margin: 0 0 .45rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oro);
}
.seccion h2 {
  max-width: 24ch;
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.95rem, 4.4vw, 2.8rem);
  line-height: 1.12;
}
.seccion .entrada { max-width: 62ch; margin: 0 0 2.2rem; font-size: 1.1rem; color: var(--texto2); }
.seccion p { max-width: 68ch; }

.cita {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.4rem;
  border-left: 3px solid var(--oro);
  border-radius: 0 16px 16px 0;
  background: #f2c46d12;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  line-height: 1.5;
  text-align: left;
}
.cita b { color: var(--oro); }

.contrastes { display: grid; gap: 1rem; }
.contraste { display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; }
.contraste > div { padding: 1.1rem 1.3rem; border: 1px solid var(--linea); border-radius: 18px; }
.contraste .hoy { background: #ffffff05; color: var(--suave); }
.contraste .nuestro { background: linear-gradient(160deg, #2a1d55, #1a1233); border-color: #f2c46d59; }
.contraste h3 { margin: .3rem 0 .35rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.contraste .hoy h3 { color: #cfc8e6; }
.contraste p { margin: 0; font-size: .96rem; line-height: 1.5; }
.contraste .nuestro p { color: var(--texto2); }
.etq { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nuestro .etq { color: var(--oro); }
.contraste .flecha { display: grid; place-items: center; padding: 0; border: 0; color: var(--oro); font-size: 1.4rem; }
@media (max-width: 680px) {
  .contraste { grid-template-columns: 1fr; gap: .4rem; }
  .contraste .flecha { transform: rotate(90deg); }
}
.frase {
  max-width: 30ch;
  margin: 3.2rem auto 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.35;
  text-align: center;
  color: var(--crema);
}

.orbitas { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.orbitas svg { display: block; width: 100%; height: auto; overflow: visible; }
.orbitas text { font-family: var(--sans); }
.giro { transform-box: view-box; transform-origin: 170px 170px; animation: orbitar 70s linear infinite; }
.giro.lento { animation-duration: 150s; animation-direction: reverse; }
.giro.medio { animation-duration: 95s; }
.giro.rapido { animation-duration: 55s; }
@keyframes orbitar { to { transform: rotate(360deg); } }
.etapas { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.etapas li { padding: 1rem 1.2rem; border: 1px solid var(--linea); border-radius: 16px; background: linear-gradient(160deg, #ffffff0b, #ffffff03); }
.etapas h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; margin: 0 0 .3rem; font-family: var(--serif); font-size: 1.22rem; }
.etapas p { margin: 0; font-size: .96rem; color: #cfc8e6; }
.estado { padding: .12rem .6rem; border-radius: 99px; font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.estado.app { color: var(--verde); background: #5ad6a31a; }
.estado.vision { color: var(--lila); background: #9b7bff1f; }
@media (max-width: 780px) {
  .orbitas { grid-template-columns: 1fr; }
  .orbitas svg { max-width: 300px; margin: 0 auto; }
}

.rasgos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1rem; }
.rasgo { padding: 1.35rem 1.3rem; border: 1px solid var(--linea); border-radius: 18px; background: linear-gradient(160deg, var(--tarjeta), var(--tarjeta2)); }
.rasgo .glifo { display: block; margin-bottom: .7rem; font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--oro); }
.rasgo h3 { margin: 0 0 .35rem; font-family: var(--serif); font-size: 1.22rem; }
.rasgo p { margin: 0; font-size: .96rem; color: #cfc8e6; }

.compromisos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; counter-reset: c; }
.compromisos li {
  position: relative;
  padding: 1rem 1.1rem 1rem 3.4rem;
  border: 1px solid var(--linea);
  border-radius: 16px;
  background: #ffffff07;
  font-size: .96rem;
  line-height: 1.5;
  color: #cfc8e6;
  counter-increment: c;
}
.compromisos li::before { content: counter(c); position: absolute; left: 1.15rem; top: .7rem; font-family: var(--serif); font-size: 1.85rem; line-height: 1; color: var(--oro); }
.compromisos b { display: block; margin-bottom: .15rem; color: var(--texto); }

.llamada {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid #f2c46d4d;
  border-radius: 24px;
  background: linear-gradient(160deg, #2a1d55, #160f2e);
  box-shadow: 0 30px 80px #0009;
  text-align: center;
}
.llamada h2 { margin-left: auto; margin-right: auto; }
.llamada p { margin-left: auto; margin-right: auto; color: var(--texto2); }
.letra-pequena { margin: 1.3rem auto 0; font-size: .84rem; color: var(--suave) !important; }
.opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; margin-top: 1.6rem; }
.opcion { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.3rem 1.2rem; border: 1px solid var(--linea); border-radius: 18px; background: #ffffff08; }
.opcion h3 { margin: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--oro); }
.opcion p { flex: 1; margin: .2rem 0 1rem; font-size: .95rem; }

/* Pie */
.pie { padding: 2.6rem 1.25rem 3rem; border-top: 1px solid var(--linea); text-align: center; font-size: .9rem; color: var(--suave); }
.pie .marca { font-size: 1.15rem; }
.pie nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.3rem; margin: .9rem 0; }
.pie nav a { color: var(--suave); }
.pie nav a:hover { color: var(--oro); }
.pie p { margin: .2rem 0; }

/* Documentos: privacidad y borrado de cuenta */
.documento { max-width: 760px; margin: 0 auto; padding: clamp(2.2rem, 6vw, 4rem) 1.25rem 4.5rem; }
.documento h1 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--oro), var(--oro-claro) 60%, var(--violeta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.documento .fecha { margin: 0 0 2rem; font-size: .92rem; color: var(--suave); }
.documento h2 { margin: 2.5rem 0 .6rem; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; color: var(--oro); scroll-margin-top: 5rem; }
.documento p, .documento li { color: var(--texto2); }
.documento ul { padding-left: 1.2rem; }
.documento li { margin: .45rem 0; }
.documento li::marker { color: var(--oro); }
.documento strong { color: var(--texto); }
.recuadro { margin: 1.4rem 0; padding: 1rem 1.25rem; border: 1px solid var(--linea); border-radius: 16px; background: linear-gradient(160deg, #ffffff0b, #ffffff03); }
.recuadro.oro { border-left: 3px solid var(--oro); border-radius: 0 16px 16px 0; background: #f2c46d12; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; }
.recuadro.oro p { color: var(--crema); margin: 0; }
.recuadro.aviso { border-color: #9b7bff59; background: #9b7bff14; }
.recuadro.aviso p { margin: 0; }

/* Página no encontrada */
.perdida { min-height: 72vh; display: grid; place-items: center; padding: 3rem 1.25rem; text-align: center; }
.perdida .emblema { width: 150px; }
.perdida h1 { margin: 0 0 .6rem; font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.8rem); color: var(--oro); }
.perdida p { margin: 0 auto 1.8rem; max-width: 36ch; color: var(--texto2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
