/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.7.1776778221
Updated: 2026-04-21 13:30:21

*/

/* ========== MI CUENTA - MIS LIBROS ========== */
.mis-libros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.libro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.libro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.libro-card img {
  width: 100%;
  max-width: 130px;
  height: auto;
  border-radius: 6px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
}

.libro-card h4 {
  font-size: 0.85rem;
  color: #222;
  margin: 0 0 12px;
  line-height: 1.3;
}

.leer-btn {
  display: inline-block;
  background: #1a1a2e;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-decoration: none !important;
  transition: background 0.2s;
  margin-top: auto;
}

.leer-btn:hover {
  background: #c8a96e;
}

/* ========== MI CUENTA - GENERAL ========== */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: #f0e9df;
  color: #1a1a2e;
  font-weight: bold;
}

/* ========== LECTOR ========== */
.reader-wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: Georgia, serif;
}

.reader-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f9f5f0;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 4px solid #c8a96e;
}

.reader-cover {
  width: 70px;
  height: auto;
  border-radius: 4px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

.reader-book-info h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #222;
}

.reader-book-info span {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
}

.reader-body {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.reader-index {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

.reader-index h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 12px;
}

.reader-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reader-index ul li {
  margin-bottom: 6px;
}

.reader-index ul li a {
  text-decoration: none;
  color: #666;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.reader-index ul li a:hover,
.reader-index ul li a.active {
  background: #f0e9df;
  color: #333;
  font-weight: 400;
}

.reader-content {
  flex: 1;
  min-width: 0;
}

.chapter-panel {
  display: none;
}

.chapter-panel.active {
  display: block;
}

.chapter-panel h1 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: #365f91;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.reader-text {
  line-height: 1.6;
  font-size: 1.05rem;
  color: #222;
}

.reader-text p {
  margin: 0 0 1.2em;
}

.reader-text h2,
.reader-text h3,
.reader-text h4 {
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: #365f91;
}

.reader-text h2 {
  font-size: 1.35rem;
  margin: 1.7em 0 0.85em;
}

.reader-text h3 {
  font-size: 1.2rem;
  margin: 1.6em 0 0.75em;
}

.reader-text h4 {
  font-size: 1.1rem;
  margin: 1.4em 0 0.7em;
}

.reader-text h2:first-child,
.reader-text h3:first-child,
.reader-text h4:first-child,
.reader-text p:first-child {
  margin-top: 0;
}

.reader-text strong {
  font-weight: 700;
}

.reader-text em {
  font-style: italic;
}

.reader-text ul,
.reader-text ol {
  margin: 1em 0 1.2em;
  padding-left: 1.4em;
}

.reader-text li {
  margin: 0.35em 0;
  line-height: 1.6;
}

.reader-text p.caption {
  text-align: center;
  font-style: italic;
  color: #555;
}

.reader-text figure.wp-block-image {
  margin: 1.5em auto;
  text-align: center;
}

.reader-text figure.wp-block-image img,
.reader-text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.reader-text figure.wp-block-image figcaption {
  margin-top: 0.6em;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
}

.reader-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.reader-nav-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #444;
  transition: all 0.2s;
  font-family: Georgia, serif;
}

.reader-nav-btn:hover {
  background: #f5f0eb;
  border-color: #c8a96e;
  color: #222;
}

#chapter-counter {
  color: #aaa;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .reader-body {
    flex-direction: column;
  }
  .reader-index {
    width: 100%;
    position: static;
  }
}

/* ========== CATÁLOGO DE LIBROS ========== */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.catalogo-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  max-width: 220px;
}

.catalogo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.catalogo-cover {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f5f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalogo-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.catalogo-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalogo-info h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
  color: #1a1a1a;
  font-family: Georgia, serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalogo-autor {
  color: #888;
  font-style: italic;
  font-size: 0.78rem;
  margin: 0 0 8px;
}

.catalogo-paginas {
  font-size: 0.78rem;
  color: #888;
  margin: 0 0 8px;
  font-style: italic;
}

/* Hide excerpt by default (only visible inside hover overlay) */
.catalogo-excerpt {
  display: none;
}

/* Hover overlay */
.catalogo-card {
  position: relative;
}

.catalogo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.95);
  color: #fff;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  border-radius: 12px;
  z-index: 2;
}

.catalogo-card:hover .catalogo-overlay,
.catalogo-card.is-open .catalogo-overlay {
  opacity: 1;
  visibility: visible;
}

.catalogo-overlay h4 {
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: #c8a96e;
  font-family: Georgia, serif;
}

.catalogo-overlay .catalogo-overlay-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #eee;
  flex: 1;
  overflow-y: auto;
  margin-bottom: 14px;
}

.catalogo-overlay .catalogo-overlay-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.catalogo-overlay .catalogo-overlay-footer .catalogo-precio {
  color: #fff;
}

/* Mobile: tap to open */
@media (hover: none) {
  .catalogo-card { cursor: pointer; }
}
.catalogo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.catalogo-precio {
  font-size: 1rem;
  font-weight: bold;
  color: #1a1a2e;
}

.catalogo-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-decoration: none !important;
  transition: background 0.2s;
}

.catalogo-btn.comprar {
  background: #1a1a2e;
  color: #fff !important;
}

.catalogo-btn.comprar:hover {
  background: #c8a96e;
}

.catalogo-btn.leer {
  background: #f0e9df;
  color: #1a1a2e !important;
}

.catalogo-btn.leer:hover {
  background: #c8a96e;
  color: #fff !important;
}

@media (max-width: 600px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalogo-card {
    max-width: 100%;
  }
}

/* ========== ACCESO PÚBLICO AL LECTOR ========== */
.reader-access-page {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.reader-access-card {
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 32px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.reader-access-cover {
  width: 220px;
  max-height: 330px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.22);
}

.reader-access-info {
  flex: 1;
}

.reader-access-info h1 {
  margin: 0 0 8px;
  color: #1a1a2e;
  font-family: Georgia, serif;
}

.reader-access-author {
  margin: 0 0 20px;
  color: #888;
  font-style: italic;
}

.reader-access-description {
  line-height: 1.6;
  color: #444;
}

.reader-access-message {
  margin-top: 24px;
  padding: 14px;
  background: #f9f5f0;
  border-left: 4px solid #c8a96e;
}

.reader-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.reader-access-button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 7px;
  text-decoration: none !important;
}

.reader-access-button.primary {
  background: #1a1a2e;
  color: #fff !important;
}

.reader-access-button.secondary {
  background: #f0e9df;
  color: #1a1a2e !important;
}

@media (max-width: 650px) {
  .reader-access-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .reader-access-cover {
    width: 180px;
  }

  .reader-access-actions {
    justify-content: center;
  }
}