.home-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 76px 0 82px;
    color: var(--white);
    background:
        radial-gradient(ellipse at 15% 20%, #0d4c7b 0, transparent 44%),
        linear-gradient(120deg, #002f59 0%, #002f59 53%, #064878 100%);
}

.home-hero::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 57%;
    content: '';
    background: linear-gradient(90deg, #002f59 0%, #002f59ed 73%, #002f5980 100%);
    z-index: 1;
    pointer-events: none;
}

.home-hero::after {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -1px;
    left: max(24px, calc((100vw - 1280px) / 2));
    height: 74px;
    content: '';
    background: linear-gradient(169deg, transparent 49%, var(--paper) 50%);
    pointer-events: none;
}

.home-hero > .wrap {
    position: relative;
    z-index: 3;
    width: min(1280px, calc(100% - 48px));
}

.home-hero-layout {
    min-height: 480px;
    display: grid;
    grid-template-columns: minmax(390px, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 46px;
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 590px;
    padding: 28px 0 74px;
}

.eyebrow {
    color: #8bcaff;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
}

.eyebrow::before {
    display: inline-block;
    width: 27px;
    height: 2px;
    margin-right: 10px;
    content: '';
    vertical-align: middle;
    background: var(--sky);
}

.hero-copy h1 {
    margin: 28px 0 20px;
    font: 900 clamp(72px, 8.3vw, 116px)/.82 'Barlow Condensed';
    letter-spacing: .015em;
    text-transform: uppercase;
}

.hero-copy h1 em {
    color: #66b5ff;
    font-style: normal;
}

.hero-copy p {
    max-width: 500px;
    margin: 0 0 26px;
    color: #d0e0ed;
    font-size: 15px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions .btn {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.info-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 15px;
    border: 1px solid #ffffff70;
    border-radius: 5px;
    background: #002f5970;
    color: #fff;
    font: 800 10px 'DM Sans';
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}

.info-button:hover {
    transform: translateY(-2px);
    border-color: #fff;
    background: #ffffff20;
}

.info-button span {
    font-size: 16px;
}

.hero-visual {
    position: relative;
    align-self: stretch;
    min-height: 450px;
    overflow: hidden;
    border: 1px solid #ffffff40;
    border-radius: 8px 54px 8px 8px;
    background: #064878;
    box-shadow: 0 26px 80px #00172b55;
    transform: rotate(1deg);
}

.hero-visual::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, #002f5900 48%, #002f59db 100%);
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: 46% center;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.hero-visual:hover img {
    transform: scale(1.045);
}

.hero-image-caption,
.hero-image-index {
    position: absolute;
    z-index: 1;
    color: #fff;
}

.hero-image-caption {
    right: 28px;
    bottom: 27px;
    left: 30px;
    display: grid;
    gap: 5px;
}

.hero-image-caption span,
.hero-image-index {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
}

.hero-image-caption span {
    color: #8bcaff;
}

.hero-image-caption strong {
    font: 800 38px/.95 'Barlow Condensed';
    text-transform: uppercase;
}

.hero-image-index {
    top: 22px;
    right: 24px;
    padding: 10px 12px;
    border: 1px solid #ffffff65;
    border-radius: 30px;
    background: #002f5966;
    backdrop-filter: blur(8px);
}

.hero-image-index span {
    margin: 0 4px;
    color: #8bcaff;
}

.hero-meta {
    position: absolute;
    z-index: 4;
    right: auto;
    left: 0;
    bottom: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 18px;
    border: 1px solid #ffffff55;
    border-radius: 5px;
    background: #002f59e8;
    box-shadow: 0 12px 36px #00172b38;
}

.hero-meta b {
    font: 800 38px/.8 'Barlow Condensed';
}

.hero-meta span {
    max-width: 105px;
    color: #c2ddf0;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.5;
}

.home-main {
    position: relative;
    z-index: 3;
    padding: 0 0 76px;
}

.ranking {
    position: relative;
    margin-top: -8px;
    overflow: hidden;
    border: 1px solid #e5edf4;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 16px 45px #002f5914;
}

.rank-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 23px 30px 18px;
    border-bottom: 1px solid var(--line);
}

.rank-head .kicker {
    color: var(--blue);
}

.rank-head h2 {
    margin: 7px 0 0;
    color: var(--navy);
    font: 800 36px/.95 'Barlow Condensed';
    text-transform: uppercase;
}

.source-pill {
    padding: 9px 12px;
    border-radius: 20px;
    background: #eef6fd;
    color: #52728d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rank-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.rank-game {
    padding: 21px 30px 24px;
}

.rank-game + .rank-game {
    border-left: 1px solid var(--line);
}

.rank-game-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #173a57;
    font: 700 21px 'Barlow Condensed';
    text-transform: uppercase;
}

.game-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #eaf4ff;
    color: #0879e8;
    font-size: 9px;
    font-weight: 900;
}

