/* ==========================================================================
   Delinea Comics - Hoja de Estilos Moderna en Modo Oscuro (High-Fidelity)
   ========================================================================== */

:root {
  /* Paleta de Colores Base - Delinea Dark Cinematic */
  --bg-main: #0b0c10;
  --bg-surface: #111319;
  --bg-card: rgba(18, 20, 28, 0.78);
  --bg-card-hover: rgba(28, 30, 42, 0.92);
  --bg-glass: rgba(15, 17, 24, 0.9);
  
  /* Acentos de Color - Rojo Delinea (#e20613) y Blanco (#ffffff) */
  --accent-primary: #e20613;
  --accent-primary-rgb: 226, 6, 19;
  --accent-primary-hover: #c40510;
  --accent-primary-light: #ff4d5a;
  --accent-light: #ff8a93;
  --accent-indigo: #e20613;
  --accent-blue: #3b82f6;
  --accent-cyan: #ff2e3b;
  --accent-subtle: rgba(226, 6, 19, 0.16);
  --accent-violet-glow: rgba(226, 6, 19, 0.42);
  --accent-glow-strong: rgba(226, 6, 19, 0.75);
  --accent-ambient-1: rgba(226, 6, 19, 0.16);
  --accent-ambient-2: rgba(226, 6, 19, 0.08);
  
  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #b8020d 0%, #e20613 50%, #ff2e3b 100%);
  --grad-active-nav: linear-gradient(135deg, #b8020d 0%, #e20613 100%);
  --grad-card-overlay: linear-gradient(180deg, rgba(17, 19, 25, 0) 65%, rgba(11, 12, 16, 0.9) 100%);
  --grad-banner-overlay: linear-gradient(90deg, rgba(11, 12, 16, 0.96) 0%, rgba(11, 12, 16, 0.78) 50%, rgba(11, 12, 16, 0.28) 100%);

  /* Tipografía y Textos */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;

  /* Bordes y Líneas */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(226, 6, 19, 0.35);
  --border-active: rgba(226, 6, 19, 0.65);

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 24px var(--accent-violet-glow);

  /* Dimensiones */
  --navbar-height: 72px;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reseteo y Estilos Globales
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 85% 15%, var(--accent-ambient-1, rgba(226, 6, 19, 0.16)) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, var(--accent-ambient-2, rgba(226, 6, 19, 0.08)) 0%, transparent 50%),
              var(--bg-main);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background 0.5s ease;
}

[data-theme="light"] body {
  background: radial-gradient(circle at 85% 15%, var(--accent-ambient-1, rgba(226, 6, 19, 0.12)) 0%, transparent 50%),
              radial-gradient(circle at 15% 85%, var(--accent-ambient-2, rgba(226, 6, 19, 0.06)) 0%, transparent 55%),
              #f8fafc;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* Scrollbar personalizado dinámico */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-main);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--grad-primary);
  border-radius: 9999px;
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.25);
  box-shadow: 0 0 12px var(--accent-violet-glow);
}

/* Contenedor general */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Barra de Navegación Superior (Header sin Login/Perfil)
   ========================================================================== */

.top-navbar {
  height: var(--navbar-height);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px !important;
  max-height: 38px !important;
  transition: transform var(--transition-normal);
}

.brand-logo:hover .brand-icon {
  transform: scale(1.03);
}

/* Imagen del Logo Delinea Comics en Navbar */
.site-header-logo-img {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brand-logo:hover .site-header-logo-img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(226, 6, 19, 0.35);
}

.brand-name {
  color: #ffffff;
}

