/* =====================================
 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;
}

/* Sistema de animaciones activadas por scroll */
.reveal-ready {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Variaciones direccionales y de escala */
.reveal-ready.reveal-left {
  transform: translateX(-40px);
}

.reveal-ready.reveal-right {
  transform: translateX(40px);
}

.reveal-ready.reveal-zoom {
  transform: scale(0.88) !important;
  transform-origin: center center !important;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.reveal-ready.reveal-left.is-visible,
.reveal-ready.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-ready.reveal-zoom.is-visible {
  transform: scale(1) !important;
  transform-origin: center center !important;
}

/* Efecto profundidad: la imagen "viene desde el fondo" hacia el frente */
.reveal-ready.reveal-depth {
  opacity: 0 !important;
  transform: scale(0.55) !important;
  filter: blur(14px) brightness(0.8);
  transform-origin: center center !important;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1.1s cubic-bezier(0.22, 1, 0.36, 1) !important;
  transition-delay: 0.5s !important;
  perspective: 800px;
}

.reveal-ready.reveal-depth.is-visible {
  opacity: 1 !important;
  transform: scale(1) !important;
  filter: blur(0) brightness(1);
}

/* Retardos escalonados progresivos */
.reveal-ready[data-delay="1"] { transition-delay: 0.08s; }
.reveal-ready[data-delay="2"] { transition-delay: 0.16s; }
.reveal-ready[data-delay="3"] { transition-delay: 0.24s; }
.reveal-ready[data-delay="4"] { transition-delay: 0.32s; }
.reveal-ready[data-delay="5"] { transition-delay: 0.40s; }
.reveal-ready[data-delay="6"] { transition-delay: 0.48s; }
.reveal-ready[data-delay="7"] { transition-delay: 0.56s; }
.reveal-ready[data-delay="8"] { transition-delay: 0.64s; }

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready,
  .reveal-ready.reveal-left,
  .reveal-ready.reveal-right,
  .reveal-ready.reveal-zoom {
    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;
}

/* =====================================
 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.3rem, 3.8vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  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: 1.5px solid #d4c2eb !important;
  border-radius: 16px;
  background: #faf7fc !important;
  box-shadow: 0 4px 18px rgba(37, 40, 36, 0.04);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.author-home .feature-card:hover {
  border-color: var(--author-green) !important;
  background: #f3ebfa !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(148, 64, 221, 0.18) !important;
}

.author-home .feature-card:hover .feature-icon {
  background: #ffffff !important;
  border-color: var(--author-green) !important;
}

.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(540px, calc(100% - 32px)) !important;
  max-width: 540px !important;
  height: fit-content !important;
  margin: auto !important;
  background: #fdfbf7 !important;
  color: var(--author-ink) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22) !important;
  overflow-y: auto !important;
  overflow-x: 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: 22px 22px 22px 22px !important;
  overflow: visible !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);
}

/* Ocultar enlaces de redes sociales no deseadas */
.author-home .social-link[href*="facebook"],
.author-home .social-link[href*="instagram"],
.author-home .social-link[href*="x.com"],
.author-home .social-link[href*="twitter"],
.author-home .footer-social a[href*="facebook"],
.author-home .footer-social a[href*="instagram"],
.author-home .footer-social a[href*="x.com"],
.author-home .footer-social a[href*="twitter"] {
  display: none !important;
}

/* =====================================
 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 .site-footer .brand {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0 !important;
  color: var(--author-ink) !important;
  font-family: Outfit, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
}

.author-home .site-footer .brand .gold {
  color: #c59a27 !important;
  display: inline !important;
}

.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:not([hidden]),
  .author-home button.menu-toggle:not([hidden]) {
    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 !important;
    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: min(540px, calc(100% - 24px)) !important;
  min-width: 0 !important;
  height: fit-content !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: 20px !important;
  background: #fdfbf7 !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22) !important;
  color-scheme: light;
}

body.author-home dialog#amazon-dialog,
body.author-home dialog#amazon-dialog[open] {
  max-width: 540px !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 {
  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;
  padding: 22px 22px 22px 22px !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
}

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;
  padding: 34px 24px 20px !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
}

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

body.author-home dialog#amazon-dialog .dialog-close {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #555a64 !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  z-index: 10 !important;
}

body.author-home dialog#amazon-dialog .dialog-close:hover {
  color: #18191d !important;
}

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 {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
  padding-bottom: 14px !important;
  padding-right: 38px !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
  min-width: 0;
}

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

body.author-home #amazon-dialog .amazon-dialog-logo {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 28px !important;
  max-width: 90px !important;
  object-fit: contain !important;
}

body.author-home #amazon-dialog .amazon-dialog-header h2 {
  font-size: clamp(1.05rem, 3.8vw, 1.25rem) !important;
  font-weight: 700 !important;
  color: #18191d !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

body.author-home #amazon-dialog .amazon-dialog-header p {
  font-size: 0.85rem !important;
  color: #555a64 !important;
  margin: 3px 0 0 !important;
  line-height: 1.35 !important;
}

body.author-home #amazon-dialog .amazon-store-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.author-home #amazon-dialog .amazon-store-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 46px !important;
  padding: 10px 14px !important;
  gap: 10px !important;
  background: #fffdfa !important;
  border: 1px solid rgba(212, 175, 55, 0.22) !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  color: #18191d !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  white-space: normal !important;
  transition: all 0.2s ease !important;
}

body.author-home #amazon-dialog .amazon-store-item:hover {
  border-color: #d4af37 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.12) !important;
  transform: translateY(-1px) !important;
}

body.author-home #amazon-dialog .store-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #18191d !important;
}

body.author-home #amazon-dialog .store-badge {
  display: inline-block !important;
  margin-left: 8px !important;
  padding: 2px 7px !important;
  background: #d4af37 !important;
  color: #1a1608 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-radius: 4px !important;
  vertical-align: middle !important;
}

body.author-home #amazon-dialog .flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 18px !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  flex-shrink: 0 !important;
}

body.author-home #amazon-dialog .flag svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

body.author-home #amazon-dialog .store-arrow {
  flex: 0 0 auto !important;
  color: #8c6a12 !important;
  font-size: 0.9rem !important;
  transition: transform 0.2s ease !important;
}

body.author-home #amazon-dialog .amazon-store-item:hover .store-arrow {
  transform: translate(2px, -2px) !important;
  color: #18191d !important;
}

body.author-home #amazon-dialog .amazon-store-item.amazon-store-item--featured {
  background: linear-gradient(135deg, #fffcf5 0%, #fff8eb 100%) !important;
  border: 1.5px solid #d4af37 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15) !important;
}

body.author-home #amazon-dialog .amazon-store-item.amazon-store-item--featured:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%) !important;
  border-color: #b89327 !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.22) !important;
}

/* Grid de accesos rápidos para España y México */
body.author-home #amazon-dialog .amazon-quick-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

@media (max-width: 440px) {
  body.author-home #amazon-dialog .amazon-quick-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* Separador internacional */
body.author-home #amazon-dialog .amazon-store-divider {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  margin: 4px 0 2px !important;
  color: #8c8fa1 !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.author-home #amazon-dialog .amazon-store-divider::before,
body.author-home #amazon-dialog .amazon-store-divider::after {
  content: "" !important;
  flex: 1 1 auto !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

body.author-home #amazon-dialog .amazon-store-divider span {
  padding: 0 10px !important;
}

/* Fila Combo + Botón */
body.author-home #amazon-dialog .amazon-combo-row {
  display: flex !important;
  gap: 8px !important;
  align-items: stretch !important;
  width: 100% !important;
}

body.author-home #amazon-dialog .amazon-select-wrapper {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  position: relative !important;
}

