/* =========================================================================
   Retrypay Design System — Tokens canónicos de DESIGN.md
   ========================================================================= */
:root {
  /* Paleta de marca */
  --color-brand-primary: #362EF9;
  --color-brand-accent:  #764AFB;
  --color-brand-highlight: #CFF8FE;
  --color-brand-dark:    #161A49;
  /* Escala de grises */
  --color-text-secondary: #686D74;
  --color-text-tertiary:  #ADB6B9;
  --color-border-subtle:  #D2D6D7;
  --color-surface:        #F4F6F6;
  /* Radios */
  --radius-pill:     9999px;
  --radius-card:     20px;
  --radius-squircle: 24px;
  /* Sombras */
  --shadow-whisper: 0 4px 24px rgba(22, 26, 73, 0.08);
}

/* Reset mínimo + base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 400;
  background: var(--color-surface);
  color: var(--color-brand-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a { color: var(--color-brand-primary); text-decoration: none; }
a:hover { opacity: 0.85; }

/* =========================================================================
   Gradientes (firma identitaria — mínimo uno por pantalla)
   ========================================================================= */
.gradient-aurora   { background: linear-gradient(135deg, #362EF9, #764AFB); }
.gradient-dawn     { background: linear-gradient(135deg, #CFF8FE, #764AFB); }
.gradient-midnight { background: linear-gradient(135deg, #764AFB, #161A49); }

.text-gradient-aurora {
  background: linear-gradient(135deg, #362EF9, #764AFB);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Orbes decorativos difuminados */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

/* =========================================================================
   Prose — tipografía larga (cuerpo Markdown renderizado)
   ========================================================================= */
.prose-retrypay { color: var(--color-text-secondary); font-size: 1rem; line-height: 1.7; }
.prose-retrypay h1,
.prose-retrypay h2,
.prose-retrypay h3,
.prose-retrypay h4 { color: var(--color-brand-dark); font-weight: 900; line-height: 1.2; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-retrypay h1 { font-size: 2.25rem; }
.prose-retrypay h2 { font-size: 1.75rem; }
.prose-retrypay h3 { font-size: 1.35rem; }
.prose-retrypay h4 { font-size: 1.1rem; }
.prose-retrypay p { margin: 0 0 1rem; }
.prose-retrypay a { color: var(--color-brand-primary); font-weight: 500; }
.prose-retrypay a:hover { text-decoration: underline; }
.prose-retrypay strong { color: var(--color-brand-dark); font-weight: 700; }
.prose-retrypay ul, .prose-retrypay ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.prose-retrypay li { margin-bottom: 0.35rem; }
.prose-retrypay blockquote {
  border-left: 3px solid var(--color-brand-primary);
  padding-left: 1rem;
  font-style: italic;
  color: var(--color-text-secondary);
  margin: 1.5rem 0;
}
.prose-retrypay code {
  background: rgba(54, 46, 249, 0.08);
  color: var(--color-brand-primary);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}
.prose-retrypay hr { border: 0; border-top: 1px solid var(--color-border-subtle); margin: 2rem 0; }
.prose-retrypay table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose-retrypay th, .prose-retrypay td { border: 1px solid var(--color-border-subtle); padding: 0.6rem 0.9rem; text-align: left; }
.prose-retrypay th { background: var(--color-surface); color: var(--color-brand-dark); font-weight: 700; }

/* =========================================================================
   Disclaimer box (traducciones de cortesía en /en/legal)
   ========================================================================= */
.disclaimer-translation {
  background: #fff8d6;
  border: 1px solid #e6c700;
  color: #5c4b00;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  margin: 1.5rem auto;
  max-width: 48rem;
  font-size: 0.9rem;
}

/* =========================================================================
   Accessibility helpers
   ========================================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* =========================================================================
   Scrollbar sutil
   ========================================================================= */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--color-border-subtle); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-tertiary); }
