/* ==============================================================
   ComicVerse Neo - Design System & Modern Cyber-Glass Theme
   ============================================================== */

:root {
    --bg-deep: #030712;
    --bg-base: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-elevated: #162033;
    --bg-glass: rgba(17, 24, 39, 0.75);
    --bg-glass-elevated: rgba(22, 32, 51, 0.85);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(6, 182, 212, 0.4);
    
    /* Neón & Acentos */
    --neon-cyan: #06b6d4;
    --neon-blue: #3b82f6;
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --neon-amber: #f59e0b;
    --neon-emerald: #10b981;
    
    --glow-cyan: rgba(6, 182, 212, 0.25);
    --glow-purple: rgba(139, 92, 246, 0.25);
    --glow-blue: rgba(59, 130, 246, 0.25);
    
    /* Tipografía */
    --text-pure: #ffffff;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-dim: #6b7280;
    
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
}

/* ==============================================================
   NAVBAR HOLOGRÁFICA
   ============================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 2rem;
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.brand-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 0 15px var(--glow-cyan);
    transition: var(--transition);
}

.nav-brand:hover .brand-logo-mark {
    transform: rotate(10deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-pure);
    line-height: 1.1;
}

.brand-highlight {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    font-weight: 700;
}

/* Botón Trigger de Búsqueda Spotlight */
.spotlight-search-trigger {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 1.25rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.spotlight-search-trigger:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--glow-cyan);
    color: var(--text-primary);
}

.shortcut-key {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: inherit;
}

/* Acciones Navbar */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link-btn:hover {
    color: var(--text-pure);
    background: var(--bg-surface-elevated);
}

.nav-link-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border-color: var(--border-accent);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.api-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==============================================================
   MODAL SPOTLIGHT SEARCH (CMD + K)
   ============================================================== */
.spotlight-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 1.5rem 2rem;
    animation: fade-in 0.2s ease;
}

.spotlight-dialog {
    width: 100%;
    max-width: 640px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--glow-cyan);
    overflow: hidden;
}

.spotlight-input-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.spotlight-search-icon {
    font-size: 1.25rem;
    color: var(--neon-cyan);
}

.spotlight-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-pure);
    font-size: 1.15rem;
    font-family: inherit;
}

.spotlight-close-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
}

.spotlight-close-btn:hover {
    color: var(--text-pure);
}

.spotlight-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 0.75rem;
}

.spotlight-hint {
    padding: 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.spotlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.spotlight-item:hover {
    background: var(--bg-surface-elevated);
    transform: translateX(4px);
}

.spotlight-item-thumb {
    width: 44px;
    height: 60px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}

.spotlight-item-info h4 {
    font-size: 0.95rem;
    color: var(--text-pure);
}

.spotlight-item-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ==============================================================
   CONTENEDOR PRINCIPAL & SPA VIEWS
   ============================================================== */
.app-main {
    flex: 1;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.spa-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.spa-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================================
   1. HERO SPOTLIGHT CINEMÁTICO (INDEX)
   ============================================================== */
.spotlight-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 4rem 3.5rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-card);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(28px) brightness(0.7);
    transition: background-image 0.6s ease;
    z-index: 1;
}

.hero-ambient-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.hero-inner-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 3.5rem;
}

.hero-badges-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-status-glow {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-main-title {
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-pure);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.text-amber {
    color: var(--neon-amber);
}

.hero-synopsis-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 2.25rem;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Portada Flotante 3D del Hero */
.hero-media-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-floating-cover {
    position: relative;
    width: 250px;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--glow-cyan);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 1px solid var(--border-light);
}

.hero-floating-cover:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.04);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--glow-cyan);
}

.hero-floating-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.hero-thumbnails-switcher {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hero-thumb-dot {
    width: 32px;
    height: 44px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: var(--transition);
}

.hero-thumb-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-thumb-dot.active {
    opacity: 1;
    border-color: var(--neon-cyan);
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--glow-cyan);
}

/* ==============================================================
   2. SECCIÓN: TOP RANKING (#1 - #5) DISRUPTIVO
   ============================================================== */
.ranking-section {
    margin-bottom: 3.5rem;
}

.section-title-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.section-subtitle-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 0.25rem;
}

.section-heading {
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-pure);
}

.text-neon-cyan {
    color: var(--neon-cyan);
}

.text-neon-purple {
    color: var(--neon-purple);
}

.ranking-timer-badge {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.ranking-podium-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.ranking-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.ranking-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-cyan);
    background: var(--bg-surface-elevated);
}