.rank-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #eef2f6;
}

.rank-num {
    color: #a0b2c1;
    font: 800 15px 'Barlow Condensed';
}

.rank-label {
    color: #8296a9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rank-value {
    color: var(--navy);
    text-align: right;
    font: 800 23px 'Barlow Condensed';
}

.rank-value small {
    color: #8095a8;
    font: 700 9px 'DM Sans';
    letter-spacing: .08em;
}

.rank-foot {
    padding: 0 30px 18px;
    color: #8da0b1;
    font-size: 10px;
}

.rank-foot a {
    color: #0879e8;
    font-weight: 700;
}

.rules-dialog {
    width: min(680px, calc(100% - 28px));
    height: min(82vh, 760px);
    max-height: min(82vh, 760px);
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9e7f2;
    border-radius: 10px;
    background: #f7faff;
    color: var(--ink);
    box-shadow: 0 28px 90px #00172b70;
    flex-direction: column;
}

.rules-dialog[open] {
    display: flex;
}

.rules-dialog::backdrop {
    background: #00111fcc;
    backdrop-filter: blur(4px);
}

.rules-modal-head {
    position: relative;
    z-index: 1;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 27px;
    background: linear-gradient(110deg, #002f59, #07528a);
    color: #fff;
}

.rules-kicker {
    color: #87c8ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
}

.rules-modal-head h2 {
    margin: 4px 0 0;
    font: 800 34px/.95 'Barlow Condensed';
    text-transform: uppercase;
}

.rules-close {
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff60;
    border-radius: 50%;
    background: #ffffff12;
    color: white;
    font: 400 25px/1 'DM Sans';
    cursor: pointer;
}

.rules-content {
    min-height: 0;
    overflow-y: auto;
    flex: 1;
    padding: 23px 27px 28px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.rules-lead {
    margin: 0 0 16px;
    color: #34536e;
    font-size: 13px;
    line-height: 1.7;
}

.rules-content ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rules;
}

.rules-content li {
    position: relative;
    padding: 12px 13px 12px 48px;
    border: 1px solid #e4edf5;
    border-radius: 6px;
    background: white;
    color: #526a7e;
    font-size: 12px;
    line-height: 1.65;
    counter-increment: rules;
}

.rules-content li::before {
    position: absolute;
    top: 12px;
    left: 13px;
    color: #0980ff;
    content: counter(rules, decimal-leading-zero);
    font: 800 16px 'Barlow Condensed';
}

.rules-content strong {
    color: var(--navy);
}

.rules-modal-foot {
    display: flex;
    flex: none;
    align-items: center;
    gap: 9px;
    padding: 12px 27px;
    border-top: 1px solid #e4edf5;
    color: #8296a9;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
}

.rules-modal-foot img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .home-hero {
        min-height: 650px;
    }

    .home-hero-layout {
        min-height: 470px;
        grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
        gap: 22px;
    }

    .hero-copy h1 {
        font-size: clamp(68px, 9vw, 88px);
    }

    .hero-visual {
        min-height: 390px;
    }
}