.brand-highlight {
  color: var(--accent-primary, #e20613);
  background: linear-gradient(135deg, #e20613, #ff4d5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Resalte especial para Delinea Comics en el Banner Hero */
.delinea-hero-brand {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #ffe3e5 50%, #ff6b76 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(226, 6, 19, 0.6);
}

/* MENÚ PRINCIPAL DEL HEADER */
.header-nav {
  display: flex;
  align-items: center;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav-item {
  position: relative;
}

.header-nav-link,
.header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.header-nav-link:hover,
.header-nav-btn:hover {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

.header-nav-link.active {
  background: var(--grad-active-nav);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(226, 6, 19, 0.45);
}

.header-nav-btn[aria-expanded="true"] {
  background: rgba(139, 92, 246, 0.25);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.chevron-icon {
  transition: transform var(--transition-fast);
}

.header-nav-btn[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.nav-text-short {
  display: none;
}

/* ==========================================================================
   VENTANAS ESTÁTICAS DEBAJO DE LAS OPCIONES DEL HEADER
   ========================================================================== */

.static-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #0d1428;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--border-radius-md);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(226, 6, 19, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: all var(--transition-fast);
  z-index: 250;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.static-dropdown-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Ventana Estática de CATEGORÍAS */
.categories-panel {
  width: 380px;
  padding: 16px;
}

.static-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.panel-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.panel-header-title svg {
  color: var(--accent-cyan);
}

.categories-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.panel-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.panel-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: scale(1.08);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.category-card-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--border-glow);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-violet-glow);
}

.category-card-btn.active-genre {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 14px var(--accent-violet-glow);
}

.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-fast);
}

.category-card-btn:hover .cat-icon {
  transform: scale(1.1);
}

.cat-action { color: #60a5fa; background: rgba(59, 130, 246, 0.15); }
.cat-adventure { color: #34d399; background: rgba(16, 185, 129, 0.15); }
.cat-comedy { color: #fbbf24; background: rgba(245, 158, 11, 0.15); }
.cat-drama { color: #f472b6; background: rgba(244, 63, 94, 0.15); }
.cat-fantasy { color: #c084fc; background: rgba(168, 85, 247, 0.15); }
.cat-terror { color: #f87171; background: rgba(239, 68, 68, 0.15); }
.cat-sports { color: #38bdf8; background: rgba(56, 189, 248, 0.15); }
.cat-romance { color: #fb7185; background: rgba(244, 63, 94, 0.15); }
.cat-scifi { color: #818cf8; background: rgba(99, 102, 241, 0.15); }

/* Ventana Estática de INFORMACIÓN (Sin opciones de subida ni registro) */
.info-panel {
  width: 360px;
  padding: 18px;
}

.info-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.info-panel-desc {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 14px;
}

.info-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.info-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.info-link-item:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(3px);
}

.info-link-item .info-icon {
  font-size: 1.15rem;
}

.info-link-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-link-item strong {
  font-size: 0.82rem;
  color: #ffffff;
}

.info-link-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.info-panel-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Barra de búsqueda central redondeada
   ========================================================================== */

.nav-center {
  flex: 1;
  max-width: 520px;
  margin: 0 10px;
}

.search-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(18, 25, 48, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--border-radius-full);
  padding: 8px 18px;
  transition: var(--transition-normal);
}

.search-bar-wrapper:focus-within {
  border-color: var(--accent-primary);
  background: rgba(22, 31, 60, 0.95);
  box-shadow: 0 0 20px var(--accent-violet-glow);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.search-bar-wrapper:focus-within .search-icon {
  color: var(--accent-primary);
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.search-input::placeholder {
  color: #64748b;
  font-size: 0.88rem;
}

.clear-search-btn {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.clear-search-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Derecha del Navbar (Notificaciones de Novedades) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.dropdown-wrapper {
  position: relative;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
}

.notification-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

/* Panel de Novedades */
.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  padding: 14px;
  background: #0d1428;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--border-radius-md);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all var(--transition-fast);
  z-index: 250;
  backdrop-filter: blur(20px);
}

.notification-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.panel-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mark-read-link {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mark-read-link:hover {
  text-decoration: underline;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-fast);
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.notification-item.unread {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--accent-indigo);
}

.noti-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-top: 5px;
  flex-shrink: 0;
}

.noti-text {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.noti-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   Modo Claro / Light Theme Variables & Overrides
   ========================================================================== */

[data-theme="light"] {
  --bg-main: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.95);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #475569;

  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-glow: rgba(226, 6, 19, 0.25);
  --border-active: rgba(226, 6, 19, 0.5);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);

  --grad-card-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, 0.85) 100%);
  --grad-banner-overlay: linear-gradient(90deg, rgba(244, 246, 251, 0.98) 0%, rgba(244, 246, 251, 0.88) 55%, rgba(244, 246, 251, 0.35) 100%);
}

[data-theme="light"] body {
  background-color: var(--bg-main);
  color: var(--text-primary);
}

/* Tipografía general en modo claro: letras blancas pasan a negro / pizarra */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #0f172a;
}

[data-theme="light"] .brand-name {
  color: #0f172a;
}

/* Header & Barra de navegación */
[data-theme="light"] .top-navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .header-nav-link,
[data-theme="light"] .header-nav-btn {
  color: #334155;
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .header-nav-link:hover,
[data-theme="light"] .header-nav-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .header-nav-btn[aria-expanded="true"] {
  background: rgba(226, 6, 19, 0.12);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

[data-theme="light"] .nav-user-badge-btn {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #0f172a;
}

[data-theme="light"] .nav-user-badge-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #0284c7;
}

[data-theme="light"] .search-bar-wrapper {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .search-bar-wrapper:focus-within {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-violet-glow);
}

[data-theme="light"] .search-input {
  color: #0f172a;
}

[data-theme="light"] .search-input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .search-icon {
  color: #64748b;
}

[data-theme="light"] .icon-button {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

[data-theme="light"] .icon-button:hover,
[data-theme="light"] .icon-button[aria-expanded="true"] {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

/* Banner de bienvenida y carrusel */
[data-theme="light"] .banner-slide-overlay,
[data-theme="light"] .welcome-banner-overlay {
  background: linear-gradient(90deg, rgba(244, 246, 251, 0.96) 0%, rgba(244, 246, 251, 0.82) 55%, rgba(244, 246, 251, 0.3) 100%);
}

[data-theme="light"] .welcome-title,
[data-theme="light"] .banner-slide-content h2,
[data-theme="light"] .banner-content .welcome-title,
[data-theme="light"] .banner-content h2 {
  color: #0f172a;
  text-shadow: none;
}

[data-theme="light"] .welcome-subtitle,
[data-theme="light"] .banner-slide-content p,
[data-theme="light"] .banner-content .welcome-subtitle,
[data-theme="light"] .banner-content p {
  color: #334155;
  text-shadow: none;
}

[data-theme="light"] .banner-arrow {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .banner-arrow:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* Títulos de Secciones */
[data-theme="light"] .section-title,
[data-theme="light"] .section-title h2,
[data-theme="light"] .section-title span,
[data-theme="light"] .popular-title,
[data-theme="light"] .recent-section-title {
  color: #0f172a;
}

[data-theme="light"] .catalogue-title-wrap h2 {
  color: #0f172a;
}

[data-theme="light"] .catalogue-title-wrap p {
  color: #475569;
}

[data-theme="light"] .catalogue-back-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .catalogue-back-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* Pestañas del Catálogo */
[data-theme="light"] .catalogue-tabs-bar {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .catalogue-tab-btn {
  color: #475569;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .catalogue-tab-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .catalogue-tab-btn.active {
  color: #ffffff;
}

[data-theme="light"] .catalogue-tab-btn .tab-count-badge {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

[data-theme="light"] .catalogue-tab-btn.active .tab-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Tarjetas de Cómics */
[data-theme="light"] .comic-card,
[data-theme="light"] .recent-comic-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .comic-card:hover,
[data-theme="light"] .recent-comic-item:hover {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1), 0 0 16px var(--accent-violet-glow);
}

[data-theme="light"] .comic-title,
[data-theme="light"] .recent-title {
  color: #0f172a;
}

[data-theme="light"] .author-name,
[data-theme="light"] .recent-author strong {
  color: #334155;
}

[data-theme="light"] .stat-views,
[data-theme="light"] .like-btn,
[data-theme="light"] .recent-meta-info,
[data-theme="light"] .recent-dot {
  color: #64748b;
}

/* Menús Desplegables (Paneles) */
[data-theme="light"] .static-dropdown-panel,
[data-theme="light"] .notification-panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
  color: #0f172a;
}

[data-theme="light"] .panel-header-title,
[data-theme="light"] .panel-header h4,
[data-theme="light"] .dropdown-title {
  color: #0f172a;
}

[data-theme="light"] .category-card-btn {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .category-card-btn:hover {
  background: rgba(15, 23, 42, 0.07);
  color: #0f172a;
}

[data-theme="light"] .category-card-btn.active-genre {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

[data-theme="light"] .info-link-item {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .info-link-item:hover {
  background: rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .info-link-item strong {
  color: #0f172a;
}

[data-theme="light"] .info-link-item span,
[data-theme="light"] .info-panel-desc,
[data-theme="light"] .info-panel-footer {
  color: #64748b;
}

[data-theme="light"] .notification-item {
  background: rgba(15, 23, 42, 0.02);
}

[data-theme="light"] .notification-item:hover {
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .noti-text {
  color: #1e293b;
}

[data-theme="light"] .noti-time {
  color: #64748b;
}

/* Modal de Información y Soporte */
[data-theme="light"] .info-modal-window {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .info-modal-title {
  color: #0f172a;
}

[data-theme="light"] .info-modal-subtitle {
  color: #64748b;
}

[data-theme="light"] .info-modal-close-btn {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

[data-theme="light"] .info-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .info-search-filter-section {
  background: rgba(15, 23, 42, 0.03);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .info-search-input-wrap {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .info-search-input {
  color: #0f172a;
}

[data-theme="light"] .info-search-input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .info-chip {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

[data-theme="light"] .info-chip:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

[data-theme="light"] .info-chip.active {
  background: var(--accent-primary);
  color: #ffffff;
}

[data-theme="light"] .info-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .info-card:hover {
  border-color: rgba(15, 23, 42, 0.16);
  background: #f8fafc;
}

[data-theme="light"] .info-card-contact {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(226, 6, 19, 0.06));
  border-color: rgba(226, 6, 19, 0.25);
}

[data-theme="light"] .info-card-title {
  color: #0f172a;
}

[data-theme="light"] .info-card-subtitle {
  color: #64748b;
}

[data-theme="light"] .info-card-content p,
[data-theme="light"] .info-card-content li {
  color: #334155;
}

[data-theme="light"] .contact-channel-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .contact-channel-name {
  color: #0f172a;
}

[data-theme="light"] .contact-channel-val,
[data-theme="light"] .contact-channel-hours {
  color: #334155;
}

[data-theme="light"] .info-modal-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #64748b;
}

/* Modal de Personalizar Tema */
[data-theme="light"] .theme-modal-card {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 0 0 30px var(--accent-violet-glow);
}

[data-theme="light"] .theme-modal-title-group h3 {
  color: #0f172a;
}

[data-theme="light"] .theme-section-label {
  color: #64748b;
}

[data-theme="light"] .theme-mode-btn {
  color: #334155;
}

[data-theme="light"] .theme-mode-btn:hover {
  color: #0f172a;
}

[data-theme="light"] .theme-mode-btn.active {
  color: #ffffff;
}

[data-theme="light"] .theme-modal-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .theme-modal-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .reset-theme-btn {
  color: #64748b;
}

[data-theme="light"] .reset-theme-btn:hover {
  color: #0f172a;
}

/* Modal de Registro de Usuario */
[data-theme="light"] #nameRegisterModal .modal-content {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] #nameRegisterModal h3 {
  color: #0f172a !important;
}

[data-theme="light"] #nameRegisterModal p {
  color: #334155 !important;
}

[data-theme="light"] #nameRegisterInput {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
}

[data-theme="light"] #btnCancelNameModal {
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #334155 !important;
}

[data-theme="light"] #btnCancelNameModal:hover {
  background: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

/* Drawer de Comentarios */
[data-theme="light"] .comments-drawer {
  background: #ffffff;
  border-left-color: rgba(15, 23, 42, 0.1);
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .comments-drawer-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .comments-drawer-header h3 {
  color: #0f172a;
}

[data-theme="light"] .comment-author {
  color: #0f172a;
}

[data-theme="light"] .comment-text {
  color: #334155;
}

[data-theme="light"] .comment-date {
  color: #64748b;
}

[data-theme="light"] .comment-form textarea,
[data-theme="light"] .comment-form input {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .comment-form textarea::placeholder,
[data-theme="light"] .comment-form input::placeholder {
  color: #94a3b8;
}

/* Lector de Cómics en Modo Claro */
[data-theme="light"] .comic-reader-overlay {
  background-color: #f1f5f9;
}

[data-theme="light"] .reader-container {
  background: #f8fafc;
}

[data-theme="light"] .reader-header,
[data-theme="light"] .reader-footer {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(14px);
}

[data-theme="light"] .reader-comic-title {
  color: #0f172a;
}

[data-theme="light"] .reader-chapter-title {
  color: #475569;
}

[data-theme="light"] .reader-close-btn,
[data-theme="light"] .reader-control-btn,
[data-theme="light"] .reader-nav-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .reader-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .reader-page-counter {
  color: #0f172a;
}

[data-theme="light"] .reader-settings-panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .reader-settings-panel h4,
[data-theme="light"] .reader-setting-label {
  color: #0f172a;
}

[data-theme="light"] .reader-setting-desc {
  color: #64748b;
}

/* Transiciones suaves al cambiar de tema */
body,
.top-navbar,
.comic-card,
.recent-comic-item,
.section-title,
.welcome-title,
.welcome-subtitle,
.brand-name,
.info-modal-window,
.theme-modal-card,
.comments-drawer,
.reader-header,
.reader-footer {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ==========================================================================
   Botón e Indicador de Tema en el Header
   ========================================================================== */

.theme-color-btn {
  position: relative;
}

.theme-color-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-main);
  box-shadow: 0 0 8px var(--accent-violet-glow);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.theme-color-btn:hover .theme-color-dot {
  transform: scale(1.2);
}

/* Botón / Chip de Identificación de Usuario en el Header */
.nav-user-badge-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f8fafc;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.22s ease;
  max-width: 160px;
  white-space: nowrap;
}

.nav-user-badge-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.nav-user-avatar-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #ffffff;
  font-weight: 800;
  flex-shrink: 0;
}

#navbarUserNameDisplay {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  #navbarUserNameDisplay {
    display: none;
  }
  .nav-user-badge-btn {
    padding: 6px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    justify-content: center;
  }
}

/* ==========================================================================
   Ventana Pequeña Modal: Selector de Color y Modo Luz/Oscuro
   ========================================================================== */

.theme-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.theme-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.theme-modal-card {
  width: 100%;
  max-width: 340px;
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px var(--accent-violet-glow);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  color: var(--text-primary);
}

.theme-modal-card.color-pop {
  animation: modalColorPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalColorPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.035); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 55px var(--accent-primary); }
  100% { transform: scale(1); }
}

.theme-color-flash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
}

.theme-color-flash-overlay.active {
  animation: themeColorWaveAnim 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes themeColorWaveAnim {
  0% {
    opacity: 0.95;
    transform: scale(0.92);
  }
  45% {
    opacity: 0.55;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.theme-modal-overlay.show .theme-modal-card {
  transform: scale(1);
}

.theme-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.theme-modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-modal-title-group h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.theme-modal-icon {
  font-size: 1.15rem;
}

.theme-modal-close-btn {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.theme-modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .theme-modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

.theme-section-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Selector de Modo Claro y Oscuro */
.theme-mode-section {
  margin-bottom: 16px;
}

.theme-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.22);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .theme-mode-switch {
  background: rgba(15, 23, 42, 0.06);
}

.theme-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.theme-mode-btn:hover {
  color: var(--text-primary);
}

.theme-mode-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--accent-violet-glow);
}

/* Selector de Color Principal */
.theme-colors-section {
  margin-bottom: 14px;
}

.theme-colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.theme-swatch {
  position: relative;
  width: 100%;
  height: 38px;
  border-radius: 8px;
  background: var(--swatch-color);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  outline: none;
}

.theme-swatch:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.theme-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 16px var(--swatch-color), 0 0 0 3px var(--accent-primary);
  transform: scale(1.1);
}

.theme-swatch.active::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 12px;
  border: 2px solid var(--accent-primary);
  animation: swatchRingPulse 1.6s infinite ease-out;
  pointer-events: none;
}

@keyframes swatchRingPulse {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.28); }
}

.theme-swatch .swatch-check {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  display: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.theme-swatch.active .swatch-check {
  display: block;
}

.custom-color-picker-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  transition: border-color var(--transition-fast);
}

[data-theme="light"] .custom-color-picker-wrap {
  background: rgba(15, 23, 42, 0.04);
}

.custom-color-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.custom-color-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-color-input-container input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  padding: 0;
}

.custom-color-input-container input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.custom-color-input-container input[type="color"]::-webkit-color-swatch {
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.custom-color-hex {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme="light"] .custom-color-hex {
  background: rgba(15, 23, 42, 0.08);
}

.theme-modal-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.reset-theme-btn {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reset-theme-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .reset-theme-btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

/* ==========================================================================
   Cuerpo del Layout: Ancho Completo Limpio (Sin Espacios Vacíos)
   ========================================================================== */

.layout-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - var(--navbar-height));
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 32px 40px 54px;
  box-sizing: border-box;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ==========================================================================
   Pie de Página Corporativo de la Empresa (ComicHub - Estilo Aprende+)
   ========================================================================== */
.empresa-footer {
  width: 100%;
  margin-top: 5rem;
  background: linear-gradient(180deg, #090e1e 0%, #050811 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
}

.empresa-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  box-sizing: border-box;
}

/* Columna 1: Marca */
.empresa-brand-col {
  display: flex;
  flex-direction: column;
}

.empresa-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.1rem;
}

.empresa-logo-img {
  height: 44px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(226, 6, 19, 0.35);
  transition: transform var(--transition-normal);
}

.empresa-logo-wrap:hover .empresa-logo-img {
  transform: scale(1.03);
}

.empresa-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(226, 6, 19, 0.4);
}

.empresa-logo-text {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.empresa-logo-plus {
  color: var(--accent-primary, #e20613);
  margin-left: 2px;
}

.empresa-brand-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 1.2rem 0;
  max-width: 340px;
}

.empresa-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 1.6rem;
}

.empresa-trust-badge svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.empresa-social-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.empresa-social-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.empresa-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.empresa-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.empresa-social-btn:hover {
  background: var(--accent-primary, #e20613);
  border-color: #a855f7;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(226, 6, 19, 0.45);
}

/* Columnas de Enlaces */
.empresa-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  position: relative;
  display: inline-block;
}

.empresa-col-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2.5px;
  background: #38bdf8;
  border-radius: 99px;
  margin-top: 6px;
}

.empresa-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.empresa-link {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.empresa-link:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

/* Columna 4: Contacto */
.empresa-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.empresa-contact-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.empresa-contact-row svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.empresa-contact-row:hover {
  color: #38bdf8;
}

.empresa-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
  transition: all 0.25s ease;
  width: fit-content;
  cursor: pointer;
}

.empresa-chat-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.6);
  color: #fff;
}

/* Línea de Copyright */
.empresa-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.6rem 2rem;
  box-sizing: border-box;
}

