/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: all var(--t-base);
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--primary);
    color: var(--primary-on);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn--primary:hover {
    background: var(--primary-dim);
}

.btn--ghost {
    background: var(--surface-high);
    border-color: var(--border);
    color: var(--text-white);
    font-weight: 600;
}

.btn--ghost:hover {
    background: var(--surface-bright);
}

.btn--ghost:hover .icon {
    transform: scale(1.1);
}

.btn--icon {
    width: 30px;
    height: 30px;
    padding: 0;
    background: var(--surface-low);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-white);
}

.btn--icon:hover {
    background: var(--surface-high);
}

.btn--icon--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-on);
}

.btn--icon--primary:hover {
    background: var(--primary-dim);
}

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.4;
}

.badge--primary {
    background: rgba(57, 198, 165, 0.15);
    color: var(--primary);
}

.badge--gold {
    background: rgba(240, 199, 94, 0.15);
    color: var(--tertiary);
}

.badge--red {
    background: rgba(232, 120, 120, 0.15);
    color: var(--secondary);
}

.badge--muted {
    background: var(--surface-high);
    color: var(--text-muted);
}

.badge--outline {
    background: var(--surface-high);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge .dot--pulse {
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: var(--surface-high);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 10px;
    font-weight: 500;
}

/* ============================================================
   PROGRESO
   ============================================================ */
.progress {
    width: 100%;
    height: 6px;
    background: var(--bg);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.progress__bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress__bar--gold {
    background: linear-gradient(90deg, var(--tertiary), var(--primary));
}

/* ============================================================
   NAVBAR / HEADER
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(15, 18, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.navbar__inner {
    height: var(--header-h);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar__left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar__logo {
    height: 32px;
    width: 32px;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform var(--t-base);
}

.navbar__brand:hover .navbar__logo {
    transform: scale(1.05);
}

.navbar__title {
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

.navbar__title span {
    color: var(--primary);
    margin-left: 2px;
}

.navbar__nav {
    display: none;
    align-items: center;
    gap: 20px;
    font-size: var(--fs-sm);
    font-weight: 600;
}

@media (min-width: 1280px) {
    .navbar__nav {
        display: flex;
    }
}

.navbar__link {
    color: var(--text-muted);
    padding: 4px;
    transition: color var(--t-base);
    border-bottom: 2px solid transparent;
}

.navbar__link:hover {
    color: var(--text-white);
}

.navbar__link--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.navbar__search {
    flex: 1;
    max-width: 448px;
    display: none;
}

@media (min-width: 768px) {
    .navbar__search {
        display: block;
    }
}

.search-bar {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-bar__icon {
    position: absolute;
    left: 12px;
    color: var(--text-dim);
    pointer-events: none;
}

.search-bar__input {
    width: 100%;
    height: 36px;
    padding: 0 56px 0 36px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    color: var(--text-white);
    outline: none;
    transition: border-color var(--t-base), background var(--t-base);
}

.search-bar__input::placeholder {
    color: var(--text-dim);
}

.search-bar__input:focus {
    border-color: var(--primary);
    background: var(--surface-container);
}

.search-bar__kbd {
    position: absolute;
    right: 10px;
    padding: 2px 6px;
    background: var(--surface-high);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
}

.navbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.xp-pill {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--surface-container);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-full);
    transition: background var(--t-base);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .xp-pill {
        display: flex;
    }
}

.xp-pill:hover {
    background: var(--surface-high);
}

.xp-pill__streak {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--tertiary);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.xp-pill__divider {
    height: 12px;
    width: 1px;
    background: var(--border);
}

.xp-pill__level {
    color: var(--text-white);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.xp-pill__track {
    width: 56px;
    height: 6px;
    background: var(--bg);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.xp-pill__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tertiary), var(--primary));
    border-radius: var(--radius-full);
}

.xp-pill__pct {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
}

.icon-btn {
    position: relative;
    padding: 8px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all var(--t-base);
}

.icon-btn:hover {
    color: var(--text-white);
    background: var(--surface-container);
}

.icon-btn__dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 2px var(--surface);
}

.avatar-btn {
    position: relative;
    padding: 2px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: border-color var(--t-base);
}

.avatar-btn:hover {
    border-color: var(--primary);
}

.avatar-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-btn__status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--surface);
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
    background: var(--surface-container);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section--tight {
    gap: 10px;
    padding: 16px;
}

.section__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-soft);
}

@media (min-width: 640px) {
    .section__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.section__head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.section__icon--primary {
    background: rgba(57, 198, 165, 0.1);
    color: var(--primary);
}

.section__icon--gold {
    background: rgba(240, 199, 94, 0.15);
    color: var(--tertiary);
}

.section__title {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.section__subtitle {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
}

.section__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid var(--border-soft);
    font-size: var(--fs-sm);
}

.section__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    transition: color var(--t-base);
}

.section__link:hover {
    color: var(--primary-dim);
}

.tabs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 2px;
}

.tabs__btn {
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--t-base);
}

.tabs__btn:hover {
    color: var(--text-white);
}

.tabs__btn--active {
    background: var(--surface-high);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.nav-arrows {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--header-h));
    border-radius: 0;
    overflow: hidden;
    background: var(--surface-container);
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    z-index: 0;
}

@media (min-width: 1024px) {
    .hero__bg {
        background-position: center;
    }
}

.hero__overlay-h,
.hero__overlay-v {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__overlay-h {
    background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 13, 18, 0.9) 40%, rgba(11, 13, 18, 0) 100%);
}

.hero__overlay-v {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 18, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.hero__content {
    position: relative;
    z-index: 10;
    padding: 20px;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: end;
}

@media (min-width: 1024px) {
    .hero__content {
        padding: 28px;
        grid-template-columns: 8fr 4fr;
    }
}

.hero__main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.hero__title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-white);
    line-height: 1.25;
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 48px;      /* 👈 sube esto */
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
}

@media (min-width: 1440px) {
  .hero__title {
    font-size: 56px;
  }
}

.hero__title span {
    color: var(--primary);
}

.hero__desc {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 576px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero__genres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
}

.hero__genres .chip {
    font-size: 11px;
    padding: 2px 8px;
}

.hero__update {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.hero__update .icon {
    margin-right: 4px;
    font-size: 14px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}

.hero__side {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 8px;
}

.hero__panel {
    width: 100%;
    max-width: 384px;
    padding: 14px;
    background: rgba(15, 18, 24, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-xl);
}

.hero__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-sm);
}