body.author-home #amazon-dialog .amazon-store-select {
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  background: #ffffff !important;
  color: #18191d !important;
  font-size: 0.85rem !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

body.author-home #amazon-dialog .amazon-store-select:focus {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18) !important;
}

body.author-home #amazon-dialog .amazon-combo-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 18px !important;
  min-height: 44px !important;
  border-radius: 10px !important;
  border: 1px solid #d4af37 !important;
  background: #d4af37 !important;
  color: #111111 !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
}

body.author-home #amazon-dialog .amazon-combo-btn:not(:disabled) {
  background: #d4af37 !important;
  border-color: #b89327 !important;
  color: #111111 !important;
  opacity: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25) !important;
}

body.author-home #amazon-dialog .amazon-combo-btn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background: #f0f0f3 !important;
  border-color: #d5d5dc !important;
  color: #8c8fa1 !important;
  box-shadow: none !important;
}

body.author-home #amazon-dialog .amazon-combo-btn:not(:disabled):hover {
  background: #b89327 !important;
  border-color: #9c7b1c !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35) !important;
}

body.author-home #amazon-dialog .amazon-dialog-note {
  margin-top: 10px !important;
  padding: 10px 14px !important;
  background: #fbfbfd !important;
  border: 1px dashed rgba(212, 175, 55, 0.45) !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
  color: #4a4a52 !important;
}

body.author-home #amazon-dialog .amazon-dialog-note p {
  margin: 0 !important;
}

/* Optimización para pantallas de escritorio */
@media (min-width: 680px) {
  body.author-home dialog#amazon-dialog,
  body.author-home dialog#amazon-dialog[open] {
    width: min(560px, calc(100% - 40px)) !important;
    max-width: 560px !important;
  }

  body.author-home dialog#amazon-dialog .dialog-content,
  body.author-home dialog#amazon-dialog .amazon-dialog-content {
    padding: 20px 24px 18px !important;
  }

  body.author-home #amazon-dialog .amazon-dialog-header {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }

  body.author-home #amazon-dialog .amazon-dialog-note {
    margin-top: 10px !important;
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
  }
}

