/* =====================================
 AHORA PROMPTEALO — ESTILO EDITORIAL
 Cabecera, hero, aprendizaje, compras,
 autor, FAQ y pie de página integrados.
 Cargar después de styles.css
===================================== */

.author-home {
  --author-paper: #faf8f3;
  --author-paper-alt: #f3efe6;
  --author-white: #ffffff;
  --author-ink: #252824;
  --author-ink-soft: #383d36;
  --author-muted: #53594e;
  --author-green: #9440dd;
  --author-green-dark: #7027b3;
  --author-sage: #ede2f6;
  --author-sage-light: #f5eefb;
  --author-gold: #9440dd;
  --author-line: #dcddd4;
  --author-card-border: #e2e4dc;

  /* Sobrescribir variables de styles.css en cascada */
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f5f2e9;
  --text: #252824;
  --muted: #53594e;
  --gold: #9440dd;
  --gold-light: #ab60eb;
  --line: #dcddd4;

  background: var(--author-paper) !important;
  color: var(--author-ink) !important;
  line-height: 1.65;
}

.author-home [hidden] {
  display: none !important;
}

.author-home.modal-open {
  overflow: hidden;
}

html {
  scroll-padding-top: 88px !important;
}

.author-home section[id] {
  scroll-margin-top: 88px !important;
}

.author-home :focus-visible {
  outline: 3px solid var(--author-green);
  outline-offset: 5px;
}

/* Tipografía y jerarquía en modo claro */
.author-home h1,
.author-home h2,
.author-home h3 {
  color: var(--author-ink);
}

.author-home p {
  color: var(--author-ink-soft);
}

.author-home .muted,
.author-home p.tiny.muted {
  color: var(--author-muted) !important;
}

.author-home .eyebrow {
  color: var(--author-green) !important;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Compatibilidad JS: reveal siempre visible */
.author-home .reveal,
.author-home .reveal.show,
.author-home .reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Skip link accesible */
.author-home .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--author-green);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-180%);
}

.author-home .skip-link:focus {
  transform: translateY(0);
}

/* =====================================
 CABECERA
===================================== */
.author-home .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 243, 0.97) !important;
  border-bottom: 1px solid var(--author-line) !important;
  backdrop-filter: blur(8px);
}

.author-home .nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 88px;
}

.author-home .site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-family: Outfit, sans-serif;
  text-decoration: none;
}

