@font-face {
    font-family: "Source Sans 3";
    src: url("/font/source-sans-3/upright.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("/font/source-sans-3/italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
}

@font-face {
    font-family: "Exo 2";
    src: url("/font/exo-2/variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --font-ui: "Source Sans 3", system-ui, sans-serif;
    --font-display: "Exo 2", system-ui, sans-serif;
    --bs-font-sans-serif: var(--font-ui);
    --cvg-deep: #081849;
    --cvg-blue: #174290;
    --cvg-electric: #0055ff;
    --cvg-ink: #15336a;
    --cvg-accent: #144da6;
    --cvg-line: #d2dff3;
    --cvg-wash: #edf4ff;
    --cvg-paint:
        radial-gradient(ellipse at 101% -4%, #f9cf59 0%, #d68429 13%, #ad493f77 35%, transparent 57%),
        radial-gradient(ellipse at -12% 110%, #ad583a43 0%, transparent 42%),
        radial-gradient(ellipse at 58% 122%, #1e9bb0 0%, #026dd1 27%, transparent 64%),
        radial-gradient(ellipse at 43% 20%, #1153d8 0%, #123ba1 33%, transparent 76%),
        linear-gradient(107deg, var(--cvg-deep) 10%, #0b235d 55%, #101b56 100%);

    /* --color-primary: rgb(175, 30, 34);
    --color-primary-rgb: 175, 30, 34;

    --color-secondary: rgb(237, 29, 35);
    --color-secondary-rgb: 237, 29, 35;

    --color-tertiary: rgb(5, 5, 4);
    --color-tertiary-rgb: 5, 5, 4;

    --color-fourth: rgb(0, 0, 0);
    --color-fourth-rgb: 0, 0, 0; */

    /* --color-primary: rgb(163, 22, 81);
    --color-primary-rgb: 163, 22, 81;

    --color-secondary: rgb(226, 123, 29);
    --color-secondary-rgb: 226, 123, 29;

    --color-tertiary: rgb(218, 22, 81);
    --color-tertiary-rgb: 218, 22, 81;

    --color-fourth: rgb(163, 22, 81);
    --color-fourth-rgb: 163, 22, 81; */

    --color-primary: rgb(59, 167, 223);
    --color-primary-rgb: 25, 52, 181;

    --color-secondary: rgb(250, 185, 29);
    --color-secondary-rgb: 141, 57, 109;

    --color-tertiary: rgb(42, 48, 116);
    --color-tertiary-rgb: 42, 29, 96;

    --color-fourth: rgb(10, 10, 10);
    --color-fourth-rgb: 10, 10, 10;

}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

.card {
    border-radius: 15px !important;
}




.vh-25 {
    height: 25vh;
}

.text-grey {
    color: grey !important;
}

.table-dark td,
.table-dark th {
    background-color: var(--color-fourth) !important;
}

.upLetter {
    text-transform: uppercase;
}

.text-justify {
    text-align: justify;
}

.text-bg-primary {
    background-color: var(--color-primary) !important;
}

.text-bg-secondary {
    background-color: var(--color-secondary) !important;
}


#menu.site-header {
    position: relative;
    z-index: 1020;
    background-color: #fff;
    border-bottom: 1px solid #d4e1f0;
}

.site-masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--cvg-paint);
    background-position: 50% 50%;
    background-size: 115% 115%;
    border-bottom: 1px solid #d4e1f0;
}

.site-masthead-art {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
}

.site-masthead-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-image: url(/img/evento/medalla-anverso.svg), url(/img/evento/medalla-aro.svg);
    background-position: left -145px center, right -115px center;
    background-size: 320px, 310px;
    opacity: .22;
}

.site-masthead-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 150px;
    padding-block: 14px;
}

#menu .site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font: 800 clamp(.9rem, 1.38vw, 1.2rem)/1.17 var(--font-display);
    min-inline-size: 0;
    text-decoration: none;
    text-transform: uppercase;
}

#menu .site-brand img {
    width: 62px;
    height: 68px;
    padding: 4px;
    border-radius: 8px;
    background-color: #fff;
}

#menu .site-brand span {
    max-inline-size: 37ch;
    padding-inline-start: 14px;
    border-inline-start: 1px solid #ffffff80;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.site-masthead img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.site-masthead-logos {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 24px);
    margin: 0;
    padding: 10px clamp(10px, 1.6vw, 20px);
    list-style: none;
    border: 1px solid #dbe4f2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 20px #07194337;
}

.site-masthead-logos img {
    width: clamp(52px, 5.5vw, 80px);
    height: auto;
}

.site-masthead-logos .site-logo-ministry img { width: clamp(128px, 12.4vw, 182px); }

.site-honoree {
    display: grid;
    justify-items: center;
    gap: 1px;
    color: var(--cvg-ink);
}

.site-honoree img { width: clamp(45px, 4.5vw, 65px); }
.site-honoree-caption {
    padding: 3px 7px;
    border-radius: 5px;
    background: linear-gradient(110deg, #f5d778, #eab744);
    color: #4c3200;
    font: 800 .7rem/1.08 var(--font-display);
    text-align: center;
    white-space: nowrap;
}

#menu .navbar { padding: 4px 0; }

#menu .navbar-nav {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
}

#menu .nav-link,
#menu .dropdown-item {
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding: 8px 11px;
    border-radius: 6px;
    font: 800 .9375rem/1.2 var(--font-display);
    letter-spacing: .015em;
    text-transform: uppercase;
    white-space: nowrap;
}

#menu .nav-link {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    border: 0;
    background: transparent;
    color: var(--cvg-blue);
}

#menu .nav-link:is(:hover, .show):not([aria-current], [data-nav-active]) {
    background-color: #f1f6fc;
}

#menu .nav-link:is([aria-current], [data-nav-active]),
#menu .nav-link:is([aria-current], [data-nav-active]) .site-nav-icon { color: #fff; }

.site-nav-selection {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 85% 110%, #047e9e 0%, transparent 65%),
        linear-gradient(115deg, #0a225e 10%, #103d9c 64%, #124fbb);
    pointer-events: none;
}

.site-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: none;
    fill: currentColor;
    vertical-align: -.125em;
}

#menu .site-nav-icon { color: #285ea6; }

#menu .dropdown-menu {
    padding: 4px;
    border: 1px solid #dbe4f2;
    border-radius: 8px;
    background-color: #fff;
}

#menu .dropdown-item { display: flex; color: #172e54; }
#menu .dropdown-item .site-nav-icon { color: #285ca4; }
#menu .dropdown-item:hover { background-color: var(--cvg-wash); }
#menu .dropdown-item[aria-current="page"] {
    background: linear-gradient(107deg, #e7edff, #dceff8 80%, #fff4ce);
    color: var(--cvg-ink);
}

#menu .navbar-toggler {
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #b7cdeb;
    border-radius: 6px;
    background: #fff;
    color: #174291;
    font: 800 .9375rem/1.2 var(--font-display);
    text-transform: uppercase;
}

#menu .navbar-toggler .site-icon { margin-inline-end: .25rem; }

#menu :focus-visible, #footer :focus-visible, #banner-sec :focus-visible {
    outline: 2px solid #ffca3a;
    outline-offset: 3px;
}

#menu .navbar :focus-visible { outline-color: var(--cvg-electric); }

@media (prefers-reduced-motion: no-preference) {
    .site-masthead { animation: shift-masthead-paint 26s ease-in-out infinite alternate; }
    #menu .nav-link, #menu .dropdown-item { transition: background-color .16s ease, color .16s ease; }
}

@keyframes shift-masthead-paint {
    from { background-position: 40% 45%; }
    to { background-position: 62% 55%; }
}

@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }

    :root { view-transition-name: none; }
    #menu .navbar-nav { view-transition-name: site-nav-labels; }
    .site-nav-selection { view-transition-name: site-nav-selection; }

    ::view-transition { pointer-events: none; }

    /* Durante el desplazamiento, los rótulos se pintan encima del recuadro. */
    ::view-transition-group(site-nav-labels) {
        z-index: 2;
        animation: none;
    }

    ::view-transition-group(site-nav-selection) {
        z-index: 1;
        animation-duration: .38s;
        animation-timing-function: cubic-bezier(.22, .84, .3, 1);
    }

    ::view-transition-old(site-nav-labels),
    ::view-transition-old(site-nav-selection) { animation: none; opacity: 0; }
    ::view-transition-new(site-nav-labels),
    ::view-transition-new(site-nav-selection) { animation: none; }
}

.gold i {
    color: gold;
}

.plate i {
    color: white;
}

.bronze i {
    color: orangered;
}

.personSwiper-pagination .swiper-pagination-bullet {
    width: 80px;
    height: 4px;
    border-radius: 4px;
    background-color: var(--color-primary);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    margin: 0 4px;
}

.personSwiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    color: rgba(var(--color-primary-rgb), 0.5);
}


.custom-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.custom-arrow:hover {
    color: var(--color-secondary);
}

.custom-arrow .arrow-body {
    width: 80px;
    height: 2px;
    background-color: currentColor;
}

.custom-arrow .arrow-head {
    display: inline-block;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    padding: 6px;
}

.custom-arrow.prev .arrow-head {
    transform: rotate(135deg);
    order: 0;
    margin-right: -25px;
}

.custom-arrow.next .arrow-head {
    transform: rotate(-45deg);
    order: 1;
    margin-left: -25px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* .dropdown-submenu > .dropdown-item::after {
    content: "›";
    float: right;
} */

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.btn {
    border-radius: 0 !important;
    text-transform: uppercase;
}

/* .btn:first-child:active, */
/* :not(.btn-check)+.btn:active,  */
.btn-check:checked+.btn,
.btn.active,
.btn.show {
    border-color: var(--color-primary);
    background-color: var(--color-secondary);
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-secondary);
}

.btn-primary:hover {
    border-color: var(--color-primary);
    background-color: var(--color-secondary);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    color: white;
    background-color: var(--color-primary);
}

.btn-dark {
    background-color: var(--color-tertiary);
    color: white;
}

.btn-dark:hover {
    background-color: rgba(var(--color-tertiary-rgb), 0.9);
    color: white;

}

body {
    position: relative;
    font-family: var(--font-ui);
    color: var(--cvg-ink);
    background-color: #fbfcff;
    background-image: repeating-linear-gradient(114deg, transparent 0 43px, #1742900c 43px 44px, transparent 44px 49px, #17429008 49px 50px, transparent 50px 86px);
}


a {
    text-decoration: none;
    color: var(--color-tertiary);
}

a:hover {
    color: var(--color-secondary);
}


div>.zoom a {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    background-color: var(--color-primary);
    transform: translate(-50%, -50%);
    padding-top: 17px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: 0.5s all;
    opacity: 0;
}

div>.zoom a {
    color: white;
}

div:hover>.zoom a {
    opacity: 1;
    transition: 0.5s all;
}


div:hover>.zoom a:hover {
    background-color: white;
    color: var(--color-tertiary);
}

.hide-scrollBar {
    /* scrollbar-width: thin; */
    scrollbar-width: none;
}

.hide-scrollBar::-webkit-scrollbar,
.hide-scrollBar::-webkit-scrollbar-thumb,
.hide-scrollBar::-webkit-scrollbar-track,
.hide-scrollBar::-webkit-scrollbar-thumb {
    width: 0px;
    height: 0px;

}

#banners .banner img {
    opacity: 0;
}

