/* ============================================================
   LECTORWEB.LAT - ESTILOS PRINCIPALES
   ============================================================ */

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

:root {
  --bg-0: #07070a; --bg-1: #0d0d11; --bg-2: #131318; --bg-3: #1a1a22; --bg-4: #22222c;
  --border-1: #26262e; --border-2: #34343f;
  --text-1: #f5f5fa; --text-2: #a8a8b3; --text-3: #6b6b78; --text-4: #4a4a55;
  --orange: #ff5722; --orange-light: #ff7d50; --orange-glow: rgba(255, 87, 34, 0.2);
  --tag-manga: #f59e0b; --tag-general: #10b981; --tag-bl: #ec4899; --tag-shoujo: #a855f7; --tag-adulto: #ef4444;
  --gradient-orange: linear-gradient(135deg, #ff5722, #ff9068);
  --shadow-glow: 0 0 60px rgba(255, 87, 34, 0.3);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }
::selection { background: var(--orange-glow); color: var(--text-1); }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-1);
}
.header-inner { max-width: 1440px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 24px; }
.logo {
  font-family: var(--font-display); font-size: 26px; font-weight: 900;
  letter-spacing: -0.05em; cursor: pointer; line-height: 1;
  display: flex; align-items: baseline; color: var(--text-1);
}
.logo .dot { color: var(--orange); }
.logo small {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-3);
  margin-left: 6px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; align-self: center; transform: translateY(-3px);
}

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a { padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--text-2); border-radius: 8px; transition: all 0.15s; white-space: nowrap; }
.nav a:hover { color: var(--text-1); background: var(--bg-3); }
.nav a.active { color: var(--orange); background: var(--orange-glow); }
.nav .separator { width: 1px; height: 16px; background: var(--border-2); margin: 0 6px; }

.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--border-1);
  border-radius: 10px; padding: 9px 14px; width: 280px; transition: all 0.2s;
}
.search-box:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
.search-box input { background: none; border: none; outline: none; color: var(--text-1); font-family: inherit; font-size: 13px; flex: 1; width: 100%; }
.search-box input::placeholder { color: var(--text-3); }
.kbd { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); border: 1px solid var(--border-2); padding: 2px 6px; border-radius: 4px; background: var(--bg-2); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all 0.15s;
  background: var(--bg-3); border: 1px solid var(--border-1);
}
.icon-btn:hover { color: var(--orange); background: var(--bg-4); }
.btn-login {
  padding: 9px 18px; background: var(--gradient-orange);
  color: white; border-radius: 10px; font-size: 13px; font-weight: 600; transition: all 0.2s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }

/* TAG FILTER BAR */
.tag-filter-bar { background: var(--bg-1); border-bottom: 1px solid var(--border-1); padding: 10px 0; position: sticky; top: 65px; z-index: 99; }
.tag-filter-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tag-filter-inner::-webkit-scrollbar { display: none; }

.tag-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: 100px; font-size: 13px; font-weight: 500;
  color: var(--text-2); transition: all 0.15s; white-space: nowrap; cursor: pointer;
}
.tag-btn:hover { color: var(--text-1); border-color: var(--border-2); }
.tag-btn.active { background: var(--text-1); color: var(--bg-0); border-color: var(--text-1); }
.tag-btn .tag-dot { width: 8px; height: 8px; border-radius: 50%; }
.tag-btn.tag-manga .tag-dot { background: var(--tag-manga); }
.tag-btn.tag-general .tag-dot { background: var(--tag-general); }
.tag-btn.tag-bl .tag-dot { background: var(--tag-bl); }
.tag-btn.tag-shoujo .tag-dot { background: var(--tag-shoujo); }
.tag-btn.tag-adulto .tag-dot { background: var(--tag-adulto); }
.tag-btn .count { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); background: var(--bg-0); padding: 1px 6px; border-radius: 100px; margin-left: 4px; }
.tag-btn.active .count { background: rgba(0,0,0,0.2); color: rgba(0,0,0,0.7); }

/* HERO SLIDER */
.hero { max-width: 1440px; margin: 0 auto; padding: 24px 32px 0; position: relative; z-index: 2; }
.hero-slider { position: relative; height: 500px; border-radius: 28px; overflow: hidden; background: var(--bg-2); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: flex-end; }
.hero-slide.active { opacity: 1; }

.hero-bg { position: absolute; inset: 0; filter: brightness(0.5) saturate(1.2); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,7,10,0.95) 0%, rgba(7,7,10,0.5) 45%, transparent 100%),
              linear-gradient(180deg, transparent 50%, rgba(7,7,10,0.8) 100%);
}