.author-home .site-header .brand img.site-logo {
  display: block;
  width: 44px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.author-home .site-header .brand-wordmark {
  display: inline-block;
  color: var(--author-ink);
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.author-home .site-header .brand-wordmark strong {
  display: inline;
  font-size: inherit;
  font-weight: 600;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.author-home .site-header .brand .gold {
  color: var(--author-green);
}

/* Colores individuales por letra para Promptealo (igual a la tapa del libro) */
.promptealo-colored {
  display: inline;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.promptealo-colored > span:nth-child(1) {
  color: #9440dd !important;
} /* P */
.promptealo-colored > span:nth-child(2) {
  color: #ff1fa9 !important;
} /* r */
.promptealo-colored > span:nth-child(3) {
  color: #ff751f !important;
} /* o */
.promptealo-colored > span:nth-child(4) {
  color: #1fff93 !important;
} /* m */
.promptealo-colored > span:nth-child(5) {
  color: #9440dd !important;
} /* p */
.promptealo-colored > span:nth-child(6) {
  color: #ff1fa9 !important;
} /* t */
.promptealo-colored > span:nth-child(7) {
  color: #9440dd !important;
} /* e */
.promptealo-colored > span:nth-child(8) {
  color: #ff1fa9 !important;
} /* a */
.promptealo-colored > span:nth-child(9) {
  color: #1fff93 !important;
} /* l */
.promptealo-colored > span:nth-child(10) {
  color: #ff751f !important;
} /* o */
.promptealo-colored > span.gold,
.promptealo-colored > span.dot {
  color: #9440dd !important;
}

.author-home .main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.author-home .main-nav > a {
  color: var(--author-muted);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.author-home .main-nav > a:hover {
  color: var(--author-green);
}

.author-home .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-home .menu-toggle,
.author-home button.menu-toggle,
.author-home .mobile-ctas {
  display: none !important;
}

/* =====================================
 BOTONES
===================================== */
.author-home .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font:
    600 0.86rem/1.4 Inter,
    sans-serif;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.author-home .button-gold,
.dialog-content .button-gold,
.button-gold {
  background: #9440dd !important;
  border-color: #9440dd !important;
  color: #ffffff !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.author-home .button-gold:hover,
.dialog-content .button-gold:hover,
.button-gold:hover {
  background: #7027b3 !important;
  border-color: #7027b3 !important;
  transform: translateY(-2px);
}

.author-home .button-gold:disabled,
.dialog-content .button-gold:disabled,
.button-gold:disabled {
  background: #9440dd !important;
  border-color: #9440dd !important;
  color: #ffffff !important;
  opacity: 0.9 !important;
  cursor: wait;
}

.author-home .button-ghost {
  background: transparent !important;
  border-color: #b5beae !important;
  color: var(--author-green) !important;
}

.author-home .button-ghost:hover {
  background: var(--author-sage) !important;
  border-color: var(--author-green) !important;
  transform: translateY(-2px);
}

.author-home .button-small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.78rem;
}

.author-home .button:disabled {
  opacity: 1;
  cursor: wait;
}

.author-home .reader-link,
.reader-link {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--author-green) !important;
  font:
    600 0.78rem/1.5 Inter,
    sans-serif;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.author-home .reader-link:hover,
.reader-link:hover {
  color: var(--author-green-dark) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.author-home .button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.author-home .full-width {
  width: 100%;
}

/* =====================================
 HERO EDITORIAL
===================================== */
.author-home .hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 80px;
  background: var(--author-paper) !important;
}

.author-home .hero::before,
.author-home .hero::after,
.author-home .hero-grid-lines,
.author-home .hero .orbit,
.author-home .hero .floating-note,
.author-home .hero .book-reflection {
  display: none !important;
}

.author-home .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 60px;
}

.author-home .hero-copy {
  min-width: 0;
}

.author-home .hero-copy .eyebrow {
  margin: 0 0 20px;
  color: var(--author-green) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.author-home .hero h1 {
  margin: 0 0 22px;
  color: var(--author-ink) !important;
  font-family: Outfit, sans-serif;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.author-home .hero .text-gradient,
.author-home .text-gradient {
  color: #9440dd !important;
  background: linear-gradient(
    135deg,
    #9440dd 0%,
    #ff1fa9 35%,
    #ff751f 70%,
    #1fff93 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.author-home .hero .hero-subtitle {
  margin: 0 0 16px;
  color: var(--author-ink) !important;
  font-family: Outfit, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.4;
}

.author-home .hero .lead {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--author-muted) !important;
  font-size: 1.02rem;
  line-height: 1.8;
}

.author-home .hero .lead strong {
  color: var(--author-ink);
  font-weight: 600;
}

.author-home .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 25px;
  color: var(--author-muted) !important;
  font-size: 0.8rem;
  font-weight: 500;
}

.author-home .hero-facts span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--author-green);
  font-weight: 700;
}

/* Mockup de dispositivos en Hero */
.author-home .hero-art-real {
  min-height: 0;
  width: 100%;
  text-align: center;
}

.author-home .hero .edition-badge {
  margin: 0 0 20px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--author-green) !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.author-home .hero .edition-badge span {
  display: block;
  margin-top: 4px;
  color: var(--author-muted) !important;
  font-size: 0.72rem;
  font-weight: 400;
}

.author-home .hero-product {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.author-home .hero-product img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.author-home .hero .product-caption {
  margin: 20px 0 0;
  color: var(--author-muted) !important;
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

/* =====================================
 BANDA TECNOLÓGICA
===================================== */
.author-home .tech-band {
  background: #f4f0e6 !important;
  border-block: 1px solid var(--author-line) !important;
  padding: 36px 0 28px;
}

.author-home .tech-band .eyebrow {
  color: var(--author-green) !important;
  font-size: 0.68rem;
}

.author-home .tech-list span {
  color: var(--author-ink) !important;
  font-family: Outfit, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.author-home .tech-band .tiny.muted {
  color: var(--author-muted) !important;
  margin-top: 16px;
}

/* =====================================
 SECCIÓN QUÉ APRENDERÁS (#aprenderas)
===================================== */
.author-home #aprenderas {
  background: var(--author-paper) !important;
}

.author-home .section-heading h2 {
  color: var(--author-ink) !important;
}

.author-home .section-heading h2 span.muted {
  color: var(--author-green) !important;
  opacity: 0.85;
}

.author-home .section-heading > p:last-child {
  color: var(--author-muted) !important;
  font-size: 1.05rem;
}

.author-home .learning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.author-home .feature-card {
  padding: 30px 24px;
  border: 1px solid var(--author-card-border) !important;
  border-radius: 16px;
  background: var(--author-white) !important;
  box-shadow: 0 4px 18px rgba(37, 40, 36, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.author-home .feature-card:hover {
  transform: translateY(-4px);
  border-color: #d1beeb !important;
  box-shadow: 0 10px 28px rgba(37, 40, 36, 0.08);
}

.author-home .card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--author-green) !important;
  letter-spacing: 0.08em;
}

.author-home .feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--author-sage);
  background: var(--author-sage-light);
  border-radius: 10px;
  color: var(--author-green) !important;
  font-size: 1.3rem;
}

.author-home .feature-card h3 {
  color: var(--author-ink) !important;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.author-home .feature-card p {
  font-size: 0.88rem;
  color: var(--author-muted) !important;
  line-height: 1.65;
}

.author-home .card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--author-green) !important;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--author-line) !important;
}

/* Manifiesto / Cita de Productividad (5x) */
.author-home .manifesto {
  background: #22152e !important;
  border: 1px solid #190e24 !important;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(41, 22, 59, 0.25);
  color: #faf8f3 !important;
}

.author-home .manifesto blockquote {
  color: #faf8f3 !important;
  font-size: 1.45rem;
  line-height: 1.5;
}

.author-home .manifesto .tiny {
  color: #dfd1ee !important;
}

.author-home .productivity {
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.author-home .productivity > span {
  color: #ff751f !important;
  font-weight: 700;
}

.author-home .productivity strong {
  background: linear-gradient(
    135deg,
    #9440dd 0%,
    #ff1fa9 35%,
    #ff751f 70%,
    #1fff93 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 5.2rem;
}

.author-home .productivity p {
  color: #faf8f3 !important;
}

.author-home .productivity small {
  color: #dfd1ee !important;
}

/* =====================================
 SECCIÓN DE COMPRA (#comprar)
 Neutralización total de fondo oscuro
===================================== */
.author-home .purchase-section {
  background: var(--author-paper-alt) !important;
  border-block: 1px solid var(--author-line) !important;
  padding-block: 90px;
}

.author-home .purchase-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 75px;
  align-items: center;
}

.author-home .catalog-art-real {
  min-width: 0;
  text-align: center;
}

.author-home .catalog-art-real .eyebrow {
  color: var(--author-green) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.author-home .catalog-book-stage {
  position: relative;
  width: min(100%, 390px);
  margin: 25px auto;
  perspective: 1500px;
}

.author-home .catalog-book-3d {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-7deg) rotateZ(-1.5deg);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.author-home .catalog-book-3d:hover {
  transform: rotateY(-7deg) rotateZ(-1.5deg);
}

.author-home .catalog-book-cover {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 16px 40px rgba(35, 42, 30, 0.2) !important;
}

.author-home .catalog-book-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0 !important;
}

/* Efecto de pliegue y brillo en el lomo eliminado para bordes 100% rectos y planos */
.author-home .catalog-book-cover::after {
  display: none !important;
}

/* Sombra proyectada difusa en el suelo */
.author-home .catalog-book-shadow {
  position: absolute;
  bottom: -18px;
  left: 5%;
  width: 92%;
  height: 26px;
  background: radial-gradient(
    ellipse at 45% 50%,
    rgba(35, 42, 30, 0.28) 0%,
    transparent 70%
  );
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

.author-home .catalog-art-real .catalog-caption {
  color: var(--author-muted) !important;
  font-family: Outfit, sans-serif;
  font-size: 1.12rem;
  line-height: 1.5;
}

.author-home .purchase-copy h2 {
  color: var(--author-ink) !important;
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 8px;
}

.author-home .editorial-subtitle {
  color: var(--author-green) !important;
  font-family: Outfit, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.author-home .author-byline {
  color: var(--author-muted) !important;
  font-size: 0.8rem;
  margin-bottom: 24px;
}

.author-home
  .purchase-copy
  > p:not(.eyebrow):not(.editorial-subtitle):not(.author-byline) {
  color: var(--author-ink-soft) !important;
  font-size: 0.92rem;
  line-height: 1.75;
}

.author-home .book-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-block: 20px;
  margin-block: 24px;
  border-block: 1px solid var(--author-line) !important;
  gap: 15px 22px;
  font-size: 0.82rem;
}

.author-home .book-specs dt {
  color: var(--author-muted) !important;
  font-size: 0.72rem;
  font-weight: 600;
}

.author-home .book-specs dd {
  color: var(--author-ink) !important;
  font-weight: 500;
  margin: 3px 0 0;
}

/* =====================================
 TIENDA AMAZON & BOTONES DE FORMATO
===================================== */
.author-home .store-block {
  margin-top: 24px;
  padding: 22px;
  background: var(--author-white) !important;
  border: 1px solid #d4c2eb !important;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(37, 40, 36, 0.04);
}

.author-home .store-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--author-line);
}

.author-home .amazon-store-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.author-home .store-title {
  color: var(--author-ink) !important;
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0;
}

.author-home .store-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 580px) {
  .author-home .store-buttons-row {
    grid-template-columns: 1fr;
  }
}

