/* ==========================================================================
   Páginas "Tips" y "Sobre": mismo lenguaje visual que la landing
   (paleta azul de confianza, tarjetas limpias, modo oscuro por variables).
   ========================================================================== */

.pg {
  --lp-primary: #1d4ed8;
  --lp-primary-hover: #1e40af;
  --lp-navy: #0f2a5c;
  --lp-soft: #eaf1ff;
  --lp-accent: #f5b301;
  --lp-success: #15803d;
  --lp-ink: #0f172a;
  --lp-muted: #475569;
  --lp-line: #e2e8f0;
  --lp-surface: #ffffff;
  --lp-bg: #f6f8fc;
  --lp-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --lp-shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.06), 0 18px 40px rgba(15, 23, 42, 0.12);

  margin-top: 0;
  min-height: 60vh;
  color: var(--lp-ink);
  font-family: 'Alegreya Sans', 'Roboto', system-ui, sans-serif;
  background: var(--lp-bg);
  text-align: left;
}

body.active .pg {
  --lp-primary: #60a5fa;
  --lp-primary-hover: #93c5fd;
  --lp-navy: #dbeafe;
  --lp-soft: rgba(96, 165, 250, 0.12);
  --lp-success: #4ade80;
  --lp-ink: #f1f5f9;
  --lp-muted: #a7b4c8;
  --lp-line: rgba(148, 163, 184, 0.22);
  --lp-surface: #111c33;
  --lp-bg: #0b1220;
  --lp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --lp-shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.4);
}

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

.pg-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.pg-narrow {
  max-width: 880px;
}

/* ---------- Hero ---------- */
.pg-hero {
  padding: 130px 0 56px;
  text-align: center;
  background:
    radial-gradient(900px 360px at 85% -10%, rgba(29, 78, 216, 0.13), transparent 60%),
    linear-gradient(180deg, #f3f7ff 0%, var(--lp-bg) 100%);
}

body.active .pg-hero {
  background:
    radial-gradient(900px 360px at 85% -10%, rgba(96, 165, 250, 0.16), transparent 60%),
    linear-gradient(180deg, #0e1a33 0%, var(--lp-bg) 100%);
}

.pg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lp-soft);
  color: var(--lp-primary);
  font-size: 15px;
  font-weight: 700;
}

.pg-eyebrow-sm {
  padding: 3px 12px;
  font-size: 13px;
}

.pg-hero h1 {
  max-width: 760px;
  margin: 18px auto 12px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: none;
  color: var(--lp-navy);
}

.pg-lead {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--lp-muted);
}

/* ---------- Secciones y tarjetas ---------- */
.pg-section {
  padding: 8px 0 80px;
}

.pg-card {
  margin-bottom: 20px;
  padding: 28px 30px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  box-shadow: var(--lp-shadow);
}

.pg-card h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: normal;
  text-shadow: none;
  color: var(--lp-navy);
}

.pg-card p,
.pg-card li span {
  margin: 0 0 14px;
  font-size: 1.1rem;
  line-height: 1.65;
  letter-spacing: normal;
  text-align: left;
  color: var(--lp-muted);
}

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

.pg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.pg-grid-2 .pg-card {
  margin-bottom: 0;
}

.pg-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--lp-soft);
  color: var(--lp-primary);
  font-size: 1.4rem;
}

