/* ============================================
   ANATEMAS — Landing Page CSS
   Design System: Cinzel + Jost, dark palette
   Mobile-first (390px base)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Jost:wght@300;400;500;600&display=swap');

/* ============================================
   TOKENS
   ============================================ */

:root {
  /* Backgrounds */
  --void:           #07030a;
  --base:           #100b0d;
  --surface:        #1a1013;
  --elevated:       #261619;
  --parchment-dark: #1e1510;

  /* Reds */
  --blood:   #7a1218;
  --primary: #be1e2d;
  --ember:   #e03535;
  --glow:    rgba(190, 30, 45, 0.12);

  /* Silver */
  --silver:     #c8c8d0;
  --silver-dim: #7a7a85;

  /* Gold (uso mínimo) */
  --gold:     #c9a84c;
  --gold-dim: #7a6530;

  /* Text */
  --text-primary:   #c8c8d0;
  --text-secondary: #9a9aaa;
  --text-tertiary:  #6a6a78;
  --text-disabled:  #3a3a48;
  --text-warm:      #f0ece6;

  /* Spacing (8pt system) */
  --xs:  4px;
  --sm:  8px;
  --md:  16px;
  --lg:  24px;
  --xl:  32px;
  --2xl: 48px;
  --3xl: 64px;
  --4xl: 96px;

  /* Typography */
  --font-title: 'Cinzel', serif;
  --font-body:  'Jost', sans-serif;

  /* Misc */
  --radius: 4px;
  --cta-height: 56px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
  background-color: var(--base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */

.display {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1.15;
  color: var(--text-warm);
}

h1, .h1 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.2;
  color: var(--text-warm);
}

h2, .h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(20px, 4.5vw, 28px);
  line-height: 1.2;
  color: var(--text-warm);
}

h3, .h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(17px, 3.5vw, 20px);
  line-height: 1.25;
  color: var(--text-warm);
}

.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.label--red  { color: var(--primary); }
.label--silver { color: var(--silver-dim); }

.body-large {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}

.body-emphasis {
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--lg);
}

.section {
  padding: var(--3xl) 0;
}

.section--surface {
  background-color: var(--surface);
}

.section--elevated {
  background-color: var(--elevated);
}

.section--void {
  background-color: var(--void);
}

/* ============================================
   SEPARADOR ORNAMENTAL
   ============================================ */

.separator {
  display: flex;
  align-items: center;
  gap: var(--md);
  margin: var(--lg) 0 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
}

.separator::before {
  background: linear-gradient(to right, transparent, var(--primary));
  opacity: 0.4;
}

.separator::after {
  background: linear-gradient(to left, transparent, var(--primary));
  opacity: 0.4;
}

.separator__symbol {
  color: var(--primary);
  font-size: 12px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--void);
}

/* La imagen ocupa el ancho completo — se ve completa, sin crop */
.hero__bg-img {
  width: 100%;
  display: block;
  filter: brightness(0.85) saturate(0.9);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 3, 10, 0.05) 0%,
    rgba(7, 3, 10, 0.15) 50%,
    rgba(7, 3, 10, 0.92) 82%,
    rgba(7, 3, 10, 1) 100%
  );
  z-index: 1;
}

/* Logo fijo arriba con 10px de margen */
.hero__logo {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 3;
  width: calc(100% - 20px);
  max-width: 370px;
  opacity: 0.95;
  display: block;
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--2xl) var(--lg) var(--3xl);
  text-align: center;
}

.hero__hook {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.2;
  color: var(--text-warm);
  margin-bottom: var(--md);
}

.hero__tagline {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--xl);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  padding: 0 var(--xl);
  height: 52px;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--text-warm);
  width: 100%;
}

.btn--primary:hover,
.btn--primary:active {
  background-color: var(--ember);
}

.btn--secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 100%;
}

.btn--secondary:hover {
  background: var(--glow);
}

/* ============================================
   FIXED CTA BAR (floating pill)
   ============================================ */

.cta-fixed {
  position: fixed;
  bottom: 16px;
  left: var(--lg);
  right: var(--lg);
  height: var(--cta-height);
  background-color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-warm);
  text-decoration: none;
  transition: background 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 24px rgba(190, 30, 45, 0.35);
}

.cta-fixed:hover,
.cta-fixed:active {
  background-color: var(--ember);
}

.cta-fixed.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--2xl);
}

.section-header .label {
  display: block;
  margin-bottom: var(--sm);
}

/* ============================================
   CHARACTER CARDS
   ============================================ */

.characters {
  display: flex;
  flex-direction: column;
  gap: var(--md);
}

.character-card {
  background-color: var(--surface);
  border: 1px solid rgba(190, 30, 45, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.character-card:hover {
  border-color: rgba(190, 30, 45, 0.45);
}

.character-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.88) saturate(0.9);
}