#banners .banner::after,
#banners .banner::before {
    filter: brightness(0.5);
    background-size: 100vw 100vh !important;
}

/* #banners .banner-1::after,
#banners .banner-1::before, */
#banners .banner {
    /* background-position: top;
    background-repeat: no-repeat;
    background-size: auto; */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#banners .blur {
    position: absolute;
    top: 0;
    width: 100%;
    height: 20vh;
    background-position: top;
    filter: blur(3px);
    overflow: hidden;
    border-bottom: 1px solid #00000085;
    box-shadow: 0px 0px 20px 0px rgba(255, 255, 255, 0.6) inset;
    background-color: rgb(255 255 255 / 15%);
}

#banners .banner-1 {
    /* background-image: url(../img/banners/slider1.jpg); */
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
}

/* #banners .banner-2::after,
#banners .banner-2::before, */
#banners .banner-2 {
    /* background-image: url(../img/banners/slider4.jpg); */
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
}

/* #banners .banner-3::after,
#banners .banner-3::before, */
#banners .banner-3 {
    /* background-image: url(../img/banners/slider3.jpg); */
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
}

/* #banners .banner-4::after,
#banners .banner-4::before, */
#banners .banner-4 {
    /* background-image: url(../img/banners/slider4.jpg); */
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
}

#banners .row {
    flex: 1;
}

#banners h2 small {
    font-weight: 100;
}

/* #banners h2 strong {
    color: var(--color-primary) !important;
} */

#banners i {
    font-weight: bolder;
}

.bannerSwiper-prev-arrow,
.bannerSwiper-next-arrow {
    z-index: 1021;
}

.bannerSwiper-prev-arrow .custom-arrow,
.bannerSwiper-next-arrow .custom-arrow {
    color: white;
    opacity: 0.8;
}

.bannerSwiper-prev-arrow .arrow-body,
.bannerSwiper-next-arrow .arrow-body {
    width: 28vh !important;
}

.bannerSwiper-prev-arrow {
    top: 30vh !important;
    left: 75vw !important;
    transform: rotate(90deg) !important;
}

.bannerSwiper-next-arrow {
    left: 75vw !important;
    bottom: 35vh !important;
    transform: rotate(90deg) !important;
}

#banners .swiper:before {
    content: "";
    background-color: rgb(0 0 0 / 19%);
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    z-index: 2;
}

#banners .swiper-slide::before,
#banners .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 1.5s ease-in-out;
}

#banners .swiper-slide.swiper-slide-prev::after {
    transform: scaleX(1);
    transform-origin: right;
}

#banners .swiper-slide.swiper-slide-active::before {
    transform: scaleX(0);
    transform-origin: left;
}

#banners .swiper-slide.swiper-slide-next::before {
    transform: scaleX(1);
    transform-origin: left;
}

#banners .swiper-slide img {
    transition: transform 1.5s ease-in-out;
}

#banners .swiper-slide-active img {
    transform: translateX(0);
}

#descriptions:not(.home-shortcuts) {
    /* transform: translateY(-20vh); */
    z-index: 1;
    position: relative;
    margin-top: -20vh !important;
}

#descriptions .card {
    border-radius: 0;
    min-height: 350px;
    background-color: #22698f;
    position: relative;
    /* border: 0; */
}

#descriptions .desc a,
#descriptions .card {
    color: white;
}

#descriptions .card-body {
    min-height: 100%;
    padding: 16% 19% 17% 19%;
}

#descriptions .card h3 {
    font-weight: bold;
}

#descriptions .card h3 a {
    transition: 0.5s;
}

#descriptions .card h3 a:hover {
    color: currentColor;
    filter: brightness(10);
    transition: 0.5s;
}

#descriptions .card p {
    font-weight: 400;
}

#descriptions .card .card-link {
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    bottom: 15%;

}

#descriptions .desc:nth-child(2) .card,
#descriptions .desc:nth-child(2) .card .card-link {
    background-color: var(--color-tertiary);
    color: white;
}

#descriptions .desc:nth-child(2) .card h3 a {
    color: white !important;
}

#descriptions .desc:nth-child(2) .card h3 a:hover {
    filter: brightness(0.5);
}


.home-shortcuts {
    padding-block: clamp(12px, 1.8vw, 22px);
    border-bottom: 1px solid var(--cvg-line);
    background-color: #edf4ff8a;
}

.home-shortcuts-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-shortcuts .home-shortcut {
    --bs-btn-padding-x: clamp(.5rem, 1.1vw, .875rem);
    --bs-btn-font-family: var(--font-display);
    --bs-btn-font-size: clamp(1.125rem, 1.9vw, 1.55rem);
    --bs-btn-font-weight: 700;
    --bs-btn-line-height: 1.18;
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--shortcut-dark);
    --bs-btn-border-color: var(--shortcut-dark);
    --bs-btn-hover-color: var(--bs-btn-color);
    --bs-btn-hover-bg: var(--shortcut-dark);
    --bs-btn-hover-border-color: var(--shortcut-dark);
    --bs-btn-active-color: var(--bs-btn-color);
    --bs-btn-active-bg: var(--shortcut-dark);
    --bs-btn-active-border-color: var(--shortcut-dark);
    --shortcut-icon-size: clamp(2rem, 3.65vw, 3rem);
    display: grid;
    grid-template-columns: var(--shortcut-icon-size) minmax(0, 1fr) var(--shortcut-icon-size);
    align-items: center;
    gap: clamp(.25rem, .75vw, .625rem);
    min-height: 68px;
    border-radius: .65rem !important;
    background-image:
        radial-gradient(ellipse at 96% -42%, var(--shortcut-glow) 1%, transparent 67%),
        linear-gradient(115deg, var(--shortcut-dark) 18%, var(--shortcut-light));
    box-shadow: 0 6px 12px var(--shortcut-shadow), inset 0 1px #ffffff50;
    text-transform: none;
}

.home-shortcuts .home-shortcut-medals {
    --bs-btn-color: #342003;
    --shortcut-light: #f3c452;
    --shortcut-dark: #e5ad38;
    --shortcut-glow: #fff1b8;
    --shortcut-shadow: #875a2a45;
}

.home-shortcut-delegations {
    --shortcut-light: #1558cf;
    --shortcut-dark: #102a76;
    --shortcut-glow: #217ae3;
    --shortcut-shadow: #16337550;
}

.home-shortcut-athletes {
    --shortcut-light: #096d88;
    --shortcut-dark: #073d63;
    --shortcut-glow: #12899a;
    --shortcut-shadow: #0a48694d;
}

.home-shortcut-icon {
    justify-self: center;
    inline-size: min(var(--shortcut-icon-size), 2rem);
    block-size: min(var(--shortcut-icon-size), 2rem);
    fill: currentColor;
}

.home-shortcut-label {
    overflow-wrap: anywhere;
    text-align: center;
}

.home-shortcuts .home-shortcut::after {
    content: "";
    justify-self: end;
    margin-inline-end: .22rem;
    inline-size: .48rem;
    block-size: .48rem;
    border-block-start: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    transform: rotate(45deg);
}

.home-shortcuts .home-shortcut:hover { filter: brightness(1.07); }
.home-shortcuts .home-shortcut:active { filter: brightness(.94); }

.home-shortcuts .home-shortcut:focus-visible {
    outline: 2px solid #245595;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .home-shortcuts .home-shortcut {
        transition: transform .24s cubic-bezier(.2, .75, .3, 1), filter .16s ease;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .home-shortcuts .home-shortcut:hover { transform: scale(1.035); }
}

#lastNew .site-event-feature {
    overflow: hidden;
    border: 1px solid #dce3ef;
    background: #fff;
}

#lastNew .site-event-image {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    min-height: 270px;
    padding: 24px;
    place-items: center;
    background-color: #172b59;
}

#lastNew .site-event-image::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -100%;
    background: conic-gradient(from 205deg, #102257, #0759c3 28%, #176a89 43%, #1c3e88 65%, #102257 78%);
    pointer-events: none;
}

#lastNew .site-event-image img {
    display: block;
    width: min(60%, 240px);
    height: auto;
    filter: url(#home-logo-outline);
}

@media (prefers-reduced-motion: no-preference) {
    #lastNew .site-event-image::before { animation: spin-event-background 32s linear infinite; }
}

@keyframes spin-event-background {
    to { transform: rotate(1turn); }
}

#eventDetail h2 { text-transform: none; }
#eventDetail p a { color: #244b77; text-decoration: underline; }

#lastNew h3 {
    font-size: 2.625em;
}

#lastNew .card-text {
    color: rgba(var(--color-tertiary-rgb), 0.4);
}

#resume:not(.home-summary) {
    background-image: url(../img/home2-bg2-1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    padding-top: 20vh !important;
}


#resume .area {
    background-color: var(--color-primary);
    min-height: 600px;
    min-width: 0;
    padding: 7%;
    position: relative;
    padding-top: 5%;
    z-index: 1;
}

#resume .card-title,
#resume .title {
    color: white;
}

#resume .title {
    font-size: 2.625em;
    font-weight: bold;
}

#resume .swiper {
    /* height: 80vh; */
    border: none;
    border-radius: 0;
    background-color: var(--color-primary);
}

#resume .card {

    border: none;
    border-radius: 0;
    background-color: transparent;
}

#resume .card-title {
    font-size: 1.4375rem;
    font-weight: bold;
}

#resume .custom-arrow {
    color: var(--color-tertiary);
}

#resume .resumeSwiperPagination {
    position: absolute;
    bottom: 90px;
    right: 70px;
    z-index: 2;
}

#news {
    /* height: 800px; */
    padding-top: 18% !important;
}

#news.principal {
    padding-top: 6rem !important;
}

#lastNew .new-1 {
    background-image: url(../img/news/new4.jpg);
}

#lastNew .new,
#news .new {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#lastNew .new img,
#news .new img {
    opacity: 0;
}

#news .new-1 {
    background-image: url(../img/news/new1.jpg);
}

#news .new-2 {
    background-image: url(../img/news/new2.jpg);

}

#news .new-3 {
    background-image: url(../img/news/new3.jpg);
}

#news .card {
    border-radius: 0;
    border: none;
}

#news h2 {
    font-size: 2.625em;
    font-weight: bold;
}

#news .card-body {
    padding-left: 60px;
    padding-top: 35px;
}

#news .card-title {
    z-index: 2;
    position: relative;
    font-size: 1.875em;
    font-weight: bold;
}

#news .card-text {
    opacity: 0.5;
}

#news .card-subtitle {
    background-color: var(--color-primary);
    color: white !important;
    width: 100px;
    height: 100px;
    padding: 10px 0px 0px 10px;
    position: absolute;
    left: 0;
    top: -60px;
    font-size: 14px;
}

#news .card-subtitle strong {
    font-size: 24px;
}

#persons {
    background-image: url(../img/home-image-4-copyright.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    max-height: 560px;
    position: relative;
    padding-top: 30vh !important;
    margin-top: 10vh !important;
    margin-bottom: 30vh !important;
}

#persons:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(var(--color-primary-rgb), 0.5);
}

#persons .person-1 {
    background-image: url(../img/person/person1.jpg);
    /* background-image: url(https://www.api.asofutsal.com/img/person/c53b1b27e1fd98c665126bd7b07d835f.jpg); */
}