.author-home .store-btn-card {
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #faf7fc !important;
  border: 1.5px solid #d4c2eb !important;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.author-home .store-btn-card:hover {
  border-color: var(--author-green) !important;
  background: #f3ebfa !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(148, 64, 221, 0.18);
}

.author-home .store-btn-card .format-symbol {
  font-size: 1.3rem;
  color: var(--author-green) !important;
}

.author-home .store-btn-text strong {
  display: block;
  color: var(--author-green) !important;
  font-size: 0.95rem;
  line-height: 1.2;
}

.author-home .store-btn-text small {
  display: block;
  color: var(--author-muted) !important;
  font-size: 0.75rem;
  margin-top: 2px;
}

.author-home .store-btn-card .arrow-icon {
  color: var(--author-green) !important;
  font-size: 0.9rem;
  font-weight: 700;
}

/* =====================================
 DIÁLOGO DE TIENDA AMAZON REGIONAL
===================================== */
#amazon-dialog,
#amazon-dialog[open],
dialog#amazon-dialog,
dialog#amazon-dialog[open],
dialog#amazon-dialog:modal,
body.author-home dialog#amazon-dialog:modal {
  width: min(530px, calc(100% - 32px)) !important;
  max-width: 530px !important;
  margin: auto !important;
  background: #ffffff !important;
  color: var(--author-ink) !important;
  border: 1px solid var(--author-line) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#amazon-dialog::backdrop {
  background: rgba(18, 12, 26, 0.65);
  backdrop-filter: blur(4px);
}