/* ---------- Tips ---------- */
.pg-tips {
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.pg-tip {
  display: flex;
  gap: 18px;
  padding: 24px 26px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  box-shadow: var(--lp-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-tip:hover {
  transform: translateY(-2px);
  border-color: var(--lp-primary);
  box-shadow: var(--lp-shadow-lg);
}

.pg-tip-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

body.active .pg-tip-num {
  color: #0b1220;
}

.pg-tip h2 {
  margin: 4px 0 8px;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: normal;
  text-shadow: none;
  color: var(--lp-navy);
}

.pg-tip p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
  letter-spacing: normal;
  text-align: left;
  color: var(--lp-muted);
}

/* ---------- Listas de funciones y libros (Sobre) ---------- */
.pg-features {
  display: grid;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}

.pg-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pg-features li > i {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lp-soft);
  color: var(--lp-primary);
  font-size: 1.25rem;
}

.pg-features strong {
  display: block;
  font-size: 1.1rem;
  color: var(--lp-navy);
}

.pg-features li span {
  display: block;
  margin: 2px 0 0;
}

.pg-books {
  display: grid;
  gap: 12px;
  margin: 6px 0 20px;
}

.pg-book {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--lp-line);
  border-radius: 14px;
  background: var(--lp-bg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pg-book:hover {
  border-color: var(--lp-primary);
  transform: translateY(-2px);
  box-shadow: var(--lp-shadow);
}

.pg-book > i:first-child {
  font-size: 1.6rem;
  color: var(--lp-primary);
}

.pg-book strong {
  display: block;
  font-size: 1.1rem;
  color: var(--lp-navy);
}

.pg-book div span {
  display: block;
  font-size: 0.98rem;
  color: var(--lp-muted);
}

.pg-book div strong span {
  display: inline;
}

.pg-book-go {
  margin-left: auto;
  color: var(--lp-primary);
  transition: transform 0.2s ease;
}

.pg-book:hover .pg-book-go {
  transform: translateX(4px);
}

.pg-new {
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdc21c, #f59e0b);
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---------- Creadora ---------- */
.pg-creator {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.pg-creator-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--lp-soft);
  box-shadow: 0 0 0 2px var(--lp-primary), var(--lp-shadow-lg);
}

.pg-creator h2 {
  margin: 8px 0 10px;
}

/* ---------- Botones y CTA ---------- */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pg-btn:focus-visible {
  outline: 3px solid var(--lp-accent);
  outline-offset: 3px;
}

.pg-btn-primary {
  background: var(--lp-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.28);
}

body.active .pg-btn-primary {
  color: #0b1220;
}

.pg-btn-primary:hover {
  background: var(--lp-primary-hover);
  transform: translateY(-2px);
}

.pg-btn-ghost {
  background: transparent;
  border-color: var(--lp-line);
  color: var(--lp-primary);
}

.pg-btn-ghost:hover {
  background: var(--lp-soft);
  border-color: var(--lp-primary);
}

.pg-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #0f2a5c 0%, #1d4ed8 100%);
  border-radius: 20px;
  box-shadow: var(--lp-shadow-lg);
}

body.active .pg-cta {
  background: linear-gradient(135deg, #14264d 0%, #1e3a8a 100%);
}

.pg-cta h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: normal;
  text-shadow: none;
  color: #fff;
}

.pg-cta p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
}

.pg-cta .pg-btn-primary {
  background: #fff;
  color: #0f2a5c;
  box-shadow: none;
}

.pg-cta .pg-btn-primary:hover {
  background: #eaf1ff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .pg-hero {
    padding-top: 150px;
  }
}

@media (max-width: 760px) {
  .pg-grid-2 {
    grid-template-columns: 1fr;
  }

  .pg-creator {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .pg-creator-photo {
    width: 200px;
    height: 200px;
  }

  .pg-creator p {
    text-align: left;
  }

  .pg-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .pg-cta p {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .pg-container {
    padding: 0 16px;
  }

  .pg-hero {
    padding: 130px 0 40px;
  }

  .pg-card {
    padding: 22px 18px;
  }

  .pg-tip {
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px;
  }

  .pg-book {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg * {
    transition: none !important;
  }
}

/* Modo oscuro: los estilos globales (títulos dorados) no deben pisar la paleta */
body.active .pg :is(h1, h2, h3) {
  color: var(--lp-navy);
  text-shadow: none;
}

body.active .pg .pg-cta :is(h2, p) {
  color: #fff;
}

body.active .pg .pg-new {
  color: #1a1a1a;
}

.pg-social-title {
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
}

.pg-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