.hero__panel-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-white);
    font-weight: 600;
}

.hero__panel-next {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.4;
    margin: 0;
}

.hero__panel-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 11px;
    padding-top: 2px;
}

.hero__panel-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.6s ease-in-out infinite;
}

.hero__panel-foot {
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hero__panel-foot-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero__panel-foot-scan {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero__panel-foot-raw {
    font-size: 10px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero__dots {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 18, 24, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    width: fit-content;
    margin: 0 40px 24px 40px;
    box-shadow: var(--shadow-lg);
}

.hero__dots-btn {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--t-base);
}

.hero__dots-btn:hover {
    color: var(--primary);
}

.hero__dots-track {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero__dots-track .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

.hero__dots-track .dot--active {
    width: 16px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--primary);
}

.hero__dots-count {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 2px;
}

-count span {
    color: var(--text-dim);
}

/* ============================================================
   CONTINUE CARD
   ============================================================ */
.continue-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .continue-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.continue-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.continue-card:hover {
    border-color: rgba(57, 198, 165, 0.6);
    background: var(--surface-high);
}

.continue-card__row {
    display: flex;
    gap: 12px;
}

.continue-card__cover {
    position: relative;
    width: 64px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}

.continue-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.continue-card:hover .continue-card__cover img {
    transform: scale(1.05);
}

.continue-card__cap {
    position: absolute;
    bottom: 4px;
    left: 4px;
    padding: 1px 4px;
    background: rgba(11, 13, 18, 0.9);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-sm);
    font-size: 8px;
    font-weight: 600;
    color: var(--text-white);
}

.continue-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    gap: 4px;
}

.continue-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.continue-card__pages {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tertiary);
    font-weight: 600;
}

.continue-card__title {
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--t-base);
}

.continue-card:hover .continue-card__title {
    color: var(--primary);
}