/* =====================================
   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 {
    padding: 20px 16px !important;
  }

  body.author-home dialog#reader-dialog .dialog-content {
    padding: 30px 16px 18px !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;
}

/* ==========================================================================
   PORTAL DE LECTORES — TEMA EDITORIAL CLARO (ALTO CONTRASTE)
   ========================================================================== */

body.author-home .portal-header h1 {
  color: #1a1d1a !important;
  font-family: Outfit, sans-serif !important;
  font-weight: 700 !important;
}

body.author-home .portal-header .lead {
  color: #43493e !important;
  font-size: 1.15rem !important;
}

body.author-home .portal-nav {
  border-bottom: 1px solid #e2e4dc !important;
}

body.author-home .portal-nav a {
  color: #43493e !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  padding-bottom: 4px !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.2s !important;
}

body.author-home .portal-nav a:hover {
  color: #7027b3 !important;
  border-bottom-color: #7027b3 !important;
}

body.author-home .notice {
  background: #fdfaf3 !important;
  border: 1px solid #e8dcbd !important;
  color: #4e3e15 !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
  padding: 16px 20px !important;
}

body.author-home .portal-section h2 {
  color: #1a1d1a !important;
  font-family: Outfit, sans-serif !important;
  font-weight: 700 !important;
}

/* Filtros y buscador del portal */
body.author-home .filters label {
  color: #1a1d1a !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  margin-bottom: 6px !important;
}