#persons .person-2 {
    background-image: url(../img/person/person2.jpg);
    /* background-image: url(https://www.api.asofutsal.com/img/person/aa90f90dd15ba30cea99ff5a25bae946.jpg); */
}

#persons .person-3 {
    background-image: url(../img/person/person3.jpg);
    /* background-image: url(https://www.api.asofutsal.com/img/person/388510098229314c569544814614b510.jpg); */
}

#persons .person-4 {
    background-image: url(../img/person/person4.jpg);
    /* background-image: url(https://www.api.asofutsal.com/img/person/1098a7e11cbae98f525575787e89ad23.jpg); */
}

#persons .person-5 {
    background-image: url(../img/person/person5.jpg);
    /* background-image: url(https://www.api.asofutsal.com/img/person/cf175d5b4054f391800c9ea8e11c6391.jpg); */
}


#persons .person {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#persons .person img {
    opacity: 0;
    /* width: 500px;
    height: 600px; */
    object-fit: contain;
}


#persons .separador {
    font-size: 2.625em;
    padding: 70px 0% 70px 0%;
    background-color: var(--color-primary);
    color: white;
    min-height: 200px;
    max-width: 750px;
    width: 100%;
    font-weight: bold;
    position: absolute;
    top: -100px;
    right: 0;
}

#persons .separador.left {
    right: auto;
    left: 0;
}

#persons .card {
    border: 0;
}

#persons .card-title {
    text-align: left;
    font-size: 1.437em;
}

#persons .card-text {
    text-align: left;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    width: 120px !important;
    transition: 0.5s all !important;
}

.swiper-pagination-bullet {
    transition: 0.5s all !important;
}

#gallery {
    padding-top: 10vh !important;
    padding-bottom: 10vh !important;
}

#gallery .title {
    font-size: 2.625em;
    margin-bottom: 10vh;
    font-weight: bold;
}

#gallery .gallery {
    position: relative;
}

#gallery .gallery img {
    opacity: 0;
}

#gallery .gallery-1 {
    background-image: url(../img/gallery/gallery1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

#gallery .gallery-2 {
    background-image: url(../img/gallery/gallery2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

#gallery .gallery-3 {
    background-image: url(../img/gallery/gallery3.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

#gallery .gallery-4 {
    background-image: url(../img/gallery/gallery4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}


#separador.site-calendar-strip {
    background: var(--cvg-wash);
    color: var(--cvg-ink);
    border-top: 1px solid var(--cvg-line);
}

.site-calendar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 20px;
}

#separador h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    line-height: 1.25;
}

.site-calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 15px;
    border-radius: 6px;
    background: #244b77;
    color: #fff;
    font-weight: 650;
}

.site-calendar-link:hover { background: #1b3c62; color: #fff; }

#footer.site-footer {
    position: relative;
    isolation: isolate;
    padding-block: clamp(44px, 5vw, 70px) 24px;
    background:
        radial-gradient(ellipse at 84% -30%, #0d63b6 0%, transparent 60%),
        linear-gradient(110deg, #101f60, #091846 65%, #062c55);
    color: #e3ebff;
}

#footer.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: clamp(21px, 3.3vw, 46px);
    background: url(/img/evento/cinta-medalla.webp) center / 100% 100% no-repeat;
    pointer-events: none;
}

.site-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 28px;
}

.site-footer-logos {
    display: flex;
    flex: 1 0 100%;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2.8vw, 36px);
    margin: 0;
    padding: 0 0 20px;
    border-bottom: 1px solid #d7e6ff35;
    list-style: none;
}

.site-footer-logos li + li {
    padding-inline-start: clamp(12px, 2.8vw, 36px);
    border-inline-start: 1px solid #d7e6ff47;
}

.site-footer-logos img {
    display: block;
    width: auto;
    height: clamp(26px, 4.2vw, 48px);
}

.site-footer-identity { display: flex; align-items: center; gap: 12px; }
.site-footer-identity img { object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1); }
#footer .site-footer-name { color: #fff; font-weight: 700; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #e3ebff; }
.site-footer-links a:hover, #footer .site-footer-name:hover { color: #fff; text-decoration: underline; }

#points-detail {
    scroll-margin-top: 2rem;
}

/* Totales diferenciados del cuerpo de las tablas del perfil de delegación. */
#medals .deleg-table-total > tr > *,
#deleg-points .deleg-table-total > * {
    background-color: var(--color-fourth);
    color: #fff;
    font-weight: 700;
    box-shadow: none;
}



#pointsTable { padding-block: clamp(24px, 4vw, 44px); }

.points-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}

#pointsTable .points-general-table { min-width: 0; }
#pointsTable .points-rank { width: clamp(3.5rem, 12vw, 5.5rem); }
#pointsTable .points-total { width: clamp(3.5rem, 12vw, 7.5rem); }
#pointsTable .points-empty { padding-block: 20px; color: var(--detail-muted); }
#pointsTable .points-empty a { color: var(--detail-blue); text-decoration: underline; }
#pointsTable tbody tr:last-child > * { border-bottom: 0; }
#pointsTable .medal-standings-team { text-align: start; }

#pointsTable .points-detail-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

#pointsTable .points-group { min-width: 7rem; max-width: 15rem; overflow-wrap: anywhere; }
#pointsTable .points-delegation { min-width: 10rem; max-width: 16rem; }

@media (min-width: 992px) {
    #pointsTable .points-detail-table :is(.points-delegation, .points-total) {
        position: sticky;
        z-index: 1;
    }

    #pointsTable .points-detail-table .points-delegation { inset-inline-start: 0; }
    #pointsTable .points-detail-table .points-total { inset-inline-end: 0; }
}

@media (max-width: 575.98px) {
    #pointsTable :is(th, td) { padding-inline: 6px; }
    #pointsTable .medal-standings-team { gap: 6px; }
    #pointsTable .medal-standings-team img { width: 24px; }
}

#medalsTable {
    margin-bottom: 5rem !important;
}

#medalsTable.medal-standings { padding-block: 24px 32px; }

.medal-standings-scroll {
    --medal-grid: #c5d3e4;
    --rank-width: 4.5rem;
    overflow-y: hidden;
    border: 1px solid #aebfd6;
    border-radius: 12px;
    background: #fff;
}

.medal-standings-scroll:focus-visible {
    outline: 2px solid #245da3;
    outline-offset: 3px;
}

.medal-standings table {
    width: 100%;
    min-width: 630px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    color: #183454;
    font-variant-numeric: tabular-nums;
}

.medal-standings-rank { width: var(--rank-width); }
.medal-standings-count { width: 6.5rem; }
.medal-standings-total-width { width: 7.5rem; }

.medal-standings :is(th, td) {
    padding: 10px 12px;
    border-bottom: 1px solid var(--medal-grid);
    border-inline-end: 1px solid var(--medal-grid);
    text-align: center;
    vertical-align: middle;
}

.medal-standings tr > :last-child { border-inline-end: 0; }
.medal-standings .medal-standings-name { text-align: start; overflow-wrap: anywhere; }

.medal-standings thead {
    --row-surface: #e8f0fc;
    font-size: .875rem;
}