#amazon-dialog .amazon-dialog-content,
body.author-home #amazon-dialog .dialog-content {
  position: relative !important;
  padding: 20px 22px 36px 22px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.amazon-dialog-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--author-line);
}

.amazon-dialog-logo {
  height: 30px;
  width: auto;
}

.amazon-dialog-header h2 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--author-ink) !important;
}

.amazon-dialog-header p {
  font-size: 0.84rem;
  margin: 2px 0 0;
  color: var(--author-muted) !important;
}

.amazon-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.amazon-store-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #faf8fd;
  border: 1px solid #e2d7f3;
  border-radius: 10px;
  text-decoration: none;
  color: var(--author-ink) !important;
  font-size: 0.84rem;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.amazon-store-item:hover {
  border-color: var(--author-green) !important;
  background: #f1e6fb;
  transform: translateY(-1px);
}

.amazon-store-item .flag {
  font-size: 1.25rem;
  line-height: 1;
}

.amazon-store-item .store-name {
  flex: 1;
}

.amazon-store-item .store-arrow {
  color: var(--author-green);
  font-size: 0.85rem;
  opacity: 0.7;
}

.amazon-store-item:hover .store-arrow {
  opacity: 1;
}

.author-home .security-note {
  color: var(--author-muted) !important;
  font-size: 0.78rem !important;
  margin: 18px 0 6px;
}

/* =====================================
 SECCIÓN AUTOR (#autor)
 Foto completa y texto biográfico
===================================== */
.author-home #autor {
  background: var(--author-paper) !important;
}

.author-home .author-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 75px;
}

.author-home .author-photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--author-line) !important;
  border-radius: 16px;
  background: #f1eaf7 !important;
  box-shadow: 0 8px 24px rgba(37, 40, 36, 0.06);
}

.author-home .author-photo #author-image {
  display: block !important;
  position: static;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: none;
}

.author-home .author-photo .location-tag {
  position: static;
  display: block;
  width: 100%;
  padding: 12px 16px;
  color: var(--author-green) !important;
  background: var(--author-paper) !important;
  border-top: 1px solid var(--author-line);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
}

.author-home .author-copy h2 {
  color: var(--author-ink) !important;
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 8px;
}

.author-home .author-copy .lead {
  color: var(--author-green) !important;
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.author-home .author-copy p {
  color: var(--author-ink-soft) !important;
  font-size: 0.94rem;
  line-height: 1.78;
  margin-bottom: 18px;
}

.author-home .typographic-signature {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--author-green) !important;
  margin-top: 25px;
}

/* =====================================
 ENLACES SOCIALES DEL AUTOR
===================================== */
.author-home .author-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.author-home .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--author-card-border);
  border-radius: 50px;
  background: var(--author-white);
  color: var(--author-ink-soft);
  font:
    500 0.82rem/1.4 Inter,
    sans-serif;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.author-home .social-link svg {
  flex-shrink: 0;
  color: var(--author-green);
  transition: color 0.2s ease;
}

.author-home .social-link:hover {
  border-color: var(--author-green);
  color: var(--author-green);
  background: var(--author-sage-light);
  transform: translateY(-2px);
}