.ranking-number-display {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.ranking-card:hover .ranking-number-display {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--glow-cyan);
}

.ranking-card-thumb {
    width: 65px;
    height: 90px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.ranking-card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-pure);
}

.ranking-card-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
}

/* ==============================================================
   3. SECCIÓN: RECIENTES ACTUALIZACIONES DE CAPÍTULOS
   ============================================================== */
.recent-feed-section {
    margin-bottom: 3.5rem;
}

.recent-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.recent-feed-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.recent-feed-card:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--neon-purple);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.recent-feed-thumb {
    width: 50px;
    height: 70px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}

.recent-feed-info {
    flex: 1;
}

.recent-feed-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 0.2rem;
}

.recent-feed-chapter {
    display: inline-block;
    font-size: 0.8rem;
    color: #c084fc;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.recent-feed-time {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ==============================================================
   4. SECCIÓN: EXPLORADOR MODULAR & BIBLIOTECA
   ============================================================== */
.explorer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.catalog-count-pill {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.view-mode-selector {
    display: flex;
    gap: 0.35rem;
    background: var(--bg-surface);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.view-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn:hover {
    color: var(--text-pure);
}

.view-btn.active {
    background: var(--bg-surface-elevated);
    color: var(--neon-cyan);
}

/* Matriz de Filtros */
.filter-matrix {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.status-filters-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover {
    color: var(--text-pure);
    border-color: var(--border-light);
}

.filter-pill.active {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: #030712;
    box-shadow: 0 0 15px var(--glow-cyan);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.dot-green { background: var(--neon-emerald); }
.dot-blue { background: var(--neon-blue); }
.dot-amber { background: var(--neon-amber); }

.genre-tags-slider {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.genre-tag {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.genre-tag:hover {
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.genre-tag.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--neon-purple);
    color: #c084fc;
}

/* GRID DINÁMICO DE TARJETAS (SHOWCASE) */
.comics-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

/* Modo Lista (Si se activa view-mode-list) */
.comics-showcase-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.showcase-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px var(--glow-cyan);
}

.showcase-media {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bg-surface-elevated);
}

.showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-media img {
    transform: scale(1.08);
}

.showcase-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.showcase-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.showcase-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-author {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0.85rem;
}

.showcase-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
}

/* ==============================================================
   5. WORKSPACE DEL CREATOR STUDIO (PANEL ADMIN)
   ============================================================== */
.admin-auth-card {
    max-width: 480px;
    margin: 4rem auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px var(--glow-cyan);
}

.auth-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 20px var(--glow-cyan);
}

/* Layout del Studio Workspace */
.studio-workspace {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 800px;
    box-shadow: var(--shadow-card);
}

/* Sidebar del Studio */
.studio-sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.studio-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.user-details strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-pure);
}

.user-role-badge {
    font-size: 0.72rem;
    color: var(--neon-cyan);
    font-weight: 700;
}

.studio-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.studio-nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.studio-nav-item:hover {
    color: var(--text-pure);
    background: var(--bg-surface-elevated);
}

.studio-nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border-color: var(--border-accent);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.studio-sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* Área Principal de Viewports del Studio */
.studio-main-viewport {
    padding: 2.5rem;
    overflow-y: auto;
}

.studio-pane {
    display: none;
}

.studio-pane.active {
    display: block;
    animation: fade-in 0.3s ease;
}

.pane-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pane-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 0.25rem;
}

.pane-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Métricas en Tarjetas de Cristal */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-glass-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.bg-cyan { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.bg-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.bg-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-pure);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-trend {
    font-size: 0.78rem;
    font-weight: 600;
}

.text-success { color: #34d399; }

/* Gráfico de Barras CSS */
.studio-card-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.box-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.activity-bars-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    padding-top: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 44px;
    height: 100%;
    justify-content: flex-end;
}

.bar-fill {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-col:hover .bar-fill {
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--glow-cyan);
}

.bar-fill.active-glow {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 15px var(--glow-cyan);
}

.bar-label {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Tabla de Cómics del Studio */
.studio-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.studio-data-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
}

.studio-data-table td {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.studio-data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-comic-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-comic-thumb {
    width: 40px;
    height: 56px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}

/* ==============================================================
   6. CREATOR CANVAS (CREADOR DE CÓMIC EN 2 COLUMNAS)
   ============================================================== */
.creator-canvas-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: flex-start;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.creator-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-pure);
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-pure);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px var(--glow-cyan);
}