.medal-standings thead th { padding-block: 13px; }
.medal-standings thead .site-icon { margin-inline-end: .2em; }
.medal-standings-gold .site-icon { color: #926400; }
.medal-standings-silver .site-icon { color: #57687d; }
.medal-standings-bronze .site-icon { color: #93491f; }

.medal-standings tbody tr { --row-surface: #fff; --total-surface: #edf4ff; }
.medal-standings tbody tr:nth-child(even) { --row-surface: #f4f7fc; --total-surface: #e6effd; }
.medal-standings tbody tr:is(:hover, :focus-within) { --row-surface: #eaf3ff; --total-surface: #dbeaff; }
.medal-standings :is(th, td) { background: var(--row-surface); }

.medal-standings-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    color: #163760;
    font-weight: 650;
    text-decoration: none;
}

.medal-standings-team img {
    flex: none;
    object-fit: contain;
}

a.medal-standings-team:hover { text-decoration: underline; text-underline-offset: .18em; }
a.medal-standings-team:focus-visible { outline: 2px solid #245da3; outline-offset: 2px; }

.medal-standings .medal-standings-total {
    border-inline-start: 2px solid #91a9ca;
    background: var(--total-surface, #dce8f9);
    color: #102f5f;
    font-size: 1.125em;
    font-weight: 850;
}

.medal-standings tr > :nth-last-child(2) { border-inline-end-color: transparent; }
.medal-standings tfoot { --row-surface: #deebfc; --total-surface: #ccdef6; }
.medal-standings tfoot :is(th, td) {
    border-block-start: 2px solid #91a9ca;
    border-block-end: 0;
    font-weight: 750;
}

.home-summary {
    padding-block: clamp(20px, 3vw, 36px);
    background: linear-gradient(120deg, #e5efff, #f4f8fd 60%, #e8f3fb);
}

.home-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 12px;
    color: #183454;
}

.home-summary-heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
}

.home-summary-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 36px;
    color: #174681;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.home-summary-link:hover { color: #102b53; }

.home-summary-table .medal-standings-scroll {
    --rank-width: 3.5rem;
    border-color: #b7cbe4;
}

.home-summary-table table { min-width: 0; }
.home-summary-table .medal-standings-count { width: 5.1rem; }
.home-summary-table .medal-standings-total-width { width: 5.5rem; }
.home-summary-table :is(th, td) { padding: 5px 8px; }
.home-summary-table thead th { padding-block: 8px; }
.home-summary-table .medal-standings-gold { background: #fff3d4; }
.home-summary-table .medal-standings-silver { background: #edf2f9; }
.home-summary-table .medal-standings-bronze { background: #f9e9de; }
.home-summary-table .medal-standings-team { min-height: 23px; gap: 7px; }
.home-summary-table .medal-standings-team img { width: 24px; height: 24px; }
.home-summary-table tbody tr:last-child > * { border-bottom: 0; }

.medal-standings-empty { padding: 16px 20px; }

.table-msp {
    /* border: none; */
    border-color: var(--color-tertiary);
    /* border: -0px solid; */
}

.table-msp td,
.table-msp th {
    font-size: 1rem;
    font-style: normal;
    padding: 1rem;
}

.table-msp thead {
    border-color: var(--color-primary);
}

.table-msp thead td,
.table-msp thead th {
    background-color: var(--color-primary);
    /* color: white; */
}

.table-msp tbody td,
.table-msp tbody th {
    background-color: transparent;
}

.table-msp tbody tr:nth-child(odd) {
    background-color: rgba(var(--color-tertiary-rgb), 1);
}

.table-msp tbody tr:nth-child(even) {
    background-color: rgba(var(--color-fourth-rgb), 1);
}

.table-msp tr:hover {
    filter: brightness(1.2);
    opacity: 0.95;
}

.pignose-calendar {
    width: 100%;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.pignose-calendar .pignose-calendar-top {
    background-color: transparent;
    padding: 20px;
    border: none;
    border: none;
    box-shadow: none;
}

.pignose-calendar .pignose-calendar-top .pignose-calendar-top-date {
    padding: 0;
}

.pignose-calendar .pignose-calendar-top .pignose-calendar-top-year {
    color: var(--color-primary);
}

.pignose-calendar .pignose-calendar-unit {
    height: 2.5em;
}

.pignose-calendar .pignose-calendar-unit a {
    border-radius: 0%;
}

.pignose-calendar .pignose-calendar-unit.pignose-calendar-unit-active a {
    background-color: rgba(var(--color-fourth-rgb), 0.7);
}

.fecha-marcada a {
    background: var(--color-secondary) !important;
    color: white !important;
    font-weight: bold;
}

.fecha-activa a {
    background: var(--color-primary) !important;
    color: white !important;
}

.fecha-desactivada a {
    /* background: #f5f5f5 !important; */
    color: #ccc !important;
    pointer-events: none;
}

.grouped-directory { padding-block: clamp(22px, 3vw, 38px); }

:is(.grouped-directory, #calendar) .sports-columned {
    column-count: 3;
    column-gap: clamp(12px, 2vw, 22px);
}

:is(.grouped-directory, #calendar) .letter-group {
    break-inside: avoid;
    margin-block: 0 14px;
    padding: 12px;
    border: 1px solid var(--detail-line);
    border-radius: 13px;
    background: #fff;
}

.grouped-directory .letter {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin: 0 0 8px;
    border-radius: 10px;
    background: #e6effb;
    color: var(--detail-blue);
    font: 850 1.4rem/1 var(--font-display);
}

.grouped-directory .sports {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(.grouped-directory, #calendar) :is(.delegation-entry, .sport-entry, .sport) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 4px 6px;
    border-radius: 8px;
    color: var(--detail-ink);
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

:is(.grouped-directory, #calendar) :is(.delegation-entry, .sport-entry, .sport):is(:hover, :focus-visible) {
    background: #eaf2fc;
}

:is(.grouped-directory, #calendar) :is(.delegation-entry, .sport-entry, .sport):focus-visible {
    outline: 2px solid var(--detail-blue);
    outline-offset: 2px;
}

:is(.grouped-directory, #calendar) :is(.delegation-flag, .pictograma) {
    position: relative;
    display: grid;
    width: 47px;
    height: 40px;
    place-items: center;
    border: 1px solid #d8e3f1;
    border-radius: 7px;
    background: #f3f7fc;
    color: var(--detail-blue);
}

:is(.grouped-directory, #calendar) :is(.delegation-flag, .pictograma) img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

:is(.grouped-directory, #calendar) .pictograma img {
    position: absolute;
    padding: 2px;
}

#delegations .delegation-logo-status {
    padding: 3px;
    color: var(--detail-muted);
    font-size: .625rem;
    line-height: 1.1;
    text-align: center;
}

:is(.grouped-directory, #calendar) .delegation-code {
    padding: .35em .56em;
    border: 1px solid #c6d7ed;
    border-radius: .45rem;
    background: #eaf2fc;
    color: #224778;
    font-size: .75rem;
}

#sports .game-official-result {
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
    color: red;
    margin: 0;
}

#sports .game-official-result.oficial {
    /* background: linear-gradient(45deg, #35a500, #43cc02, #35a500); */
    /* transform: rotate(+5deg); */
    color: green;
}

#sports .game-official-result:before {
    content: 'Resultado No Oficial';
}

#sports .game-official-result.oficial:before {
    content: 'Resultado Oficial';
}

.tourney-content .list-group-item {
    background-color: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* color: white; */
}

.tourney-content .list-group-item.active {
    background-color: transparent;
    color: var(--color-primary);
}

.tourney-content .list-group-item-action:not(.active):focus,
.tourney-content .list-group-item-action:not(.active):hover {
    background-color: var(--color-primary);
    color: white;
}

/* #sports .sports-columned hr {
    border-color:var(--color-tertiary);
} */

/* #sports li::marker {
    content: "\f061";
    font-family: "Font Awesome 5 Pro";
    color: var(--color-primary);
} */




.game-date {
    background-color: var(--color-primary);
    color: white !important;
    width: 80px;
    height: 80px;
    padding: 10px;
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-6%, -24%);
    z-index: 2;
}

.game-date .day {
    font-size: 26px;
    font-weight: bold;
    line-height: 26px;
}

.game-date .month {
    font-weight: 100;
    font-size: 15px;
    text-transform: uppercase;
}

.game-date .time {
    font-size: 12px;
    margin-top: -1px;
}


.game-verus {
    /* min-height: 85px; */
    /* justify-content: space-around; */
    justify-content: center;
    justify-content: space-evenly;
    gap: 0.4rem;
    position: relative;
}

.game-verus .vs {
    position: relative;
    width: 2rem;
}

.game-verus .vs::before {
    content: 'VS';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(var(--color-tertiary-rgb), 0.1);
    font-weight: 900;
    width: 30px;
    height: 30px;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    right: 0;
    left: 0;
    /* opacity: 0; */
    margin: 0 auto;
}

/* .game-verus .team {
    display: flex;
    align-items: center;
} */

.game-verus .team .name {
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--color-tertiary);
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.game-verus .team .score {
    background-color: rgba(var(--color-tertiary-rgb), 0.1);
    color: black;
    width: 100%;
    height: 25px;
    line-height: 24px;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

.game-verus .team .flag {
    /* background-color: red; */
    width: 44px;
    height: calc(100% - 11px);
    margin-top: 12px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.flag.flag-1 {
    margin-left: 0.3rem;
}

.flag.flag-2 {
    margin-right: 0.3rem;
}

.game-sede {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 1rem;
}

.game-box {
    margin-bottom: 4rem;
    margin-bottom: 4rem;
    break-inside: avoid;
}

.game-fase .badge {
    background-color: var(--color-tertiary) !important;
    border-radius: 0% !important;
}

.game-position {
    text-transform: uppercase;
}

#games.show {
    display: grid;
}

#games {
    grid-template-columns: 1fr 1fr;
    /* gap: 2rem; */
    column-gap: 2rem;
    /* padding: 3rem 0 0 0; */
    padding: 3rem 0rem 0rem 0rem;
}

.game-position .badge {
    border-radius: 0;
    background-color: transparent !important;
    border: 1px solid black;
    font-size: 1rem;
}

.game-position .badge.bg-warning {
    border-color: #ffb02e;
}

.game-position .badge.bg-secondary {
    border-color: #bdbdbd;
}

.game-position .badge.bg-info {
    border-color: #da9045;
}

.game-link {
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    bottom: -31px;
}

.game-link .btn {
    font-weight: 600;
}

.game-name {
    font-size: 10px;
    /* text-transform: uppercase; */
    font-weight: 500;
}


#person .directory-filters { margin-bottom: 16px; }

#person .athlete-card-grid {
    --portrait-rise: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(14rem, 22%)), 1fr));
    gap: calc(var(--portrait-rise) + 24px) clamp(22px, 2.6vw, 36px);
    padding-block-start: calc(var(--portrait-rise) + 8px);
}

#person .athlete-card-slot { min-width: 0; }
#person .athlete-card-empty { grid-column: 1 / -1; }
.athlete-card-link { display: block; height: 100%; color: var(--directory-ink); }
.athlete-card-link:hover { color: var(--directory-blue); }
#person .person-box { box-shadow: 0 4px 12px #17365e14; border-color: var(--directory-line); }
#person .athlete-card-link:is(:hover, :focus-visible) .person-box { border-color: #94b3d9; }
.athlete-directory-status { margin-bottom: 12px; color: var(--directory-muted); }

#person .select2-container .select2-selection {
    min-height: 44px;
    padding: 0 30px 0 12px;
    font-weight: 450;
}
#person .select2-selection .select2-selection__rendered { padding: 0; }
#person .select2-selection .select2-selection__arrow { display: none; }
#person .select2-container .select2-selection.form-select { background-color: #fff; }
#person .select2-selection .select2-selection__clear { margin-right: 0; color: var(--directory-muted); }
#person .select2-container--focus .select2-selection,
#person .select2-container--open .select2-selection { outline: 2px solid var(--directory-blue); outline-offset: 1px; }
.athlete-select-option { display: flex; align-items: center; gap: 6px; min-width: 0; }
.athlete-select-option img { flex: none; object-fit: contain; }

#pagination-test { gap: 6px; }
#pagination-test .btn-page { min-width: 44px; min-height: 44px; }
#pagination-test .btn-page[aria-current="page"] { background: var(--directory-ink); color: #fff; }
.athlete-page-input { max-width: 72px; min-height: 44px; border-radius: 9px; }

#person .card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0;
    /* opacity: 0; */
}

#person .person-box {
    position: relative;
    border-radius: 16px !important;
}

#person .person-picture {
    position: absolute;
    background-color: var(--color-primary);
    top: 0;
    inset-inline-start: 7px;
    height: 80px;
    width: 80px;
    overflow: hidden;
    border-radius: 12px;
    transform: translateY(calc(-1 * var(--portrait-rise)));
}

#person .person-delegation {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-right: 10px;
    padding-top: 10px;
}

#person .person-delegation .info {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
    max-inline-size: calc(100% - 9.5rem);
    font-size: .6875rem;
    text-transform: uppercase;
    font-weight: 750;
}

#person .card-lastname {
    text-transform: uppercase;
    font-weight: 700;
}

#person .card-sport {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 1rem;
    text-align: center;
}

#person .person-delegation .badge {
    background-color: var(--color-tertiary);
    border-radius: 0;
}

#person .person-delegation .space {
    position: absolute;
    inset-inline-start: 96px;
}

#person .card-link {
    position: absolute;
    bottom: 0;
    transform: translateY(100%);
    right: 0;
    left: 0;
    margin: 0 auto;
}

.tableMedalsChart {
    height: 50vh;
}


#banner-sec.site-page-banner {
    position: relative;
    overflow: hidden;
    padding-block: 24px 30px;
    isolation: isolate;
    background: linear-gradient(108deg, #101f59, #123e94 75%, #11658e);
    color: #fff;
}

#banner-sec.site-page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url(/img/evento/medalla-aro.svg) right -54px center / 235px no-repeat;
    opacity: .16;
}

#banner-sec img#banner-bg {
    position: absolute;
    inset: 0 0 0 auto;
    width: 65%;
    height: 100%;
    object-fit: cover;
    opacity: .48;
}

#banner-sec:has(#banner-bg:not([hidden]))::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #101f59 28%, #101f5966 100%);
    content: "";
}

#banner-sec .container { position: relative; z-index: 1; }

#banner-sec .site-page-title {
    margin: 7px 0 0;
    font-size: clamp(1.8rem, 3.2vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: normal;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

#banner-sec + section {
    padding-top: clamp(24px, 3vw, 36px) !important;
}

#banner-sec + section.mt-5,
#banner-sec + section.my-5 { margin-top: 0 !important; }

#banner-sec .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    color: #dce4f6;
    font-size: .875rem;
}

#banner-sec .breadcrumbs a { color: #eef4ff; text-decoration: underline; text-underline-offset: .2em; }
#banner-sec .breadcrumbs .current { color: #fff; font-weight: 600; }
#banner-sec .breadcrumbs_separator { color: #b8c9e4; }

.select2 {
    width: 100% !important;
    height: 100% !important;
}

.select2 .select2-selection {
    height: 100% !important;
    border: var(--bs-border-width) solid var(--bs-border-color);
}

.select2 .select2-selection .select2-selection__rendered {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}


/* .table-game-key {
    gap: 2rem;
} */