body.author-home .filters input,
body.author-home .filters select {
  background: #ffffff !important;
  color: #1a1d1a !important;
  border: 1.5px solid #cbcfc5 !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-size: 0.92rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

body.author-home .filters input::placeholder {
  color: #737c6d !important;
  opacity: 1 !important;
}

body.author-home .filters input:focus,
body.author-home .filters select:focus {
  outline: none !important;
  border-color: #9440dd !important;
  box-shadow: 0 0 0 3px rgba(148, 64, 221, 0.18) !important;
}

/* Selector de modelos (pills) */
body.author-home .filter-pill {
  background: #ffffff !important;
  border: 1.5px solid #d0d4cb !important;
  color: #383d36 !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  border-radius: 30px !important;
  padding: 8px 18px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

body.author-home .filter-pill:hover {
  border-color: #9440dd !important;
  color: #7027b3 !important;
}

body.author-home .filter-pill[aria-pressed="true"] {
  background: #9440dd !important;
  border-color: #9440dd !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(148, 64, 221, 0.25) !important;
}

body.author-home #biblioteca > p.tiny.muted,
body.author-home #result-count {
  color: #4a5145 !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
}

/* Tarjetas de Prompts */
body.author-home .prompt-card {
  background: #ffffff !important;
  border: 1px solid #e2e4dc !important;
  border-radius: 16px !important;
  padding: 26px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
}

body.author-home .prompt-meta {
  color: #7027b3 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}

body.author-home .prompt-card h3 {
  color: #1a1d1a !important;
  font-family: Outfit, sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 16px !important;
}

/* Contenedor del prompt (caja antes negra, ahora superficie clara contrastada) */
body.author-home .prompt-text {
  background: #f8f6f1 !important;
  border: 1px solid #e4dfd3 !important;
  color: #1a1e19 !important;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.84rem !important;
  line-height: 1.7 !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  max-height: 310px !important;
  overflow: auto !important;
}

/* Variables resaltadas dentro del prompt */
body.author-home .prompt-text mark {
  background: #f1e4fc !important;
  color: #550f8f !important;
  border: 1px solid #ceb1ee !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}

/* Panel de personalización de variables */
body.author-home .variables {
  margin-block: 18px !important;
  background: #fcfbf9 !important;
  border: 1px solid #e5e1d7 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
}

body.author-home .variables summary {
  color: #7027b3 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  user-select: none !important;
}

body.author-home .variables summary:hover {
  color: #9440dd !important;
}

body.author-home .variables label {
  color: #383d36 !important;
  font-weight: 600 !important;
  font-size: 0.74rem !important;
}

body.author-home .variables input {
  background: #ffffff !important;
  border: 1.5px solid #d0d4cb !important;
  color: #1a1d1a !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  margin-bottom: 10px !important;
}

body.author-home .variables input:focus {
  outline: none !important;
  border-color: #9440dd !important;
  box-shadow: 0 0 0 3px rgba(148, 64, 221, 0.15) !important;
}

/* Botón de copiar */
body.author-home .copy-button {
  width: 100% !important;
  margin-top: auto !important;
  background: #ffffff !important;
  border: 1.5px solid #9440dd !important;
  color: #7027b3 !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  border-radius: 10px !important;
  padding: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

body.author-home .copy-button:hover {
  background: #9440dd !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(148, 64, 221, 0.2) !important;
}

body.author-home .copy-button.copied {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  color: #065f46 !important;
}

/* Paneles de herramientas (Checklist y Economía de Tokens) */
body.author-home .tool-panel {
  background: #ffffff !important;
  border: 1px solid #e2e4dc !important;
  border-radius: 16px !important;
  padding: 28px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03) !important;
}

body.author-home .tool-panel h3 {
  color: #1a1d1a !important;
  font-family: Outfit, sans-serif !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

body.author-home .tool-panel > p.tiny.muted {
  color: #4a5145 !important;
  font-size: 0.82rem !important;
  margin-bottom: 18px !important;
}

/* Lista de verificación (Checklist) */
body.author-home .checklist label {
  color: #1f231e !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  border-bottom: 1px solid #edece4 !important;
  padding-block: 12px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

body.author-home .checklist input {
  accent-color: #9440dd !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
  cursor: pointer !important;
}

body.author-home .checklist label:has(input:checked) {
  color: #8c9388 !important;
}

body.author-home #reset-checklist {
  border: 1.5px solid #d0d4cb !important;
  color: #383d36 !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

body.author-home #reset-checklist:hover {
  border-color: #9440dd !important;
  color: #7027b3 !important;
}

/* Tabla de tokens */
body.author-home table {
  width: 100% !important;
}

body.author-home th {
  color: #7027b3 !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  border-bottom: 2px solid #dcddd4 !important;
  padding: 12px 10px !important;
}

body.author-home td {
  color: #252824 !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  border-bottom: 1px solid #edece4 !important;
  padding: 12px 10px !important;
}

/* Directorio de enlaces y recursos */
body.author-home .resource-link {
  background: #ffffff !important;
  border: 1px solid #e2e4dc !important;
  border-radius: 14px !important;
  padding: 24px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}

body.author-home .resource-link:hover {
  border-color: #9440dd !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(148, 64, 221, 0.09) !important;
}

body.author-home .resource-link small {
  color: #7027b3 !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

body.author-home .resource-link strong {
  color: #1a1d1a !important;
  font-family: Outfit, sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

body.author-home .resource-link p {
  color: #43493e !important;
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
  margin: 0 0 12px !important;
}

body.author-home .resource-link > span {
  color: #7027b3 !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
}

body.author-home .empty-state {
  color: #53594e !important;
  border-color: #d0d4cb !important;
  background: #ffffff !important;
}

/* Reorganización de filtros en barra responsiva */
body.author-home .filters {
  display: grid !important;
  grid-template-columns: 1.8fr 1fr 1.2fr 1fr 1.1fr !important;
  gap: 14px !important;
  align-items: end !important;
  margin-bottom: 24px !important;
}

@media (max-width: 1100px) {
  body.author-home .filters {
    grid-template-columns: 1fr 1fr !important;
  }
  body.author-home .filters > div:first-child {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  body.author-home .filters {
    grid-template-columns: 1fr !important;
  }
}

/* Tarjeta de Prompts Encadenados (ocupa ancho completo) */
body.author-home .prompt-card-chained {
  grid-column: 1 / -1 !important;
  border-left: 5px solid #9440dd !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  padding: 28px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.author-home .chain-card-header {
  border-bottom: 1.5px solid #edece4 !important;
  padding-bottom: 20px !important;
  margin-bottom: 22px !important;
}

body.author-home .chain-card-title {
  font-family: Outfit, sans-serif !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: #1a1d1a !important;
  margin: 4px 0 8px !important;
}

body.author-home .chain-card-desc {
  color: #4a5145 !important;
  font-size: 0.92rem !important;
  margin-bottom: 16px !important;
}

/* Botón general para copiar toda la secuencia */
body.author-home .copy-all-button {
  background: #9440dd !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 8px rgba(148, 64, 221, 0.2) !important;
}

body.author-home .copy-all-button:hover {
  background: #7027b3 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(148, 64, 221, 0.3) !important;
}

body.author-home .copy-all-button.copied {
  background: #059669 !important;
}

/* Lista y contenedor de pasos individuales */
body.author-home .chain-steps-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
}

body.author-home .chain-step-item {
  border: 1px solid #e5e1d7 !important;
  border-radius: 14px !important;
  padding: 22px !important;
  background: #faf8f5 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}

/* Fila de encabezado del paso (fuera de la caja de texto) */
body.author-home .step-header-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

body.author-home .step-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

body.author-home .step-badge {
  background: #9440dd !important;
  color: #ffffff !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.author-home .step-title-text {
  font-size: 1.15rem !important;
  color: #1a1d1a !important;
  font-weight: 700 !important;
}

body.author-home .step-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 0.78rem !important;
  color: #5a6255 !important;
}

body.author-home .step-models-tag {
  background: #ede8f5 !important;
  color: #5d179b !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

body.author-home .step-page-tag {
  color: #7b8376 !important;
}

/* Botón individual de copiar paso (fuera de la caja) */
body.author-home .copy-step-button {
  background: #ffffff !important;
  border: 1.5px solid #9440dd !important;
  color: #7027b3 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

body.author-home .copy-step-button:hover {
  background: #9440dd !important;
  color: #ffffff !important;
}

body.author-home .copy-step-button.copied {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  color: #065f46 !important;
}

body.author-home .prompt-card-models {
  margin-bottom: 12px !important;
  color: #5a6255 !important;
  font-size: 0.78rem !important;
}

body.author-home .models-badge {
  background: #f1ecf9 !important;
  color: #5d179b !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

/* =====================================
   GLOSARIO DE TÉRMINOS
===================================== */
body.author-home .glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

body.author-home .glossary-card {
  background: var(--author-paper, #FAF8F3);
  border: 1px solid var(--author-line, rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(37, 40, 36, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.author-home .glossary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 40, 36, 0.08);
  border-color: rgba(148, 64, 221, 0.35);
}

body.author-home .glossary-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.author-home .glossary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

body.author-home .glossary-badge-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(148, 64, 221, 0.1);
  color: #7b2cbf;
}

body.author-home .glossary-badge-meta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--author-muted, #666);
  padding: 3px 6px;
}

body.author-home .glossary-term {
  font-family: Outfit, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--author-ink, #1a1a1a);
  margin: 0;
  line-height: 1.25;
}

body.author-home .glossary-definition {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3d423c;
  margin: 0;
  flex-grow: 1;
}

body.author-home .glossary-copy-btn {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.8rem !important;
  padding: 7px 14px !important;
  min-height: 36px !important;
  border-radius: 6px !important;
  border: 1px solid var(--author-line, rgba(0, 0, 0, 0.14)) !important;
  transition: all 0.2s ease;
  color: var(--author-ink, #1a1a1a);
}

body.author-home .glossary-copy-btn:hover {
  background: rgba(148, 64, 221, 0.08);
  border-color: rgba(148, 64, 221, 0.4) !important;
  color: #7b2cbf;
}

body.author-home .glossary-copy-btn.copied {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  color: #065f46 !important;
  font-weight: 600;
}

body.author-home .glossary-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--author-paper, #FAF8F3);
  border: 1px dashed var(--author-line, rgba(0, 0, 0, 0.15));
  border-radius: 12px;
}

/* ==========================================================================
   GENERADOR DE ESQUELETOS DE PROMPTS
   ========================================================================== */
body.author-home .skeleton-generator {
  background: #ffffff !important;
  border: 1px solid #e2e4dc !important;
  border-radius: 16px !important;
  padding: 28px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03) !important;
  margin-top: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

body.author-home .sk-step {
  border-bottom: 1px solid #edece4 !important;
  padding-bottom: 24px !important;
}

body.author-home .sk-step:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

body.author-home .sk-step-num {
  background: #f1ecf9 !important;
  color: #7027b3 !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  margin-bottom: 6px !important;
}

body.author-home .sk-step-title {
  font-family: Outfit, sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #1a1d1a !important;
  margin: 0 0 14px 0 !important;
}

/* Paso 1: Tabs */
body.author-home .framework-toggle-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.author-home .fw-tab-btn {
  background: #ffffff !important;
  border: 2px solid #d0d4cb !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

body.author-home .fw-tab-btn strong {
  display: block !important;
  font-size: 1.05rem !important;
  color: #1a1d1a !important;
  margin-bottom: 4px !important;
}

body.author-home .fw-tab-btn small {
  display: block !important;
  color: #5a6255 !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
}

body.author-home .fw-tab-btn:hover {
  border-color: #9440dd !important;
  background: #faf7fd !important;
}

body.author-home .fw-tab-btn.active {
  border-color: #9440dd !important;
  background: #f7f0fc !important;
  box-shadow: 0 2px 10px rgba(148, 64, 221, 0.15) !important;
}

body.author-home .fw-tab-btn.active strong {
  color: #7027b3 !important;
}

/* Paso 2: Variable de Entrada */
body.author-home .sk-var-box {
  background: #faf8f5 !important;
  border: 1px solid #e5e1d7 !important;
  border-radius: 12px !important;
  padding: 18px !important;
}

body.author-home .sk-switch-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  user-select: none !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  color: #1a1d1a !important;
}

body.author-home .sk-switch-label input[type="checkbox"] {
  display: none !important;
}

body.author-home .sk-switch-slider {
  position: relative !important;
  width: 44px !important;
  height: 24px !important;
  background-color: #ccc !important;
  border-radius: 24px !important;
  transition: 0.3s !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

body.author-home .sk-switch-slider::before {
  content: "" !important;
  position: absolute !important;
  height: 18px !important;
  width: 18px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: white !important;
  border-radius: 50% !important;
  transition: 0.3s !important;
}

body.author-home .sk-switch-label input:checked + .sk-switch-slider {
  background-color: #9440dd !important;
}

body.author-home .sk-switch-label input:checked + .sk-switch-slider::before {
  transform: translateX(20px) !important;
}

body.author-home .sk-var-input-group {
  margin-top: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

body.author-home .sk-var-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

body.author-home .sk-var-field label {
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: #383d36 !important;
}

body.author-home .sk-var-field input,
body.author-home .sk-var-field textarea {
  background: #ffffff !important;
  border: 1.5px solid #cbcfc5 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 0.90rem !important;
  font-family: inherit !important;
  width: 100% !important;
  max-width: 520px !important;
  line-height: 1.5 !important;
}

body.author-home .sk-var-field textarea {
  resize: vertical !important;
  min-height: 60px !important;
}

body.author-home .sk-var-field input:focus,
body.author-home .sk-var-field textarea:focus {
  outline: none !important;
  border-color: #9440dd !important;
  box-shadow: 0 0 0 3px rgba(148, 64, 221, 0.18) !important;
}

/* Paso 3: Selector de Bloques */
body.author-home .sk-blocks-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

body.author-home .sk-select-all-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: #7027b3 !important;
  background: #f1ecf9 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  transition: background 0.2s !important;
}

body.author-home .sk-select-all-label:hover {
  background: #e6dbf4 !important;
}

body.author-home .sk-select-all-label input[type="checkbox"] {
  accent-color: #9440dd !important;
  width: 16px !important;
  height: 16px !important;
}

body.author-home .sk-blocks-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 12px !important;
}

body.author-home .sk-block-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e4dc !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

body.author-home .sk-block-card:hover {
  border-color: #9440dd !important;
  background: #faf8fd !important;
}

body.author-home .sk-block-card input[type="checkbox"] {
  accent-color: #9440dd !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: 3px !important;
  flex-shrink: 0 !important;
}

body.author-home .sk-block-letter {
  background: #9440dd !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}

body.author-home .sk-block-info {
  flex: 1 !important;
  min-width: 0 !important;
}

body.author-home .sk-block-name {
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  color: #1a1d1a !important;
  display: block !important;
  margin-bottom: 2px !important;
}

body.author-home .sk-block-desc {
  font-size: 0.76rem !important;
  color: #5a6255 !important;
  line-height: 1.35 !important;
  display: block !important;
}

/* Paso 4: Formato de Salida */
body.author-home .format-pills {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

body.author-home .format-pill {
  background: #ffffff !important;
  border: 1.5px solid #d0d4cb !important;
  color: #383d36 !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border-radius: 30px !important;
  padding: 8px 22px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
}

body.author-home .format-pill input[type="radio"] {
  display: none !important;
}

body.author-home .format-pill:hover {
  border-color: #9440dd !important;
  color: #7027b3 !important;
}

body.author-home .format-pill.active {
  background: #9440dd !important;
  border-color: #9440dd !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(148, 64, 221, 0.25) !important;
}

/* Paso 5: Visor de Código y Copia */
body.author-home .sk-output-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

body.author-home .sk-output-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

body.author-home .sk-editable-hint {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #7027b3 !important;
  background: #f1ecf9 !important;
  border: 1px solid #e2d2f7 !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
}

body.author-home .sk-reset-btn {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  color: #555d52 !important;
  border: 1px solid #cbcfc5 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

body.author-home .sk-reset-btn:hover {
  color: #c93b2b !important;
  border-color: #e2a8a2 !important;
  background: #fdf5f4 !important;
}

body.author-home .code-preview-wrapper {
  background: #f8f6f1 !important;
  border: 1.5px solid #e4dfd3 !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  overflow-x: auto !important;
  max-height: 440px !important;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
}

body.author-home .sk-code-editor-wrapper:focus-within {
  border-color: #9440dd !important;
  box-shadow: 0 0 0 3px rgba(148, 64, 221, 0.15) !important;
  background: #ffffff !important;
}

body.author-home .code-preview-wrapper pre {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.author-home .sk-code-output {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.85rem !important;
  line-height: 1.7 !important;
  color: #1a1e19 !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin: 0 !important;
  outline: none !important;
  cursor: default !important;
  min-height: 180px !important;
}

body.author-home .sk-editor-block,
body.author-home .sk-editor-var-block {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  padding: 6px 0 !important;
  cursor: pointer !important;
}

body.author-home .sk-tag {
  color: #7027b3 !important;
  font-weight: 700 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: default !important;
  display: block !important;
  line-height: 1.6 !important;
}

body.author-home .sk-var-head,
body.author-home .sk-var-foot {
  color: #4338ca !important;
  font-weight: 600 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: default !important;
  display: block !important;
  line-height: 1.6 !important;
}

body.author-home .sk-var-quotes {
  color: #b45309 !important;
  font-weight: 700 !important;
}

body.author-home .sk-block-textarea,
body.author-home .sk-var-textarea,
body.author-home .sk-slot,
body.author-home .sk-var-slot {
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  color: #1a1e19 !important;
  background: rgba(148, 64, 221, 0.02) !important;
  border: 1px solid transparent !important;
  border-left: 3px solid rgba(148, 64, 221, 0.35) !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 8px 12px !important;
  margin: 6px 0 !important;
  outline: none !important;
  resize: vertical !important;
  min-height: 56px !important;
  cursor: text !important;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s !important;
}

body.author-home .sk-block-textarea:focus,
body.author-home .sk-var-textarea:focus,
body.author-home .sk-slot:focus,
body.author-home .sk-var-slot:focus {
  border-left-color: #9440dd !important;
  background: rgba(148, 64, 221, 0.05) !important;
  box-shadow: 0 0 0 2px rgba(148, 64, 221, 0.12) !important;
}

body.author-home .sk-block-textarea::placeholder,
body.author-home .sk-var-textarea::placeholder {
  color: #9ca3af !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

body.author-home .copy-skeleton-btn {
  width: 100% !important;
  margin-top: 14px !important;
  background: #ffffff !important;
  border: 1.5px solid #9440dd !important;
  color: #7027b3 !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  border-radius: 10px !important;
  padding: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

body.author-home .copy-skeleton-btn:hover {
  background: #9440dd !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(148, 64, 221, 0.2) !important;
}

body.author-home .copy-skeleton-btn.copied {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  color: #065f46 !important;
}

@media (max-width: 640px) {
  body.author-home .framework-toggle-tabs {
    grid-template-columns: 1fr !important;
  }
  body.author-home .sk-blocks-header,
  body.author-home .sk-output-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ==========================================================================
   ESTILOS OPTIMIZADOS DE CONVERSIÓN Y PORTAL (PREVIEW -> PRODUCCIÓN)
   ========================================================================== */
.announcement-bar {
  background: #18191d;
  color: #faf8f3;
  font-size: 0.86rem;
  padding: 0.6rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 100;
}
.announcement-bar strong {
  color: #a6ff1d;
}
.announcement-bar a {
  color: #faf8f3;
  text-decoration: underline;
  margin-left: 0.5rem;
  font-weight: 600;
}
.announcement-bar a:hover {
  color: #d4af37;
}
.hero-bullets-metric {
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.hero-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.98rem;
  color: #2d3139;
  line-height: 1.45;
}
.hero-bullet-item span.check {
  color: #c59a27;
  font-weight: 700;
  flex-shrink: 0;
}
.price-badge-hero {
  background: rgba(212, 175, 55, 0.15);
  color: #8c6a12;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.micro-cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8c6a12;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.micro-cta:hover {
  color: #121316;
  transform: translateX(3px);
}
.portal-highlight-box {
  background: #ffffff;
  border: 1px solid #e5e1d8;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.portal-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.portal-grid-card {
  background: #faf8f3;
  border: 1px solid #ebe7dc;
  border-radius: 12px;
  padding: 1.5rem;
}
.portal-grid-card h4 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: #18191d;
}
.portal-grid-card p {
  font-size: 0.9rem;
  color: #555a64;
  line-height: 1.5;
  margin: 0;
}
.coffee-story {
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid #d4af37;
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #2d3139;
}
/* Tech band: 2 líneas de 4 elementos */
.author-home .tech-list {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem 1rem !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 2rem 0 !important;
}
.author-home .tech-list span {
  text-align: center !important;
}
@media (max-width: 900px) {
  .author-home .tech-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 500px) {
  .author-home .tech-list {
    grid-template-columns: 1fr !important;
  }
}
/* Ampliar área azul (columna de texto) del Hero y fijar 2 líneas perfectas */
.author-home .hero-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr) !important;
  gap: 36px !important;
}
.author-home .hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.2rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.035em !important;
  margin-bottom: 1.2rem !important;
}
@media (min-width: 650px) {
  .author-home .hero h1 .text-gradient {
    white-space: nowrap;
  }
}
@media (min-width: 1200px) {
  .author-home .hero-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr) !important;
    gap: 48px !important;
  }
}
@media (max-width: 960px) {
  .author-home .hero-layout {
    grid-template-columns: 1fr !important;
  }
}
/* Popups CRO */
.cro-slidein {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid #d4af37;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  padding: 1.5rem;
  z-index: 999;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cro-slidein.is-visible {
  transform: translateY(0);
}
.cro-slidein-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 4px;
}
.cro-slidein-close:hover {
  color: #111;
}
.cro-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8c6a12;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.cro-slidein h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  color: #18191d;
  line-height: 1.35;
}
.cro-slidein p {
  font-size: 0.88rem;
  color: #555a64;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.cro-stat-pill {
  display: inline-block;
  background: #faf8f3;
  border: 1px solid #ebe7dc;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #18191d;
  margin-bottom: 0.85rem;
}

/* =====================================
 PORTAL SHOWCASE MOCKUP & GIF SHOWCASE
===================================== */
.portal-showcase-media {
  margin: 2.2rem auto 2.5rem;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(18, 12, 28, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 64, 221, 0.25);
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portal-showcase-media:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(18, 12, 28, 0.22), 0 6px 20px rgba(148, 64, 221, 0.15);
}

.portal-showcase-gif {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 13px;
}

.portal-showcase-mockup {
  background: #15101e;
  border: 1px solid #2d233c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(18, 12, 28, 0.4), 0 0 0 1px rgba(148, 64, 221, 0.2);
  margin: 2.2rem 0 2rem;
  text-align: left;
}

.portal-mockup-header {
  background: #1c1529;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2d233c;
}

.portal-mockup-dots {
  display: flex;
  gap: 6px;
}

.portal-mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #4a3b63;
}
.portal-mockup-dots span:nth-child(1) { background: #ff5f56; }
.portal-mockup-dots span:nth-child(2) { background: #ffbd2e; }
.portal-mockup-dots span:nth-child(3) { background: #27c93f; }

.portal-mockup-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d1c7e2;
  letter-spacing: -0.01em;
}

.portal-mockup-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(31, 255, 147, 0.15);
  color: #1fff93;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(31, 255, 147, 0.3);
}

.portal-mockup-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 260px;
}

.portal-mockup-sidebar {
  background: #120d1a;
  border-right: 1px solid #231b31;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-side-item {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8c7eab;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.mockup-side-item.active {
  background: #271c3a;
  color: #faf7fc;
  box-shadow: inset 2px 0 0 #9440dd;
}

.mockup-side-item .dot-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1fff93;
}

.portal-mockup-main {
  padding: 18px;
  background: #181224;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-prompt-preview {
  background: #0f0a17;
  border: 1px solid #2b203c;
  border-radius: 8px;
  overflow: hidden;
}

.mockup-code-header {
  background: #1d152c;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  border-bottom: 1px solid #2b203c;
}

.code-lang {
  color: #ff751f;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.code-copy-btn {
  color: #1fff93;
  font-weight: 600;
}

.mockup-code-content {
  margin: 0;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #d6caed;
  overflow-x: auto;
  white-space: pre-wrap;
}

.mockup-tags-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tag-model {
  font-size: 0.72rem;
  color: #ab9dc7;
  background: #231b31;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #332747;
}

@media (max-width: 768px) {
  .portal-mockup-body {
    grid-template-columns: 1fr;
  }
  .portal-mockup-sidebar {
    display: none;
  }
}

/* =====================================
 LEAD MAGNET SECTION (MUESTRA GRATIS)
===================================== */
.lead-magnet-section {
  background: #fbf9f4;
  border-block: 1px solid #e8e2d5;
  padding: 42px 0;
  margin-top: 10px;
}

.lead-magnet-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.lead-magnet-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #8c6a12;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.lead-magnet-content h3 {
  font-size: 1.35rem;
  color: #1a1622;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.lead-magnet-content p {
  font-size: 0.92rem;
  color: #585563;
  line-height: 1.55;
  margin: 0;
}

.lead-magnet-form-wrap {
  background: #ffffff;
  border: 1.5px solid #d4c2eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(41, 22, 59, 0.05);
}

.lead-magnet-inputs {
  display: flex;
  gap: 10px;
}

.lead-magnet-inputs input {
  flex: 1;
  padding: 14px 16px !important;
  border: 1.5px solid #c9bfdb !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  background: #ffffff !important;
  color: #18191d !important;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 0 !important;
}

.lead-magnet-inputs input::placeholder {
  color: #7b7587 !important;
}

.lead-magnet-inputs input:focus {
  border-color: #9440dd !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(148, 64, 221, 0.15) !important;
}

.lead-magnet-inputs .button {
  white-space: nowrap;
  padding: 14px 20px !important;
  font-size: 0.9rem !important;
  border-radius: 8px !important;
}

.lead-magnet-status {
  margin: 8px 0 0 0;
  font-size: 0.85rem;
  color: #0b8043;
  font-weight: 600;
}

.lead-magnet-hint {
  font-size: 0.74rem;
  color: #8c8896;
  margin: 10px 0 0 0;
}

@media (max-width: 860px) {
  .lead-magnet-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .lead-magnet-inputs {
    flex-direction: column;
  }
}

/* =====================================
 ÍNDICE DETALLADO DE CAPÍTULOS
===================================== */
.indice-container {
  margin-top: 55px;
  background: #ffffff;
  border: 1.5px solid #d4c2eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 25px rgba(41, 22, 59, 0.04);
}

.indice-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #ebe5f2;
  padding-bottom: 18px;
}

.indice-header h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  color: #1a1622;
}

.indice-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.indice-accordion details {
  background: #faf8fc;
  border: 1px solid #e5dced;
  border-radius: 10px;
  padding: 14px 18px;
  transition: all 0.2s ease;
}

.indice-accordion details[open] {
  background: #ffffff;
  border-color: #9440dd;
  box-shadow: 0 4px 14px rgba(148, 64, 221, 0.08);
}

.indice-accordion summary {
  font-size: 0.96rem;
  font-weight: 600;
  color: #1a1622;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.indice-accordion summary::-webkit-details-marker {
  display: none;
}

.indice-accordion summary::after {
  content: "+";
  font-size: 1.25rem;
  color: #9440dd;
  font-weight: 700;
}

.indice-accordion details[open] summary::after {
  content: "−";
}

.chapter-pages {
  font-size: 0.76rem;
  font-weight: 700;
  color: #8c6a12;
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: auto;
  margin-right: 12px;
}

.indice-accordion details p {
  margin: 12px 0 4px;
  font-size: 0.88rem;
  color: #555060;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .indice-container {
    padding: 20px;
  }
  .indice-accordion summary {
    flex-wrap: wrap;
  }
  .chapter-pages {
    margin-left: 0;
  }
}