.continue-card__next {
    margin: 0;
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.continue-card__next--accent {
    color: var(--primary);
    font-weight: 500;
}

.continue-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.continue-card__pct {
    color: var(--primary);
    font-weight: 700;
}

.continue-card__pct--done {
    color: var(--tertiary);
}

.continue-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 700;
    transition: all var(--t-base);
    background: rgba(57, 198, 165, 0.15);
    color: var(--primary);
}

.continue-card__btn:hover {
    background: var(--primary);
    color: var(--primary-on);
}

.continue-card__btn--ghost {
    background: var(--surface-high);
    border: 1px solid var(--border);
    color: var(--text-white);
}

.continue-card__btn--ghost:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--surface-high);
}

.continue-card__bar {
    margin-top: 10px;
    width: 100%;
    height: 6px;
    background: var(--bg);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.continue-card__bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.continue-card__bar-fill--done {
    background: linear-gradient(90deg, var(--tertiary), var(--primary));
}

/* ============================================================
   LAUNCH ITEM
   ============================================================ */
.launch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 640px) {
    .launch-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.launch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
}

.launch-item:hover {
    background: var(--surface-high);
    border-color: rgba(57, 198, 165, 0.5);
}

.launch-item__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.launch-item__cover {
    position: relative;
    width: 44px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.launch-item__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.launch-item:hover .launch-item__cover img {
    transform: scale(1.05);
}

.launch-item__cap {
    position: absolute;
    bottom: 2px;
    left: 2px;
    padding: 1px 4px;
    background: rgba(11, 13, 18, 0.9);
    border-radius: var(--radius-sm);
    font-size: 8px;
    font-weight: 700;
    color: var(--primary);
}

.launch-item__body {
    flex: 1;
    min-width: 0;
    padding-right: 6px;
}

.launch-item__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.launch-item__scan {
    font-size: 9px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.launch-item__title {
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--t-base);
}

.launch-item:hover .launch-item__title {
    color: var(--primary);
}

.launch-item__stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.launch-item__time--live {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.launch-item__time--live::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.6s ease-in-out infinite;
}

.launch-item__rating {
    display: inline-flex;
    align-items: center;
    color: var(--tertiary);
    font-weight: 600;
}

.launch-item__rating .icon {
    margin-right: 2px;
}

/* ============================================================
   RANKING CARD
   ============================================================ */
.rank-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 640px) {
    .rank-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .rank-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rank-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
}

.rank-card:hover {
    background: var(--surface-high);
    border-color: rgba(57, 198, 165, 0.6);
}

.rank-card--top {
    border-color: rgba(240, 199, 94, 0.4);
}

.rank-card--top:hover {
    border-color: var(--tertiary);
}

.rank-card__cover {
    position: relative;
    width: 56px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}

.rank-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-card:hover .rank-card__cover img {
    transform: scale(1.05);
}

.rank-card__num {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rank-card__num--1 {
    background: var(--tertiary);
    color: var(--primary-on);
}

.rank-card__num--2,
.rank-card__num--3 {
    background: var(--border);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-card__num--n {
    background: var(--surface-high);
    color: var(--text-muted);
}

.rank-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    height: 100%;
    justify-content: space-between;
    padding: 2px 0;
}

.rank-card__title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.rank-card__title {
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--t-base);
}

.rank-card:hover .rank-card__title {
    color: var(--primary);
}

.rank-card__trend {
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-card__trend--up {
    color: var(--primary);
}

.rank-card__trend--down {
    color: var(--secondary);
}

.rank-card__scan {
    margin: 0;
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-card__stats {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-top: 4px;
}

.rank-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--tertiary);
    font-weight: 600;
}

.rank-card__reads {
    color: var(--text-muted);
}

.rank-card__foot {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rank-card__genre {
    padding: 1px 6px;
    background: var(--surface-high);
    border-radius: var(--radius-sm);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
}

.rank-card__read-link {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: color var(--t-base);
}

.rank-card__read-link:hover {
    color: var(--text-white);
}

/* ============================================================
   MANGA CARD (poster)
   ============================================================ */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .manga-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.manga-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t-base);
    box-shadow: var(--shadow-md);
}

.manga-card:hover {
    border-color: rgba(57, 198, 165, 0.5);
    background: var(--surface-high);
}