.table-game-key {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}


/* .fase-column {
    flex: 1 1 200px;
    min-width: 200px;
} */
/* max-width: 250px; */

.fase-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /* reparte juegos verticalmente */
    align-items: stretch;
    /* height: 100%; */
    /* o una altura fija para forzar alineación */
    min-height: 500px;
    position: relative;
    padding-top: 40px;
    /* ajustable */
    flex: 1 1 200px;
    min-width: 200px;
}

.fase-column h5 {
    position: absolute;
    top: 0;
    width: 100%;
}

.home-sports {
    padding-bottom: clamp(22px, 4vw, 40px);
}

.home-sports h2 {
    margin-bottom: 12px;
    color: #183454;
    font-size: clamp(1.45rem, 2.55vw, 1.9rem);
    font-weight: 800;
}

.home-sports-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.home-sports-heading h2 { margin: 0; }

.home-sports-viewport {
    position: relative;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-block: 8px;
}

.home-sports-viewport.is-looping { scrollbar-width: none; }
.home-sports-viewport.is-dragging,
.home-sports-viewport.is-dragging a { cursor: grabbing; user-select: none; }

.home-sports-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    gap: clamp(8px, 1.15vw, 15px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-sports-track li { flex: 0 0 clamp(110px, 8.8vw, 137px); min-width: 0; }

.home-sport-link {
    position: relative;
    display: grid;
    height: 100%;
    align-content: start;
    justify-items: center;
    gap: 8px;
    padding: 12px 8px 10px;
    border: 1px solid #cfdeef;
    border-radius: 12px;
    background: #fff;
    color: #18385e;
    text-align: center;
}

.home-sport-link::after {
    content: "";
    position: absolute;
    inset-block-start: 13px;
    inset-inline-end: 13px;
    inline-size: 6px;
    block-size: 6px;
    border-block-start: 2px solid #466f9e;
    border-inline-end: 2px solid #466f9e;
    transform: rotate(45deg);
}

.home-sport-pictogram {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    padding: 4px;
    border-radius: 12px;
    background: linear-gradient(145deg, #edf4ff, #d8e7fb);
}

.home-sport-pictogram img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-sport-picture-alt { opacity: 0; }

@media (hover: hover) {
    .home-sports-viewport:not(.is-dragging) .home-sport-link:hover .home-sport-picture-alt { opacity: 1; }
    .home-sports-viewport:not(.is-dragging) .home-sport-link:hover .home-sport-pictogram:has(.home-sport-picture-alt:not([hidden])) .home-sport-picture { opacity: 0; }
}

.home-sport-name {
    align-self: center;
    font: 750 .875rem/1.2 var(--font-display);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.home-sport-link:is(:hover, :focus-visible) {
    border-color: #86a9d5;
    background: #f4f8ff;
    color: #15376b;
}

.home-sport-link:focus-visible,
.home-summary-link:focus-visible {
    outline: 2px solid #245595;
    outline-offset: 3px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .home-sport-link { transition: transform .2s ease, background-color .2s ease; }
    .home-sports-viewport:not(.is-dragging) .home-sport-link:hover { transform: scale(1.045); }
}

#documents { padding-block: clamp(20px, 3vw, 40px) !important; }
#documents .detail-heading { margin-bottom: 0; }

.document-list,
.event-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.document-link {
    display: grid;
    height: 100%;
    min-height: 56px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--directory-line);
    border-radius: 10px;
    background: var(--directory-wash);
    color: var(--directory-ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}
.document-link:hover { background: #e0edfc; color: var(--directory-ink); }

#eventDetail, .event-committee { padding-block: clamp(20px, 3vw, 36px); }
.event-introduction { max-width: 64ch; margin-bottom: 16px; }
.event-guide .detail-heading { font-size: 1.1rem; }
.event-guide .detail-heading .detail-icon { margin-inline-end: 4px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-committee { background: #f1f6fc; }
.event-committee li > * { display: block; overflow-wrap: anywhere; }
.event-committee li span { margin-top: 4px; color: var(--detail-muted); }

.portal-error .directory-empty {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 38rem;
    margin-inline: auto;
}
.portal-error p { margin: 0; }
.portal-error h1 { margin: 0; font: 850 clamp(1.35rem, 4vw, 2.25rem)/1.18 var(--font-display); }

#footer .logoFooter {
    width: 100px;
    display: flex;
    max-height: 50px;
}

#footer .logoFooter img {
    width: 100%;
    filter: invert(1);
}

#footer .logo-content {
    display: flex;
    padding-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}


#sedeDetail .embed-responsive iframe {
    width: 100%;
    height: 30vh;
}

/* #eventDetail {
    padding-bottom: 6rem !important;
    } */

#calendar { padding-block: clamp(22px, 3vw, 38px); }
#calendar .sportName { margin: 0 0 9px; font-size: clamp(.95rem, 1.5vw, 1.125rem); }
#calendar .calendar-empty { margin: 8px 6px 2px; color: var(--detail-muted); font-size: .875rem; }

#calendar .dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 6px;
}

#calendar .dates .date {
    --calendar-day-surface: linear-gradient(115deg, #f3f8ff, #dceafa);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 6px 4px;
    border: 1px solid #c8d9ec;
    border-radius: 9px;
    background: var(--calendar-day-surface);
    color: var(--detail-ink);
}

#calendar .dates .date:hover { box-shadow: 0 3px 8px #1b3c5a40; }

#calendar .dates .date:focus-visible {
    outline: 2px solid #245595;
    outline-offset: 3px;
}

#calendar .dates .calendar-final {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-width: 0;
    padding: 7px 5px;
}

#calendar .calendar-final::before,
#calendar .calendar-final::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

#calendar .calendar-final::before {
    inset: -100%;
    background: conic-gradient(#ac6e13, #ffe99d 25%, #cc8e29 50%, #fff2b8 75%, #ac6e13);
}

#calendar .calendar-final::after {
    inset: 3px;
    border-radius: 6px;
    background: var(--calendar-day-surface);
}

#calendar .calendar-final-label {
    margin-top: 3px;
    padding: 2px 5px;
    border-radius: .25rem;
    background: #ffedae;
    color: #573600;
    font-size: .625rem;
    font-weight: 750;
    line-height: 1;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
    #calendar .calendar-final::before { animation: rotate-calendar-final 8s linear infinite; }
}

@keyframes rotate-calendar-final {
    to { transform: rotate(1turn); }
}

#calendar .dates .day {
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    font-weight: 700;
    line-height: 1;
}

#calendar .dates .month {
    font-size: .8125rem;
    line-height: 1.2;
    text-transform: lowercase;
}



#streaming iframe {
    max-width: 100%;
}


.Copyright {
    font-size: 0.7rem;
}

/* Fichas de deportes y delegaciones */
.detail-page {
    --detail-ink: var(--cvg-ink);
    --detail-muted: #526680;
    --detail-line: var(--cvg-line);
    --detail-wash: var(--cvg-wash);
    --detail-blue: var(--cvg-accent);
    padding-bottom: clamp(36px, 6vw, 72px);
    color: var(--detail-ink);
}

#sports.detail-page { margin-bottom: 0 !important; }

.detail-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.15em;
    height: 1.15em;
    fill: currentColor;
    vertical-align: -.15em;
}

.detail-tabs.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: clamp(22px, 3vw, 34px);
    padding: 6px;
    border: 1px solid var(--detail-line);
    border-radius: 15px;
    background: var(--detail-wash);
}

.detail-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--detail-ink);
    font: 800 .875rem/1.2 var(--font-display);
    text-transform: uppercase;
    transition: background-color .18s ease, color .18s ease;
}

.detail-tabs .nav-link:hover { background-color: #e1ecf9; }
.detail-tabs .nav-link.active {
    border-color: #17365e;
    background: #17365e;
    color: #fff;
    box-shadow: 0 3px 7px #17365e25;
}

.detail-heading {
    margin: 0 0 16px;
    color: var(--detail-ink);
    font: 850 clamp(1.27rem, 2.2vw, 1.75rem)/1.16 var(--font-display);
    text-transform: uppercase;
}

.detail-stats,
.detail-game-grid,
.detail-medal-totals,
.detail-competition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.detail-stat,
.detail-game,
.detail-table-frame {
    min-width: 0;
    border: 1px solid var(--detail-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 12px #17365e0b;
}

.detail-stat {
    padding: 16px;
    background: linear-gradient(150deg, #f1f6fc, #fff 62%);
}

.detail-stat-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-stat-heading h3 {
    margin: 0;
    color: var(--detail-ink);
    font: 750 1rem/1.2 var(--font-display);
}

.detail-icon-box {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d4e3f6;
    border-radius: 10px;
    background: #e6effb;
    color: var(--detail-blue);
    font-size: 1.15rem;
}

.detail-icon-box img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.detail-stat-value {
    display: block;
    margin: 12px 0 7px;
    font: 850 2.15rem/1 var(--font-display);
    font-variant-numeric: tabular-nums;
}

.detail-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dae5f2;
}

.detail-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #194b89, #4b94d9);
    transform-origin: left center;
}

.detail-page .tab-pane.show .detail-progress span { animation: detail-progress-fill 900ms cubic-bezier(.22,.61,.36,1) both; }

@keyframes detail-progress-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.detail-stat-reference {
    margin: 6px 0 0;
    color: var(--detail-muted);
    font-size: .875rem;
    line-height: 1.25;
}

.detail-stat-reference strong { color: var(--detail-ink); }

.detail-stat-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.detail-stat-breakdown span {
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--detail-metal-bg, #edf3fa);
    color: var(--detail-metal-ink, var(--detail-muted));
    font-size: .82rem;
}

.detail-gold {
    --detail-metal-bg: linear-gradient(145deg, #fcf2d7, #e4b954);
    --detail-metal-border: #d0a44b;
    --detail-metal-ink: #523502;
}

.detail-silver {
    --detail-metal-bg: linear-gradient(145deg, #f7fafc, #c2ccd9);
    --detail-metal-border: #a9b8ca;
    --detail-metal-ink: #273c54;
}

.detail-bronze {
    --detail-metal-bg: linear-gradient(145deg, #ffebdb, #dd9e73);
    --detail-metal-border: #c1835a;
    --detail-metal-ink: #502914;
}

.detail-medal-totals { margin-bottom: 18px; }

.detail-medal-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 14px clamp(8px, 2vw, 22px);
    border: 1px solid var(--detail-metal-border);
    border-radius: 13px;
    background: var(--detail-metal-bg);
    color: var(--detail-metal-ink);
}

.detail-medal-tile span {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 800 .95rem/1 var(--font-display);
}

.detail-medal-tile strong { font: 850 clamp(1.25rem, 3vw, 2.15rem)/1 var(--font-display); }

.detail-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--detail-ink);
    font-variant-numeric: tabular-nums;
}

.detail-table caption {
    padding: 10px 14px;
    caption-side: top;
    background: #fff;
    color: var(--detail-ink);
    font: 750 .95rem/1.2 var(--font-display);
    text-align: left;
}

.detail-table :is(th, td) {
    padding: 9px 12px;
    border-bottom: 1px solid var(--detail-line);
    text-align: center;
}

.detail-table thead th {
    border-inline-end: 1px solid var(--detail-line);
    background: var(--detail-metal-bg, #e9f1fb);
    color: var(--detail-metal-ink, var(--detail-ink));
    font: 800 .8rem/1.2 var(--font-display);
    white-space: nowrap;
}

.detail-table thead th:last-child { border-inline-end: 0; }
.detail-table tbody tr:nth-child(even) { background: #f6f9fd; }
.detail-table tbody tr:last-child > :is(th, td) { border-bottom: 0; }
.detail-table th[scope="row"] { text-align: left; }
.detail-medal-table { min-width: 415px; }
.detail-medal-table th:nth-child(2) { text-align: left; }

.detail-table-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-weight: 700;
    text-align: left;
}

.detail-table-name img {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: contain;
}

.detail-metal-count {
    display: inline-block;
    min-width: 2rem;
    padding: 2px 6px;
    border-radius: 7px;
    background: var(--detail-metal-bg);
    color: var(--detail-metal-ink);
    font-weight: 750;
}

.detail-table tfoot :is(th, td),
.detail-table .deleg-table-total :is(th, td) {
    border-top: 2px solid #a9bfd9;
    border-bottom: 0;
    background: #e9f1fb;
    font-weight: 800;
}

.detail-medal-table tbody .detail-table-total-value {
    border-inline-start: 1px solid var(--detail-line);
    background: #edf3fb;
    font-weight: 850;
}

.detail-page #games.show { display: block; }
.detail-page #games { padding: 0; }

.detail-game {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.detail-game:hover,
.detail-game:focus-within {
    border-color: #9db8d6;
    box-shadow: 0 7px 18px #17365e18;
}

.detail-game-top,
.detail-game-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.detail-tag {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #d3e2f4;
    border-radius: 7px;
    background: #edf4fd;
    color: #24538c;
    font-size: .77rem;
    font-weight: 800;
    line-height: 1.1;
}

.detail-tag-final {
    border-color: #e6c36f;
    background: #fff4d7;
    color: #6b4609;
}

.detail-game-date,
.detail-game-sport,
.detail-game-venue,
.detail-game-link,
.detail-inline-link,
.detail-result-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--detail-muted);
    font-size: .84rem;
    line-height: 1.2;
}

.detail-game-sport img { width: 22px; height: 22px; object-fit: contain; }
.detail-game-title {
    margin: 0;
    color: var(--detail-ink);
    font: 800 .98rem/1.25 var(--font-display);
}

.detail-game-title a { color: inherit; }
.detail-game a:hover,
.detail-table-name:hover { text-decoration: underline; }

.detail-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-height: 54px;
    padding: 7px 6px;
    border: 1px solid #dce7f5;
    border-radius: 9px;
    background: #f2f7fd;
}