.character-card__body {
  padding: var(--lg) var(--md);
  display: flex;
  gap: var(--md);
  align-items: flex-start;
}

.character-card__accent {
  width: 3px;
  min-height: 36px;
  border-radius: 2px;
  background-color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.character-card__info {
  flex: 1;
}

.character-card__name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-warm);
  line-height: 1.1;
  margin-bottom: 4px;
}

.character-card__symbiont {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.8;
  margin-bottom: var(--sm);
}

.character-card__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   FANS / SOCIAL PROOF
   ============================================ */

.author-refs {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
  margin-top: var(--lg);
}

.author-ref {
  display: flex;
  align-items: center;
  gap: var(--sm);
  background: var(--elevated);
  border: 1px solid rgba(190, 30, 45, 0.12);
  border-radius: var(--radius);
  padding: var(--sm) var(--md);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
}

.author-ref__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
}

/* ============================================
   EDICIÓN LIMITADA
   ============================================ */

.edicion-limitada {
  background-color: var(--elevated);
  border: 1px solid rgba(190, 30, 45, 0.25);
  border-radius: var(--radius);
  padding: var(--xl) var(--lg);
  margin-top: var(--xl);
}

.tag-premium {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(200, 200, 208, 0.06);
  border: 1px solid rgba(200, 200, 208, 0.18);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: var(--md);
}

.copies-count {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--text-warm);
  margin-bottom: var(--sm);
}

.copies-label {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================
   MISTERIO / QUOTE
   ============================================ */

.quote-block {
  display: flex;
  gap: var(--md);
  align-items: flex-start;
  background: rgba(190, 30, 45, 0.06);
  border: 1px solid rgba(190, 30, 45, 0.2);
  border-radius: var(--radius);
  padding: var(--lg);
  margin: var(--xl) 0;
}

.quote-block__accent {
  width: 3px;
  min-height: 44px;
  border-radius: 2px;
  background-color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.quote-block__text {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-warm);
}

/* ============================================
   AUTOR
   ============================================ */

.autor-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(24px, 6vw, 32px);
  color: var(--text-warm);
  line-height: 1.15;
  margin-bottom: var(--lg);
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
  text-align: center;
  padding: var(--xl) var(--lg) var(--4xl);
  background-color: var(--void);
}

.cta-final__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(24px, 6vw, 32px);
  color: var(--text-warm);
  line-height: 1.2;
  margin-bottom: var(--xl);
}

.cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  margin-top: var(--md);
}

.cta-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.cta-link:hover {
  color: var(--silver);
}

.cta-link-divider {
  color: var(--text-disabled);
  font-size: 12px;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ============================================
   LIBRO / SINOPSIS
   ============================================ */

.libro-section {
  padding-top: var(--3xl);
  padding-bottom: 0;
}

.libro-display {
  margin-bottom: var(--xl);
}

.libro-img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius);
  filter: brightness(0.95) saturate(0.95);
}

.libro-texto {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ============================================
   AVISO DE PRIVACIDAD
   ============================================ */

.privacy-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(190, 30, 45, 0.14), transparent 34rem),
    var(--void);
}

.privacy-header {
  padding: var(--xl) 0 var(--2xl);
  border-bottom: 1px solid rgba(190, 30, 45, 0.2);
  text-align: center;
}

.privacy-logo {
  width: min(240px, 70vw);
  margin: 0 auto var(--lg);
  opacity: 0.9;
}

.privacy-back {
  display: inline-flex;
  margin-bottom: var(--xl);
  color: var(--silver-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.privacy-back:hover {
  color: var(--ember);
}

.privacy-title {
  margin: var(--sm) 0 var(--md);
}

.privacy-intro {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--silver);
  font-size: 17px;
}

.privacy-main {
  max-width: 760px;
  padding-top: var(--2xl);
  padding-bottom: var(--4xl);
}

.privacy-notice {
  margin-bottom: var(--2xl);
  padding: var(--lg);
  background: rgba(190, 30, 45, 0.08);
  border: 1px solid rgba(190, 30, 45, 0.35);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  color: var(--silver);
}

.privacy-section {
  padding: var(--xl) 0;
  border-bottom: 1px solid rgba(200, 200, 208, 0.1);
}

.privacy-section h2 {
  margin-bottom: var(--md);
  color: var(--text-warm);
}

.privacy-section p + p,
.privacy-section ul + p {
  margin-top: var(--md);
}

.privacy-section ul {
  display: grid;
  gap: var(--sm);
  margin: var(--md) 0 0 var(--lg);
}

.privacy-section li::marker {
  color: var(--primary);
}

.privacy-link {
  color: var(--text-warm);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
}

.privacy-link:hover {
  color: var(--ember);
}

.privacy-updated {
  margin-top: var(--2xl);
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
