/* ================================
   ESTILOS UNIVERSALES PARA LISTAS
   ================================ */

:root {
  --lista-bg: rgba(255, 255, 255, 0.65);
  --lista-border: rgba(62,39,26,0.12);
  --lista-grad1: #f3e6d8;
  --lista-grad2: #e0c8b0;
  --lista-text: #3e271a;
  --lista-accent: #b89267;
  --lista-shadow: 0 8px 25px rgba(0,0,0,.12);
}

/* Fade-in global */
.lista-wrapper, .lista-libro {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp .6s ease forwards;
}

.lista-libro:nth-child(1) { animation-delay: .05s; }
.lista-libro:nth-child(2) { animation-delay: .1s; }
.lista-libro:nth-child(3) { animation-delay: .15s; }
.lista-libro:nth-child(4) { animation-delay: .2s; }
.lista-libro:nth-child(5) { animation-delay: .25s; }
.lista-libro:nth-child(6) { animation-delay: .3s; }
.lista-libro:nth-child(7) { animation-delay: .35s; }
.lista-libro:nth-child(8) { animation-delay: .4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Wrapper general */
.lista-wrapper {
  max-width: 820px;
  margin: 40px auto 80px;
  padding: 0 16px;
  font-family: 'Cormorant Garamond', serif;
}

/* Títulos */
.lista-title {
  font-size: 46px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--lista-text);
}

.lista-subtitle {
  text-align: center;
  font-size: 22px;
  margin-bottom: 40px;
  color: #4f3a29;
  opacity: .85;
  font-weight: 400;
}

/* Tarjetas */
.lista-libro {
  background: linear-gradient(135deg, var(--lista-grad1), var(--lista-grad2));
  border: 1px solid var(--lista-border);
  box-shadow: var(--lista-shadow);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 26px;
  transition: .25s ease;
}

.lista-libro:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

/* Título libro */
.lista-libro h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  color: var(--lista-text);
}

/* Meta */
.lista-meta {
  display: flex;
  gap: 18px;
  font-size: 18px;
  margin-bottom: 12px;
  color: #6a5644;
}

/* Descripción */
.lista-desc {
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 18px;
  color: #3e2f25;
}

/* Botón */
.lista-btn {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #d7b596, #c49a74);
  color: #4a3a2b;
  text-decoration: none;
  border-radius: 12px;
  font-size: 18px;
  border: 1px solid rgba(120,90,60,0.25);
  transition: .2s ease;
}

.lista-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}


/* === Fuente global === */
body, h1, h2, h3, h4, p, span, a, button, div {
  font-family: 'Cormorant Garamond', serif !important;
}