.detail-team {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--detail-ink);
    font-weight: 800;
    font-size: .87rem;
    overflow-wrap: anywhere;
}

.detail-team:last-child { flex-direction: row-reverse; text-align: right; }
.detail-team img {
    width: 29px;
    height: 29px;
    flex: none;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

.detail-score {
    padding: 4px 7px;
    border-radius: 6px;
    background: #17365e;
    color: #fff;
    font: 800 .93rem/1.2 var(--font-display);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.detail-game-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--detail-line);
}

.detail-game-venue { flex: 1 1 45%; overflow-wrap: anywhere; }
.detail-game-link,
.detail-inline-link {
    margin-left: auto;
    padding: 6px 8px;
    border-radius: 7px;
    background: var(--detail-wash);
    color: var(--detail-blue);
    font-weight: 800;
}

.detail-result-status { color: #785700; font-weight: 700; }
.detail-result-official { color: #275e44; }

.detail-finishers {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-finishers li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 7px;
    background: var(--detail-wash);
    overflow-wrap: anywhere;
}

.detail-finishers a {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
    color: var(--detail-ink);
    font-size: .85rem;
}

.detail-finishers img { flex: none; width: 25px; object-fit: contain; margin: 0 !important; }
.detail-player-medal {
    flex: none;
    padding: 3px 5px;
    border-radius: 6px;
    background: var(--detail-metal-bg);
    color: var(--detail-metal-ink);
}

.detail-competition {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 64px;
    padding: 10px;
    border: 1px solid var(--detail-line);
    border-radius: 12px;
    color: var(--detail-ink);
    background: linear-gradient(135deg, #fff, #f5f9fe);
    overflow-wrap: anywhere;
}

.detail-competition:hover {
    border-color: #9db8d6;
    background: #eaf2fc;
    color: var(--detail-blue);
}

.detail-competition strong { font: 750 .91rem/1.2 var(--font-display); }
.detail-competition small { display: block; color: var(--detail-muted); }
.detail-competition-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--detail-line);
    border-radius: 12px;
}

.detail-competition-section { margin-bottom: 22px; }
.detail-competition-section h3 { font: 800 1.12rem/1.25 var(--font-display); }
.detail-competition-section .detail-table-frame + .detail-table-frame { margin-top: 12px; }
.detail-bracket { display: grid; grid-auto-columns: minmax(175px, 1fr); grid-auto-flow: column; gap: 9px; overflow: auto; }

.detail-bracket-round {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--detail-line);
    border-radius: 12px;
    background: var(--detail-wash);
}

.detail-bracket-round h4 { margin: 0; font: 800 .88rem/1.2 var(--font-display); }
.detail-bracket-match {
    display: grid;
    gap: 4px;
    padding: 7px;
    border: 1px solid var(--detail-line);
    border-radius: 9px;
    background: #fff;
    font-size: .85rem;
}

.detail-bracket-result {
    border-radius: 5px;
    background: #e6effb;
    color: var(--detail-ink);
    text-align: center;
    font-weight: 800;
}

.detail-bracket-bye { padding: 4px 6px; color: var(--detail-muted); }

.detail-empty {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px;
    border: 1px dashed #b9cbe0;
    border-radius: 12px;
    background-color: #f7faff;
    color: var(--detail-muted);
}

.detail-banner-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
#banner-sec .detail-banner-identity .site-page-title { margin: 0; }
.detail-delegation-logo {
    display: grid;
    flex: none;
    place-items: center;
    width: 68px;
    height: 68px;
    padding: 7px;
    border: 1px solid #d4e4fa;
    border-radius: 13px;
    background: #fff;
    color: #24538c;
    font-size: 1.5rem;
}
.detail-delegation-logo img { width: 100%; height: 100%; object-fit: contain; }
.detail-delegation-description { overflow-wrap: anywhere; line-height: 1.55; }
.detail-delegation-description :is(p, div) { text-align: start !important; }
.detail-delegation-description img { max-width: 100%; height: auto; }
.detail-points-table + .detail-inline-link,
.detail-table-frame + .detail-inline-link { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
    .detail-page .tab-pane.show .detail-progress span { animation: none; }
    .detail-tabs .nav-link, .detail-game { transition: none; }
}

.detail-game-date:hover,
.detail-game-sport:hover,
.detail-game-venue:hover,
.detail-game-link:hover,
.detail-inline-link:hover,
.detail-table-name:hover { color: var(--detail-blue); }

/* Galería, Noticias y Sedes */
.portal-directory {
    --directory-ink: var(--cvg-ink);
    --directory-muted: #526680;
    --directory-line: var(--cvg-line);
    --directory-wash: var(--cvg-wash);
    --directory-blue: var(--cvg-accent);
    padding-block: clamp(28px, 3.8vw, 46px) clamp(32px, 5vw, 62px) !important;
    color: var(--directory-ink);
}

#banner-sec + :is(#gallery, #news, #sedes, #sedeDetail).portal-directory {
    padding-block: clamp(24px, 3vw, 36px) clamp(32px, 5vw, 62px) !important;
}

.directory-filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--directory-line);
    border-radius: 14px;
    background: var(--directory-wash);
}

.directory-filters label {
    flex: 1 1 160px;
    min-width: 0;
    color: var(--directory-ink);
    font-weight: 700;
}

.directory-filters .directory-search { flex: 2 1 225px; }
.directory-filters :is(.form-control, .form-select) {
    min-height: 44px;
    margin-top: 3px;
    border-color: #bfcfe2;
    border-radius: 9px;
    color: var(--directory-ink);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.directory-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Noticias: cinco tarjetas por fila en escritorio. */
#newsList.directory-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#newsList .directory-card-body { padding: 12px; }
#newsList .directory-news-card h2 { font-size: 1rem; }
#newsList .directory-date { font-size: .75rem; }
#newsList .directory-button { padding-inline: 8px; font-size: .8rem; }

.directory-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--directory-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 12px #17365e0b;
}

.directory-card:is(:hover, :focus-within) {
    border-color: #a5bedc;
    box-shadow: 0 7px 18px #17365e14;
}

.directory-card-media {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(140deg, #e7f0fc, #d3e4f7);
    color: var(--directory-blue);
    font-size: 1.9rem;
}

.directory-photo .directory-card-media { aspect-ratio: 4 / 3; }
.directory-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directory-expand {
    position: absolute;
    right: 9px;
    bottom: 9px;
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid #ffffff70;
    border-radius: 9px;
    background: #17365ee8;
    color: #fff;
    font-size: .96rem;
}

.directory-card-media:focus-visible { outline-offset: -4px; }
.directory-photo figcaption {
    padding: 10px 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.directory-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    overflow-wrap: anywhere;
}

.directory-card h2 {
    margin: 0;
    color: var(--directory-ink);
    font: 800 clamp(1rem, 1.65vw, 1.23rem)/1.2 var(--font-display);
}

.directory-card h2 a { color: inherit; }
.directory-card h2 a:hover { color: var(--directory-blue); text-decoration: underline; }
.directory-card p { margin: 0; color: var(--directory-muted); line-height: 1.35; }
.directory-venue { background: linear-gradient(145deg, #f3f7fd, #fff 62%); }

.directory-venue-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.directory-venue-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #c6d8ef;
    border-radius: 11px;
    background: linear-gradient(145deg, #eef5ff, #d6e6fa);
    color: var(--directory-blue);
    font-size: 1.26rem;
}

.directory-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 7px;
    border: 1px solid #cfdef0;
    border-radius: 7px;
    background: #f1f6fe;
    color: #284d7e;
    font-size: .79rem;
    font-weight: 750;
}

.directory-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--directory-line);
}

.directory-button,
.directory-map-link,
.directory-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 750;
    line-height: 1.2;
}

.directory-primary {
    min-height: 44px;
    border-color: var(--directory-ink);
    background: var(--directory-ink);
    color: #fff;
}