/* Dropzone de Portada */
.cover-dropzone-styled {
    position: relative;
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.cover-dropzone-styled:hover,
.cover-dropzone-styled.dragover {
    border-color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
}

/* Columna de Vista Previa en Vivo */
.creator-preview-pane {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.creator-preview-pane h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.preview-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.live-preview-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.live-card-media {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.live-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(16, 185, 129, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-xs);
}

.live-card-body {
    padding: 1rem;
}

.live-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 0.25rem;
}

.live-card-author {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 0.5rem;
}

.live-card-synopsis {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

/* ==============================================================
   7. BATCH CHAPTER UPLOADER & REORDERING
   ============================================================== */
.batch-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.batch-meta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 1.25rem;
}

.batch-dropzone-futuristic {
    position: relative;
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    background: rgba(11, 15, 25, 0.7);
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.batch-dropzone-futuristic:hover,
.batch-dropzone-futuristic.dragover {
    border-color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 30px var(--glow-cyan);
}

.drop-icon-anim {
    font-size: 3.5rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.queue-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.queue-size-badge {
    background: rgba(6, 182, 212, 0.15);
    color: var(--neon-cyan);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 0.75rem;
}

/* Grid de Miniaturas Reordenables */
.reorder-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
    max-height: 480px;
    overflow-y: auto;
    padding: 0.5rem;
}

.reorder-page-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #000;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.reorder-page-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reorder-controls-overlay {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.5rem;
}

.reorder-btn {
    background: transparent;
    border: none;
    color: var(--text-pure);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
}

.reorder-btn:hover {
    color: var(--neon-cyan);
}

.reorder-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Barra de Progreso de Subida */
.upload-progress-container {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: #0b0f19;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 12px var(--glow-cyan);
    transition: width 0.3s ease;
}

/* ==============================================================
   8. DETALLE DE CÓMIC & VISOR LECTOR CASCADA
   ============================================================== */
.detail-container {
    max-width: 1100px;
    margin: 0 auto;
}

.comic-detail-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
}

.detail-cover-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.detail-cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-title {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-pure);
}

.chapters-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.chapters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.chapter-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.35rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-pure);
    cursor: pointer;
    transition: var(--transition);
}

.chapter-item-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--neon-cyan);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Visor Lector Cascada */
#view-reader {
    padding: 0;
    max-width: 100%;
}

.reader-topbar {
    position: sticky;
    top: 65px;
    z-index: 900;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reader-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-pure);
}

.reader-logout-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.15rem 0.35rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.reader-logout-btn:hover {
    color: #ef4444;
}

.reader-viewport {
    background: #000;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    padding: 2rem 0 4rem;
}

.reader-pages-container {
    width: 100%;
    max-width: 840px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #05070c;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}

.reader-page-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.reader-bottom-nav {
    max-width: 840px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.floating-reader-dock {
    position: fixed;
    right: 2rem;
    bottom: 2.5rem;
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--bg-glass-elevated);
    backdrop-filter: blur(16px);
    padding: 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.float-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-pure);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.float-btn:hover {
    background: var(--neon-cyan);
    color: #030712;
    transform: scale(1.12);
    box-shadow: 0 0 15px var(--glow-cyan);
}

/* ==============================================================
   BOTONES GLOBALES & UTILIDADES
   ============================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-cyan);
}

.btn-glow {
    box-shadow: 0 0 20px var(--glow-cyan);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: var(--text-pure);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-pure);
}

.btn-secondary:hover {
    background: #1e2c45;
    border-color: var(--border-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-pure);
    background: var(--bg-surface-elevated);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 0.9rem 1.85rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.text-danger { color: #f87171; }

/* TOASTS */
.toast-container {
    position: fixed;
    top: 5.5rem;
    right: 2rem;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.35rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-pure);
    box-shadow: var(--shadow-card);
    font-size: 0.92rem;
    min-width: 300px;
    animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-success { border-left: 4px solid var(--neon-emerald); }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid var(--neon-cyan); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==============================================================
   FOOTER & RESPONSIVE
   ============================================================== */
.app-footer {
    margin-top: auto;
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    color: var(--text-dim);
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .hero-inner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-lead-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-main-title {
        font-size: 2.5rem;
    }
    .hero-actions-row {
        justify-content: center;
    }
    .studio-workspace {
        grid-template-columns: 1fr;
    }
    .creator-canvas-grid {
        grid-template-columns: 1fr;
    }
    .batch-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    .spotlight-search-trigger .trigger-label {
        display: none;
    }
    .hero-main-title {
        font-size: 2rem;
    }
    .comic-detail-card {
        grid-template-columns: 1fr;
    }
    .comics-showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.25rem;
    }
}