.slide-1 .hero-bg { background: radial-gradient(ellipse at 70% 30%, rgba(138, 43, 226, 0.5), transparent 60%), radial-gradient(ellipse at 30% 80%, rgba(255, 87, 34, 0.4), transparent 50%), linear-gradient(135deg, #1a0033, #4d0099); }
.slide-2 .hero-bg { background: radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.5), transparent 60%), radial-gradient(ellipse at 20% 70%, rgba(168, 85, 247, 0.4), transparent 50%), linear-gradient(135deg, #2d0a1e, #6e1843); }
.slide-3 .hero-bg { background: radial-gradient(ellipse at 50% 30%, rgba(59, 130, 246, 0.5), transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(34, 197, 94, 0.3), transparent 50%), linear-gradient(135deg, #001a33, #003366); }

.hero-content { position: relative; z-index: 2; padding: 60px; max-width: 640px; }
.hero-badges { display: flex; gap: 8px; margin-bottom: 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: rgba(255, 87, 34, 0.15);
  border: 1px solid rgba(255, 87, 34, 0.4); border-radius: 100px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--orange-light); text-transform: uppercase; letter-spacing: 0.12em;
}
.hero-badge.live::before {
  content: ''; width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
  box-shadow: 0 0 10px var(--orange);
  animation: pulse 1.5s ease infinite;
}
.hero-badge.tag-manga { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: var(--tag-manga); }
.hero-badge.tag-bl { background: rgba(236, 72, 153, 0.15); border-color: rgba(236, 72, 153, 0.4); color: var(--tag-bl); }
.hero-badge.tag-shoujo { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.4); color: var(--tag-shoujo); }
.hero-badge.tag-general { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); color: var(--tag-general); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title { font-family: var(--font-display); font-size: clamp(44px, 5.5vw, 72px); font-weight: 800; line-height: 0.92; letter-spacing: -0.045em; margin-bottom: 16px; }
.hero-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; font-size: 13px; color: var(--text-2); font-family: var(--font-mono); flex-wrap: wrap; }
.hero-meta .rating { color: #fbbf24; font-weight: 600; }
.hero-meta .sep { opacity: 0.3; }

.hero-desc { font-size: 15px; color: var(--text-2); line-height: 1.65; margin-bottom: 32px; max-width: 520px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 28px; background: var(--gradient-orange);
  color: white; border-radius: 12px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px; transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn-secondary {
  padding: 14px 28px; background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-1); border-radius: 12px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

.hero-controls { position: absolute; bottom: 28px; right: 36px; display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 32px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; transition: all 0.3s; cursor: pointer; }
.hero-dot.active { background: var(--orange); width: 48px; }

/* SECTIONS */
.section { max-width: 1440px; margin: 0 auto; padding: 64px 32px 0; position: relative; z-index: 2; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 24px; }
.section-title-group h2 { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.section-title-group h2 .accent { color: var(--orange); }
.section-title-group p { color: var(--text-2); font-size: 13px; }

.section-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border: 1px solid var(--border-1); border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--text-2); transition: all 0.15s; flex-shrink: 0;
}
.section-link:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-glow); }

/* MANGA CARDS */
.chapters-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.manga-card { cursor: pointer; transition: transform 0.3s; position: relative; color: var(--text-1); }
.manga-card:hover { transform: translateY(-6px); }

.manga-cover { position: relative; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; margin-bottom: 12px; background: var(--bg-2); border: 1px solid var(--border-1); }
.cover-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s; }
.manga-card:hover .cover-img { transform: scale(1.08); }