.directory-primary:hover { background: #204881; color: #fff; }
.directory-secondary,
.directory-pagination a {
    border-color: #d1e0f2;
    background: #edf4fd;
    color: #204d86;
}

.directory-secondary:hover,
.directory-pagination a:hover { background: #deebfb; color: #17365e; }
.directory-map-link { padding-inline: 5px; color: #28568a; }
.directory-map-link:hover { color: #17365e; text-decoration: underline; }

.directory-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--directory-muted);
    font-weight: 650;
    font-size: .87rem;
}

.directory-empty {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 24px);
    grid-column: 1 / -1;
    min-height: 128px;
    padding: clamp(18px, 3vw, 32px);
    overflow: hidden;
    border: 1px solid #c9d9ed;
    border-radius: 15px;
    background: linear-gradient(108deg, #f6f9fe 26%, #dceafb 100%);
}

.directory-empty::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: min(36%, 330px);
    background: linear-gradient(135deg, #eef5fe00 12%, #d5e5f9 12% 26%, #eef5fe00 26% 38%, #c4dcf8 38% 58%, #eef5fe00 58%);
    opacity: .75;
}

.directory-empty-icon {
    display: grid;
    flex: none;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 1px solid #b8d0ec;
    border-radius: 14px;
    background: #e5effd;
    color: var(--directory-blue);
    font-size: 1.65rem;
}

.directory-empty h2 {
    margin: 0;
    font: 800 clamp(1.05rem, 2.2vw, 1.45rem)/1.2 var(--font-display);
}

.directory-empty .directory-button { margin-top: 9px; }
.directory-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 18px;
}
.directory-pagination span[aria-disabled="true"] { padding-inline: 10px; color: var(--directory-muted); }
.directory-page-number { font-weight: 750; }

.directory-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.directory-detail-grid > :only-child { grid-column: 1 / -1; }
.directory-detail-grid > :nth-child(3) { grid-column: 1 / -1; }
.directory-location :is(.directory-location-address, p) { line-height: 1.55; }
.directory-location-address { font-weight: 700; }
.directory-location .directory-card-body,
.directory-location-map .directory-card-body { padding: clamp(16px, 3vw, 26px); }

.directory-detail-grid h2 { display: flex; align-items: center; gap: 9px; }
.directory-location-photo .directory-card-media { flex: 1; }
.directory-map-embed { width: 100%; }
.directory-map-embed:not(:has(iframe)) { display: none; }
.directory-map-embed iframe { width: 100%; min-height: 240px; border: 0; border-radius: 10px; }
.directory-back { margin-top: 16px; align-self: flex-start; }

.directory-article { max-width: 900px; margin-inline: auto; }
.directory-article .directory-card-media { max-height: 460px; }
.directory-article .directory-card-body { padding: clamp(16px, 4vw, 36px); }
.directory-article .directory-article-lead { font-size: 1.13rem; }
.directory-article-content { max-width: 100%; }
.directory-article-content :is(img, iframe, video) { max-width: 100%; }
.directory-article-content p { margin: 0 0 .9em; line-height: 1.55; text-align: justify; text-align-last: start; }

#lastNew.home-event-feature { padding-block: clamp(24px, 4vw, 42px); }
#lastNew .site-event-layout {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
}
#lastNew .site-event-image:focus-visible { outline-offset: -5px; }
#lastNew .site-event-image img { width: min(53%, 220px); }
#lastNew .home-summary { min-width: 0; padding: clamp(14px, 2.3vw, 28px); }
.home-summary-heading h2 { text-transform: uppercase; }
.home-summary-table .medal-standings-scroll { --rank-width: 2.65rem; }
.home-summary-table thead .site-icon { display: block; margin: 0 auto 2px; }
.home-summary-table thead th { white-space: nowrap; overflow-wrap: normal; }
.home-summary-table .medal-standings-count { width: clamp(2.7rem, 5.2vw, 4.5rem); }
.home-summary-table .medal-standings-total-width { width: clamp(2.8rem, 5.5vw, 4.9rem); }
#news.portal-directory.home-news {
    padding-block: clamp(24px, 3vw, 36px) !important;
    background: #f4f8fd;
}

#news.home-news .home-summary-heading h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
#news.home-news .directory-news-card h2 { font-size: clamp(1.04rem, 1.6vw, 1.35rem); }
#news.portal-directory .directory-empty h2 { font-size: clamp(1.05rem, 2.2vw, 1.45rem); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .directory-card { transition: border-color .2s ease, box-shadow .2s ease; }
    .directory-photo img { transition: transform .28s ease; }
    .directory-photo .directory-card-media:hover img { transform: scale(1.035); }
}

/* Resultados de cada encuentro */
#game-detail.detail-page {
    padding-bottom: clamp(32px, 5vw, 64px) !important;
}

.result-panel,
.result-roster,
.result-round {
    border: 1px solid var(--detail-line);
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 4px 14px #17365e0b;
}

.result-panel {
    display: grid;
    gap: 14px;
    padding: clamp(12px, 2.3vw, 23px);
    background: linear-gradient(145deg, #f3f7fd, #fff 62%);
}

.result-panel-heading,
.result-identifiers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.result-panel-heading { justify-content: space-between; }
.result-panel-heading .detail-heading { margin: 0; }

.result-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #c9d9ee;
    border-radius: 999px;
    background: #eff5fd;
    color: #284a74;
    font-size: .83rem;
    font-weight: 750;
    line-height: 1.2;
}

.result-status-official {
    border-color: #bddfce;
    background: #e9f7ee;
    color: #245841;
}

.result-status-unofficial {
    border-color: #ecd9a1;
    background: #fff6df;
    color: #6a4a04;
}

.result-scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    margin: 0;
    padding: 1px;
    gap: 1px;
    overflow: hidden;
    border-radius: 12px;
    background: #d5e2f1;
    list-style: none;
}

