/* Base catalog layout */
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    --catalog-body-bg: #100710;
    --catalog-page-surface: #0b111d;
    --catalog-topbar-bg: linear-gradient(180deg, rgba(4, 8, 16, 0.98), rgba(4, 8, 16, 0.75));
    --catalog-hero-bg: linear-gradient(180deg, rgba(16, 25, 40, 0.96), rgba(10, 17, 28, 0.96));
    --catalog-search-bg: rgba(7, 12, 22, 0.98);
    --catalog-surface: rgba(12, 18, 31, 0.92);
    --catalog-panel: rgba(20, 29, 45, 0.95);
    --catalog-panel-soft: rgba(255, 255, 255, 0.04);
    --catalog-text: #f4f7fb;
    --catalog-muted: #94a0b6;
    --catalog-border: rgba(255, 255, 255, 0.08);
    --catalog-accent: #2d8cff;
    --catalog-accent-strong: #4ab3ff;
    --catalog-chip-bg: rgba(255, 255, 255, 0.04);
    --catalog-chip-active-bg: linear-gradient(135deg, #287df8, #4da8ff);
    --catalog-chip-active-text: #ffffff;
    --catalog-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    background: var(--catalog-body-bg);
    color: var(--catalog-text);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.anime-catalog-shell {
    margin-top: 0px;
    padding: 0 16px 24px;
    background: var(--catalog-page-surface);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
    width: min(100%, 1440px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.anime-catalog-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 12px;
    padding: 12px 0 14px;
    background: var(--catalog-topbar-bg);
    backdrop-filter: blur(14px);
}

.anime-topbar-action,
.anime-topbar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--catalog-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--catalog-shadow);
    color: var(--catalog-text);
    text-decoration: none;
}

.anime-topbar-action {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.anime-topbar-brand {
    min-height: 42px;
    padding: 7px 14px;
}

.anime-topbar-brand img {
    display: block;
    width: min(142px, 100%);
    height: auto;
}

.catalog-hero,
.catalog-search,
.catalog-genre-banner,
.catalog-footer,
.catalog-pagination,
.catalog-chips,
.catalog-grid {
    margin-top: 14px;
}

.catalog-hero {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--catalog-border);
    border-radius: 26px;
    background:
        radial-gradient(circle at 88% 18%, rgba(73, 153, 255, 0.18), transparent 22%),
        var(--catalog-hero-bg);
    box-shadow: var(--catalog-shadow);
}