/* =====================================
 REDES SOCIALES EN FOOTER
===================================== */
.author-home .footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.author-home .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--author-muted);
  background: transparent;
  border: 1px solid var(--author-line);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.author-home .footer-social a:hover {
  color: var(--author-green);
  border-color: var(--author-green);
  background: var(--author-sage-light);
  transform: translateY(-2px);
}

/* =====================================
 SECCIÓN FAQ (#faq)
===================================== */
.author-home .faq-section {
  background: var(--author-paper-alt) !important;
  border-top: 1px solid var(--author-line) !important;
}

.author-home .faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}

.author-home .faq-list details {
  border-bottom: 1px solid var(--author-line) !important;
  padding-block: 4px;
}

.author-home .faq-list summary {
  padding: 20px 28px 20px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--author-ink) !important;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

.author-home .faq-list summary:hover {
  color: var(--author-green) !important;
}

.author-home .faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  color: var(--author-green) !important;
  font-size: 1.4rem;
  font-weight: 400;
  top: 16px;
}

.author-home .faq-list details[open] summary::after {
  content: "−";
}

.author-home .faq-list details p {
  color: var(--author-muted) !important;
  font-size: 0.92rem;
  line-height: 1.75;
  padding-bottom: 16px;
  padding-right: 20px;
}

/* =====================================
 CTA FINAL Y FOOTER
===================================== */
.author-home .final-cta {
  background: var(--author-paper) !important;
  padding-block: 80px;
  text-align: center;
}

.author-home .final-cta .eyebrow {
  color: var(--author-green) !important;
}

.author-home .final-cta h2 {
  color: var(--author-ink) !important;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
}

.author-home .site-footer {
  background: var(--author-paper-alt) !important;
  border-top: 1px solid var(--author-line) !important;
  padding: 35px 0;
}

.author-home .footer-layout p {
  color: var(--author-muted) !important;
  font-size: 0.75rem;
}