.empresa-footer-bottom-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: #64748b;
}

.empresa-footer-bottom-container p {
  margin: 0;
}

.empresa-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.empresa-dot {
  color: rgba(255, 255, 255, 0.2);
}

/* Responsividad */
@media (max-width: 1024px) {
  .empresa-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }
}

@media (max-width: 640px) {
  .empresa-footer-container {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 3.5rem 1.25rem 2rem;
  }
  .empresa-footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Compatibilidad con Tema Claro */
[data-theme="light"] .empresa-footer {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
}

[data-theme="light"] .empresa-logo-text,
[data-theme="light"] .empresa-col-title {
  color: #0f172a;
}

[data-theme="light"] .empresa-brand-desc,
[data-theme="light"] .empresa-link {
  color: #64748b;
}

[data-theme="light"] .empresa-link:hover {
  color: var(--accent-primary);
}

[data-theme="light"] .empresa-trust-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  color: #334155;
}

[data-theme="light"] .empresa-social-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #475569;
}

[data-theme="light"] .empresa-social-btn:hover {
  background: var(--accent-primary);
  color: #fff;
}

[data-theme="light"] .empresa-contact-row {
  color: #334155;
}

[data-theme="light"] .empresa-footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Banner Principal de Bienvenida (Ancho Completo)
   ========================================================================== */

.top-hero-section {
  width: 100%;
}

.welcome-banner,
.banner-carousel {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  min-height: 420px;
  border: 1.5px solid var(--border-glow);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 28px var(--accent-violet-glow);
  width: 100%;
  user-select: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.banner-slides-wrapper {
  position: relative;
  width: 100%;
  min-height: 420px;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity var(--banner-transition-duration, 0.65s) cubic-bezier(0.4, 0, 0.2, 1), transform var(--banner-transition-duration, 0.65s) cubic-bezier(0.4, 0, 0.2, 1), visibility var(--banner-transition-duration, 0.65s);
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.banner-slide-bg,
.welcome-banner-bg,
.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  filter: saturate(1.18) brightness(0.85);
  transition: transform 6s ease-out;
}

.banner-slide.active .banner-slide-bg,
.banner-slide.active .banner-bg {
  transform: scale(1.03);
}

.banner-slide-overlay,
.welcome-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.8) 55%, rgba(9, 13, 22, 0.35) 100%);
}

.banner-slide-content,
.welcome-banner-content,
.banner-content {
  position: relative;
  z-index: 3;
  padding: 42px 50px;
  max-width: 720px;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-active);
  border-radius: var(--border-radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-light, #c4b5fd);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px var(--accent-violet-glow);
  transition: all 0.35s ease;
}

/* Logo Grande Proporcional en el Índice / Hero */
.hero-brand-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}

.hero-main-brand-logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1024 / 387;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 35px rgba(226, 6, 19, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(11, 12, 16, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-main-brand-logo:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 48px rgba(226, 6, 19, 0.65);
}

/* Ocultar visualmente títulos para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.welcome-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 26px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.banner-arrow:hover {
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(168, 85, 247, 0.8);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
}

.banner-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.banner-prev {
  left: 16px;
}

.banner-next {
  right: 16px;
}

.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(10, 15, 28, 0.65);
  border-radius: var(--border-radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.banner-dot.active {
  width: 24px;
  background: var(--grad-primary);
  box-shadow: 0 0 12px var(--accent-violet-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  padding: 12px 28px;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-violet-glow);
}

.btn-primary:hover {
  background: var(--grad-primary);
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-violet-glow);
}

/* ==========================================================================
   MARCADOR VISUAL DE CÓMIC (Pág. 1, Nº (1))
   ========================================================================== */
.comic-marker-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.65);
  border-radius: var(--border-radius-full);
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), 0 0 8px rgba(245, 158, 11, 0.25);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.comic-card:hover .comic-marker-badge {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

.recent-marker-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--border-radius-sm);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 4px;
  width: fit-content;
}

/* ==========================================================================
   APARTADO DEDICADO: CATÁLOGO COMPLETO ("VER TODOS")
   ========================================================================== */
.catalogue-view {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: catalogueFadeIn 0.35s ease-out;
  width: 100%;
}

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

