/* =========================================================
   JaimeDiaz.TV — Estadísticas públicas
   ========================================================= */

.jdr-stats {
    width: min(100% - 40px, 1180px);
    margin: 48px auto 80px;

    color: #182238;
}


/* =========================================================
   Hero
   ========================================================= */

.jdr-stats__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 38px;
    align-items: center;

    min-height: 370px;
    padding: 44px 48px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;

    color: #ffffff;
    background:
        radial-gradient(
            circle at 86% 18%,
            rgba(244, 115, 33, 0.22),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #10192b 0%,
            #17233c 58%,
            #233a61 100%
        );

    box-shadow: 0 24px 70px rgba(16, 25, 43, 0.2);
}

.jdr-stats__hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    opacity: 0.16;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        );

    background-size: 48px 48px;
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 58%,
        #000
    );
}

.jdr-stats__hero-content {
    min-width: 0;
}

.jdr-stats__eyebrow,
.jdr-stats__section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #f47321;

    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.jdr-stats__eyebrow {
    margin-bottom: 18px;
}

.jdr-stats__hero h1 {
    max-width: 700px;
    margin: 0;

    color: #ffffff;

    font-size: clamp(2.45rem, 4.6vw, 4rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.jdr-stats__hero-content > p {
    max-width: 650px;
    margin: 20px 0 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.98rem;
    line-height: 1.68;
}

.jdr-stats__hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin-top: 28px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(12px);
}

.jdr-stats__hero-metric {
    min-width: 0;
    padding: 15px 18px;
}

.jdr-stats__hero-metric + .jdr-stats__hero-metric {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.jdr-stats__hero-metric span,
.jdr-stats__hero-metric small {
    display: block;
}

.jdr-stats__hero-metric span {
    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jdr-stats__hero-metric strong {
    display: block;

    color: #ffffff;

    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    font-weight: 850;
    line-height: 1;
}

.jdr-stats__hero-metric small {
    margin-top: 6px;

    color: rgba(255, 255, 255, 0.52);

    font-size: 0.76rem;
}

.jdr-stats__signal {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 255px;
}

.jdr-stats__signal-orbit {
    position: absolute;
    left: 50%;
    top: 42%;

    width: 196px;
    height: 196px;

    border: 1px solid rgba(244, 115, 33, 0.18);
    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.jdr-stats__signal-orbit:nth-child(2) {
    width: 150px;
    height: 150px;

    border-color: rgba(244, 115, 33, 0.3);
}

.jdr-stats__signal-orbit:nth-child(3) {
    width: 104px;
    height: 104px;

    border-color: rgba(244, 115, 33, 0.52);
}

.jdr-stats__signal-core {
    position: absolute;
    left: 50%;
    top: 42%;

    display: grid;
    place-items: center;

    width: 68px;
    height: 68px;

    border-radius: 20px;

    color: #ffffff;
    background: linear-gradient(145deg, #f47321, #e85d0f);

    box-shadow:
        0 18px 44px rgba(232, 93, 15, 0.34),
        0 0 0 14px rgba(244, 115, 33, 0.07);

    transform: translate(-50%, -50%);
}

.jdr-stats__signal-core span {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.jdr-stats__signal-copy {
    align-self: end;

    display: grid;
    gap: 5px;

    width: 100%;
    padding: 18px 20px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    text-align: center;

    background: rgba(8, 15, 29, 0.34);
}

.jdr-stats__signal-copy strong {
    color: #ffffff;

    font-size: 0.98rem;
}

.jdr-stats__signal-copy span {
    color: rgba(255, 255, 255, 0.56);

    font-size: 0.78rem;
    line-height: 1.45;
}


/* =========================================================
   Secciones
   ========================================================= */

.jdr-stats__section {
    margin-top: 46px;
}

.jdr-stats__section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 36px;
    align-items: end;

    margin-bottom: 24px;
}

.jdr-stats__section-heading h2 {
    margin: 8px 0 0;

    color: #10192b;

    font-size: clamp(1.65rem, 2.9vw, 2.25rem);
    font-weight: 830;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.jdr-stats__section-heading > p {
    margin: 0;

    color: #667085;

    font-size: 0.94rem;
    line-height: 1.7;
}


/* =========================================================
   Períodos recientes
   ========================================================= */

.jdr-stats__period-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jdr-stats__period {
    position: relative;
    overflow: hidden;

    padding: 26px;

    border: 1px solid #e5eaf1;
    border-radius: 22px;

    background: #ffffff;

    box-shadow: 0 14px 34px rgba(16, 25, 43, 0.055);
}

.jdr-stats__period::after {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 76px;
    height: 76px;

    border-radius: 0 0 0 76px;

    background: rgba(244, 115, 33, 0.06);
}

.jdr-stats__period--featured {
    border-color: rgba(244, 115, 33, 0.34);

    background:
        linear-gradient(
            145deg,
            rgba(255, 248, 239, 0.88),
            #ffffff 58%
        );
}

.jdr-stats__period-header {
    position: relative;
    z-index: 1;

    display: flex;
    gap: 14px;
    align-items: center;
}

.jdr-stats__period-icon,
.jdr-stats__card-icon {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(244, 115, 33, 0.22);
    border-radius: 15px;

    color: #e85d0f;
    background: #fff8ef;
}

.jdr-stats__period-header small,
.jdr-stats__card-heading small,
.jdr-stats__community-top small {
    display: block;

    color: #8090a6;

    font-size: 0.69rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jdr-stats__period-header h3,
.jdr-stats__card-heading h3,
.jdr-stats__community-top h3 {
    margin: 4px 0 0;

    color: #17233c;

    font-size: 1.03rem;
    font-weight: 800;
}

.jdr-stats__period-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin-top: 24px;
    padding-top: 22px;

    border-top: 1px solid #edf1f5;
}

.jdr-stats__period-values > div {
    min-width: 0;
}

.jdr-stats__period-values > div + div {
    padding-left: 14px;

    border-left: 1px solid #edf1f5;
}

.jdr-stats__period-values strong,
.jdr-stats__period-values span {
    display: block;
}

.jdr-stats__period-values strong {
    color: #10192b;

    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 850;
    line-height: 1;
}

.jdr-stats__period-values span {
    margin-top: 7px;

    color: #667085;

    font-size: 0.69rem;
    line-height: 1.35;
}


/* =========================================================
   Panorama editorial
   ========================================================= */

.jdr-stats__overview {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
    gap: 20px;
    align-items: start;
}

.jdr-stats__editorial-card,
.jdr-stats__community-card,
.jdr-stats__ranking {
    border: 1px solid #e5eaf1;
    border-radius: 24px;

    background: #ffffff;

    box-shadow: 0 14px 36px rgba(16, 25, 43, 0.055);
}

.jdr-stats__editorial-card {
    overflow: hidden;

    padding: 26px;
}

.jdr-stats__card-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
}

.jdr-stats__card-heading > strong {
    color: #10192b;

    font-size: clamp(1.9rem, 3.3vw, 2.65rem);
    font-weight: 880;
    line-height: 1;
    letter-spacing: -0.05em;
}

.jdr-stats__editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin-top: 22px;

    border: 1px solid #e8edf3;
    border-radius: 18px;

    background: #f7f9fc;
}

.jdr-stats__editorial-item {
    display: flex;
    gap: 12px;
    align-items: center;

    min-width: 0;
    padding: 18px;
}

.jdr-stats__editorial-item + .jdr-stats__editorial-item {
    border-left: 1px solid #e5eaf1;
}

.jdr-stats__status-dot {
    flex: 0 0 auto;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #f47321;

    box-shadow: 0 0 0 5px rgba(244, 115, 33, 0.1);
}

.jdr-stats__status-dot--blue {
    background: #233a61;

    box-shadow: 0 0 0 5px rgba(35, 58, 97, 0.1);
}

.jdr-stats__status-dot--muted {
    background: #98a2b3;

    box-shadow: 0 0 0 5px rgba(152, 162, 179, 0.12);
}

.jdr-stats__editorial-item small,
.jdr-stats__editorial-item strong {
    display: block;
}

.jdr-stats__editorial-item small {
    color: #667085;

    font-size: 0.75rem;
}

.jdr-stats__editorial-item strong {
    margin-top: 4px;

    color: #17233c;

    font-size: 1.45rem;
    font-weight: 850;
}

.jdr-stats__editorial-footer {
    display: flex;
    gap: 12px;
    align-items: center;

    margin-top: 22px;
    padding-top: 20px;

    border-top: 1px solid #edf1f5;

    color: #667085;

    font-size: 0.84rem;
    line-height: 1.55;
}

.jdr-stats__editorial-footer i {
    color: #f47321;
}

.jdr-stats__side-stack {
    display: grid;
    gap: 20px;
}

.jdr-stats__community-card {
    padding: 23px;
}

.jdr-stats__community-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.jdr-stats__community-number {
    margin-top: 20px;
    padding: 18px 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #17233c,
            #10192b
        );
}

.jdr-stats__community-number strong,
.jdr-stats__community-number span {
    display: block;
}

.jdr-stats__community-number strong {
    color: #ffffff;

    font-size: 2.2rem;
    font-weight: 880;
    line-height: 1;
}

.jdr-stats__community-number span {
    margin-top: 7px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.78rem;
}

.jdr-stats__community-detail {
    display: flex;
    justify-content: space-between;
    gap: 18px;

    margin-top: 18px;

    color: #667085;

    font-size: 0.8rem;
}

.jdr-stats__community-detail strong {
    color: #17233c;
}

.jdr-stats__conversation-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;

    padding: 23px 24px;

    border: 1px solid rgba(244, 115, 33, 0.24);
    border-radius: 20px;

    color: #17233c;
    text-decoration: none;

    background: #fff8ef;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.jdr-stats__conversation-card:hover {
    border-color: rgba(244, 115, 33, 0.52);

    box-shadow: 0 14px 30px rgba(232, 93, 15, 0.11);

    transform: translateY(-2px);
}

.jdr-stats__conversation-card:focus-visible {
    outline: 3px solid rgba(244, 115, 33, 0.28);
    outline-offset: 3px;
}

.jdr-stats__conversation-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    color: #ffffff;
    background: #f47321;
}

.jdr-stats__conversation-card small,
.jdr-stats__conversation-card strong,
.jdr-stats__conversation-card em {
    display: block;
}

.jdr-stats__conversation-card small {
    color: #e85d0f;

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.jdr-stats__conversation-card strong {
    margin-top: 3px;

    font-size: 0.98rem;
}

.jdr-stats__conversation-card em {
    margin-top: 4px;

    color: #667085;

    font-size: 0.73rem;
    font-style: normal;
}


/* =========================================================
   Ranking
   ========================================================= */

.jdr-stats__ranking {
    overflow: hidden;

    margin-top: 46px;
}

.jdr-stats__ranking-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;

    padding: 26px 28px;

    border-bottom: 1px solid #e5eaf1;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7f9fc
        );
}