.cover-1 { background: linear-gradient(135deg, #6b21a8, #c026d3, #ec4899); }
.cover-2 { background: linear-gradient(135deg, #1e3a8a, #3b82f6, #06b6d4); }
.cover-3 { background: linear-gradient(135deg, #7f1d1d, #dc2626, #f97316); }
.cover-4 { background: linear-gradient(135deg, #14532d, #16a34a, #84cc16); }
.cover-5 { background: linear-gradient(135deg, #1a1a40, #4338ca, #818cf8); }
.cover-6 { background: linear-gradient(135deg, #422006, #ca8a04, #fde047); }
.cover-7 { background: linear-gradient(135deg, #134e4a, #0d9488, #5eead4); }
.cover-8 { background: linear-gradient(135deg, #4c0519, #be123c, #fb7185); }
.cover-9 { background: linear-gradient(135deg, #1c1917, #44403c, #a8a29e); }
.cover-10 { background: linear-gradient(135deg, #312e81, #6366f1, #c4b5fd); }
.cover-11 { background: linear-gradient(135deg, #581c87, #9333ea, #d946ef); }
.cover-12 { background: linear-gradient(135deg, #064e3b, #047857, #6ee7b7); }

.cover-tag {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 9px; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px); border-radius: 100px;
  font-size: 10px; font-weight: 600; color: var(--text-1);
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.1);
}
.cover-tag .tag-dot { width: 6px; height: 6px; border-radius: 50%; }
.cover-tag.tag-manga .tag-dot { background: var(--tag-manga); }
.cover-tag.tag-general .tag-dot { background: var(--tag-general); }
.cover-tag.tag-bl .tag-dot { background: var(--tag-bl); }
.cover-tag.tag-shoujo .tag-dot { background: var(--tag-shoujo); }
.cover-tag.tag-adulto .tag-dot { background: var(--tag-adulto); }
.cover-tag.tag-adulto { background: rgba(239, 68, 68, 0.9); border-color: rgba(239, 68, 68, 0.5); }

.cover-rating {
  position: absolute; top: 10px; right: 10px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 9px; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px); border-radius: 100px;
  font-size: 11px; font-weight: 600; color: #fbbf24;
  border: 1px solid rgba(255,255,255,0.1);
}

.cover-bottom {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
}

.cover-chapter {
  font-family: var(--font-mono); font-size: 11px;
  background: rgba(255, 87, 34, 0.95); color: white;
  padding: 4px 10px; border-radius: 6px; align-self: flex-start; font-weight: 700;
}

.manga-info { padding: 0 2px; }
.manga-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; color: var(--text-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.manga-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.manga-meta .dot { width: 3px; height: 3px; background: var(--text-3); border-radius: 50%; }

/* RANKING */
.ranking-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ranking-item {
  display: flex; gap: 16px; padding: 16px;
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: 16px;
  transition: all 0.2s; cursor: pointer; position: relative; overflow: hidden; color: var(--text-1);
}
.ranking-item:hover { border-color: var(--orange); transform: translateX(4px); }
.ranking-item:hover .ranking-number { background: var(--gradient-orange); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.ranking-number { font-family: var(--font-display); font-size: 60px; font-weight: 900; line-height: 0.85; color: var(--text-4); transition: all 0.2s; width: 60px; flex-shrink: 0; }
.ranking-cover { width: 70px; height: 100px; border-radius: 8px; flex-shrink: 0; background-size: cover; position: relative; }
.ranking-cover .tag-mini { position: absolute; bottom: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg-2); }
.ranking-info { flex: 1; min-width: 0; }
.ranking-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ranking-info .genres { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.genre-tag { font-size: 10px; font-weight: 500; padding: 3px 8px; background: var(--bg-3); color: var(--text-2); border-radius: 100px; border: 1px solid var(--border-1); }
.ranking-info .stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); }
.ranking-info .stats span { display: flex; align-items: center; gap: 4px; }

/* FOOTER */
.footer { margin-top: 96px; padding: 56px 32px 28px; background: var(--bg-1); border-top: 1px solid var(--border-1); }
.footer-inner { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 32px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-2); font-size: 13px; line-height: 1.7; max-width: 340px; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 8px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--text-1); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-2); font-size: 13px; transition: color 0.15s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { max-width: 1440px; margin: 0 auto; padding-top: 28px; border-top: 1px solid var(--border-1); display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 11px; font-family: var(--font-mono); }

/* AGE MODAL */
.age-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(20px); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.age-modal.active { display: flex; }
.age-modal-content { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 20px; padding: 48px 40px; max-width: 480px; text-align: center; box-shadow: 0 30px 80px rgba(239,68,68,0.2); }
.age-modal-icon { width: 64px; height: 64px; background: rgba(239, 68, 68, 0.15); border: 2px solid var(--tag-adulto); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 28px; }
.age-modal h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.age-modal p { color: var(--text-2); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.age-modal-buttons { display: flex; gap: 10px; }
.btn-adult-yes { flex: 1; padding: 14px; background: var(--tag-adulto); color: white; border-radius: 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.2s; }
.btn-adult-yes:hover { background: #dc2626; transform: translateY(-1px); }
.btn-adult-no { flex: 1; padding: 14px; background: var(--bg-2); border: 1px solid var(--border-1); color: var(--text-2); border-radius: 12px; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.btn-adult-no:hover { border-color: var(--border-2); color: var(--text-1); }
.age-disclaimer { margin-top: 20px; font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .chapters-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .search-box { display: none; }
  .hero-slider { height: 400px; }
  .hero-content { padding: 36px; }
  .ranking-grid, .footer-inner { grid-template-columns: 1fr; }
  .chapters-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .header-inner { padding: 12px 16px; gap: 14px; }
  .section { padding: 48px 16px 0; }
  .chapters-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-title-group h2 { font-size: 26px; }
  .hero { padding: 16px 16px 0; }
  .hero-controls { right: 16px; bottom: 16px; }
  .footer { padding: 48px 16px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
/* ============================================================
   CATÁLOGO - Agregar al final de estilos.css existente
   ============================================================ */

.catalogo-wrapper {
    padding-bottom: 60px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.catalogo-header {
    padding: 48px 0 24px;
    position: relative;
    z-index: 2;
}
.catalogo-titulo {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}
.catalogo-titulo .accent {
    color: var(--orange);
}
.catalogo-meta {
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 13px;
}

.catalogo-toolbar {
    padding-bottom: 24px;
    position: relative;
    z-index: 2;
}
.toolbar-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.search-box-cat {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s;
}
.search-box-cat:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}
.search-box-cat input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-1);
    font-family: inherit;
    font-size: 14px;
    flex: 1;
    width: 100%;
}
.search-box-cat input::placeholder {
    color: var(--text-3);
}

.toolbar-select {
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    color: var(--text-1);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    min-width: 180px;
}
.toolbar-select:focus {
    border-color: var(--orange);
}

.btn-search {
    padding: 12px 24px;
    background: var(--gradient-orange);
    color: white;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.catalogo-vacio {
    text-align: center;
    padding: 80px 20px;
}
.catalogo-vacio h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 12px;
}
.catalogo-vacio p {
    color: var(--text-2);
    margin-bottom: 24px;
}

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.paginacion .page-btn {
    padding: 9px 14px;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: 10px;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-2);
    transition: all 0.15s;
    cursor: pointer;
}
.paginacion .page-btn:hover {
    color: var(--orange);
    border-color: var(--orange);
}
.paginacion .page-btn.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}
.page-sep {
    color: var(--text-3);
    padding: 0 8px;
    font-family: var(--font-mono);
}
.paginacion-info {
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
    font-family: var(--font-mono);
    margin-top: 12px;
}

@media (max-width: 1200px) {
    .catalogo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .catalogo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .catalogo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .toolbar-form { flex-direction: column; }
    .search-box-cat, .toolbar-select, .btn-search { width: 100%; }
}
/* ============================================================
   PÁGINA DE MANGA - Agregar al FINAL de estilos.css
   ============================================================ */

.manga-hero-wrapper {
    position: relative;
}
.manga-hero-blur {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(80px) saturate(0.8);
    opacity: 0.3;
    transform: scale(1.2);
}
.manga-hero-blur::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, var(--bg-0));
}

.manga-hero {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 32px;
}

.manga-detail-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: start;
}

.manga-detail-cover {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    background: var(--bg-2);
    position: relative;
}
.manga-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.manga-detail-cover .badge-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: #052e16;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.manga-detail-info {
    padding-top: 16px;
}

.manga-breadcrumb {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.manga-breadcrumb a { color: var(--text-3); }
.manga-breadcrumb a:hover { color: var(--orange); }
.manga-breadcrumb .sep { color: var(--border-2); }

.manga-tag-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.manga-tag-display .tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.manga-tag-display.tag-manga .tag-dot { background: var(--tag-manga); }
.manga-tag-display.tag-general .tag-dot { background: var(--tag-general); }
.manga-tag-display.tag-bl .tag-dot { background: var(--tag-bl); }
.manga-tag-display.tag-shoujo .tag-dot { background: var(--tag-shoujo); }
.manga-tag-display.tag-adulto .tag-dot { background: var(--tag-adulto); }

.manga-detail-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-bottom: 8px;
}

.manga-detail-original {
    font-size: 16px;
    color: var(--text-2);
    font-style: italic;
    margin-bottom: 24px;
}

.manga-detail-stats {
    display: flex;
    gap: 36px;
    padding: 20px 0;
    border-top: 1px solid var(--border-1);
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-item .stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.stat-item .stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-1);
}
.stat-item .stat-value.rating { color: #fbbf24; }

.manga-detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.manga-detail-genres .genre-tag:hover {
    color: var(--orange);
    border-color: var(--orange);
}

.manga-detail-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 28px;
    max-width: 800px;
}

.manga-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* TABS */
.manga-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 24px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 32px;
    overflow-x: auto;
    scrollbar-width: none;
}
.manga-tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
    cursor: pointer;
    white-space: nowrap;
}
.tab:hover { color: var(--text-1); }
.tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}
.tab .count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    margin-left: 6px;
}

.chapters-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 32px;
}

.chapters-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.chapter-nav-btn {
    padding: 9px 16px;
    background: var(--bg-3);
    border: 1px solid var(--border-1);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    cursor: pointer;
}
.chapter-nav-btn:hover {
    background: var(--bg-4);
    color: var(--orange);
}

.chapters-list {
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: 16px;
    overflow: hidden;
}

.chapter-row {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-1);
    align-items: center;
    transition: background 0.15s;
    color: var(--text-1);
}
.chapter-row:last-child { border-bottom: none; }
.chapter-row:hover { background: var(--bg-3); }

.chapter-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
}
.chapter-title {
    font-size: 14px;
    color: var(--text-1);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chapter-date {
    font-size: 12px;
    color: var(--text-3);
    font-family: var(--font-mono);
}
.chapter-icon {
    color: var(--text-3);
    transition: color 0.15s;
}
.chapter-row:hover .chapter-icon { color: var(--orange); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: 16px;
}
.info-item {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}
.info-item strong {
    color: var(--text-1);
    margin-right: 8px;
}

@media (max-width: 900px) {
    .manga-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .manga-detail-cover { max-width: 240px; margin: 0 auto; }
    .manga-detail-info { padding-top: 0; }
}
@media (max-width: 600px) {
    .manga-hero { padding: 24px 16px; }
    .manga-tabs { padding: 0 16px; }
    .chapters-section { padding: 0 16px 24px; }
    .chapter-row { grid-template-columns: 80px 1fr auto; gap: 12px; padding: 12px 16px; }
    .chapter-row .chapter-icon { display: none; }
    .chapter-title { font-size: 13px; }
    .manga-detail-stats { gap: 20px; }
}
/* ============================================================
   LECTOR - Agregar al FINAL de estilos.css
   ============================================================ */

.body-reader {
    background: #000;
}

.reader-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.05);
    z-index: 100;
}
.reader-progress-bar {
    height: 100%;
    background: var(--gradient-orange);
    width: 0;
    transition: width 0.15s;
}

.reader-header {
    position: sticky;
    top: 3px;
    z-index: 90;
    background: rgba(7,7,10,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.reader-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-3);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-2);
    transition: all 0.15s;
}
.reader-back:hover { color: var(--orange); background: var(--bg-4); }

.reader-title {
    flex: 1;
    min-width: 200px;
}
.reader-title h1 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-1);
}
.reader-title p {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reader-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.reader-mode-toggle {
    display: flex;
    background: var(--bg-3);
    border-radius: 10px;
    padding: 3px;
}
.mode-btn {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 7px;
    color: var(--text-2);
    transition: all 0.15s;
    cursor: pointer;
}
.mode-btn.active {
    background: var(--bg-4);
    color: var(--orange);
}

.chapter-selector {
    background: var(--bg-3);
    border: 1px solid var(--border-1);
    color: var(--text-1);
    padding: 8px 12px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    outline: none;
    max-width: 120px;
}
.chapter-selector:focus {
    border-color: var(--orange);
}

.reader-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 32px;
    background: #000;
}

.reader-page {
    width: 100%;
    margin: 0;
    line-height: 0;
}
.reader-page img {
    width: 100%;
    height: auto;
    display: block;
}

.reader-content.paged-mode {
    min-height: 80vh;
    cursor: pointer;
}
.reader-content.paged-mode .reader-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reader-content.paged-mode .reader-page img {
    max-height: 90vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.reader-footer-nav {
    background: var(--bg-1);
    border-top: 1px solid var(--border-1);
}

.footer-reader {
    background: var(--bg-1);
    border-top: 1px solid var(--border-1);
}

@media (max-width: 700px) {
    .reader-header { padding: 8px 12px; gap: 8px; }
    .reader-title h1 { font-size: 13px; }
    .reader-title p { font-size: 10px; }
    .reader-back { padding: 6px 10px; font-size: 12px; }
    .chapter-nav-btn { padding: 6px 10px; font-size: 12px; }
    .chapter-selector { max-width: 80px; padding: 6px 8px; font-size: 11px; }
    .reader-mode-toggle { display: none; }
}