.author-home .footer-layout nav a,
.author-home .footer-layout .reader-link {
  color: var(--author-muted) !important;
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.author-home .footer-layout nav a:hover,
.author-home .footer-layout .reader-link:hover {
  color: var(--author-green) !important;
}

/* =====================================
 DIALOG / MODAL LECTORES
===================================== */
#reader-dialog,
#reader-dialog[open],
dialog#reader-dialog,
dialog#reader-dialog[open],
body.author-home #reader-dialog,
body.author-home #reader-dialog[open],
.author-home dialog,
.author-home dialog[open],
dialog,
dialog[open],
dialog:modal {
  width: min(480px, calc(100% - 32px)) !important;
  max-width: 480px !important;
  margin: auto !important;
  background: #ffffff !important;
  color: var(--author-ink) !important;
  border: 1px solid var(--author-line) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  max-height: calc(100vh - 24px) !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

#reader-dialog::-webkit-scrollbar,
dialog#reader-dialog::-webkit-scrollbar,
dialog::-webkit-scrollbar,
dialog:modal::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.author-home .dialog-content,
.dialog-content {
  padding: 30px 28px 24px 28px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: relative !important;
}

.author-home .dialog-close,
.dialog-close {
  position: absolute !important;
  right: 16px !important;
  top: 14px !important;
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  background: none !important;
  color: var(--author-muted) !important;
  font-size: 1.6rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s ease !important;
}

.author-home .dialog-close:hover,
.dialog-close:hover {
  color: var(--author-ink) !important;
}

.author-home .dialog-content > .eyebrow,
.dialog-content > .eyebrow {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  color: #9440dd !important;
  letter-spacing: 0.06em !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.author-home .dialog-content h2,
.dialog-content h2 {
  color: var(--author-ink) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
  line-height: 1.18 !important;
}

.author-home .dialog-content > p.muted,
.dialog-content > p.muted {
  color: var(--author-muted) !important;
  font-size: 0.86rem !important;
  margin-bottom: 0 !important;
}

.author-home .access-steps,
.access-steps {
  margin: 16px 0 18px 0 !important;
  font-size: 0.72rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  list-style: none !important;
  padding: 0 !important;
}

.author-home .access-steps li,
.access-steps li {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: var(--author-muted) !important;
}

.author-home .access-steps span,
.access-steps span {
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border: 1px solid var(--author-line) !important;
  border-radius: 50% !important;
  font-weight: 600 !important;
}

.author-home .access-steps [aria-current],
.access-steps [aria-current] {
  color: #9440dd !important;
  font-weight: 600 !important;
}

.author-home .access-steps [aria-current] span,
.access-steps [aria-current] span {
  background: #9440dd !important;
  color: #ffffff !important;
  border-color: #9440dd !important;
}

.author-home dialog label,
dialog label {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--author-ink) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.author-home dialog input,
dialog input {
  background: #faf8f3 !important;
  color: var(--author-ink) !important;
  border: 1px solid var(--author-line) !important;
  border-radius: 8px !important;
  padding: 11px 13px !important;
  margin-bottom: 5px !important;
  font-size: 0.95rem !important;
  height: 44px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.author-home dialog input:focus,
dialog input:focus {
  border-color: #9440dd !important;
  outline: 2px solid #ede2f6 !important;
}

#reader-dialog button.button-gold,
#reader-dialog .dialog-content button[type="submit"],
.author-home .dialog-content button[type="submit"],
.dialog-content .button-gold {
  background: #9440dd !important;
  background-color: #9440dd !important;
  border: 1px solid #9440dd !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  min-height: 46px !important;
  width: 100% !important;
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

#reader-dialog button.button-gold:hover,
#reader-dialog .dialog-content button[type="submit"]:hover,
.author-home .dialog-content button[type="submit"]:hover,
.dialog-content .button-gold:hover {
  background: #7027b3 !important;
  background-color: #7027b3 !important;
  border-color: #7027b3 !important;
}

#reader-dialog button.button-gold:disabled,
#reader-dialog .dialog-content button[type="submit"]:disabled,
.author-home .dialog-content button[type="submit"]:disabled,
.dialog-content .button-gold:disabled {
  background: #9440dd !important;
  background-color: #9440dd !important;
  border-color: #9440dd !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

.author-home .button,
.button {
  width: auto !important;
}

.author-home .button-row .button,
.author-home .hero .button,
.author-home .final-cta .button {
  width: auto !important;
}

.author-home .field-hint,
.field-hint {
  font-size: 0.7rem !important;
  color: var(--author-muted) !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.author-home .form-status,
.form-status {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.3 !important;
  min-height: 0 !important;
}

.author-home .tiny.muted,
.tiny.muted {
  font-size: 0.72rem !important;
  color: var(--author-muted) !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
}

/* =====================================
 RESPONSIVE
===================================== */
@media (min-width: 961px) {
  .author-home .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 1120px) {
  .author-home .nav-actions > .reader-link {
    display: none;
  }
  .author-home .main-nav {
    gap: 16px;
  }
  .author-home .hero-layout {
    gap: 40px;
  }
  .author-home .learning-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 74px !important;
  }
  .author-home section[id] {
    scroll-margin-top: 74px !important;
  }
  .author-home .nav-shell {
    min-height: 80px;
  }
  .author-home .nav-actions {
    display: none;
  }
  .author-home .menu-toggle,
  .author-home button.menu-toggle {
    display: inline-flex !important;
  }
  .author-home .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 20px 4vw;
    background: var(--author-paper);
    border-bottom: 1px solid var(--author-line);
    box-shadow: 0 15px 25px rgba(37, 40, 36, 0.07);
  }
  .author-home .main-nav.is-open {
    display: flex;
  }
  .author-home .main-nav > a {
    padding: 11px 0;
    font-size: 0.9rem;
  }
  .author-home .mobile-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }
  .author-home .purchase-grid,
  .author-home .author-grid,
  .author-home .faq-grid,
  .author-home .manifesto {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .author-home .productivity {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0;
    padding-top: 25px;
  }
}

@media (max-width: 760px) {
  .author-home .site-header .brand img.site-logo {
    width: 38px;
    max-height: 44px;
  }
  .author-home .hero {
    padding: 45px 0 55px;
  }
  .author-home .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .author-home .hero-copy {
    max-width: 600px;
  }
  .author-home .hero h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
    line-height: 1.12;
  }
  .author-home .learning-grid {
    grid-template-columns: 1fr;
  }
  .author-home .hero-product {
    max-width: 440px;
  }
  .author-home .catalog-product {
    max-width: 300px;
  }
  .author-home .author-photo {
    max-width: 340px;
  }
}

@media (max-width: 600px), (max-height: 700px) {
  .author-home dialog {
    width: calc(100% - 20px) !important;
    max-height: 96vh !important;
  }
  .author-home .dialog-content {
    padding: 16px 18px !important;
  }
  .author-home .dialog-content h2 {
    font-size: 1.35rem !important;
    margin-bottom: 2px !important;
  }
  .author-home .dialog-content > p.muted {
    font-size: 0.75rem !important;
  }
  .author-home .access-steps {
    margin: 8px 0 10px 0 !important;
    font-size: 0.62rem !important;
  }
  .author-home dialog input {
    padding: 8px 10px !important;
    margin-bottom: 4px !important;
    font-size: 0.88rem !important;
  }
  .author-home .field-hint {
    font-size: 0.65rem !important;
    margin-bottom: 8px !important;
  }
  .author-home .dialog-content .button-gold {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 380px) {
  .author-home .hero .button-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .author-home .button,
  .author-home .hero .book {
    transition: none;
  }
}

/* =====================================
   CORRECCIÓN RESPONSIVE DE LOS MODALES
   Colocar al FINAL del archivo
===================================== */

/* Tamaño y desplazamiento del diálogo.
   No cambiar display: el navegador controla
   su visibilidad mediante showModal()/close(). */

body.author-home dialog#amazon-dialog,
body.author-home dialog#amazon-dialog[open],
body.author-home dialog#reader-dialog,
body.author-home dialog#reader-dialog[open] {
  box-sizing: border-box !important;

  width: calc(100% - 24px) !important;
  min-width: 0 !important;
  height: auto !important;

  /* Fallback y altura dinámica del navegador */
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;

  margin: auto !important;
  padding: 0 !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;

  border-radius: 16px !important;
  background: #fff !important;
  color-scheme: light;
}

body.author-home dialog#amazon-dialog,
body.author-home dialog#amazon-dialog[open] {
  max-width: 530px !important;
}

body.author-home dialog#reader-dialog,
body.author-home dialog#reader-dialog[open] {
  max-width: 480px !important;
}

/* Recuperar la barra de desplazamiento */

body.author-home dialog#amazon-dialog::-webkit-scrollbar,
body.author-home dialog#reader-dialog::-webkit-scrollbar {
  display: block !important;
  width: 6px !important;
}

body.author-home dialog#amazon-dialog::-webkit-scrollbar-thumb,
body.author-home dialog#reader-dialog::-webkit-scrollbar-thumb {
  background: #cbb5dc;
  border-radius: 8px;
}