.catalog-eyebrow {
    margin: 0 0 6px;
    color: var(--catalog-accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.catalog-hero-copy h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.catalog-hero-copy p {
    margin: 10px 0 0;
    max-width: 52ch;
    color: var(--catalog-muted);
    line-height: 1.5;
}

.ordering {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 14px;

    padding: 10px 12px;
    max-width: 920px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.ordering .title {
    margin: 0;
    color: var(--catalog-text);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sorting {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: linear-gradient(#ffffff, #eeeeee, #c6c7c7);
    color: #4d4e50;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 1px 0 #fff inset;
    transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sort:hover {
    background: linear-gradient(#ffffff, #eeeeee, #dddddd);
    border-color: rgba(255, 255, 255, 0.24);
    color: #1c1c1c;
}

.sort.act {
    background: #797979;
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45);
    border-color: #454545;
}

.sort:active {
    transform: scale(0.97);
}

.catalog-search-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--catalog-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--catalog-text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.catalog-search {
    position: relative;
}

.catalog-search-box {
    position: relative;
    display: grid;
    align-items: center;
}

.catalog-search-input {
    padding: 0 56px 0 16px;
}

.catalog-search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--catalog-chip-active-bg);
    color: #fff;
}

.catalog-search-list {
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    z-index: 12;
    display: none;
    overflow: hidden;
    border: 1px solid var(--catalog-border);
    border-radius: 18px;
    background: var(--catalog-search-bg);
    box-shadow: var(--catalog-shadow);
}

.catalog-search-list .select-hover {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-search-list .select-hover:hover {
    background: rgba(255, 255, 255, 0.04);
}

.catalog-search-list .select-hover:last-child {
    border-bottom: 0;
}

.catalog-search-list a {
    color: inherit;
    text-decoration: none;
}

.catalog-search-list .select-hover a > div {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
}

.catalog-search-list .info-img {
    width: 54px;
    height: 74px;
    flex: 0 0 auto;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.catalog-search-list .info-serie {
    display: grid;
    gap: 4px;
    color: var(--catalog-text);
}

.catalog-search-list .info-name {
    font-weight: 700;
}

.catalog-search-list .info-tipo {
    color: var(--catalog-muted);
    font-size: 0.85rem;
}

.catalog-genre-banner {
    padding: 12px 16px;
    border: 1px solid var(--catalog-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--catalog-muted);
    box-shadow: var(--catalog-shadow);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: auto;
    gap: 16px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    position: relative;
    cursor: pointer;
    touch-action: pan-down;
}

.series-card {
    display: block;
    position: relative;
    margin: 0;
    width: 100%;
    min-height: 100%;
}
.series-card:hover {
    box-shadow: 0 0 8px rgba(29, 115, 182, 0.35);
    z-index: 2;
    border-radius: 8px;
}

/* CONTENEDOR BASE */
.series-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    border: 0px solid var(--catalog-border);

    background: var(--catalog-surface);
    color: var(--catalog-text);
    text-decoration: none;
    box-shadow: var(--catalog-shadow);
    transition: transform 0.2s ease;
}

/* HOVER ZOOM */
.series-card-link:hover img {
    transform: scale(1.08);
}
/* MEDIA = BASE DEL CARD */
.series-card-media {
    position: relative;
    aspect-ratio: 9 / 12;
    overflow: hidden;
    background: transparent;
}
.series-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1.02);
    border-radius: 0 0 9px 9px;
    padding: 0;
}
/* GRADIENT OVERLAY */
.series-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(4, 8, 16, 0), rgba(4, 8, 16, 0.92));
}

.series-heart {
    position: relative;
    z-index: 2;
    top: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 26px;
    border-radius: 9px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}


/* CORAZÓN */

/* Estilos para la sección "Relacionadas" en la página de detalle */
.anime-detail-panel .portrait-grid {
    margin: 4px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content:space-between;
    padding: 0;
    list-style: none;
}
.anime-detail-panel .portrait-grid li {
    flex: 1 1 clamp(150px, 60vw, 150px);
    max-width: 190px;
    min-width: 140px;
    /*margin: 2px 4px;*/
    height: auto;
}
.anime-detail-panel .img-recommend {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.anime-detail-panel .post-recommend:hover .img-recommend {
    /*transform: translateY(-4px);*/
    box-shadow: 0 10px 22px rgba(2,6,23,0.48);
}
.anime-detail-panel .title-recommend {
    z-index: 9;
    font-family: "Helvetica Neue",arial,sans-serif;
    font-size: small;
    width: 100%;
    left: 0;
    display: block;
    position: absolute;
    top: 0; /* legacy: title near top */
    color: rgba(255,255,255,.95);
    background: #00000080; /* legacy semi-opaque */
    text-shadow: 2px 1.5px 2px rgba(0, 0, 0, 0.94);
    padding: 4px;
    overflow: hidden;
    line-height: 1.25;
    font-weight: 700;
    height: auto;
    margin-top: 5px;
    text-align: center;
}
.anime-detail-panel .img-recommend .img-holder {
    display: block;
    height: auto; /* legacy */
    overflow: hidden;
}
.anime-detail-panel .img-recommend .img-holder img.portrait {
    width: 148px; /* legacy */
    height: 190px; /* legacy */
    display: block;
    margin-bottom: 0px;
    margin-top: 0px;
    padding: 0px;
    border-radius: 5%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.anime-detail-panel .post-recommend:hover .img-recommend .img-holder img.portrait {
    transform: scale(1.06);
}
.anime-detail-panel .progress-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* legacy */
    /*background-color: #f3f3f3; /* legacy */
    background-color: var(--catalog-series-progress-track);
    border-radius: 5px;
    z-index: 6;
}
.anime-detail-panel .progress-bar {
    height: 100%;
    /*background-color: #4580ae; /* legacy color */
    background: var(--catalog-series-progress-fill);
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}
.anime-detail-panel .score-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 8;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 6px;
    font-size: small;
    font-weight: 700;
    border-radius: 6px;
    text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.94);
}
.anime-detail-panel .information {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
}
.anime-detail-panel .information.overlay {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 7;
    padding: 0;
    background: transparent; /* legacy: transparent, text-shadow used */
    border-radius: 4px;
    align-items: center;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}
