/* =========================================================
   MoonWater AI · Páginas de contenido
   Misma paleta que el chat, sin dependencias externas.
   ========================================================= */

:root {
  color-scheme: dark;

  --night-950: #040e1c;
  --night-900: #071426;
  --night-800: #0a1931;
  --night-700: #102846;
  --teal: #4fd1c5;
  --teal-bright: #82e8dc;
  --cream: #f6e8c1;
  --cream-bright: #fff9e8;
  --text: #eaf3ee;
  --muted: #9fb9b7;
  --line: rgba(79, 209, 197, 0.18);
  --line-warm: rgba(246, 232, 193, 0.14);

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(79, 209, 197, 0.12), transparent 58%),
    radial-gradient(ellipse 55% 48% at 94% 100%, rgba(246, 232, 193, 0.07), transparent 62%),
    linear-gradient(145deg, #071628 0%, #08172b 46%, #040e1c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 16% 18%, rgba(246, 232, 193, 0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.6px),
    radial-gradient(circle at 88% 58%, rgba(79, 209, 197, 0.55) 0 1px, transparent 1.8px),
    radial-gradient(circle at 34% 82%, rgba(246, 232, 193, 0.45) 0 1px, transparent 1.6px);
  background-size: 310px 310px, 270px 270px, 360px 360px, 420px 420px;
}

::selection {
  background: rgba(79, 209, 197, 0.34);
  color: var(--cream-bright);
}

a {
  color: var(--teal-bright);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cream-bright);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(246, 232, 193, 0.27);
  border-radius: 50%;
  background: linear-gradient(145deg, #173e56 0%, #0a223a 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 14%;
  left: 17%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset -7px -3px 0 1px rgba(11, 38, 59, 0.9);
  transform: rotate(-15deg);
}

.brand-name {
  display: block;
  color: var(--cream-bright);
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.78rem;
}

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

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--cream-bright);
}

.card {
  overflow: hidden;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(79, 209, 197, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% -8%, rgba(79, 209, 197, 0.14), transparent 38%),
    linear-gradient(165deg, rgba(15, 39, 68, 0.97) 0%, rgba(10, 25, 49, 0.99) 55%, rgba(6, 20, 38, 1) 100%);
  box-shadow: 0 32px 90px -34px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(246, 232, 193, 0.04);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--cream-bright);
  font-family: var(--font-display);
  font-weight: 500;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.1em 0 0.55em;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  line-height: 1.2;
}

h3 {
  margin: 1.5em 0 0.4em;
  font-size: 1.12rem;
}

.lead {
  max-width: 62ch;
  margin: 20px 0 0;
  color: #c8dcd7;
  font-size: 1.03rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(79, 209, 197, 0.28);
  border-radius: 999px;
  color: var(--cream-bright);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  background: rgba(79, 209, 197, 0.08);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.button:hover {
  border-color: rgba(79, 209, 197, 0.6);
  background: rgba(79, 209, 197, 0.15);
  transform: translateY(-1px);
}

.button--primary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #04242b;
  background: linear-gradient(135deg, #86ece1 0%, #4fd1c5 100%);
}

.button--primary:hover {
  color: #032027;
  background: linear-gradient(135deg, #a0f3e9 0%, #5edbd0 100%);
}

.prose {
  max-width: 68ch;
  margin-top: 22px;
  color: #d7e6e1;
  font-size: 0.95rem;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  margin: 0.5em 0 1.1em;
  padding-left: 1.3em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--teal);
}

.prose strong {
  color: var(--cream-bright);
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose blockquote {
  margin: 1.2em 0;
  padding: 0.6em 0 0.6em 1em;
  border-left: 2px solid rgba(79, 209, 197, 0.5);
  color: #cfe3dd;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.feature {
  padding: 16px 17px;
  border: 1px solid rgba(79, 209, 197, 0.16);
  border-radius: 14px;
  background: rgba(79, 209, 197, 0.045);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line-warm);
  border-radius: 12px;
  color: #d9e6e1;
  font-size: 0.84rem;
  line-height: 1.6;
  background: rgba(246, 232, 193, 0.045);
}

.note strong {
  color: var(--cream);
}

.faq {
  margin-top: 12px;
}

.faq details {
  border-bottom: 1px solid rgba(79, 209, 197, 0.12);
}

.faq summary {
  padding: 13px 0;
  color: var(--cream-bright);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.faq summary::marker {
  color: var(--teal);
}

.faq details p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding: 0 4px;
  color: rgba(159, 185, 183, 0.65);
  font-size: 0.7rem;
  line-height: 1.5;
}

.footer a {
  color: rgba(130, 232, 220, 0.82);
  text-decoration: none;
}

.footer a:hover {
  color: var(--cream-bright);
  text-decoration: underline;
}

.updated {
  color: rgba(159, 185, 183, 0.62);
  font-size: 0.72rem;
}

@media (max-width: 560px) {
  body {
    padding: 14px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
    gap: 8px 14px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .lead {
    font-size: 0.96rem;
  }

  .prose {
    font-size: 0.91rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