.catalogue-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.catalogue-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.catalogue-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--border-radius-full);
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.catalogue-back-btn:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: rgba(168, 85, 247, 0.8);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.catalogue-title-wrap h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.catalogue-title-wrap p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Barra de pestañas */
.catalogue-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.catalogue-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.catalogue-tab-btn:hover {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.catalogue-tab-btn.active {
  color: #ffffff;
  background: var(--grad-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px var(--accent-violet-glow);
}

.catalogue-tab-btn .tab-count-badge {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.catalogue-tab-btn.active .tab-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.catalogue-panel {
  display: none;
}

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

#readerBookmarkBtn.bookmarked {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

/* ==========================================================================
   Sección: 🔥 Cómics populares
   ========================================================================== */

.section-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.active-filter-badge button {
  font-size: 1.15rem;
  line-height: 1;
  color: #cbd5e1;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: var(--transition-fast);
}

.view-all-link:hover {
  filter: brightness(1.25);
  transform: translateX(3px);
  display: inline-block;
}

/* Píldoras de Filtro Rápido de Categorías */
.genre-chips-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.genre-chips-container::-webkit-scrollbar {
  display: none;
}

.genre-chip {
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.genre-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.genre-chip.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary-hover);
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* Banner Continuar Leyendo */
.continue-reading-container {
  margin-bottom: 24px;
  animation: fadeInDown 0.35s ease-out;
}

.continue-reading-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.16) 0%, rgba(14, 20, 36, 0.85) 100%);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.35);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.continue-reading-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-primary);
}

.continue-reading-cover-wrap {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.continue-reading-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.continue-reading-info {
  flex: 1;
  min-width: 0;
}

.continue-reading-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 3px;
}

.continue-reading-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.continue-reading-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.continue-reading-progress-bar {
  width: 100%;
  max-width: 260px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.continue-reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #38bdf8);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.continue-reading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.continue-reading-btn {
  padding: 8px 18px !important;
  font-size: 0.86rem !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.continue-reading-dismiss {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.continue-reading-dismiss:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Lector: Soporte de Páginas Reales */
.manga-real-page-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 60vh;
  padding: 10px;
}

.manga-real-page {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.75);
  user-select: none;
  -webkit-user-select: none;
}

.reader-chapter-select {
  background: rgba(14, 20, 36, 0.95);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 180px;
}

.reader-chapter-select:focus {
  border-color: var(--accent-primary);
}

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

/* Cuadrícula de Cómics Populares */
.popular-comics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.comic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
  will-change: transform, box-shadow;
}

.comic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65), 0 0 28px rgba(226, 6, 19, 0.24);
}

.comic-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.3;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0a0f1d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comic-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
  display: block;
}

.comic-card:hover .comic-cover {
  transform: scale(1.05);
  filter: brightness(1.04);
}

.comic-cover-gradient {
  position: absolute;
  inset: 0;
  background: var(--grad-card-overlay);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.comic-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
}

.tag.tag-more {
  background: rgba(30, 41, 59, 0.92);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 800;
  padding: 3px 7px;
}

.tag-action {
  background: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.45);
}

.tag-adventure {
  background: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.tag-romance {
  background: rgba(244, 63, 94, 0.35);
  color: #fecdd3;
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.tag-drama {
  background: rgba(234, 179, 8, 0.35);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.45);
}

.tag-terror {
  background: rgba(220, 38, 38, 0.35);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.45);
}

.tag-mystery {
  background: rgba(139, 92, 246, 0.35);
  color: #ddd6fe;
  border: 1px solid rgba(139, 92, 246, 0.45);
}

.tag-fantasy {
  background: rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.comic-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comic-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comic-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-size: 0.84rem;
  color: var(--text-dim);
}

.comic-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.like-btn:hover {
  color: #f43f5e;
}

.like-btn.liked {
  color: #f43f5e;
}

.like-btn.liked .heart-icon {
  fill: #f43f5e;
  stroke: #f43f5e;
  animation: heartPop 0.35s ease-out;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.no-results-msg {
  padding: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Sección: 🔍 Últimos cómics subidos (Ancho Completo en Cuadrícula)
   ========================================================================== */

.recent-comics-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.recent-comics-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.recent-comic-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}

.recent-comic-item:hover {
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(99, 102, 241, 0.22);
}

.recent-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0a0f1d 100%);
}

.recent-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.recent-comic-item:hover .recent-thumb {
  transform: scale(1.05);
}