/* === CONTENEDOR GENERAL === */
.lista-wrapper {
  max-width: 760px;
  margin: 40px auto;
  padding: 30px;
  background: linear-gradient(135deg, #f3e6d8, #e0c8b0);
  border-radius: 20px;
  border: 1px solid rgba(150,120,90,0.28);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* === TÍTULO === */
.lista-title {
  font-size: 42px;
  font-weight: 600;
  text-align: center;
  color: #4d392b;
  margin-bottom: 4px;
  letter-spacing: .5px;
}

.lista-subtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  color: #6e5a49;
  margin-bottom: 30px;
  line-height: 1.35;
}

/* === TARJETA DE LIBRO === */
.lista-libro {
  background: linear-gradient(135deg, #efe0d0, #dbc1a9);
  border: 1px solid rgba(140,110,85,0.25);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 3px 9px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.lista-libro:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Título del libro */
.lista-libro h3 {
  margin: 0 0 10px 0;
  color: #3e2c1e;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .3px;
}

/* === METADATOS (páginas + tiempo) === */
.lista-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.lista-meta span {
  padding: 5px 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(140,110,85,0.25);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  color: #6a5546;
  font-size: 17px;
}

/* === DESCRIPCIÓN === */
.lista-desc {
  font-size: 19px;
  line-height: 1.45;
  color: #4a3a2b;
  margin-bottom: 16px;
}

/* === BOTÓN === */
.lista-btn {
  display: inline-block;
  padding: 8px 24px;
  font-size: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c8a985, #b79474);
  color: #3e2c1e;
  border: 1px solid rgba(120,90,60,0.35);
  text-decoration: none;
  transition: 0.25s ease;
  font-weight: 500;
}

.lista-btn:hover {
  background: linear-gradient(135deg, #b79474, #a68365);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}


/* =============================
   TIPOGRAFÍA GLOBAL LIBREOS
============================= */
body, h1, h2, h3, h4, p, span, a, button {
  font-family: 'Cormorant Garamond', serif !important;
  letter-spacing: .2px;
}


/* =============================
   WRAPPER principal
============================= */
.lista-wrapper {
  max-width: 860px;
  margin: 60px auto;
  padding: 40px;
  background: linear-gradient(180deg, #f4e9dc, #e8d3bd);
  border-radius: 22px;
  border: 1px solid rgba(160,120,90,0.35);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}


/* =============================
   TÍTULO Y SUBTÍTULO
============================= */
.lista-title {
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  color: #4a392b;
  margin-bottom: 10px;
}

.lista-subtitle {
  text-align: center;
  font-size: 19px;
  color: #6e5643;
  margin-bottom: 40px;
}


/* =============================
   TARJETA DE LIBRO — PREMIUM
============================= */
.lista-libro {
  background: linear-gradient(135deg, #f3e6d8, #e3ccb4);
  padding: 24px 26px;
  margin-bottom: 24px;
  border-radius: 18px;
  border: 1px solid rgba(150,110,80,0.28);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transition: 0.25s ease;
}

.lista-libro:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}


/* =============================
   Título del libro
============================= */
.lista-libro h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #3b281c;
}


/* =============================
   META (páginas + tiempo)
============================= */
.lista-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lista-meta span {
  background: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(150,120,90,0.25);
  font-size: 17px;
  color: #6d5242;
  backdrop-filter: blur(6px);
}


/* =============================
   DESCRIPCIÓN
============================= */
.lista-desc {
  font-size: 20px;
  color: #4b392a;
  margin-bottom: 16px;
  line-height: 1.45;
}


/* =============================
   BOTÓN
============================= */
.lista-btn {
  display: inline-block;
  padding: 8px 22px;
  background: linear-gradient(135deg, #d6b28b, #c49d77);
  color: #3a2918;
  border-radius: 12px;
  border: 1px solid rgba(130,100,70,0.45);
  text-decoration: none;
  font-size: 18px;
  transition: 0.25s;
}

.lista-btn:hover {
  background: linear-gradient(135deg, #c49d77, #b68c67);
  box-shadow: 0 4px 12px rgba(0,0,0,0.17);
  transform: translateY(-2px);
}

/* =============================
   TIPOGRAFÍA GLOBAL LIBREOS
============================= */
body, h1, h2, h3, h4, p, span, a, button {
  font-family: 'Cormorant Garamond', serif !important;
  letter-spacing: .2px;
}


/* =============================
   WRAPPER principal
============================= */
.lista-wrapper {
  max-width: 860px;
  margin: 60px auto;
  padding: 40px;
  background: linear-gradient(180deg, #f4e9dc, #e8d3bd);
  border-radius: 22px;
  border: 1px solid rgba(160,120,90,0.35);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}


/* =============================
   TÍTULO Y SUBTÍTULO
============================= */
.lista-title {
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  color: #4a392b;
  margin-bottom: 10px;
}

.lista-subtitle {
  text-align: center;
  font-size: 19px;
  color: #6e5643;
  margin-bottom: 40px;
}


/* =============================
   TARJETA DE LIBRO — PREMIUM
============================= */
.lista-libro {
  background: linear-gradient(135deg, #f3e6d8, #e3ccb4);
  padding: 24px 26px;
  margin-bottom: 24px;
  border-radius: 18px;
  border: 1px solid rgba(150,110,80,0.28);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transition: 0.25s ease;
}

.lista-libro:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}


/* =============================
   Título del libro
============================= */
.lista-libro h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #3b281c;
}


/* =============================
   META (páginas + tiempo)
============================= */
.lista-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lista-meta span {
  background: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(150,120,90,0.25);
  font-size: 17px;
  color: #6d5242;
  backdrop-filter: blur(6px);
}


/* =============================
   DESCRIPCIÓN
============================= */
.lista-desc {
  font-size: 20px;
  color: #4b392a;
  margin-bottom: 16px;
  line-height: 1.45;
}


/* =============================
   BOTÓN
============================= */
.lista-btn {
  display: inline-block;
  padding: 8px 22px;
  background: linear-gradient(135deg, #d6b28b, #c49d77);
  color: #3a2918;
  border-radius: 12px;
  border: 1px solid rgba(130,100,70,0.45);
  text-decoration: none;
  font-size: 18px;
  transition: 0.25s;
}

.lista-btn:hover {
  background: linear-gradient(135deg, #c49d77, #b68c67);
  box-shadow: 0 4px 12px rgba(0,0,0,0.17);
  transform: translateY(-2px);
}


/* Fuente principal */
body, .header-lite, .footer-lite {
  font-family: 'Cormorant Garamond', serif;
}

/* ---------------- HEADER LITE ---------------- */

.header-lite {
  background: #f5ede4;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.hl-container {
  max-width: 1220px;
  margin: auto;
  display: flex;
  align-items: center;
}

.hl-brand .hl-logo {
  height: 32px;
  width: auto;
}

.hl-spacer {
  flex: 1;
}

/* Login button */
.hl-login-btn {
  background: rgba(181, 137, 99, .15);
  border: 1px solid rgba(181,137,99,.35);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: .25s;
}

.hl-login-btn:hover {
  background: rgba(181,137,99,.25);
}

/* Usuario */
.hl-user-panel {
  position: relative;
}

.hl-user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hl-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.hl-caret {
  width: 16px;
  opacity: .6;
}

/* Menu */
.hl-menu {
  position: absolute;
  right: 0;
  top: 42px;
  background: #fffdf9;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
  padding: 6px;
  display: none;
}

.hl-menu-item {
  padding: 10px 14px;
  font-size: 15px;
  width: 160px;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  background: none;
  border: none;
}

.hl-menu-item:hover {
  background: rgba(181,137,99,.12);
}

/* ---------------- FOOTER LITE ---------------- */

.footer-lite {
  margin-top: 60px;
  padding: 24px;
  background: #f5ede4;
  text-align: center;
  font-size: 16px;
  color: #4a3b2b;
}

.footer-lite a {
  color: #7d5d3c;
  text-decoration: none;
}

.footer-lite a:hover {
  text-decoration: underline;
}

.fl-logo {
  height: 32px;
  margin-bottom: 10px;
}

.fl-claim {
  margin: 8px 0;
  font-size: 17px;
}

.fl-links {
  margin-top: 10px;
}

.sep {
  margin: 0 6px;
  opacity: .6;
}


/* === HEADER LITE === */
.header-lite {
  width: 100%;
  background: rgba(255, 255, 255, 0.65); /* mismo que index */
  backdrop-filter: blur(12px);           /* mismo que index */
  border-bottom: 1px solid rgba(62, 39, 26, 0.10);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hl-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;

  display: flex;
  align-items: center;
}

/* LOGO */
.hl-brand {
  display: flex;
  align-items: center;
}

.hl-logo {
  width: 140px;
  height: auto;
}

/* Spacer */
.hl-spacer {
  flex: 1;
}

/* USER AREA */
.hl-user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar + toggle */
.hl-user-panel {
  position: relative;
}

.hl-user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hl-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Dropdown */
.hl-menu {
  position: absolute;
  right: 0;
  top: 40px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(62,39,26,0.15);
  padding: 8px 0;
  border-radius: 12px;
  width: 170px;
  display: none;
}

.hl-menu-item {
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #3e271a;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hl-menu-item:hover {
  background: rgba(0,0,0,0.07);
}

/* Login button */
.hl-login-btn {
  font-family: 'Cormorant Garamond', serif;
  padding: 8px 16px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(62,39,26,0.25);
  border-radius: 10px;
  cursor: pointer;
}

.lista-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 2.6rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  line-height: 1.3 !important;
  margin: 30px auto 22px auto !important;
  letter-spacing: 0.6px !important;

  /* 🎨 Gradiente dorado-luminoso */
  color: transparent !important;
  background: linear-gradient(
    180deg,
    #6b442a 0%,      /* bronce oscuro fino */
    #caa27b 35%,     /* dorado medio */
    #dfc2a2 70%,     /* dorado claro */
    #70482d 100%     /* cierre elegante */
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;

  /* Sombra editorial suave */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;

  /* Animación */
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: listaTitleFade 0.9s ease forwards !important;
}

/* Keyframes */
@keyframes listaTitleFade {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.lista-libro h3 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.95rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.25px !important;

  /* 🔥 Gradiente SUPER oscuro */
  color: transparent !important;
  background: linear-gradient(
    180deg,
    #1a110b 0%,      /* negro-café profundo */
    #2f1d13 30%,     /* tinta oscura */
    #4c3021 55%,     /* bronce quemado */
    #2a1a12 85%,     /* cierre oscuro */
    #0f0906 100%     /* casi negro elegante */
  ) !important;

  -webkit-background-clip: text !important;
  background-clip: text !important;

  /* Sombra de tinta */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;

  /* Animación */
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: fadeH3UltraDark 0.9s ease forwards !important;
}

/* Keyframes */
@keyframes fadeH3UltraDark {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.lista-libro h3 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.95rem !important;
  font-weight: 600 !important;
  line-height: 1.26 !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.20px !important;

  /* 🎨 Degradado bronce ligeramente más oscuro */
  color: transparent !important;
  background: linear-gradient(
    180deg,
    #5a3b23 0%,     /* bronce medio-oscuro */
    #8b6443 45%,    /* bronce cálido */
    #9f7a55 70%,    /* bronce claro pero más apagado */
    #6c472e 100%    /* cierre cohesivo */
  ) !important;

  -webkit-background-clip: text !important;
  background-clip: text !important;

  /* sombra suave */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.23) !important;

  /* Animación */
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: fadeH3Bronce 0.9s ease forwards !important;
}

@keyframes fadeH3Bronce {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.lista-libro h3 {
  /* reemplazar automáticamente el guion largo por un punto */
}

.lista-libro h3 {
  --texto: attr(data-title);
}

.lista-btn {
  display: inline-block !important;
  padding: 0.7rem 1.55rem !important;
  background: linear-gradient(180deg, #d2ae84, #b78e63) !important;
  border-radius: 12px !important;
  color: #3a2816 !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;

  /* borde fino bronce */
  border: 1px solid rgba(185, 150, 110, 0.55) !important;

  /* sombra exterior sutil */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;

  /* luz interior */
  inset: 0 1px 1.5px rgba(255, 255, 255, 0.35) !important;
  position: relative !important;

  transition: all .22s ease !important;
}

.lista-btn:hover {
  background: linear-gradient(180deg, #e1c09c, #c49a70) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 3px 7px rgba(0,0,0,0.17) !important;
}


.lista-btn {
  cursor: pointer !important;
}