@media (max-width: 680px) {
    .home-hero {
        min-height: auto;
        padding: 120px 0 83px;
    }

    .home-hero::before {
        width: 100%;
        background: linear-gradient(180deg, #002f59 0%, #002f59e8 38%, #002f5940 100%);
    }

    .home-hero::after {
        height: 48px;
        background: linear-gradient(174deg, transparent 49%, var(--paper) 50%);
    }

    .home-hero > .wrap {
        width: calc(100% - 32px);
    }

    .home-hero-layout {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero-copy {
        padding: 10px 0 0;
    }

    .hero-copy h1 {
        margin: 23px 0 16px;
        font-size: clamp(68px, 17vw, 86px);
    }

    .hero-copy p {
        max-width: 440px;
        font-size: 13px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .info-button {
        padding: 11px 13px;
    }

    .hero-visual {
        min-height: 260px;
        border-radius: 6px 34px 6px 6px;
        transform: none;
    }

    .hero-visual img {
        object-position: center 45%;
    }

    .hero-image-caption {
        right: 18px;
        bottom: 18px;
        left: 20px;
    }

    .hero-image-caption strong {
        font-size: 30px;
    }

    .hero-meta {
        right: 24px;
        left: auto;
        bottom: 22px;
        gap: 10px;
        padding: 10px 12px;
        transform: none;
    }

    .hero-meta b {
        font-size: 31px;
    }

    .hero-meta span {
        max-width: 86px;
        font-size: 7px;
    }

    .home-main {
        padding-bottom: 50px;
    }

    .ranking {
        margin-top: 0;
    }

    .rank-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 19px 18px 15px;
    }

    .rank-head h2 {
        font-size: 29px;
    }

    .rank-columns {
        grid-template-columns: 1fr;
    }

    .rank-game {
        padding: 17px 18px;
    }

    .rank-game + .rank-game {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .rank-foot {
        padding: 0 18px 16px;
        line-height: 1.7;
    }

    .rules-dialog {
        height: min(86dvh, 760px);
        max-height: min(86dvh, 760px);
    }

    .rules-modal-head {
        padding: 18px;
    }

    .rules-content {
        padding: 17px 16px 20px;
    }

    .rules-content li {
        padding-left: 43px;
        font-size: 11px;
    }

    .rules-modal-foot {
        padding: 10px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual img,
    .info-button {
        transition: none;
    }
}

/* Hero de presentación con fotografía a pantalla completa. */
.home-hero--intro {
    position: relative;
    display: block;
    min-height: 700px;
    height: auto;
    overflow: hidden;
    padding: 105px 0 26px;
    align-items: initial;
    isolation: isolate;
    background: #002f59;
}

.home-hero--intro::before,
.home-hero--intro::after {
    display: none;
}

.hero-background,
.hero-shade {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-background {
    object-fit: cover;
    object-position: center 55%;
}

.hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, #002f5970 0%, #002f5930 38%, #002f59b8 69%, #002f59f2 100%),
        linear-gradient(0deg, #002f59e6 0%, transparent 42%, #002f5940 100%);
}

.home-hero--intro > .hero-frame {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1280px, calc(100% - 48px));
    min-height: 565px;
    flex-direction: column;
    justify-content: space-between;
}

.hero-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border: 1px solid #ffffff55;
    border-radius: 3px;
    background: #002f59a8;
    color: #d8eaff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .19em;
    backdrop-filter: blur(8px);
}

.hero-topline i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4ea7ff;
}

.hero-topline-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ea7ff;
    box-shadow: 0 0 13px #4ea7ff;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(370px, .92fr);
    align-items: center;
    gap: 34px;
    flex: 1;
    padding: 34px 0 45px;
}

.home-hero--intro .hero-copy {
    grid-column: 2;
    grid-row: 1;
    max-width: 570px;
    padding: 34px 36px 36px;
    border: 1px solid #8bcaff55;
    border-radius: 4px 22px 4px 4px;
    background: linear-gradient(145deg, #002f59ed, #002f59d9);
    box-shadow: 0 22px 70px #00172b60;
    backdrop-filter: blur(10px);
}

.home-hero--intro .eyebrow {
    color: #8bcaff;
}

.home-hero--intro .hero-copy h1 {
    margin: 19px 0 16px;
    font-size: clamp(46px, 5.4vw, 72px);
    line-height: .91;
    letter-spacing: 0;
}

.home-hero--intro .hero-copy p {
    max-width: 480px;
    margin-bottom: 23px;
    font-size: 13px;
    line-height: 1.8;
}

.home-hero--intro .hero-vtc-card {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    width: min(290px, 100%);
    margin: 0 0 22px;
    padding: 19px 21px 16px;
    border: 1px solid #8bcaff70;
    border-radius: 4px;
    background: #002f59e8;
    color: #fff;
    box-shadow: 0 18px 48px #00172b55;
    backdrop-filter: blur(10px);
}

.hero-card-label {
    color: #8bcaff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .19em;
}

.hero-card-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.hero-card-main img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.hero-card-main > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.hero-card-main strong {
    color: white;
    font: 800 49px/.8 'Barlow Condensed';
}

.hero-card-main span {
    color: #c2ddf0;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.5;
}

.hero-vtc-card > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #ffffff30;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-vtc-card > a span {
    color: #8bcaff;
    font-size: 15px;
}

.hero-bottomline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0 0;
    border-top: 1px solid #ffffff55;
    color: #d0e0ed;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
}