.recent-badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(16, 185, 129, 0.88);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recent-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recent-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-meta-info {
  font-size: 0.76rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.recent-author strong {
  color: var(--text-secondary);
}

.recent-dot {
  color: var(--text-muted);
}

.recent-time {
  color: #818cf8;
}

/* ==========================================================================
   Toast de Notificación
   ========================================================================== */

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f1a30;
  border: 1px solid #10b981;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 16px rgba(16, 185, 129, 0.3);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-normal);
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   Diseño Adaptativo / Responsive (Media Queries)
   ========================================================================== */

@media (max-width: 1200px) {
  .top-navbar {
    padding: 0 28px;
  }

  .main-content {
    padding: 28px 28px 48px;
    gap: 32px;
  }

  /* 3 columnas fluidas en pantallas de laptop */
  .popular-comics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .recent-comics-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 992px) {
  .top-navbar {
    padding: 12px 20px;
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-left {
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-center {
    order: 3;
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  .main-content {
    padding: 22px 20px 40px;
    gap: 28px;
  }

  /* 2 columnas en tablets */
  .popular-comics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .recent-comics-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .welcome-banner {
    min-height: 230px;
  }

  .welcome-banner-content {
    padding: 28px 24px;
  }

  .welcome-title {
    font-size: 1.85rem;
  }

  .hero-main-brand-logo {
    max-width: 290px;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  /* Barra de navegación de 2 filas ultra-limpia y compacta */
  .top-navbar {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    padding: 8px 12px 10px !important;
    gap: 8px 8px !important;
    height: auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 150 !important;
  }

  .nav-left {
    display: contents !important;
  }

  .brand-logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.22rem;
    gap: 7px;
    align-self: center;
  }

  .brand-icon svg {
    width: 22px;
    height: 22px;
  }

  .header-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
  }

  .header-nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .header-nav-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
    gap: 5px;
    border-radius: var(--border-radius-full);
  }

  .header-nav-btn svg:not(.chevron-icon) {
    width: 14px;
    height: 14px;
  }

  .chevron-icon {
    display: none;
  }

  .nav-text-full {
    display: none;
  }

  .nav-text-short {
    display: inline;
  }

  .nav-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .notification-btn,
  .theme-color-btn {
    width: 35px;
    height: 35px;
  }

  .notification-btn svg,
  .theme-color-btn svg {
    width: 17px;
    height: 17px;
  }

  .notification-badge {
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
  }

  .theme-color-dot {
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
  }

  .nav-center {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    order: unset !important;
  }

  .search-bar-wrapper {
    height: 38px;
    padding: 0 12px;
  }

  .search-input {
    font-size: 0.82rem;
  }

  .search-input::placeholder {
    font-size: 0.8rem;
  }

  /* Desactiva atrapamiento de posición relativa en ítems individuales en móvil */
  .header-nav,
  .header-nav-list,
  .header-nav-item,
  .dropdown-wrapper {
    position: static !important;
  }

  /* Ventana Estática compacta justo debajo de las opciones del Header */
  .static-dropdown-panel,
  .notification-panel,
  .theme-color-panel {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 10px !important;
    right: 10px !important;
    width: calc(100% - 20px) !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    background: #0d1428 !important;
    border: 1px solid var(--border-glow) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 30px var(--accent-violet-glow) !important;
    z-index: 500 !important;
    padding: 14px 14px 16px !important;
    max-height: 72vh !important;
    overflow-y: auto !important;
    transform: translateY(-8px) scale(0.98) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s !important;
  }

  .static-dropdown-panel.show,
  .notification-panel.show,
  .theme-color-panel.show {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }

  .categories-panel {
    width: calc(100% - 20px) !important;
    max-width: 440px !important;
  }

  .info-panel {
    width: calc(100% - 20px) !important;
    max-width: 440px !important;
  }

  .notification-panel {
    width: calc(100% - 20px) !important;
    max-width: 440px !important;
  }

  .theme-color-panel {
    width: calc(100% - 20px) !important;
    max-width: 440px !important;
  }

  .static-dropdown-panel::before,
  .notification-panel::before,
  .theme-color-panel::before {
    display: none !important;
  }

  .categories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .category-card-btn {
    padding: 9px 6px !important;
    gap: 5px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .cat-name {
    font-size: 0.76rem !important;
  }

  /* Banner de bienvenida y contenido principal en móviles */
  .main-content {
    padding: 14px 12px 36px;
    gap: 20px;
  }

  .welcome-banner,
  .banner-carousel,
  .banner-slides-wrapper {
    min-height: 290px;
    border-radius: var(--border-radius-md);
    margin-top: 2px;
    overflow: hidden;
    position: relative;
  }

  .welcome-banner-bg,
  .banner-slide-bg {
    background-position: 75% center;
    opacity: 0.65;
  }

  .welcome-banner-overlay,
  .banner-slide-overlay {
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.7) 0%, rgba(9, 13, 22, 0.96) 100%);
  }

  .welcome-banner-content,
  .banner-slide-content {
    padding: 16px 14px 34px;
    max-width: 100%;
    z-index: 2;
    position: relative;
  }

  .welcome-title {
    font-size: 1.3rem;
    line-height: 1.22;
    margin-bottom: 6px;
  }

  .hero-main-brand-logo {
    max-width: 220px;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .welcome-subtitle {
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.35;
    max-width: 95%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .explore-banner-btn,
  .btn-primary {
    padding: 8px 16px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .banner-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .banner-prev { left: 6px; }
  .banner-next { right: 6px; }

  .banner-dots {
    bottom: 8px;
    padding: 4px 10px;
    gap: 6px;
  }

  .banner-dot {
    width: 7px;
    height: 7px;
  }

  .banner-dot.active {
    width: 18px;
  }

  .catalogue-header {
    padding: 14px 12px;
  }

  .catalogue-title-wrap h2 {
    font-size: 1.35rem;
  }

  .catalogue-tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Encabezados de sección limpios en una sola línea */
  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: 1.05rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .view-all-link {
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Sección Cómics Populares en móviles (2 columnas compactas) */
  .popular-comics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .comic-card {
    border-radius: 12px;
  }

  .comic-cover-wrap {
    aspect-ratio: 3 / 4.3;
    overflow: hidden;
  }

  .comic-cover {
    font-size: 0;
    object-fit: cover;
  }

  .comic-tags {
    top: 6px;
    left: 6px;
    gap: 4px;
  }

  .tag {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .comic-info {
    padding: 10px 8px;
    gap: 5px;
  }

  .comic-title {
    font-size: 0.86rem;
    line-height: 1.22;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .comic-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
  }

  .comic-author {
    font-size: 0.73rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .author-avatar-mini {
    width: 17px;
    height: 17px;
    font-size: 0.62rem;
  }

  .comic-stats {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 6px;
  }

  .stat-views,
  .stat-likes {
    font-size: 0.7rem;
    gap: 3px;
    white-space: nowrap;
  }

  .stat-views svg,
  .stat-likes svg {
    width: 12px;
    height: 12px;
  }

  /* Últimos Cómics Subidos en móviles (Fila horizontal ergonómica) */
  .recent-comics-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .recent-comic-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    gap: 12px;
    border-radius: 10px;
  }

  .recent-thumb-wrap {
    width: 60px;
    min-width: 60px;
    height: 84px;
    aspect-ratio: auto;
    border-radius: 6px;
    overflow: hidden;
  }

  .recent-thumb {
    font-size: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .recent-badge-new {
    font-size: 0.58rem;
    padding: 1px 5px;
  }

  .recent-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .recent-title {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .recent-meta-info {
    font-size: 0.73rem;
  }
}

@media (max-width: 420px) {
  .top-navbar {
    padding: 7px 10px 9px !important;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 5px;
  }

  .brand-logo .brand-name {
    font-size: 1.15rem;
  }

  .header-nav-btn {
    padding: 5px 7px;
    font-size: 0.72rem;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .popular-comics-grid {
    gap: 8px;
  }

  .comic-info {
    padding: 8px 6px;
  }

  .comic-title {
    font-size: 0.82rem;
  }

  .welcome-title {
    font-size: 1.25rem;
  }

  .welcome-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .top-navbar {
    padding: 6px 8px 8px !important;
    gap: 6px 4px !important;
  }

  .brand-logo {
    font-size: 1.05rem;
  }

  .brand-icon svg {
    width: 20px;
    height: 20px;
  }

  .header-nav-btn {
    padding: 4px 6px;
    font-size: 0.68rem;
    gap: 3px;
  }

  .header-nav-btn svg:not(.chevron-icon) {
    width: 12px;
    height: 12px;
  }

  .notification-btn {
    width: 32px;
    height: 32px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .section-title {
    font-size: 0.95rem;
  }

  .view-all-link {
    font-size: 0.72rem;
  }
}

@media (max-width: 340px) {
  .popular-comics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Visor Interactivo de Cómics (Comic Reader Modal & Gestures)
   ========================================================================== */

.comic-card,
.recent-comic-item {
  cursor: pointer;
}

.comic-card::after,
.recent-comic-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.comic-card:hover::after,
.recent-comic-item:hover::after {
  border-color: rgba(168, 85, 247, 0.45);
}

.comic-reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  background-color: #060912;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.comic-reader-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reader-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 50%), #070a13;
}

/* Encabezado del Lector */
.reader-header {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.reader-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.reader-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reader-close-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: translateX(-2px);
}

.reader-comic-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reader-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.reader-subtitle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.reader-chapter {
  color: var(--accent-cyan);
  font-weight: 600;
}

.reader-dot {
  color: var(--text-muted);
}

.reader-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reader-page-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(18, 26, 48, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.indicator-label {
  font-weight: 500;
  color: var(--text-muted);
}

.indicator-number {
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.indicator-slash {
  color: var(--text-muted);
}

.indicator-total {
  font-weight: 600;
  color: var(--text-secondary);
}

.reader-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reader-gesture-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--border-radius-full);
  font-size: 0.78rem;
  color: #a5b4fc;
}

/* Escenario Central de Lectura */
.reader-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 84px;
  overflow: hidden;
}

/* Botones Flotantes de Navegación */
.reader-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.reader-nav-btn:hover {
  background: var(--accent-primary);
  border-color: #a855f7;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.6);
}

.reader-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.reader-nav-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.reader-prev-btn {
  left: 20px;
}

.reader-next-btn {
  right: 20px;
}

/* Lienzo de Página */
.reader-page-wrapper {
  width: 100%;
  max-width: 820px;
  height: 100%;
  max-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.reader-page-wrapper.grabbing {
  cursor: grabbing;
}

.reader-page-content {
  width: 100%;
  height: 100%;
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 40px rgba(99, 102, 241, 0.12);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
  will-change: transform, opacity;
}

.reader-page-content.anim-slide-next {
  animation: pageSlideNext 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reader-page-content.anim-slide-prev {
  animation: pageSlidePrev 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pageSlideNext {
  from {
    opacity: 0.4;
    transform: translateX(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes pageSlidePrev {
  from {
    opacity: 0.4;
    transform: translateX(-40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Estilos de Contenido de Páginas del Cómic */
.manga-page-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  min-height: 100%;
  width: 100%;
  margin: auto;
  box-sizing: border-box;
}

/* Portada del Cómic (Página 1 y cabecera de Cascada) */
.manga-cover-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 22px 32px;
  border-radius: 20px;
  background: rgba(13, 19, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(226, 6, 19, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 580px;
  width: 100%;
  margin: auto;
  box-sizing: border-box;
}

.manga-cover-image-wrap {
  position: relative;
  width: auto;
  max-width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  margin: 0 auto;
}

.manga-cover-image {
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  display: block;
  border-radius: 13px;
  transition: transform 0.3s ease;
}

.manga-chapter-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.manga-cover-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.manga-cover-synopsis {
  max-width: 580px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.manga-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--border-radius-full);
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(226, 6, 19, 0.4);
  transition: all 0.2s ease;
}

.manga-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(226, 6, 19, 0.6);
}

/* Viñetas de Cómic (Páginas 2, 3, 4) */
.manga-panel-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.manga-panel {
  position: relative;
  background: #080c16;
  border: 2px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.manga-panel.panel-hero {
  min-height: 200px;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
}

.manga-narrator-box {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--accent-indigo);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-style: italic;
  color: #cbd5e1;
  max-width: fit-content;
}

.manga-dialogue-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.manga-dialogue-row.right {
  justify-content: flex-end;
}

.speech-bubble {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 320px;
  line-height: 1.45;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.speech-bubble.bubble-dark {
  background: #1e1b4b;
  color: #e0e7ff;
  border: 1px solid #4338ca;
}

.sfx-text {
  font-size: 1.8rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #facc15;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.6), 2px 2px 0 #000;
  align-self: center;
  transform: rotate(-3deg);
  margin: 8px 0;
}

.sfx-text.sfx-boom {
  color: #f43f5e;
  font-size: 2.2rem;
  text-shadow: 0 0 18px rgba(244, 63, 94, 0.7), 2px 2px 0 #000;
}

.sfx-text.sfx-cyan {
  color: #38bdf8;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.7), 2px 2px 0 #000;
}

.manga-split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Página Final / Cliffhanger (Página 5) */
.manga-ending-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  gap: 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #111827 0%, #080c14 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.manga-ending-badge {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #f8fafc;
  padding: 10px 24px;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
}

.manga-ending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

/* Barra Inferior y Puntos de Navegación */
.reader-footer {
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.reader-swipe-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.guide-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-dot {
  color: var(--text-muted);
}

.reader-dots-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.reader-dot-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.reader-dot-btn.active {
  width: 26px;
  background: var(--grad-primary);
  box-shadow: 0 0 10px rgba(226, 6, 19, 0.6);
}

/* Responsividad completa del Lector (Tablets y Móviles) */
@media (max-width: 768px) {
  .reader-header {
    padding: 0 12px;
    height: 54px;
    min-height: 54px;
    gap: 8px;
  }

  .reader-comic-meta {
    max-width: 140px;
  }

  .reader-title {
    font-size: 0.92rem;
  }

  .reader-subtitle-wrap {
    display: none;
  }

  .reader-gesture-hint {
    display: none;
  }

  .reader-stage {
    padding: 8px;
  }

  .reader-nav-btn {
    width: 38px;
    height: 38px;
    opacity: 0.7;
    backdrop-filter: blur(6px);
  }

  .reader-prev-btn {
    left: 6px;
  }

  .reader-next-btn {
    right: 6px;
  }

  .manga-split-panels {
    grid-template-columns: 1fr;
  }

  .reader-footer {
    padding: 0 12px;
    height: 46px;
    min-height: 46px;
  }

  .reader-swipe-guide {
    font-size: 0.7rem;
  }
}

@media (max-width: 520px) {
  .reader-header {
    padding: 0 8px;
    height: 48px;
    min-height: 48px;
    gap: 6px;
  }

  .reader-close-btn {
    padding: 5px 8px;
    font-size: 0.76rem;
    gap: 4px;
  }

  .reader-comic-meta {
    max-width: 110px;
  }

  .reader-title {
    font-size: 0.84rem;
  }

  .reader-page-indicator {
    padding: 3px 8px;
    font-size: 0.74rem;
  }

  .indicator-label {
    display: none;
  }

  .reader-header-right {
    gap: 6px;
  }

  .reader-tool-text {
    display: none;
  }

  .reader-tool-btn {
    padding: 6px;
  }

  .reader-tool-btn svg {
    width: 15px;
    height: 15px;
  }

  .reader-stage {
    padding: 6px 2px;
  }

  .reader-page-wrapper {
    max-height: calc(100vh - 98px);
    border-radius: 10px;
  }

  .reader-page-content {
    border-radius: 10px;
  }

  .manga-page-inner {
    padding: 12px 8px;
    gap: 12px;
  }

  /* Portada de cómic en celulares */
  .manga-cover-card {
    padding: 18px 10px;
    gap: 12px;
  }

  .manga-cover-image-wrap {
    width: 100%;
    max-width: 100%;
    max-height: 60vh;
  }

  .manga-cover-image {
    max-height: 58vh;
  }

  .manga-cover-title {
    font-size: 1.25rem;
  }

  .manga-cover-synopsis {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .manga-start-btn {
    padding: 10px 20px;
    font-size: 0.86rem;
  }

  /* Viñetas en celulares */
  .manga-panel {
    padding: 12px 10px;
    gap: 8px;
  }

  .manga-narrator-box {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .speech-bubble {
    font-size: 0.8rem;
    padding: 8px 12px;
    max-width: 90%;
  }

  .sfx-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  /* Cierre en celulares */
  .manga-ending-card {
    padding: 20px 12px;
    gap: 12px;
  }

  .manga-ending-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .manga-ending-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .manga-ending-actions button {
    width: 100%;
    justify-content: center;
  }

  .reader-footer {
    height: 42px;
    min-height: 42px;
    padding: 0 8px;
  }

  .reader-swipe-guide {
    display: none;
  }

  .reader-dots-nav {
    width: 100%;
    justify-content: center;
  }

  .reader-nav-btn {
    width: 32px;
    height: 32px;
    opacity: 0.6;
  }

  .reader-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .reader-prev-btn {
    left: 4px;
  }

  .reader-next-btn {
    right: 4px;
  }
}

/* Animaciones de filtrado suave en tarjetas */
.comic-card.filtered-in,
.recent-comic-item.filtered-in {
  animation: cardFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Botón para restablecer búsqueda/filtros */
.no-results-reset-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--grad-primary);
  border: none;
  border-radius: var(--border-radius-full);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(226, 6, 19, 0.35);
  transition: all var(--transition-fast);
}

.no-results-reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 6, 19, 0.55);
}

/* Botones de herramientas del lector (Zoom & Pantalla Completa) */
.reader-tool-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reader-tool-btn:hover {
  background: rgba(226, 6, 19, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.reader-tool-btn.active {
  background: var(--accent-primary);
  border-color: #a855f7;
  color: #fff;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
}

/* Estado de Zoom en el Lector */
.reader-page-wrapper.zoomed {
  cursor: zoom-out !important;
  overflow: auto !important;
}

.reader-page-wrapper.zoomed .reader-page-content {
  transform: scale(1.45) !important;
  transform-origin: top center !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-bottom: 90px;
}

.reader-zoom-badge {
  position: absolute;
  bottom: 16px;
  background: rgba(14, 20, 36, 0.92);
  border: 1px solid var(--accent-primary);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--border-radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 20;
  animation: fadeInZoomBadge 0.25s ease;
}

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

/* ==========================================================================
   SISTEMA DE COMENTARIOS TIPO TIKTOK / INSTAGRAM (COMIC COMMENTS DRAWER)
   ========================================================================== */

/* Botón de Comentarios en las Tarjetas de Cómic */
.stat-comments {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stat-comments:hover {
  background: rgba(var(--accent-primary-rgb, 226, 6, 19), 0.18);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-1px);
}
.stat-comments svg {
  color: #38bdf8;
  transition: transform 0.2s ease;
}
.stat-comments:hover svg {
  transform: scale(1.15);
}

/* Botón de Comentarios en la barra superior del Lector */
.reader-tool-btn.comments-tool-btn {
  position: relative;
}
.reader-comments-count-badge {
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Cajón / Drawer de Comentarios (Tipo TikTok / Instagram) */
.comments-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}
.comments-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.comments-drawer-card {
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: rgba(15, 23, 42, 0.96);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.comments-drawer-overlay.active .comments-drawer-card {
  transform: translateX(0);
}

/* En Móviles: Transforma en Bottom Sheet como TikTok */
@media (max-width: 640px) {
  .comments-drawer-overlay {
    align-items: flex-end;
  }
  .comments-drawer-card {
    max-width: 100%;
    height: 82vh;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.65);
  }
  .comments-drawer-overlay.active .comments-drawer-card {
    transform: translateY(0);
  }
  .drawer-drag-handle {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    margin: 8px auto 2px;
  }
}

/* Cabecera del Cajón */
.comments-drawer-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}
.comments-drawer-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comments-drawer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.comments-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary-light);
  background: rgba(var(--accent-primary-rgb, 226, 6, 19), 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}
.comments-comic-target {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comments-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.comments-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Lista de Comentarios */
.comments-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.comments-empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.comments-empty-state svg {
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 6px;
}

/* Burbuja / Elemento de Comentario (Estilo TikTok / Instagram) */
.comment-bubble-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: commentFadeIn 0.25s ease;
}
@keyframes commentFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.comment-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}
.comment-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.comment-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-author-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f5f9;
}
.comment-creator-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comment-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.comment-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
  word-break: break-word;
  margin: 0;
}
.comment-footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 3px;
}
.comment-reply-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.comment-reply-btn:hover {
  color: var(--accent-primary-light);
}

/* Botón de Like en Comentario (Corazón al estilo Instagram) */
.comment-heart-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.comment-heart-btn:hover {
  color: #f87171;
  transform: scale(1.15);
}
.comment-heart-btn.liked {
  color: #ef4444;
}
.comment-heart-btn.liked svg {
  fill: #ef4444;
}
.comment-heart-count {
  font-size: 0.7rem;
  font-weight: 600;
}

/* Barra de Emojis Rápidos */
.comments-quick-emojis {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
}
.quick-emoji-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.quick-emoji-btn:hover {
  transform: scale(1.25);
  background: rgba(255, 255, 255, 0.1);
}

/* Pie / Barra de Entrada de Comentario (Estilo TikTok / Instagram) */
.comments-input-footer {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.98);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comments-author-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}
.comments-author-name-tag {
  color: var(--accent-primary-light);
  font-weight: 700;
  cursor: pointer;
}
.comments-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comments-user-mini-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comments-text-input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}
.comments-text-input:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb, 226, 6, 19), 0.25);
}
.comments-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(var(--accent-primary-rgb, 226, 6, 19), 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.comments-send-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}
.comments-send-btn:active {
  transform: scale(0.95);
}
.comments-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

  
  /* Animación suave para comentarios nuevos estilo TikTok */
  @keyframes commentSlideIn {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .comment-item {
    animation: commentSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }


/* ==========================================================================
   Centrado Geométrico de Botones Circulares y de Cierre (Fix Desfase)
   ========================================================================== */
.panel-close-btn,
.theme-modal-close-btn,
.comments-close-btn,
.info-modal-close-btn,
.reader-close-btn,
.continue-reading-dismiss,
#clearFilterBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}

.panel-close-btn svg,
.theme-modal-close-btn svg,
.comments-close-btn svg,
.info-modal-close-btn svg,
.reader-close-btn svg,
.continue-reading-dismiss svg,
#clearFilterBtn svg {
  display: block !important;
  margin: auto !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   Modo de Lectura en Cascada (Scroll Vertical Continuo / Webtoon)
   ========================================================================== */
.reader-cascade-container {
  display: none;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  padding: 1.5rem 1rem 6rem !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch;
}

/* En modo cascada: mostrar cascada y ocultar páginas normales */
.reader-stage.cascade-mode .reader-cascade-container {
  display: block !important;
}
.reader-stage.cascade-mode .reader-page-wrapper {
  display: none !important;
}

/* En modo normal: ocultar estrictamente cascada y mostrar páginas normales */
.reader-stage:not(.cascade-mode) .reader-cascade-container {
  display: none !important;
}
.reader-stage:not(.cascade-mode) .reader-page-wrapper {
  display: flex !important;
}

.reader-cascade-container::-webkit-scrollbar {
  width: 8px;
}
.reader-cascade-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.reader-cascade-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}
.reader-cascade-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary, #e20613);
}

.reader-cascade-page-item {
  display: block !important;
  width: 100% !important;
  max-width: 860px !important;
  height: auto !important;
  min-height: 120px !important;
  margin: 0 auto 1.75rem auto !important;
  position: relative !important;
  background: #050811;
  border-radius: 8px;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex: 0 0 auto !important;
}

.reader-cascade-page-item img,
.reader-cascade-page-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100px !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  box-sizing: border-box !important;
}

.reader-cascade-page-num {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: inherit;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

/* Ocultar navegación por página en modo cascada y expandir escenario */
.reader-stage.cascade-mode {
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

.reader-stage.cascade-mode .reader-nav-btn,
.reader-stage.cascade-mode .reader-dots-nav,
.reader-stage.cascade-mode .reader-swipe-guide {
  display: none !important;
}

.reader-cascade-container .manga-cover-card,
.reader-cascade-container .manga-ending-card {
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  flex: 0 0 auto !important;
}

.reader-cascade-page-item.cascade-panels-item {
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.reader-tool-btn.active-mode {
  background: rgba(var(--accent-primary-rgb, 226, 6, 19), 0.25);
  border-color: var(--accent-primary);
  color: var(--accent-primary-light, #c084fc);
}

@media (max-width: 768px) {
  .reader-cascade-container {
    padding: 1rem 0.5rem 5rem !important;
  }
  .reader-cascade-page-item {
    max-width: 100% !important;
    margin: 0 auto 1rem auto !important;
    border-radius: 4px;
  }
  .reader-cascade-page-item img,
  .reader-cascade-page-img {
    border-radius: 4px;
  }
}

/* ==========================================================================
   Ventana Flotante Estática de Información y Soporte con Filtro
   ========================================================================== */
.info-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: infoFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes infoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.info-modal-window {
  background: var(--bg-card, #131722);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  animation: infoScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

@keyframes infoScaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  gap: 12px;
}

.info-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-modal-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  letter-spacing: -0.01em;
}

.info-modal-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}

.info-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-modal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.info-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary, #cbd5e1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.info-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  transform: scale(1.06);
}

/* Sección de Filtro y Búsqueda */
.info-search-filter-section {
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.45rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.info-search-input-wrap:focus-within {
  border-color: var(--accent-primary, #e20613);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb, 226, 6, 19), 0.2);
}

.info-filter-icon {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary, #f8fafc);
  font-size: 0.88rem;
  font-family: inherit;
}

.info-search-input::placeholder {
  color: var(--text-muted, #64748b);
}

.info-search-clear {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.info-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.info-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.info-chip.active {
  background: var(--accent-primary, #e20613);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--accent-primary-rgb, 226, 6, 19), 0.35);
}

/* Cuerpo de la Ventana */
.info-modal-body {
  padding: 1.25rem 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-modal-body::-webkit-scrollbar {
  width: 6px;
}
.info-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.info-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s, background 0.2s;
}

.info-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.info-card-contact {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(226, 6, 19, 0.08));
  border-color: rgba(56, 189, 248, 0.35);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.info-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan, #38bdf8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-icon.contact-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.info-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
}

.info-card-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted, #94a3b8);
}

.info-card-content p {
  margin: 0 0 0.8rem 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary, #cbd5e1);
}

/* Contacto específico */
.contact-channels-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-channel-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-channel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-channel-label {
  font-size: 0.82rem;
  color: var(--text-secondary, #cbd5e1);
}

.contact-phone-number {
  font-size: 1.15rem;
  color: #38bdf8;
  letter-spacing: 0.03em;
  font-family: monospace;
}

.contact-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.contact-btn-whatsapp {
  background: #10b981;
  color: #fff;
  border: none;
}
.contact-btn-whatsapp:hover {
  background: #059669;
  transform: translateY(-1px);
}

.contact-btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #f8fafc);
}
.contact-btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.contact-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  flex-wrap: wrap;
}

.contact-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Pilares */
.info-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 0.6rem;
}

.pillar-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
}

.pillar-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}

.pillar-box strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pillar-box p {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Guía de lectura */
.reading-modes-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mode-guide-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
}

.mode-guide-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mode-guide-badge.accent {
  background: rgba(226, 6, 19, 0.25);
  color: #c084fc;
}

.mode-guide-card h5 {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mode-guide-card p {
  margin: 0 0 6px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mode-guide-card ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Subida */
.upload-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.method-mini-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem;
}

.method-mini-card strong {
  display: block;
  font-size: 0.82rem;
  color: #38bdf8;
  margin-bottom: 4px;
}

.method-mini-card span {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.faq-question {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.faq-answer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.info-search-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.info-search-no-results h4 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.info-search-no-results p {
  font-size: 0.82rem;
  margin: 0;
}

.info-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.info-footer-contact-pill {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

@media (max-width: 640px) {
  .info-pillars-grid,
  .upload-methods-grid,
  .reading-modes-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Novedades & Últimos Capítulos (Carrusel Interactivo)
   ========================================================================== */
.novedades-section {
  margin-top: 10px;
  margin-bottom: 32px;
}

.novedades-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.novedades-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.novedades-arrow-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: scale(1.06);
}

.novedades-carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -4px;
  padding: 4px;
}

.novedades-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 6, 19, 0.4) transparent;
}

.novedades-carousel-track::-webkit-scrollbar {
  height: 6px;
}
.novedades-carousel-track::-webkit-scrollbar-track {
  background: transparent;
}
.novedades-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(226, 6, 19, 0.4);
  border-radius: 999px;
}

.novedad-card {
  flex: 0 0 280px;
  max-width: 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.novedad-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 6, 19, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.novedad-card-cover {
  width: 78px;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  background: #0b0f19;
}

.novedad-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.novedad-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.novedad-comic-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.novedad-chapter-title {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.novedad-action-btn {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--accent-subtle);
  color: var(--accent-primary-light);
  border: 1px solid rgba(226, 6, 19, 0.3);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.novedad-card:hover .novedad-action-btn {
  background: var(--accent-primary);
  color: #fff;
}

/* ==========================================================================
   Botón de Favorito en Tarjetas y Filtro
   ========================================================================== */
.comic-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comic-fav-btn:hover {
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.85);
  color: #ef4444;
}

.comic-fav-btn.is-fav {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
}

.comic-fav-btn.is-fav svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.genre-chip-favorite.active {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}

/* Hints de Teclado para Lector */
.reader-keyboard-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.reader-kbd {
  padding: 2px 5px;
  font-size: 0.68rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
}

/* ==========================================================================
   VENTANA ESTÁTICA FLOTANTE: DETALLES Y PREVIA DEL CÓMIC
   ========================================================================== */
.comic-preview-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(4, 7, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.comic-preview-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.comic-preview-modal-card {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  background: var(--bg-surface, #0d1322);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(226, 6, 19, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.comic-preview-modal-overlay.active .comic-preview-modal-card {
  transform: scale(1) translateY(0);
}

.comic-preview-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.comic-preview-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.08);
}

.comic-preview-body {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 26px;
  padding: 26px;
  overflow-y: auto;
  max-height: 88vh;
}

.comic-preview-cover-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comic-preview-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.3;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0a0f1d 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(226, 6, 19, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.comic-preview-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.comic-preview-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 65%, rgba(10, 15, 28, 0.7) 100%);
  pointer-events: none;
}

.comic-preview-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.comic-preview-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview-fav-btn,
.preview-comment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.preview-fav-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.preview-fav-btn.is-fav {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.preview-fav-btn.is-fav svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.preview-comment-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.comic-preview-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.comic-preview-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comic-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comic-preview-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  line-height: 1.25;
  margin: 0;
  word-break: break-word;
}

.comic-preview-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
}

.preview-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comic-preview-stats-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.preview-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--text-secondary, #cbd5e1);
  font-weight: 600;
}

.preview-stat-item svg {
  color: #38bdf8;
}

.preview-stat-item small {
  color: var(--text-muted, #64748b);
  font-size: 0.75rem;
  font-weight: 500;
}

.comic-preview-synopsis-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.preview-synopsis-text {
  font-size: 0.9rem;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.55;
  margin: 0;
  max-height: 100px;
  overflow-y: auto;
  padding-right: 4px;
}

.comic-preview-chapters-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 130px;
  overflow-y: auto;
  padding-right: 4px;
}

.preview-chapter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 0.84rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-chapter-item:hover {
  background: rgba(226, 6, 19, 0.15);
  border-color: rgba(226, 6, 19, 0.4);
  transform: translateX(3px);
  color: #ffffff;
}

.preview-chapter-item .ch-btn-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 700;
}

.comic-preview-read-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.preview-btn-start-reading {
  flex: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--grad-primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(226, 6, 19, 0.4);
  transition: all 0.25s ease;
}

.preview-btn-start-reading:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 6, 19, 0.6);
  filter: brightness(1.08);
}

.preview-btn-cascade {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.preview-btn-cascade:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  transform: translateY(-2px);
  color: #ffffff;
}

/* Modo claro para la ventana estática flotante */
[data-theme="light"] .comic-preview-modal-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2), 0 0 35px rgba(226, 6, 19, 0.15);
}