/* El desplazamiento pertenece al diálogo,
   no a un segundo contenedor interior. */

body.author-home dialog#amazon-dialog .dialog-content,
body.author-home dialog#amazon-dialog .amazon-dialog-content,
body.author-home dialog#reader-dialog .dialog-content {
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;

  /* Espacio superior reservado para cerrar */
  padding: 58px 22px 24px !important;

  overflow: visible !important;
  overflow-wrap: anywhere;
}

/* Botón de cierre: zona táctil cómoda */

body.author-home dialog#amazon-dialog .dialog-close,
body.author-home dialog#reader-dialog .dialog-close {
  top: 8px !important;
  right: 8px !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  z-index: 2;
}

/* =====================================
   AMAZON
===================================== */

body.author-home #amazon-dialog .amazon-dialog-header {
  min-width: 0;
  gap: 12px;
  align-items: center;
}

body.author-home #amazon-dialog .amazon-dialog-header > * {
  min-width: 0;
}

body.author-home #amazon-dialog .amazon-dialog-logo {
  flex: 0 0 auto;
  width: 68px;
  max-width: 25%;
  height: auto;
  object-fit: contain;
}

body.author-home #amazon-dialog .amazon-dialog-header h2 {
  font-size: clamp(1.05rem, 4vw, 1.25rem) !important;
  line-height: 1.3 !important;
}

body.author-home #amazon-dialog .amazon-dialog-header p {
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

body.author-home #amazon-dialog .amazon-store-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.author-home #amazon-dialog .amazon-store-item {
  display: flex;
  min-width: 0;
  max-width: 100%;
  min-height: 54px;
  padding: 12px;
  gap: 9px;
  font-size: 0.85rem;
  white-space: normal;
}

body.author-home #amazon-dialog .store-name {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.author-home #amazon-dialog .flag,
body.author-home #amazon-dialog .store-arrow {
  flex: 0 0 auto;
}

/* =====================================
   ACCESO DE LECTORES
===================================== */

/* 16px evita el zoom automático al enfocar
   campos en muchos navegadores iOS. */

body.author-home #reader-dialog input:not([type="checkbox"]) {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 48px !important;
  padding: 12px !important;
  font-size: 16px !important;
  margin-bottom: 14px !important;
}

/* La regla anterior "dialog input" también
   agrandaba el checkbox a ancho completo. */

body.author-home #reader-dialog .checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 14px 0 20px !important;
}

body.author-home #reader-dialog input[type="checkbox"] {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 3px 0 0 !important;
  accent-color: #9440dd;
}

body.author-home #reader-dialog .checkbox-label span {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

body.author-home #reader-dialog .access-steps {
  flex-wrap: wrap !important;
  gap: 10px 16px !important;
  font-size: 0.75rem !important;
  margin: 18px 0 !important;
}

body.author-home #reader-dialog .access-steps span {
  flex-shrink: 0;
}

body.author-home #reader-dialog button[type="submit"] {
  min-height: 48px !important;
  white-space: normal !important;
}