.hero-bottomline b {
    width: 32px;
    height: 1px;
    background: #4ea7ff;
}

.hero-bottomline-note {
    margin-left: auto;
    color: #8bcaff;
}

.home-video {
    padding: 58px 0 38px;
    background: var(--paper);
}

.home-video-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.home-video-heading .kicker {
    color: var(--blue);
}

.home-video-heading h2 {
    margin: 7px 0 4px;
    color: var(--navy);
    font: 800 clamp(31px, 4vw, 44px)/.95 'Barlow Condensed';
    text-transform: uppercase;
}

.home-video-heading p {
    margin: 0;
    color: #71879a;
    font-size: 12px;
}

.home-video-heading > a {
    flex: none;
    padding: 10px 14px;
    border: 1px solid #c9d9e7;
    border-radius: 4px;
    color: var(--navy);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .2s, background .2s, border-color .2s;
}

.home-video-heading > a:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: white;
}

.home-video-frame {
    position: relative;
    width: min(100%, 1050px);
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #00172b;
    box-shadow: 0 18px 48px #002f591c;
}

.home-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .home-hero--intro {
        min-height: 660px;
    }

    .home-hero--intro > .hero-frame {
        min-height: 540px;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .96fr);
        gap: 20px;
    }

    .home-hero--intro .hero-copy {
        padding: 28px 24px;
    }

    .home-hero--intro .hero-copy h1 {
        font-size: clamp(44px, 6vw, 58px);
    }
}

@media (max-width: 680px) {
    .home-video {
        padding: 38px 0 25px;
    }

    .home-video-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }

    .home-video-heading > a {
        padding: 9px 11px;
    }

    .home-video-frame {
        border-radius: 5px;
    }

    .home-hero--intro {
        min-height: 800px;
        padding: 126px 0 24px;
    }

    .hero-background {
        object-position: 43% center;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, #002f59f5 0%, #002f59d9 46%, #002f5950 100%),
            linear-gradient(90deg, #002f5930, #002f5930);
    }

    .home-hero--intro > .hero-frame {
        width: calc(100% - 32px);
        min-height: 650px;
    }

    .hero-topline {
        padding: 9px 11px;
        font-size: 8px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 0;
    }

    .home-hero--intro .hero-copy {
        grid-column: 1;
        grid-row: 1;
        padding: 25px 21px;
    }

    .home-hero--intro .hero-copy h1 {
        margin: 16px 0 13px;
        font-size: clamp(42px, 11vw, 58px);
    }

    .home-hero--intro .hero-copy p {
        font-size: 12px;
        line-height: 1.7;
    }

    .home-hero--intro .hero-actions {
        gap: 9px;
    }

    .home-hero--intro .hero-vtc-card {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        margin: 0;
        padding: 14px 17px 13px;
    }

    .hero-card-main {
        margin: 10px 0;
    }

    .hero-card-main img {
        width: 44px;
        height: 44px;
    }

    .hero-card-main strong {
        font-size: 40px;
    }

    .hero-bottomline {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 7px;
        letter-spacing: .11em;
    }

    .hero-bottomline b {
        width: 18px;
    }

    .hero-bottomline-note {
        width: 100%;
        margin: 3px 0 0;
    }
}