.manga-card__poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg);
}

.manga-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.manga-card:hover .manga-card__poster img {
    transform: scale(1.05);
}

.manga-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 13, 18, 0.9) 0%, rgba(11, 13, 18, 0) 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.manga-card__type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    background: rgba(11, 13, 18, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--primary);
}

.manga-card__type--gold {
    color: var(--tertiary);
}

.manga-card__fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 13, 18, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--t-base);
}

.manga-card__fav:hover {
    color: var(--secondary);
}

.manga-card__fav--active {
    color: var(--secondary);
}

.manga-card__meta {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
}

.manga-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tertiary);
}

.manga-card__cap {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
}

.manga-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 8px;
}

.manga-card__title {
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--t-base);
}

.manga-card:hover .manga-card__title {
    color: var(--primary);
}

.manga-card__author {
    margin: 2px 0 0;
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manga-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.manga-card__tag {
    padding: 2px 6px;
    background: var(--surface-container);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
}

.manga-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
    font-size: 10px;
}

.manga-card__new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
}

.manga-card__new::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.6s ease-in-out infinite;
}

.manga-card__uptodate {
    color: var(--text-muted);
    font-weight: 500;
}

.manga-card__likes {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--secondary);
    font-weight: 500;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

/* Anuncios */
.announce-tabs {
    display: flex;
    gap: 2px;
    padding: 2px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.announce-tabs button {
    flex: 1;
    padding: 3px 0;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: all var(--t-base);
}

.announce-tabs button:hover {
    color: var(--text-white);
}

.announce-tabs button.is-active {
    background: var(--surface-high);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.announce-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.announce {
    padding: 10px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background var(--t-base);
}

.announce:hover {
    background: var(--surface-high);
}

.announce__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.announce__head-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.announce__author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted);
}

.announce__time {
    color: var(--text-dim);
    font-size: 10px;
}

.announce__title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    transition: color var(--t-base);
}

.announce__title:hover {
    color: var(--primary);
}

.announce__title--gold:hover {
    color: var(--tertiary);
}

.announce__body {
    margin: 0;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announce__body--1 {
    -webkit-line-clamp: 1;
}

/* Misión diaria */
.mission {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mission__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.mission__badge {
    padding: 2px 8px;
    background: var(--surface-high);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--tertiary);
    font-size: 11px;
    font-weight: 700;
}

.mission__desc {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

.mission__progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.mission__progress-label {
    color: var(--text-white);
    font-weight: 500;
}

.mission__progress-value {
    color: var(--primary);
    font-weight: 700;
}

.mission__chest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.mission__chest-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission__chest-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-white);
}

.mission__chest-sub {
    font-size: 9px;
    color: var(--text-muted);
}

.mission__chest-badge {
    padding: 2px 8px;
    background: rgba(240, 199, 94, 0.15);
    border-radius: var(--radius-sm);
    color: var(--tertiary);
    font-size: 10px;
    font-weight: 700;
}

.mission__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mission__stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.mission__stat-label {
    font-size: 9px;
    color: var(--text-muted);
}

.mission__stat-value {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-white);
}

/* Chat */
.chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.chat__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}

.chat__head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat__head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.chat__status {
    font-size: 9px;
    color: var(--text-muted);
}

.chat__filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--surface-low);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    transition: all var(--t-base);
}

.chat__filter:hover {
    color: var(--text-white);
}

.chat__channels {
    display: flex;
    gap: 4px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
}

.chat__channel {
    padding: 2px 8px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all var(--t-base);
    white-space: nowrap;
}

.chat__channel:hover {
    color: var(--text-white);
    border-color: var(--border);
}

.chat__channel--active {
    background: var(--surface-high);
    border-color: rgba(57, 198, 165, 0.4);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.chat__pinned {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: rgba(57, 198, 165, 0.1);
    border: 1px solid rgba(57, 198, 165, 0.3);
    border-radius: var(--radius-md);
}

.chat__pinned-body {
    flex: 1;
    min-width: 0;
}

.chat__pinned-head {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
}

.chat__pinned-label {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chat__pinned-time {
    color: var(--text-muted);
}

.chat__pinned-text {
    margin: 2px 0 0;
    font-size: 10px;
    color: var(--text);
    line-height: 1.4;
}

.chat__pinned-text strong {
    color: var(--primary);
    font-weight: 600;
}

.chat__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    flex: 1;
}

.chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--fs-sm);
}