body.author-home #reader-dialog .form-status.error {
  color: #b42318 !important;
}

/* =====================================
   PANTALLAS ESTRECHAS
===================================== */

@media (max-width: 420px) {
  body.author-home #amazon-dialog .amazon-store-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.author-home dialog#amazon-dialog .dialog-content,
  body.author-home dialog#amazon-dialog .amazon-dialog-content,
  body.author-home dialog#reader-dialog .dialog-content {
    padding: 56px 16px 22px !important;
  }

  body.author-home #reader-dialog .dialog-content h2 {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }
}

/* =====================================
   COMPACTAR DIÁLOGO DE LECTORES
   Evita el scroll: espaciados menores
   y campos de contraseña ajustados.
===================================== */

body.author-home #reader-dialog .access-steps {
  margin: 8px 0 8px !important;
}

body.author-home #reader-dialog .access-steps[hidden] {
  display: none !important;
}

body.author-home #reader-dialog label {
  margin-bottom: 4px !important;
}

body.author-home #reader-dialog input:not([type="checkbox"]) {
  margin-bottom: 10px !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
}

body.author-home #reader-dialog .password-field {
  margin-bottom: 10px !important;
}

body.author-home #reader-dialog .password-field input:not([type="checkbox"]) {
  margin-bottom: 0 !important;
}

body.author-home #reader-dialog form .button[type="submit"] {
  margin-top: 4px !important;
}

body.author-home #reader-dialog .password-toggle {
  top: 5px;
  color: var(--author-muted);
}

body.author-home #reader-dialog .password-toggle:hover,
body.author-home #reader-dialog .password-toggle[aria-pressed="true"] {
  color: var(--author-green);
}

body.author-home #reader-dialog .field-hint {
  margin-bottom: 12px !important;
}

body.author-home #reader-dialog .success-panel {
  margin-bottom: 10px !important;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
}

body.author-home #reader-dialog .checkbox-label {
  margin: 8px 0 12px !important;
}

body.author-home #reader-dialog .form-status {
  margin-top: 6px !important;
}

body.author-home #reader-dialog .checkbox-label {
  margin: 10px 0 16px !important;
}

body.author-home #reader-dialog .text-button {
  margin: 12px auto 0 !important;
}

body.author-home #reader-dialog .dialog-close {
  top: 8px !important;
}

body.author-home #reader-dialog .dialog-content {
  padding: 34px 26px 16px !important;
}

body.author-home #reader-dialog .dialog-content > .eyebrow {
  font-size: 0.55rem !important;
  margin-bottom: 4px !important;
}

body.author-home #reader-dialog .dialog-content > h2 {
  font-size: 1.6rem !important;
  margin-bottom: 3px !important;
}

body.author-home #reader-dialog .dialog-content > p.muted {
  font-size: 0.8rem !important;
  margin-bottom: 8px !important;
}

body.author-home #reader-dialog .dialog-content > p.tiny.muted {
  margin-top: 10px !important;
  font-size: 0.68rem !important;
}

/* Compactación extra: el diálogo debe entrar en pantalla sin scroll */
@media (min-width: 421px) {
  body.author-home dialog#reader-dialog[open] {
    max-height: calc(100dvh - 16px) !important;
  }

  body.author-home #reader-dialog .dialog-content {
    padding: 26px 24px 13px !important;
  }

  body.author-home #reader-dialog .dialog-content > h2 {
    font-size: 1.5rem !important;
  }

  body.author-home #reader-dialog label {
    font-size: 0.74rem !important;
  }

  body.author-home #reader-dialog input:not([type="checkbox"]) {
    min-height: 38px !important;
    margin-bottom: 8px !important;
  }

  body.author-home #reader-dialog .password-field {
    margin-bottom: 8px !important;
  }

  body.author-home #reader-dialog .access-steps {
    margin: 6px 0 !important;
    gap: 14px !important;
    font-size: 0.7rem !important;
  }

  body.author-home #reader-dialog .checkbox-label {
    margin: 6px 0 10px !important;
  }

  body.author-home #reader-dialog .field-hint {
    margin-bottom: 8px !important;
  }

  body.author-home #reader-dialog .button {
    min-height: 44px !important;
    padding: 10px 18px !important;
  }
}

body.author-home #reader-dialog .field-invalid input:not([type="checkbox"]),
body.author-home #reader-dialog input.field-invalid {
  border-color: #b42318 !important;
  outline: 2px solid #fbe4e0 !important;
}

body.author-home #reader-dialog label.checkbox-label.field-invalid {
  color: #b42318 !important;
}

body.author-home #reader-dialog label.checkbox-label.field-invalid input[type="checkbox"] {
  outline: 2px solid #b42318;
  outline-offset: 1px;
}