.anime-detail-panel .series-data-left, .anime-detail-panel .series-data-right {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 0px;
    color: #fff;
}
.anime-detail-panel .series-data-left {
    /*background: #74AD1F; /* legacy green */
    background: var(--badge-primary-bg);
    float: left;
    position: relative;
    border-bottom-left-radius: 5px;
}
.anime-detail-panel .series-data-right {
    /*background: #4580ae; /* legacy */
    background: var(--badge-secondary-bg);
    float: right;
    position: relative;
    border-bottom-right-radius: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .anime-detail-panel .portrait-grid {
        gap: 0px;
        justify-content: space-between;
    }
    .anime-detail-panel .portrait-grid li {
        flex: 1 1 clamp(130px, 13vw, 148px);
        max-width: 148px;
        min-width: 120px;
    }
    .anime-detail-panel .img-recommend .img-holder {
        height: auto;
    }
    .anime-detail-panel .img-recommend .img-holder img.portrait {
        width: 100%;
        height: 100%;
        aspect-ratio: 9 / 12;
    }
}
@media (max-width: 768px) {
    .anime-detail-panel .portrait-grid {
        gap: 0px;
        justify-content: space-between;
    }
    .anime-detail-panel .portrait-grid li {
        flex: 1 1 clamp(130px, 20vw, 130px);
        max-width: 20%;
        min-width: 80px;
    }
    .anime-detail-panel .img-recommend .img-holder img.portrait {
        width: 100%;
        height: 100%;
        aspect-ratio: 9 / 12;
    }
    .anime-detail-panel .title-recommend {
        font-size: 0.7rem;
        padding: 3px 0px;
    }
}
@media (max-width: 520px) {
    .anime-detail-panel .portrait-grid {
        gap: 0px;
        justify-content: space-between;
    }
    .anime-detail-panel .portrait-grid li {
        flex: 1 1 min(160px, 70%);
        max-width: 32%;
        min-width: 30%;
    }
    .anime-detail-panel .img-recommend .img-holder img.portrait {
         width: 100%;
        height: 100%;
        aspect-ratio: 9 / 12;
    }
}
@media (max-width: 420px) {
    .anime-detail-panel .portrait-grid {
        gap: 0px;
        justify-content: space-between;
    }
    .anime-detail-panel .portrait-grid li {
        flex: 1 1 min(150px, 48%);
        max-width: 48%;
        min-width: 120px;
        margin: 2px 0;
    }
    .anime-detail-panel .title-recommend {
        font-size: 0.65rem;
        padding: 3px 0px;
    }
    .anime-detail-panel .img-recommend .img-holder {
        height: auto;
    }
    .anime-detail-panel .img-recommend .img-holder img.portrait {
        width: 100%;
        height: 100%;
        aspect-ratio: 9 / 12;
    }
}
@media (max-width: 320px) {
    .anime-detail-panel .portrait-grid {
        justify-content: center;
    }
    .anime-detail-panel .portrait-grid li {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
        margin: 2px 0;
    }
    .anime-detail-panel .img-recommend .img-holder img.portrait {
        width: 100%;
        height: 100%;
        aspect-ratio: 9 / 12;
    }
    .anime-detail-panel .title-recommend {
        font-size: 0.55rem;
        padding: 2px 0px;
    }
}
@media (max-width: 200px) {
    .anime-detail-panel .portrait-grid {
        justify-content: center;
    }
    .anime-detail-panel .portrait-grid li {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
        margin: 2px 0;
    }
    .anime-detail-panel .img-recommend .img-holder img.portrait {
        width: 100%;
        height: 100%;
        aspect-ratio: 9 / 12;
    }
    .anime-detail-panel .title-recommend {
        font-size: 0.55rem;
        padding: 2px 0px;
    }
}