.jdr-stats__ranking-title {
    display: flex;
    gap: 17px;
    align-items: center;
}

.jdr-stats__trophy {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 54px;
    height: 54px;

    border: 1px solid rgba(244, 115, 33, 0.25);
    border-radius: 17px;

    color: #e85d0f;
    background: #fff8ef;
}

.jdr-stats__ranking-title small {
    color: #f47321;

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jdr-stats__ranking-title h2 {
    margin: 3px 0 0;

    color: #10192b;

    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 830;
    letter-spacing: -0.035em;
}

.jdr-stats__ranking-title p {
    margin: 6px 0 0;

    color: #667085;

    font-size: 0.83rem;
}

.jdr-stats__ranking-badge {
    flex: 0 0 auto;

    padding: 8px 13px;

    border: 1px solid rgba(244, 115, 33, 0.28);
    border-radius: 999px;

    color: #d8560d;
    background: #fff8ef;

    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.jdr-stats__table-shell {
    overflow-x: auto;

    scrollbar-color: #c5ceda #f2f4f7;
    scrollbar-width: thin;
}

.jdr-stats__table-shell:focus-visible {
    outline: 3px solid rgba(244, 115, 33, 0.24);
    outline-offset: -3px;
}

.jdr-stats__table {
    width: 100%;
    min-width: 920px;

    border-collapse: collapse;

    font-size: 0.82rem;
}

.jdr-stats__table thead {
    background: #17233c;
}

.jdr-stats__table thead td {
    padding: 15px 18px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.jdr-stats__table tbody td {
    padding: 17px 18px;

    border-bottom: 1px solid #edf1f5;

    color: #667085;

    text-align: center;
    vertical-align: middle;
}

.jdr-stats__table tbody td:first-child {
    color: #17233c;

    font-weight: 750;
    text-align: left;
}

.jdr-stats__table tbody tr:last-child td {
    border-bottom: 0;
}

.jdr-stats__table tbody tr {
    transition: background-color 160ms ease;
}

.jdr-stats__table tbody tr:hover {
    background: #f8fafc;
}

.jdr-stats__table a {
    color: #233a61;
    text-decoration: none;
}

.jdr-stats__table a:hover {
    color: #e85d0f;
}

.jdr-stats__table a:focus-visible {
    outline: 2px solid rgba(244, 115, 33, 0.3);
    outline-offset: 2px;
}

.jdr-stats__table-hint {
    display: none;

    margin: 0;
    padding: 12px 18px;

    border-top: 1px solid #edf1f5;

    color: #8090a6;
    background: #f8fafc;

    font-size: 0.72rem;
}


/* =========================================================
   Pie informativo
   ========================================================= */

.jdr-stats__footnote {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;

    margin-top: 22px;
    padding: 18px 22px;

    border: 1px solid #e5eaf1;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.76);
}

.jdr-stats__footnote > div {
    display: flex;
    gap: 12px;
    align-items: center;
}

.jdr-stats__footnote i {
    color: #f47321;
}

.jdr-stats__footnote small,
.jdr-stats__footnote strong {
    display: block;
}

.jdr-stats__footnote small {
    color: #8090a6;

    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.jdr-stats__footnote strong {
    margin-top: 2px;

    color: #17233c;

    font-size: 0.9rem;
}

.jdr-stats__footnote p {
    max-width: 560px;
    margin: 0;

    color: #8090a6;

    font-size: 0.76rem;
    line-height: 1.5;
    text-align: right;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {

    .jdr-stats__hero {
        grid-template-columns: 1fr;

        padding: 44px;
    }

    .jdr-stats__signal {
        min-height: 300px;
    }

    .jdr-stats__signal-copy {
        max-width: 520px;
    }

    .jdr-stats__period-grid {
        grid-template-columns: 1fr;
    }

    .jdr-stats__overview {
        grid-template-columns: 1fr;
    }

    .jdr-stats__side-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 720px) {

    .jdr-stats {
        width: min(100% - 24px, 1180px);
        margin-top: 24px;
        margin-bottom: 52px;
    }

    .jdr-stats__hero {
        gap: 34px;

        min-height: auto;
        padding: 32px 24px;

        border-radius: 22px;
    }

    .jdr-stats__hero h1 {
        font-size: clamp(2.45rem, 13vw, 3.75rem);
    }

    .jdr-stats__hero-metrics {
        grid-template-columns: 1fr;
    }

    .jdr-stats__hero-metric + .jdr-stats__hero-metric {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .jdr-stats__signal {
        min-height: 270px;
    }

    .jdr-stats__signal-orbit {
        width: 210px;
        height: 210px;
    }

    .jdr-stats__signal-orbit:nth-child(2) {
        width: 160px;
        height: 160px;
    }

    .jdr-stats__signal-orbit:nth-child(3) {
        width: 112px;
        height: 112px;
    }

    .jdr-stats__section {
        margin-top: 42px;
    }

    .jdr-stats__section-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .jdr-stats__period {
        padding: 22px 20px;

        border-radius: 18px;
    }

    .jdr-stats__side-stack {
        grid-template-columns: 1fr;
    }

    .jdr-stats__editorial-card {
        padding: 24px 20px;
    }

    .jdr-stats__card-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .jdr-stats__card-heading > strong {
        grid-column: 1 / -1;

        margin-top: 5px;
    }

    .jdr-stats__editorial-grid {
        grid-template-columns: 1fr;
    }

    .jdr-stats__editorial-item + .jdr-stats__editorial-item {
        border-top: 1px solid #e5eaf1;
        border-left: 0;
    }

    .jdr-stats__ranking {
        margin-top: 42px;

        border-radius: 20px;
    }

    .jdr-stats__ranking-heading {
        align-items: flex-start;

        padding: 24px 20px;
    }

    .jdr-stats__ranking-badge {
        display: none;
    }

    .jdr-stats__table-hint {
        display: block;
    }

    .jdr-stats__footnote {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .jdr-stats__footnote p {
        text-align: left;
    }

}

@media (max-width: 460px) {

    .jdr-stats__period-values {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .jdr-stats__period-values > div {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        align-items: baseline;
    }

    .jdr-stats__period-values > div + div {
        padding-top: 14px;
        padding-left: 0;

        border-top: 1px solid #edf1f5;
        border-left: 0;
    }

    .jdr-stats__period-values span {
        margin-top: 0;

        text-align: right;
    }

    .jdr-stats__ranking-title {
        align-items: flex-start;
    }

    .jdr-stats__trophy {
        width: 46px;
        height: 46px;

        border-radius: 14px;
    }

}