.result-score-team {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    align-content: start;
    gap: 6px 12px;
    min-height: 96px;
    padding: 10px clamp(9px, 2vw, 23px);
    border-radius: 8px;
    background: linear-gradient(155deg, #fff 28%, #edf4fd);
}

.result-score-winner { background: linear-gradient(155deg, #fff 28%, #ecf7f1); }
.result-scoreboard:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-score-team:nth-child(2):last-child { grid-template-columns: auto minmax(0, 1fr); }
.result-score-team:nth-child(2):last-child .result-identity {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex-direction: row-reverse;
    text-align: right;
}
.result-score-team:nth-child(2):last-child .result-score-number { grid-column: 1; grid-row: 1; }
.result-score-team:nth-child(2):last-child .result-winner-label { justify-self: start; }
.result-identity {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.result-name {
    min-width: 0;
    color: inherit;
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

a.result-name:hover { color: var(--detail-blue); text-decoration: underline; }

.result-avatar {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

.result-avatar-person { object-fit: cover; }

.result-score-team .result-avatar {
    width: clamp(36px, 5vw, 52px);
    height: clamp(36px, 5vw, 52px);
    padding: 3px;
    border: 1px solid var(--detail-line);
    border-radius: 10px;
}

.result-score-team .result-name { font: 800 clamp(.91rem, 2vw, 1.25rem)/1.2 var(--font-display); }
.result-score-number {
    min-width: 1.85em;
    padding: .2em .36em;
    border-radius: 9px;
    background: linear-gradient(145deg, #25518a, #132d51);
    color: #fff;
    font: 850 clamp(1.45rem, 4.5vw, 2.75rem)/1.1 var(--font-display);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.result-winner-label {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-self: end;
    gap: 5px;
    color: #245841;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.1;
}

.result-game-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 16px;
    color: var(--detail-muted);
    font-size: .88rem;
}

.result-game-meta:not(:empty) {
    padding-top: 9px;
    border-top: 1px solid var(--detail-line);
}

.result-game-meta :is(a, time),
.result-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.result-game-meta a,
.result-action { color: var(--detail-blue); font-weight: 750; }
.result-game-meta a:hover,
.result-action:hover { color: var(--detail-ink); text-decoration: underline; }
.result-sport img { flex: none; width: 22px; height: 22px; object-fit: contain; }

.result-venue {
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    align-items: flex-start;
    overflow-wrap: anywhere;
}

.result-address { margin-left: 1.42em; font-size: .79rem; }
.result-action {
    min-height: 36px;
    padding: 5px 9px;
    border: 1px solid #d4e2f3;
    border-radius: 8px;
    background: var(--detail-wash);
    font-size: .87rem;
    line-height: 1.2;
}

.result-section { margin-top: clamp(18px, 3vw, 28px); }

.result-table { min-width: 100%; }
.result-table thead .result-table-participant,
.result-table tbody .result-table-participant { text-align: left; }
.result-table-participant { min-width: 145px; }
.result-table th abbr { text-decoration: none; cursor: help; }

.result-table .result-total {
    border-inline-start: 1px solid #bfd1e8;
    background: #e3eefe;
    color: #133b6b;
    font-size: 1em;
    font-weight: 850;
}

.result-records,
.result-roster ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-records {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 9px;
    color: var(--detail-muted);
    font-size: .86rem;
}

.result-rounds,
.result-rosters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
    align-items: start;
    gap: 12px;
}

.result-round,
.result-roster { overflow: hidden; }

.result-round h3,
.result-roster h3 {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--detail-line);
    background: var(--detail-wash);
    font: 800 .95rem/1.2 var(--font-display);
}

.result-bracket-match {
    margin: 9px;
    padding: 2px 8px;
    border: 1px solid var(--detail-line);
    border-radius: 8px;
}

.result-bracket-player,
.result-roster li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
}

.result-bracket-player + .result-bracket-player,
.result-roster li + li { border-block-start: 1px solid var(--detail-line); }
.result-bracket-player strong,
.result-age { margin-left: auto; }
.result-roster li { padding-inline: 12px; }
.result-age { color: var(--detail-muted); font-size: .85rem; white-space: nowrap; }
.result-dorsal { flex: none; text-align: center; }
.result-back { margin-top: 17px; }

.home-honoree {
    padding-block: 0 clamp(26px, 4vw, 48px);
    scroll-margin-block-start: 18px;
}

.home-honoree-card {
    display: grid;
    grid-template-columns: minmax(190px, .7fr) minmax(0, 2fr);
    overflow: hidden;
    border: 1px solid var(--cvg-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px #15336a0e;
}

.home-honoree-mark {
    display: grid;
    min-height: 175px;
    place-items: center;
    padding: clamp(20px, 4vw, 42px);
    background: radial-gradient(ellipse at 45% 55%, #fff 25%, #edf4ff 77%, #e0ebfe);
    border-inline-end: 1px solid var(--cvg-line);
}

.home-honoree-mark img {
    display: block;
    width: min(100%, 184px);
    height: auto;
}

.home-honoree-copy { padding: clamp(19px, 3.4vw, 39px); }
.home-honoree-copy h2 {
    margin: 0 0 10px;
    color: var(--cvg-ink);
    font-size: clamp(1.65rem, 3.25vw, 2.45rem);
    font-weight: 850;
    line-height: 1.13;
}

.home-honoree-copy h2 span {
    display: block;
    margin-bottom: 6px;
    color: #755319;
    font: 800 .78rem/1.2 var(--font-display);
    letter-spacing: .055em;
    text-transform: uppercase;
}

.home-honoree-copy p { max-width: 70ch; margin-bottom: 8px; color: #294060; }
.home-honoree-copy .home-summary-link { color: var(--cvg-accent); }

/* Carrusel de titulares y mosaico de portada */
.home-headlines { padding-block: clamp(12px, 2vw, 24px); }

.home-headline-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid #1a4074;
    border-radius: 16px;
    background: radial-gradient(ellipse at 77% 130%, #13788d, transparent 58%),
        linear-gradient(112deg, #101f59, #1346a4);
    color: #fff;
}

.home-headline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32%;
    min-height: clamp(202px, 33vh, 276px);
}

.home-headline[hidden] { display: none; }
.home-headline-copy { align-self: center; min-width: 0; padding: clamp(16px, 3vw, 36px); }
.home-headline-copy time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    color: #d5e6fa;
    font-weight: 650;
    font-size: .88rem;
}

.home-headline-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #fff;
    font: 800 clamp(1.23rem, 2.55vw, 2.2rem)/1.13 var(--font-display);
    overflow-wrap: anywhere;
}

.home-headline-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    color: #e1edfc;
    line-height: 1.25;
}

.home-headline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    padding: 6px 10px;
    border: 1px solid #ffffff58;
    border-radius: 8px;
    background: #ffffff18;
    color: #fff;
    font-weight: 750;
    line-height: 1.2;
}

.home-headline-link:hover { background: #fff; color: #17365e; }

.home-headline-picture {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #17365e;
}

.home-headline-picture img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-headline-picture::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #214f84 0%, #214f8400 32%), linear-gradient(0deg, #112e5788, transparent 35%);
    content: "";
}

.home-headline-controls,
.home-sports-controls { display: flex; align-items: center; gap: 6px; }
.home-headline-controls[hidden],
.home-sports-controls[hidden] { display: none; }

.home-headline-controls { position: absolute; right: 12px; bottom: 12px; }

.home-rail-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid #bfcee2;
    border-radius: 9px;
    background: #f1f6fd;
    color: #17365e;
    font-size: 1.05rem;
}

.home-rail-button:hover { border-color: #245595; background: #e0edfc; }
.home-rail-previous .detail-icon { transform: rotate(180deg); }
.home-headline-controls .home-rail-button { background: #f3f7ff; }

#gallery.home-gallery { padding-block: clamp(24px, 4vw, 43px) !important; }

.home-gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: clamp(5px, 1vw, 10px);
    overflow-x: auto;
    border-radius: 12px;
    scrollbar-width: thin;
}

.home-gallery-strip:has(> :nth-child(6)) { grid-template-columns: 1.25fr .85fr 1fr .9fr 1.15fr .85fr; }

.home-gallery-tile {
    position: relative;
    display: grid;
    height: clamp(108px, 10vw, 150px);
    min-width: 0;
    overflow: hidden;
    place-items: center;
    border-radius: 9px;
    background: #e7f0fc;
    color: #245595;
}

.home-gallery-tile img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.home-gallery-fallback { font-size: 1.6rem; }
.home-gallery-expand {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid #ffffff65;
    border-radius: 7px;
    background: #17365ecc;
    color: #fff;
    font-size: .81rem;
}

.home-gallery-tile:focus-visible { outline-offset: -3px; }

@media (prefers-reduced-motion: no-preference) {
    .home-headline:not([hidden]) .home-headline-copy { animation: home-headline-in .28s ease-out; }
    .home-sport-pictogram img { transition: opacity .16s ease; }
}

@keyframes home-headline-in {
    from { opacity: 0; transform: translateX(-7px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Medallistas */
#medalsTable.medallists-page { margin-bottom: 0 !important; }

.medallists-page .directory-filters .directory-search { flex-basis: 220px; }
.medallists-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.medallists-count { margin: 0; color: #435b76; font: 650 1rem/1.3 var(--font-display); }
.medallists-count strong { color: #17365e; font-weight: 850; font-variant-numeric: tabular-nums; }
.medallists-count:focus { outline: none; }
.medallists-summary .directory-button { min-height: 32px; }

.medallists-page .medal-standings-scroll { --rank-width: 3.8rem; }
.medallists-page thead th { font: 800 .89rem/1.18 var(--font-display); }
.medallists-page thead th[class^="detail-"] { background: var(--detail-metal-bg); color: var(--detail-metal-ink); }
.medallists-page thead .detail-icon { vertical-align: -.19em; }
.medallists-page td.medal-standings-total { font-weight: 850; }
.medallists-page tbody tr:last-child > * { border-bottom: 0; }

.medallists-rank { font-weight: 750; font-variant-numeric: tabular-nums; color: #324f73; }
.medallists-identity { display: flex; align-items: center; gap: 10px; }

.medallists-avatar {
    position: relative;
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #c9d9ed;
    border-radius: 9px;
    background: #eaf2fd;
    color: #245595;
}

.medallists-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.medallists-person { display: grid; justify-items: start; min-width: 0; gap: 3px; }
.medallists-name { color: #18385e; font-weight: 600; line-height: 1.18; }
.medallists-name strong { font-weight: 800; }
a.medallists-name:hover { color: #245595; text-decoration: underline; }

.medallists-delegation {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 5px;
    border-radius: 6px;
    background: #eaf1fb;
    color: #3e5d80;
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.2;
}

.medallists-delegation img { flex: none; width: 19px; height: 14px; object-fit: contain; }

.delegation-color-badge {
    padding: 4px 8px;
    border-radius: 8px;
    background: #edf3fb;
    background: color-mix(in srgb, var(--delegation-color, #8297b1) 22%, white);
    color: #183454;
}

#person .delegation-color-badge small { font-size: inherit; text-align: center; overflow-wrap: anywhere; }
#person .delegation-color-badge img { max-width: 100%; object-fit: contain; }

/* Ficha individual de atleta y seguimiento en una prueba */
.athlete-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 2.3vw, 28px);
    padding: clamp(12px, 2.2vw, 24px);
    border: 1px solid var(--detail-line);
    border-radius: 15px;
    background: linear-gradient(133deg, #eff5fd, #fff 70%);
    box-shadow: 0 4px 12px #17365e0b;
}

.athlete-portrait {
    position: relative;
    display: grid;
    width: clamp(72px, 11vw, 118px);
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    border: 1px solid #c4d6ee;
    border-radius: 13px;
    background: #e3effd;
    color: var(--detail-blue);
    font-size: 2rem;
}

.athlete-portrait img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
}

.athlete-identity .detail-heading { margin-bottom: 8px; }
.athlete-delegation-row,
.athlete-delegation { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.athlete-delegation { color: var(--detail-ink); font-weight: 750; }
.athlete-delegation:hover { color: var(--detail-blue); }
.athlete-delegation img { width: 26px; height: 19px; object-fit: contain; }

.athlete-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
}

.athlete-facts:empty { display: none; }
.athlete-facts div {
    min-width: 60px;
    padding: 5px 8px;
    border: 1px solid #d7e3f3;
    border-radius: 8px;
    background: #f4f8fd;
}

.athlete-facts dt { color: var(--detail-muted); font-size: .76rem; line-height: 1.15; }
.athlete-facts dd { margin: 2px 0 0; font-weight: 750; line-height: 1.15; }
.athlete-section { margin-top: clamp(17px, 2.8vw, 28px); }

.athlete-sports,
.athlete-entries,
.athlete-test-list,
.athlete-metal-counts { padding: 0; margin: 0; list-style: none; }

.athlete-sports { display: flex; flex-wrap: wrap; gap: 7px; }
.athlete-sports a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid var(--detail-line);
    border-radius: 8px;
    background: #f3f7fd;
    color: var(--detail-blue);
    font-weight: 750;
}
.athlete-sports a:hover { background: #e6effb; }
.athlete-sports img { width: 24px; height: 24px; object-fit: contain; }

.athlete-summary-grid,
.athlete-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 2.2vw, 22px);
}

.athlete-summary-grid .detail-heading,
.athlete-activity-grid .detail-heading { margin: 0 0 10px; }

.athlete-profile .athlete-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.athlete-stats .detail-stat { padding: 10px; }
.athlete-stats .detail-stat-heading { gap: 6px; }
.athlete-stats .detail-stat-heading h3 { font-size: .86rem; overflow-wrap: anywhere; }
.athlete-stats .detail-icon-box { width: 30px; height: 30px; border-radius: 8px; font-size: 1rem; }
.athlete-stats .detail-stat-value { margin-block: 8px 0; font-size: 1.6rem; }

.athlete-medals-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.athlete-medals .detail-medal-totals { margin-bottom: 0; gap: 7px; }
.athlete-medals .detail-medal-tile { min-height: 77px; padding: 8px 10px; }

.athlete-entries { display: grid; gap: 7px; }
.athlete-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
    border: 1px solid var(--detail-line);
    border-radius: 10px;
    background: linear-gradient(135deg, #fff, #f5f9fe);
}

.athlete-entry-copy > span { display: block; color: var(--detail-muted); font-size: .79rem; line-height: 1.15; }
.athlete-entry-copy h3 { margin: 2px 0 0; font: 750 .94rem/1.25 var(--font-display); overflow-wrap: anywhere; }
.athlete-entry-copy a { color: var(--detail-ink); }
.athlete-entry-copy a:hover { color: var(--detail-blue); text-decoration: underline; }

.athlete-metal-counts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.athlete-metal-counts li,
.athlete-test-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--detail-metal-bg);
    color: var(--detail-metal-ink);
    font-size: .77rem;
    font-weight: 750;
}

.athlete-tests summary {
    min-height: 36px;
    padding-block: 8px;
    color: var(--detail-blue);
    font-size: .83rem;
    font-weight: 750;
    cursor: pointer;
}

.athlete-test-list { display: grid; gap: 3px; margin-top: 5px; }
.athlete-test-list li {
    padding: 5px 7px;
    border: 1px solid #dae6f5;
    border-radius: 7px;
    background: #fff;
    overflow-wrap: anywhere;
}
.athlete-test-link { color: var(--detail-ink); font-size: .87rem; font-weight: 750; }
.athlete-test-link:hover { color: var(--detail-blue); text-decoration: underline; }
.athlete-test-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; color: var(--detail-muted); font-size: .77rem; }
.athlete-test-meta:empty { display: none; }

.athlete-tracking {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    margin-bottom: 13px;
    padding: 11px 13px;
    border: 1px solid #bdcfe6;
    border-radius: 11px;
    background: linear-gradient(141deg, #eaf3ff, #f7fbff);
    scroll-margin-top: 10px;
}

.athlete-tracking h2 { margin: 0; font: 800 1rem/1.25 var(--font-display); }
.athlete-tracking h2 a { color: var(--detail-ink); }
.athlete-tracking h2 a:hover { text-decoration: underline; }
.athlete-tracking p { margin: 3px 0 0; color: var(--detail-muted); font-size: .87rem; }
.athlete-tracking-test { font-weight: 750; }
.result-table tbody .athlete-followed-result > *,
.result-bracket-player.athlete-followed-result {
    background: color-mix(in srgb, var(--detail-metal-border) 30%, white);
    color: var(--detail-metal-ink);
}

.athlete-followed-result .result-name { color: inherit; }
.athlete-tourney-link { display: inline-block; margin-top: 6px; font-size: .83rem; font-weight: 750; }

/* Medallas confirmadas del encuentro en la llave. */
.key-medal { display: inline-flex; align-items: center; gap: .25rem; margin-left: .5rem; padding: .15rem .45rem; border-radius: 1rem; background: #fff3cd; color: #664d03; font-size: .8rem; white-space: nowrap; }

.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.breadcrumbs-separator{display:inline-block;color:#bebebe;font-size:18px;line-height:1}

/* Compatibilidad local para estilos de iconos usados por las vistas existentes. */
.fa-light,
.fa-thin,
.fa-duotone {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fa-light::before,
.fa-thin::before,
.fa-duotone::before {
    content: var(--fa);
}


/* Resumen de puntos de la portada. */
.home-points-table { width: 100%; }
.home-points-table .medal-standings-name { text-align: left; }
.home-points-table :is(th, td):first-child { width: 3rem; }
.home-points-table .medal-standings-total { width: 5rem; }