.series-heart {
    position: absolute;
    justify-self: end;
    top: 36px;
    right: 6px;
    z-index: 3;
    color: #fff;
    font-size: 0.9rem;

    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(8px);
}
/* OCULTAR BODY ORIGINAL */
.series-card-body {
    display: contents;
    gap: 8px;
    /*padding: 12px 12px 14px;*/
    padding: 0;
}
/* HEADER → AHORA ES TÍTULO OVERLAY */
.series-card-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.2rem;
    padding: 10px 12px;
    background: var(--head-grad);
    color: white;
    text-align: center;
}
.series-card-header h2 {
    font-size: 0.82rem;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    font-weight: 700;
    width: 100%;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.series-card-body h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.series-card-subtitle {
    margin: 0;
    color: var(--catalog-muted);
    font-size: 0.9rem;
}
/* FOOTER → PROGRESO OVERLAY */
.series-card-footer {
    position: absolute;
    bottom: 0;

    width: 100%;
    display: block;
    /*gap: 8px;*/
    margin: var(--catalog-series-card-footer);
    padding: 0;
    z-index: 2;
}
/* BADGE TIPO (TV, MOVIE, etc) */
.series-type-badge {
    position: relative;
    bottom: 2px;
    left: 2px;
    z-index: 3;

    font-size: 0.78rem;
    font-weight: bold;
    /*background: linear-gradient(135deg, #2b8cff, #1a6fe3);*/
    /*background: #74AD1F;
    color: #fff;*/
    background: var(--badge-primary-bg);
    color: var(--catalog-chip-active-text);
    padding: 0px 4px;
    border-radius: 4px;
}
.series-progress-badge {
    /*justify-self: end;
    display: inline-flex;*/
    position: relative;
    bottom: 0px;
    right: 2px;
    z-index: 3;

    align-items: center;
    font-size: 0.78rem;
    font-weight: bold;
    /*min-height: 22px;*/

    border-radius: 5px;
    /*background: linear-gradient(135deg, #2376e8, #449ef8);*/
    /*background: #4580ae;
    color: #fff;*/
    background: var(--badge-secondary-bg);
    color: var(--catalog-chip-active-text);
    padding: 0 4px;
    float: right;
}

.series-progress-track {
    display: block;
    width: 100%;
    height: 5px;
    /*border-radius: 999px;*/
    background:var(--catalog-series-progress-track);
    overflow: hidden;
    margin: 0px 0px;
}

.series-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--catalog-series-progress-fill);
}
@media screen and (min-width: 200px) and (max-width: 260px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}
@media screen and (min-width: 261px) and (max-width: 360px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media screen and (min-width: 361px) and (max-width: 570px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 571px) and (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 990px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 991px) and (max-width: 1199px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
.catalog-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed var(--catalog-border);
    border-radius: 18px;
    color: var(--catalog-muted);
    text-align: center;
}

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.page-number,
.page-arrow,
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--catalog-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--catalog-text);
    text-decoration: none;
    font-weight: 700;
}

.page-number.is-active {
    background: var(--catalog-chip-active-bg);
    border-color: transparent;
    color: #fff;
}

.page-arrow.is-disabled {
    opacity: 0.45;
}

.catalog-footer {
    padding-top: 8px;
}



.catalog-style-switcher {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--catalog-border);
    border-radius: 22px;
    background: var(--catalog-panel);
    box-shadow: var(--catalog-shadow);
}