[data-theme="light"] .comic-preview-title {
  color: #0f172a;
}

[data-theme="light"] .preview-synopsis-text {
  color: #334155;
}

[data-theme="light"] .comic-preview-stats-bar {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .preview-stat-item {
  color: #334155;
}

[data-theme="light"] .preview-chapter-item {
  color: #0f172a;
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .preview-fav-btn,
[data-theme="light"] .preview-comment-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

/* Responsivo para móviles */
@media (max-width: 680px) {
  .comic-preview-modal-overlay {
    padding: 12px;
  }

  .comic-preview-body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
    max-height: 85vh;
  }

  .comic-preview-cover-col {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .comic-preview-cover-wrap {
    width: 95px;
    min-width: 95px;
  }

  .comic-preview-quick-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .comic-preview-read-actions {
    flex-direction: column;
    gap: 8px;
  }

  .preview-btn-start-reading,
  .preview-btn-cascade {
    width: 100%;
    padding: 12px;
  }
}

/* ==========================================================================
   SISTEMA DE CALIFICACIÓN POR ESTRELLAS (1 - 5 ⭐)
   ========================================================================== */

/* 1. Estadística de Calificación en Modal */
.preview-rating-stat {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

.preview-rating-stat svg {
  color: #f59e0b !important;
  fill: #f59e0b !important;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}

.preview-rating-stat small {
  color: #94a3b8;
  font-weight: 500;
  margin-left: 2px;
}

/* 2. Caja Interactiva de Calificación */
.comic-preview-rate-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.comic-preview-rate-box:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

.rate-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rate-box-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rate-box-feedback {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
  transition: color 0.2s ease;
}

.rate-box-feedback.feedback-success {
  color: #34d399 !important;
  font-weight: 700;
}

/* Contenedor de las 5 estrellas */
.preview-stars-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-star-btn {
  background: none;
  border: none;
  font-size: 1.55rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease, transform 0.15s ease, text-shadow 0.15s ease;
  user-select: none;
}

.preview-star-btn:hover {
  transform: scale(1.22);
}

.preview-star-btn.is-active,
.preview-star-btn.is-hover {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.preview-star-btn.is-rated-user {
  color: #f59e0b;
}

/* 3. Badge de Estrellas en Tarjetas de Cómics */
.comic-card-rating-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fbbf24;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.comic-card-rating-badge svg {
  color: #fbbf24;
  fill: #fbbf24;
}

/* Ajustes para Modo Claro */
[data-theme="light"] .comic-preview-rate-box {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="light"] .preview-star-btn {
  color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .rate-box-title {
  color: #d97706;
}

[data-theme="light"] .preview-rating-stat {
  color: #d97706 !important;
}

[data-theme="light"] .preview-rating-stat small {
  color: #64748b;
}

[data-theme="light"] .comic-card-rating-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Modo Ampliado / Pantalla Completa Inmersivo para el Lector
   Permite que las páginas se vean grandes aprovechando toda la resolución
   ========================================================================== */
:fullscreen .reader-page-wrapper,
:-webkit-full-screen .reader-page-wrapper,
.comic-reader-overlay.is-fullscreen .reader-page-wrapper {
  max-width: min(1500px, 96vw) !important;
  max-height: calc(100vh - 84px) !important;
  width: 100% !important;
}

:fullscreen .manga-real-page,
:-webkit-full-screen .manga-real-page,
.comic-reader-overlay.is-fullscreen .manga-real-page {
  max-height: calc(100vh - 88px) !important;
  max-width: 96vw !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.85) !important;
}

:fullscreen .manga-real-page-wrap,
:-webkit-full-screen .manga-real-page-wrap,
.comic-reader-overlay.is-fullscreen .manga-real-page-wrap {
  padding: 4px !important;
  width: 100% !important;
  height: 100% !important;
}

:fullscreen .reader-stage,
:-webkit-full-screen .reader-stage,
.comic-reader-overlay.is-fullscreen .reader-stage {
  padding: 8px 16px !important;
}

:fullscreen .reader-cascade-page-item,
:-webkit-full-screen .reader-cascade-page-item,
.comic-reader-overlay.is-fullscreen .reader-cascade-page-item {
  max-width: min(1200px, 94vw) !important;
}

:fullscreen .manga-page-inner,
:-webkit-full-screen .manga-page-inner,
.comic-reader-overlay.is-fullscreen .manga-page-inner {
  padding: 8px !important;
}

/* ==========================================================================
   Foto de Perfil de Usuario (Header, Modal y Comentarios)
   ========================================================================== */
.nav-user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-primary, #e20613), #38bdf8);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.nav-user-avatar-circle img,
.nav-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-avatar-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.4rem;
}

.avatar-preview-container {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary, #e20613);
  box-shadow: 0 0 25px rgba(226, 6, 19, 0.35);
  overflow: hidden;
  background: var(--bg-surface, #0e1424);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-preview-placeholder {
  font-size: 2.4rem;
  color: var(--text-muted);
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.avatar-preview-container:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-actions-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-avatar-action {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-avatar-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-avatar-remove {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-avatar-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Avatar en Comentarios */
.comment-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #b8020d, #e20613);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.comment-avatar img,
.comment-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ==========================================================================
   Widget de Calificación en la Pantalla Final del Lector
   ========================================================================== */
.reader-ending-rate-box {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.reader-ending-rate-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reader-ending-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reader-star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, filter 0.15s ease;
  line-height: 1;
  padding: 0 2px;
}

.reader-star-btn:hover,
.reader-star-btn.is-hover {
  color: #f59e0b;
  transform: scale(1.22);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.reader-star-btn.is-active {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.reader-rate-feedback {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-height: 1.2rem;
  text-align: center;
}

.reader-rate-feedback.feedback-success {
  color: #4ade80;
  font-weight: 700;
}

/* ==========================================================================
   ILUMINACIÓN AMBIENTAL DINÁMICA (Ambient Glow / Cinema Mode)
   ========================================================================== */
.reader-ambient-backdrop {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease, filter 0.8s ease, background 0.8s ease;
  filter: blur(80px) saturate(190%);
  will-change: background, opacity;
}

.comic-reader-overlay.has-ambient-glow .reader-ambient-backdrop {
  opacity: 0.58;
}

.comic-reader-overlay.reader-filter-oled {
  background: #000000 !important;
}

.comic-reader-overlay.reader-filter-sepia .reader-page-wrapper,
.comic-reader-overlay.reader-filter-sepia .reader-cascade-container {
  filter: sepia(0.3) contrast(0.96) !important;
}

/* ==========================================================================
   EFECTO 3D TILT Y REFLEJO HOLOGRÁFICO EN TARJETAS DE CÓMICS
   ========================================================================== */
.popular-comics-grid,
.recent-comics-scroll,
.novedades-grid {
  perspective: 1200px;
}

.comic-card {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  will-change: transform;
  position: relative;
}

.comic-card-cover-wrap {
  position: relative;
  overflow: hidden;
}

.comic-card-hologram-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: overlay;
  z-index: 2;
  border-radius: inherit;
}

.comic-card:hover .comic-card-hologram-shine {
  opacity: 1;
}

/* ==========================================================================
   DESPLAZAMIENTO AUTOMÁTICO MANOS LIBRES (Autoscroll Webtoon)
   ========================================================================== */
.reader-autoscroll-bar {
  position: absolute;
  bottom: 84px;
  right: 28px;
  z-index: 100;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 7px 14px;
  border-radius: 9999px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  gap: 10px;
  animation: fadeInSlideUp 0.3s ease;
}

.comic-reader-overlay.is-cascade-mode .reader-autoscroll-bar {
  display: flex;
}

.autoscroll-toggle-btn {
  background: var(--grad-primary);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 14px rgba(226, 6, 19, 0.5);
}

.autoscroll-toggle-btn:hover {
  transform: scale(1.08);
}

.autoscroll-speed-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.15s ease;
}

.autoscroll-speed-pill:hover,
.autoscroll-speed-pill.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* ==========================================================================
   BANNER FLOTANTE "CONTINUAR LEYENDO"
   ========================================================================== */
.floating-continue-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 9999;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(226, 6, 19, 0.45);
  border-radius: 9999px;
  padding: 8px 18px 8px 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(226, 6, 19, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 92vw;
}

.floating-continue-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-continue-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  flex-shrink: 0;
}

.floating-continue-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.floating-continue-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.floating-continue-meta {
  font-size: 0.74rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-continue-progress-track {
  width: 55px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  overflow: hidden;
  display: inline-block;
}

.floating-continue-progress-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 9999px;
}

.floating-continue-resume-btn {
  background: var(--grad-primary);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(226, 6, 19, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.floating-continue-resume-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(226, 6, 19, 0.6);
}

.floating-continue-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px;
  line-height: 1;
  transition: color 0.15s;
}

.floating-continue-close:hover {
  color: #fff;
}

/* Canvas de Confeti en Pantalla Completa */
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000000;
  display: none;
}