.chat-msg__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface-high);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
}

.chat-msg__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.chat-msg__head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-msg__name {
    font-size: 11px;
    font-weight: 700;
}

.chat-msg__time {
    margin-left: auto;
    font-size: 9px;
    color: var(--text-dim);
}

.chat-msg__text {
    margin: 2px 0 0;
    font-size: 10px;
    line-height: 1.5;
}

.chat-msg__text--accent {
    color: var(--primary);
    font-weight: 500;
}

.chat-msg__reactions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.chat-msg__reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 9px;
    color: var(--primary);
    transition: border-color var(--t-base);
}

.chat-msg__reaction:hover {
    border-color: rgba(57, 198, 165, 0.4);
}

.chat-msg__reply {
    font-size: 9px;
    color: var(--text-dim);
    font-weight: 600;
    margin-left: 4px;
    transition: color var(--t-base);
}

.chat-msg__reply:hover {
    color: var(--text-muted);
}

.chat__compose {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
}

.chat__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.chat__input {
    width: 100%;
    height: 32px;
    padding: 0 96px 0 12px;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    font-size: 11px;
    color: var(--text-white);
    outline: none;
    transition: border-color var(--t-base);
}

.chat__input::placeholder {
    color: var(--text-dim);
}

.chat__input:focus {
    border-color: var(--primary);
}

.chat__input-actions {
    position: absolute;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.chat__input-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--t-base);
}

.chat__input-btn:hover {
    color: var(--primary);
    background: var(--surface-high);
}

.chat__input-btn--send {
    background: var(--primary);
    color: var(--primary-on);
    font-weight: 700;
}

.chat__input-btn--send:hover {
    background: var(--primary-dim);
    color: var(--primary-on);
}

.chat__compose-foot {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 9px;
    color: var(--text-dim);
}

.chat__compose-foot strong {
    color: var(--text-muted);
}

.chat__compose-foot .dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    vertical-align: middle;
    margin-right: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    margin-top: 48px;
    border-top: 1px solid #232733;
    background: #0d0f15;
    padding: 32px 24px;
    color: var(--text-muted);
}

@media (min-width: 1024px) {
    .footer {
        padding: 32px 48px;
    }
}

.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: var(--fs-sm);
}

@media (min-width: 768px) {
    .footer__inner {
        flex-direction: row;
    }
}

.footer__brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: var(--fs-md);
    color: #f1f5f9;
}

.footer__brand-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #39c6a533;
    color: var(--primary);
    border: 1px solid #39c6a54d;
    border-radius: var(--radius-md);
}

.footer__divider {
    color: var(--border);
}

.footer__tagline {
    color: var(--text-muted);
    margin: 0;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__links a {
    transition: color var(--t-base);
}

.footer__links a:hover {
    color: var(--primary);
}

.footer__bottom {
    max-width: 1280px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--surface-high);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
}

@media (min-width: 640px) {
    .footer__bottom {
        flex-direction: row;
    }
}

.footer__bottom-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__ok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer__ok-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ============================================================
   BANNER "EN CONSTRUCCIÓN" — TOP BAR
   ============================================================ */
.construction-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 60;
  background: linear-gradient(90deg,
    #b14eeb26 0%,
    #ad38ca38 50%,
    #c75ef026 100%);
  border-bottom: 1px solid #d35ef059;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: slideDown 400ms ease;
}

.construction-banner__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.construction-banner__icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.construction-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  background: #eb17e193;
  border: 1px solid #f05ee466;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  flex-shrink: 0;
}

.construction-banner__badge .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4ad128;
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.construction-banner__text {
  display: inline-block;
  line-height: 1.3;
}

body.has-banner .navbar {
  top: 28px;
}

body.has-banner .app-main {
  padding-top: calc(var(--header-h) + 28px);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@media (max-width: 640px) {
  .construction-banner {
    font-size: 10px;
    padding: 5px 12px;
  }
  .construction-banner__content {
    gap: 6px;
  }
  .construction-banner__text--long {
    display: none;
  }
}