.catalog-style-copy {
    display: grid;
    gap: 4px;
}

.catalog-style-label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--catalog-accent-strong);
}

.catalog-style-copy p {
    margin: 0;
    color: var(--catalog-muted);
}

.catalog-style-form {
    margin: 0;
}

.catalog-style-form select {
    min-height: 48px;
}

@media (min-width: 200px) {
    .anime-catalog-shell {
        /*margin-top: -30px;*/
    }
    .ordering {
        margin: 0px auto 0;

    }

}

@media (min-width: 700px) {
    .anime-catalog-shell {
        padding: 18px 18px 36px;
        margin-top: 0px;
    }

    .catalog-hero {
        grid-template-columns: 1.5fr 1fr;
        align-items: end;
    }

    .ordering {
        padding: 12px 16px;
        justify-content: space-between;
    }

}

@media (min-width: 990px) {
    .anime-catalog-topbar {
        grid-template-columns: 56px 1fr 56px;
    }

    .anime-topbar-action {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 1.05rem;
    }

    .anime-topbar-brand {
        min-height: 56px;
    }

    .anime-topbar-brand img {
        width: 162px;
    }

    .ordering {
        max-width: 100%;
    }

    .catalog-style-switcher {
        grid-template-columns: minmax(0, 1fr) 260px;
        align-items: center;
    }
    .anime-catalog-shell {
        margin-top: 0px;
    }
}
/*Grafico de series en porcentajes
----------------------------------------------- */
.grafico {
position: relative; /* IE is dumb */
width: 100%;
border: 1px solid #B1D632;
padding: 2px;
margin-left: 5px;
}
.grafico .bar {
display: block;
position: relative;
background: #B1D632;
text-align: center;
color: #333;
height: 20px;
line-height: 20px;
}
.grafico .barr {
display: inline;
position: relative;
background: #FFFFF9;
text-align: center;
color: #333;
height: 1em;
line-height: 1em;
}

.grafico .bar span {
position: absolute;
left: 1em;
}
/* Segundo */
 .dl {
	margin: 0 10px 0px;
	padding: 0;
	}
 dt {
	position: relative; /* IE is dumb */
	clear: both;
	display: block;
	float: left;
	width: 104px;
	height: 20px;
	line-height: 20px;
	margin-right: 17px;
	font-size: .75em;
	text-align: right;
	}
 dd {
	position: relative; /* IE is dumb */
	display: block;
	float: left;
	width: 197px;
	height: 20px;
	margin: 0 20px 15px;
	background: url("g_colorbar.jpg");
}
  /* html */
.dd {
    float: none;
}
    /* IE is dumb; Quick IE hack, apply favorite filter methods for wider browser compatibility */
dd div {
    position: relative;
    background: url("g_colorbar2.jpg");
    height: 20px;
    width: 75%;
    text-align:right;
}
dd div strong {
    position: absolute;
    right: -5px;
    top: -2px;
    display: block;
    background: url("g_marker.gif");
    height: 24px;
    width: 9px;
    text-align: left;
    text-indent: -9999px;
    overflow: hidden;
}
.jump {
    position: relative;
    right: 0px;
    top: -24px;
    display: block;
    height: 5px;
    width: 200px;
    background: transparent;
    text-align: center;

}
/* Estilo tipo last.php (tabla de ultimos) */
.legacy-last-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.legacy-last-table td {
    padding: 6px 8px;
    vertical-align: middle;
}
}
.legacy-last-table tr:nth-child(odd) {
    background-color: var(--catalog-table-odd);
}
.legacy-last-table tr:nth-child(even) {
    background-color:var(--catalog-table-even);
}
/*.legacy-last-table tr:nth-child(odd) {
    background-color: #f9f9f9;
}
.legacy-last-table tr:nth-child(even) {
    background-color: #e9e9e9;
}*/
.legacy-last-table .td-width {
    width: 1px; /* shrink-to-fit */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.legacy-last-table img {
    display: block;
    width: 50px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}