/* Fix: removed global position: absolute on .responsive-image img as it breaks
   news-cards and featured-article layouts. Original site does not use it. */

/* Logo más grande (+30px) */
.site-header__logo {
    height: 86px !important;
    width: 86px !important;
}
@media (min-width: 1176px) {
    .site-header__logo {
        height: 122px !important;
        width: 122px !important;
    }
}

/* Fix: news listing header and list positioning */
.news-listing-header {
    z-index: 10;
    overflow: visible;
}

.news-list-module .news-list {
    margin-top: -68px;
    position: relative;
    z-index: 20;
}

/* ══════════════════════════════════════════
   UE SANT ANDREU — Color overrides sobre 1437
   ══════════════════════════════════════════ */
:root {
    --uesa-blue:      #0b419b;
    --uesa-blue-dk:   #083080;
    --uesa-blue-deep: #061e52;
    --uesa-red:       #fe250c;
    --uesa-yellow:    #f5c200;
}

/* Top banner */
.site-banner { background: var(--uesa-blue-deep) !important; border-bottom: 2px solid var(--uesa-red); }
.site-banner__for li a, .site-banner__account li a { color: rgba(255,255,255,.75) !important; font-size: .8rem; }
.site-banner__for li a:hover, .site-banner__account li a:hover { color: var(--uesa-yellow) !important; }

/* Eliminar el padding lateral de .site-header en móvil para que la franja azul ocupe todo el ancho */
.site-header { padding: 0 !important; }
@media (min-width: 1176px) { .site-header { padding: 0 !important; } }

/* Main nav */
.site-header__nav { background: var(--uesa-blue) !important; display: flex !important; align-items: center !important; }
.site-header__logo { margin-left: 16px; }

/* ══════════════════════════════════════════
   Load More Button - Estilo Brentford
   ══════════════════════════════════════════ */
.news-list__load-more {
    padding: 64px 0;
    text-align: center;
}

.news-list__load-more .button {
    margin: auto;
    padding: 14px 35px;
    text-transform: uppercase;
    width: 100%;
    background-color: #0b419b;
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.news-list__load-more .button:hover {
    background-color: #083080;
}

.news-list__load-more .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .news-list__load-more .button {
        width: auto;
    }
}

/* Versión alternativa con clase js-load-more */
.load-more-wrapper {
    padding: 64px 0;
    text-align: center;
}

.load-more-wrapper .rts-btn {
    margin: auto;
    padding: 14px 35px;
    text-transform: uppercase;
    width: 100%;
    background-color: #0b419b;
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.load-more-wrapper .rts-btn:hover {
    background-color: #083080;
}

.load-more-wrapper .rts-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .load-more-wrapper .rts-btn {
        width: auto;
    }
}
@media (max-width: 1175px) {
  .site-header__logo { display: flex !important; align-items: center !important; height: 100% !important; }
}
.site-header__logo a { display: flex; align-items: center; }
.site-header__logo img { height: 52px; width: auto; }
@media (min-width: 1176px) {
  .site-header__logo img { height: 82px; width: auto; }
}

/* Nav links (overwrite el negre de 1437) */
.site-navigation__link { color: #fff !important; }
.site-navigation__link:hover { color: #ff1c24 !important; }
.site-navigation__link.active:after,
.site-navigation__link:hover:after { background: #ff1c24 !important; }
.sub-arrow { color: rgba(255,255,255,.45); font-size: .6rem; margin-left: 3px; vertical-align: middle; }
.menu-toggle__inner span { background: #fff !important; }
.search-toggle svg { color: #fff !important; }
.uesa-footer__social a svg { fill: currentColor !important; }
.site-header__search-overlay-toggle { display: none !important; }
.menu-toggle__inner:after { display: none !important; }

/* Mega-menu: fons groc UESA */
.site-navigation__mega-menu { background-color: var(--uesa-yellow) !important; }
.site-navigation__item:hover .site-navigation__mega-menu:before {
    background: linear-gradient(0deg, transparent, rgba(0,0,30,.2)) !important;
}

/* Links dins el mega-menu */
.site-navigation--is-in-overlay .site-navigation__link {
    color: var(--uesa-blue-deep) !important;
    border-bottom-color: rgba(6,30,82,.15) !important;
}
.site-navigation--is-in-overlay .site-navigation__link:hover {
    border-bottom-color: var(--uesa-red) !important;
    color: var(--uesa-red) !important;
}

/* Ocultar les fletxes del mega-menu (labels de secció i enllaços) */
.site-navigation__overlay__label svg,
.site-navigation--is-in-overlay .site-navigation__link svg { display: none !important; }

/* ══════════════════════════════════════════
   OVERLAY MODAL
   ══════════════════════════════════════════ */
.site-header__overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9998;
    background: var(--uesa-yellow) !important;
    color: var(--uesa-blue-deep);
    overflow-y: auto;
}
.site-header__overlay.overlay { display: flex !important; flex-direction: column; }

.overlay__header {
    position: relative; padding: 24px 40px;
    border-bottom: 1px solid rgba(6,30,82,.12);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.overlay__header img { height: 60px; width: auto; }
.overlay__close--nav {
    position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
    background: none; border: 1px solid rgba(6,30,82,.3); border-radius: 4px;
    color: var(--uesa-blue-deep); cursor: pointer; font-size: .9rem;
    display: flex; align-items: center; gap: 6px; padding: 8px 12px;
}
.overlay__close--nav:hover { color: #ff1c24; border-color: rgba(255,28,36,.6); }
.overlay__close--nav svg { width: 12px; height: 12px; }

.overlay__content {
    flex-shrink: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.overlay__col {
    padding: 40px; border-right: 1px solid rgba(6,30,82,.1);
}
.overlay__col:last-child { border-right: none; }

.overlay__section-title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: #ff1c24;
    margin: 0 0 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--uesa-blue-deep);
}
.overlay__section-title a { color: #ff1c24; text-decoration: none; }
.overlay__section-title svg { display: none; }

.overlay__nav { list-style: none; margin: 0 0 32px; padding: 0; }
.overlay__nav li { border-bottom: 1px solid rgba(6,30,82,.1); }
.overlay__nav li:last-child { border-bottom: none; }
.overlay__nav li a {
    display: block; padding: 10px 0;
    color: var(--uesa-blue-deep); font-size: 1rem; text-decoration: none;
}
.overlay__nav li a:hover { color: #ff1c24; }
.overlay__nav li a svg { display: none; }

.overlay__footer {
    flex-shrink: 0; background: var(--uesa-blue-deep);
    border-top: 2px solid var(--uesa-red); padding: 14px 40px;
    display: flex; align-items: center; gap: 24px;
}
.overlay__footer a {
    color: rgba(255,255,255,.6); font-size: .8rem; text-decoration: none;
    letter-spacing: 1px; text-transform: uppercase; padding: 4px 0;
}
.overlay__footer a:hover { color: var(--uesa-yellow); }

@media (max-width: 900px) {
    .overlay__content { grid-template-columns: 1fr 1fr; }
    .overlay__col:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(6,30,82,.1); border-right: none; }
}
@media (max-width: 600px) {
    .overlay__content { grid-template-columns: 1fr; }
    .overlay__col { border-right: none !important; padding: 28px 24px; }
    .overlay__col + .overlay__col { border-top: 1px solid rgba(6,30,82,.1); }
    .overlay__header { padding: 18px 24px; }
    .overlay__close--nav { right: 20px; }
    .overlay__footer { padding: 14px 24px; }
}

/* Squad listing header — títol i tabs de posició */
.squad-listing-header__title,
.squad-listing-header__full-title { color: #083080 !important; }
.squad-listing-header__links--active,
.squad-listing-header button { color: #083080 !important; }

/* Squad listing cards — noms i dorsals */
.squad-listing-card__first,
.squad-listing-card__last,
.squad-listing-card__number { color: #083080 !important; }

/* Squad listing — línia de la pestanya activa i fletxes del carrusel */
.squad-listing-header__links--active::after { background: #083080 !important; }
.carousel__previous-slide,
.carousel__next-slide { color: #083080 !important; }
.carousel__previous-slide svg,
.carousel__next-slide svg { fill: #083080 !important; color: #083080 !important; }

/* ══════════════════════════════════════════
   MEGA-MENU HOVER FIX
   ══════════════════════════════════════════ */
.site-navigation__item:hover .site-navigation__mega-menu,
.site-navigation__item.site-navigation__item--:hover .site-navigation__mega-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ══════════════════════════════════════════
   HOMEPAGE HEADER — Hero Carousel
   ══════════════════════════════════════════ */
html body main .homepage-header-wrapper {
    position: relative !important;
    background: transparent !important;
    overflow: hidden !important;
}

/* El negro se aplica solo al hero, no al wrapper, para que la match card en flujo
   (móvil) quede sobre el fondo blanco del body y no sobre una franja negra. */
html body main .homepage-header-wrapper .homepage-header {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #0f0f0f !important;
}

html body main .homepage-header__image {
    position: relative !important;
    width: 100% !important;
    min-height: 640px !important;
    overflow: hidden !important;
    background: #0f0f0f !important;
}
@media (min-width: 768px) {
    html body main .homepage-header__image {
        min-height: 820px !important;
    }
}
@media (min-width: 1604px) {
    html body main .homepage-header__image {
        min-height: 940px !important;
    }
}

/* Patrón de puntos amarillos (halftone) abajo-izquierda — ver .hero-carousel::after,
   colocado por encima del degradado del carrusel pero por detrás del texto. */

html body main .homepage-header__image .slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 1s ease-in-out !important;
    z-index: 1 !important;
}

html body main .homepage-header__image .slide--visible {
    opacity: 1 !important;
}

/* Degradado izquierdo + diagonal + inferior — igual que la plantilla de referencia */
@media (min-width: 768px) {
    html body main .homepage-header__image .slide::before {
        background: linear-gradient(90deg, rgb(20, 0, 9), rgba(20, 0, 9, 0) 50%),
                    linear-gradient(72.64deg, rgb(20, 0, 9) 0.9%, rgba(20, 0, 9, 0) 52.61%),
                    linear-gradient(0deg, rgb(20, 0, 9), rgba(20, 0, 9, 0) 60.96%);
        content: "";
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 2;
    }
}

/* Override main.css image positioning - fill the slide */
html body main .homepage-header__image .responsive-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

html body main .homepage-header__image .responsive-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Hero Carousel - se superpone sobre las imágenes */
html body main .hero-carousel {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    padding-bottom: 64px !important;
    width: 100% !important;
    background: linear-gradient(180deg, rgba(15,15,15,0) 55%, rgba(15,15,15,0.5) 100%) !important;
}

/* El .container es flex-item del hero: sin width explícito colapsa a fit-content,
   así que con titulares cortos el carrusel se estrecha y .slick-list (overflow:hidden)
   recorta la palabra larga del titular. Ancho estable = ancho del titular estable. */
html body main .hero-carousel > .container {
    width: 100% !important;
}
html body main .hero-carousel__item__title {
    overflow-wrap: break-word;
}

/* Puntos rojos (halftone) abajo-izquierda, por encima del degradado y detrás del texto */
html body main .hero-carousel::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1080px;
    max-width: 85%;
    height: 900px;
    max-height: 92%;
    transform: translateY(35%);
    z-index: -1;
    pointer-events: none;
    background-image: url('../media/dots-pattern.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left bottom;
}
/* En móvil/tablet la plantilla no muestra los puntos (y evita que rebosen sobre la match card en flujo) */
@media (max-width: 1175px) {
    html body main .hero-carousel::after { display: none !important; }
    /* Hero más bajo en móvil */
    html body main .homepage-header__image {
        height: 70vh !important;
        min-height: 440px !important;
    }
    /* La tarjeta de noticia se ancla a la parte inferior del slide */
    html body main .hero-carousel {
        align-items: flex-end !important;
        padding-bottom: 28px !important;
    }
}

/* El header/menú siempre por encima de la match card (que es z-index 20) */
html body .site-header {
    position: relative;
    z-index: 100;
}

/* Sin slick JS: mostrar solo la primera noticia y ocultar flechas/track extra */
html body main .hero-carousel .slick-arrow {
    display: none !important;
}
html body main .hero-carousel .slick-track {
    display: block !important;
    width: 100% !important;
    transform: none !important;
}
html body main .hero-carousel .slick-track .hero-carousel__item {
    display: none !important;
}
html body main .hero-carousel .slick-track .hero-carousel__item:first-child {
    display: block !important;
}
/* Con JS de autoplay: mostrar solo el item activo */
html body main .hero-carousel.is-js .slick-track .hero-carousel__item {
    display: none !important;
}
html body main .hero-carousel.is-js .slick-track .hero-carousel__item.is-active {
    display: block !important;
}

@media (min-width: 768px) {
    .hero-carousel {
        padding-bottom: 120px !important;
    }
    .hero-carousel .carousel {
        width: calc(66.66667% - 24px);
    }
}

@media (min-width: 1176px) {
    .hero-carousel .carousel {
        width: calc(41.66667% - 24px);
    }
}

/* Carousel dots */
.hero-carousel__dots {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-carousel__dots li {
    background: transparent;
    display: inline-block;
    flex-grow: 1;
    flex: calc(3.98622vw - 9.56693px);
    font-family: 'Sting Regular', sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    height: 32px;
    letter-spacing: -.04em;
    line-height: 1.1428571429;
    margin-right: 48px;
    padding-bottom: 8px;
    position: relative;
    text-transform: uppercase;
    transition: flex .4s cubic-bezier(.65,.05,.36,1);
}

.hero-carousel__dots li:after {
    background: #fff;
    bottom: -16px;
    content: " ";
    height: 1px;
    left: 0;
    position: absolute;
    width: 100%;
}

.hero-carousel__dots li:last-child {
    margin-right: 0;
}

.hero-carousel__dots li button {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.hero-carousel__dots li button:before {
    content: "0";
}

.hero-carousel__dots li.slick-active {
    flex: calc(7.97244vw + 28.86614px);
}

.hero-carousel__dots li.slick-active:after {
    background: #c61d23;
    height: 4px;
}

@media (max-width: 768px) {
    .hero-carousel__dots {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hero-carousel__dots {
        margin-top: 80px;
    }
}

/* Hero Carousel Items */
.hero-carousel__item {
    letter-spacing: -.04em;
}

.hero-carousel__item__category {
    color: #c61d23;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.hero-carousel__item__title {
    font-size: 1.75rem;
    line-height: 1.1428571429;
    color: #370019;
    overflow: visible;
}

.hero-carousel__item__title a {
    color: #370019;
    font-family: 'Sting Regular', sans-serif;
    text-transform: uppercase;
}

.hero-carousel__item .date-label {
    color: #0f0f0f;
    font-size: .75rem;
    padding: 8px 0;
    text-transform: uppercase;
}

.hero-carousel__item__footer {
    align-items: center;
    column-gap: 16px;
    display: flex;
}

@media (min-width: 1176px) {
    .hero-carousel__item__footer {
        column-gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-carousel__item {
        background: #fff;
        padding: 25px 25px 17px;
    }
    .hero-carousel__item__title {
        min-height: 3.5em;
    }
}

@media (min-width: 768px) {
    .hero-carousel__item__title {
        color: #fff;
    }
    .hero-carousel__item__title a {
        color: #fff;
        font-size: 3.75rem;
        line-height: .8666666667;
    }
    .hero-carousel__item .date-label {
        color: #fff;
    }
}

/* ══════════════════════════════════════════
   MATCH CARD (réplica del chunk de la referencia, que w3 no carga)
   ══════════════════════════════════════════ */
html body main .homepage-header__match-card .match-card {
    background: #fff !important;
    width: 375px;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: 0 !important;
}
html body main .match-card__container {
    position: relative;
    padding: 35px 10px 0;
}
html body main img.match-card__crest {
    float: left;
    width: auto;
    height: 80px;
    max-width: 100px;
    object-fit: contain;
    margin: 14px 0 0 15px;
}
html body main .match-card__details {
    margin: 18px 0 0 100px;
    padding: 0 0 20px;
    border-bottom: 1px solid #d9d9d6;
}
html body main .match-card__teams {
    margin-bottom: 14px;
}
html body main .match-card__team {
    font-family: 'Sting Regular', sans-serif;
    font-size: 1.5rem;
    line-height: 1.25rem;
    color: #161616;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 4px;
}
html body main .match-card__team--highlight {
    color: #c61d23;
}
html body main .match-card__venue {
    color: #828282;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 15px;
}
html body main .match-card__date {
    color: #370019;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 4px;
}
html body main .match-card__competition {
    color: #828282;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}
html body main a.match-card__link {
    display: block;
    clear: both;
    text-align: center;
    padding: 16px 0 15px;
    color: #c10000;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    text-decoration: none;
    border-top: 1px solid #d9d9d6;
}
html body main a.match-card__link:hover {
    background: #fafafa;
}

/* Countdown del partido (números grandes, como la referencia) */
html body main .countdown {
    display: flex;
    justify-content: space-between;
    gap: 0;
    clear: both;
    padding: 22px 10px 28px;
}
html body main .countdown__segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
/* Separador ":" entre segmentos, como la plantilla */
html body main .countdown__segment:not(:first-child)::after {
    content: ":";
    position: absolute;
    top: 2px;
    left: 0;
    transform: translateX(-50%);
    color: #370019;
    font-family: 'Sting Regular', sans-serif;
    font-size: 1.875rem;
    line-height: 1;
}
html body main .countdown__segment__value {
    font-family: 'Sting Regular', sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    color: #c10000;
}
html body main .countdown__segment__unit {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #370019;
    margin-top: 6px;
}

/* Overlay arriba-derecha sobre el hero (desktop, como la referencia) */
@media (min-width: 1176px) {
    html body main .homepage-header__match-card {
        position: absolute !important;
        top: 0;
        right: 0;
        width: 100%;
        height: 86vh;
        min-height: 640px;
        pointer-events: none;
        z-index: 20;
    }
    html body main .homepage-header__match-card .match-card {
        position: absolute;
        top: 50%;
        right: 24px;
        transform: translateY(-50%);
        margin: 0;
        pointer-events: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,.25);
    }
}

/* En móvil/tablet: tarjeta centrada bajo el hero, sobre el fondo granate */
@media (max-width: 1175px) {
    html body main .homepage-header__match-card {
        position: relative;
        z-index: 5;
        padding: 24px 16px 40px;
    }
}

/* ══════════════════════════════════════════
   UESA FOOTER STYLES
   ══════════════════════════════════════════ */
.uesa-footer {
    display: block !important;
    background: #0b419b !important;
    width: 100% !important;
}

.uesa-footer__top {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr 1fr !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding: 40px 24px 32px !important;
    gap: 20px !important;
}

.uesa-footer a {
    color: rgba(255,255,255,.8) !important;
    text-decoration: none !important;
}
.uesa-footer a:hover { color: #ffd700 !important; }
.uesa-footer__brand { grid-column: auto !important; }
.uesa-footer__brand img {
    height: 80px !important;
    width: auto !important;
    margin-bottom: 20px !important;
    display: block !important;
}
.uesa-footer__address {
    font-size: .85rem !important;
    line-height: 1.7 !important;
    color: rgba(255,255,255,.7) !important;
}
.uesa-footer__address strong {
    color: #fff !important;
    display: block !important;
    margin-bottom: 6px !important;
    font-size: .9rem !important;
}
.uesa-footer__directions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: rgba(255,255,255,.7) !important;
    text-decoration: none !important;
    font-size: .85rem !important;
    margin-top: 10px !important;
}
.uesa-footer__directions:hover { color: #ffd700 !important; }
.uesa-footer__directions svg { width: 16px !important; height: 16px !important; }
.uesa-footer__col-title {
    display: block !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: .85rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
}
.uesa-footer__nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.uesa-footer__nav li { margin-bottom: 10px !important; }
.uesa-footer__nav li a {
    font-size: .9rem !important;
    color: rgba(255,255,255,.85) !important;
}
.uesa-footer__nav li a:hover { color: #ffd700 !important; }
.uesa-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.12) !important;
    background: #061e52 !important;
}
.uesa-footer__bottom-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding: 24px !important;
    gap: 20px !important;
}
.uesa-footer__social { display: flex !important; gap: 16px !important; }
.uesa-footer__social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.1) !important;
    color: #fff !important;
    transition: background .2s !important;
}
.uesa-footer__social a:hover { background: #fe250c !important; }
.uesa-footer__social svg { width: 18px !important; height: 18px !important; fill: currentColor !important; }
.uesa-footer__legal {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
}
.uesa-footer__legal a {
    font-size: .78rem !important;
    color: rgba(255,255,255,.5) !important;
}
.uesa-footer__legal a:hover { color: rgba(255,255,255,.9) !important; }
/* ══════════════════════════════════════════
   NOTICIA DETALLE - Brentford Style
   ══════════════════════════════════════════ */

.noticia-detalle {
    width: 100%;
}

/* Hero Header - Estilo con contenido a la izquierda e imagen a la derecha */
.noticia-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 450px;
    background: #fff;
    overflow: hidden;
}

.noticia-hero__content {
    flex: 0 0 55%;
    max-width: 55%;
    background: var(--uesa-yellow, #f5c200);
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* Patrón de puntos amarillos (halftone) */
    background-image: radial-gradient(circle, rgba(11, 65, 155, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.noticia-hero__image {
    flex: 0 0 45%;
    max-width: 45%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.noticia-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-hero__titulo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #061e52;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.noticia-hero__subtitulo {
    font-size: 1.1rem;
    color: #061e52;
    margin: 0 0 1.5rem;
    line-height: 1.5;
    opacity: 0.9;
}

.noticia-hero__meta {
    color: #061e52;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.noticia-hero__meta time {
    font-weight: 600;
}

/* Contenido */
.noticia-contenido {
    background: #fff;
    padding: 3rem 5rem;
}

.noticia-contenido__body {
    max-width: 800px;
    margin: 0 auto;
    color: #0B419B;
}

.noticia-texto {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0B419B;
}

.noticia-texto p:first-of-type::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin: 0.1rem 0.5rem 0 0;
    color: #0b419b;
    font-weight: 800;
}

/* Galería */
.noticia-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.noticia-galeria__item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* CMS Gallery Styles */
.cms-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.cms-gallery .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 2;
}

.cms-gallery .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.cms-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cms-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

/* Video embebido responsive (YouTube) */
.noticia-contenido__body iframe[src*="youtube.com"],
.noticia-contenido__body iframe[src*="youtu.be"] {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    border: none;
    margin: 2.5rem 0;
    display: block;
    height: auto !important;
}

/* Audio embebido (Ivoox, Spotify, etc.) */
.noticia-contenido__body iframe[src*="ivoox.com"],
.noticia-contenido__body iframe[src*="spotify.com"],
.noticia-contenido__body iframe[src*="soundcloud.com"],
.noticia-contenido__body iframe[src*="mixcloud.com"] {
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    border: none;
    margin: 2rem 0;
    display: block;
}

/* Lightbox Modal */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.gallery-lightbox__close:hover {
    color: var(--uesa-yellow, #f5c200);
}

.gallery-lightbox__image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
}

.gallery-lightbox__nav:hover {
    color: var(--uesa-yellow, #f5c200);
}

.gallery-lightbox__prev {
    left: 20px;
}

.gallery-lightbox__next {
    right: 20px;
}

/* Tags clickables - estilo botón amarillo */
.noticia-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.noticia-categorias a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #f5c200;
    color: #061e52;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.noticia-categorias a:hover {
    background: #e0b100;
    transform: translateY(-2px);
}

/* Mobile responsive for hero */
@media (max-width: 1024px) {
    .noticia-hero {
        flex-direction: column;
        min-height: auto;
    }

    .noticia-hero__content {
        flex: none;
        max-width: 100%;
        padding: 2.5rem 2rem;
        order: 2;
    }

    .noticia-hero__image {
        flex: none;
        max-width: 100%;
        height: 300px;
        order: 1;
    }
}

@media (max-width: 768px) {
    .noticia-hero__content {
        padding: 2rem 1.5rem;
    }

    .noticia-hero__titulo {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .noticia-hero__subtitulo {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .noticia-hero__meta {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .noticia-hero__image {
        height: 250px;
    }

    .noticia-contenido {
        padding: 2rem 1.5rem;
    }

    .noticia-texto {
        font-size: 1rem;
    }

    .noticia-texto p:first-of-type::first-letter {
        font-size: 3rem;
    }
}

.uesa-footer__copyright {
    font-size: .78rem !important;
    color: rgba(255,255,255,.4) !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .uesa-footer__top { grid-template-columns: 1fr 1fr !important; padding: 32px 20px !important; }
    .uesa-footer__brand { grid-column: 1 / -1 !important; }
    .uesa-footer__bottom-inner { flex-direction: column !important; align-items: flex-start !important; padding: 20px !important; }
}



/* ============================================================
   Listado de noticias /noticies y /tags/{slug}  (news-list)
   Replica del estilo de plantillasantandreu (news-card grid)
   ============================================================ */
.news-list-module { background: #f4f4f4; }

/* Cabecera: banner con patrón de rombos del club (igual que plantillasantandreu),
   título "Notícies" en azul + selector de tags a la derecha (estilo Brentford). */
.news-list-module .news-listing-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(150px, 16vw, 220px);
    padding: 32px 0 60px;
    background: #f5c504 url("/assets/images/da28ba4c6e6b4c6b1636.png") no-repeat center center;
    background-size: cover;
}
.news-list-module .news-listing-header__container {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}
.news-list-module .news-listing-header__title {
    color: #083080 !important;
    font-family: "Sting Regular", sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -2.4px;
    margin: 0 !important;
    text-transform: uppercase;
}
.news-list-module .news-listing-header__filter { margin-left: auto; }
.news-list-module .news-tag-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23083080' d='M6 8L0 0h12z'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat padding-box !important;
    border: 0 !important;
    border-radius: 4px !important;
    color: #083080 !important;
    cursor: pointer !important;
    display: inline-block !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    min-width: 220px !important;
    padding: 12px 40px 12px 16px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.15) !important;
}
.news-list-module .news-tag-select:focus { outline: 2px solid #083080; }

/* El tema aplica .news-list{margin-top:-68px}; se anula para que las tarjetas
   queden limpias debajo del banner, sin meterse bajo la cabecera. */
.news-list-module .news-list {
    margin-top: 24px;
    position: relative;
    z-index: 2;
    background: #f4f4f4;
    padding: 80px 0 100px;
}

.rts-blog-list-area {
    margin-top: 24px;
    padding: 40px 0 80px;
}

/* Mensaje cuando no hay contenido */
.rts-blog-list-area .text-center {
    text-align: center;
    width: 100%;
}

.rts-blog-list-area .text-center .disc {
    color: #666;
    font-size: 18px;
    padding: 60px 0;
}
.news-list__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 576px) { .news-list__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .news-list__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.news-card-wrap { display: block; height: 100%; }
.news-card {
    background: #fff;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(6, 30, 82, .06);
    transition: box-shadow .25s ease, transform .25s ease;
}
.news-card:hover { box-shadow: 0 8px 28px rgba(6, 30, 82, .14); transform: translateY(-3px); }
/* Imagen siempre arriba y pegada al borde superior; detalles debajo.
   El espacio sobrante (tarjetas con poco texto) queda abajo, no como franja arriba. */
.news-card__content { display: flex; flex-direction: column; height: 100%; }
.news-card__details { padding: 24px; }
.news-card__details__info { display: flex; align-items: center; }
.news-card__details__info .category-link { font-weight: 600; margin-right: 12px; }
.news-card__details__info .category-link a {
    color: #c61d23;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 2;
}
.news-card__details__info .category-link a:hover { text-decoration: underline; }
.news-card__details__info .date-label { color: #666; font-size: .9375rem; }
.news-card__title {
    color: #061e52;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 14px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__summary {
    color: #444;
    font-size: 1rem;
    line-height: 1.5;
    margin: 12px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__image { order: -1; overflow: hidden; max-height: 220px; }
.news-card__image img,
.news-card__image .responsive-image { display: block; width: 100%; height: 220px; object-fit: cover; }
.news-card__floating-link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.news-list__empty { padding: 96px 0; text-align: center; color: #666; font-size: 1.125rem; }

/* Paginación */
.pagination {
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 48px;
}
.pagination .pager { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination .pager__item { height: 42px; width: 42px; }
.pagination .pager__item-link {
    align-items: center;
    border-radius: 4px;
    color: #061e52;
    display: flex;
    font-weight: 600;
    height: 100%;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    transition: background .2s ease, color .2s ease;
}
.pagination .pager__item-link:hover { background: #e7ebf5; }
.pagination .pager__item--active .pager__item-link { background: #c61d23; color: #fff; }
.pagination .pager__item--ellipsis {
    align-items: flex-end;
    color: #061e52;
    display: flex;
    justify-content: center;
    font-weight: 600;
}
.pagination .next-page,
.pagination .previous-page {
    color: #061e52;
    font-weight: 600;
    text-decoration: none;
}
.pagination .next-page:hover,
.pagination .previous-page:hover { color: #c61d23; }

/* ══════════════════════════════════════════
   CONTENT BLOCK IMAGE — fix posición imagen
   El CSS de Brentford tiene --right e --left invertidos.
   ══════════════════════════════════════════ */
@media(min-width:1024px){
  .content-block-image--right .content-block-image__image{order:1}
  .content-block-image--left  .content-block-image__image{order:-2}
}

/* ══════════════════════════════════════════
   CONTENT BLOCK IMAGE (Foto + Info)
   ══════════════════════════════════════════ */
.content-block-image{background:#c61d23;background-image:url(../images/da28ba4c6e6b4c6b1636.png);background-position:50%;background-repeat:no-repeat;background-size:cover;color:#fff;display:grid;grid-template-columns:1fr;overflow:hidden;position:relative}
@media(min-width:1024px){.content-block-image{grid-template-columns:repeat(2,1fr);min-height:720px}}
.content-block-image__smallTitle{font-size:16px;font-size:1rem;font-weight:400;line-height:1.1875;margin:0;text-transform:uppercase}
.content-block-image__content{margin:0 32px;padding:40.5px 0}
@media(min-width:768px){.content-block-image__content{margin:0 60px;padding:60px 0}}
@media(min-width:1176px){.content-block-image__content{margin:0 80px 0 120px;padding:80px 0}}
@media(min-width:1440px){.content-block-image__content{margin:0 80px 0 min(calc(50vw - 600px),120px)}}
.content-block-image__info{display:flex;font-size:16px;font-size:1rem;letter-spacing:.1em;line-height:1.1875;margin-bottom:20.5px}
@media(min-width:768px){.content-block-image__info{margin-bottom:32px}}
.content-block-image__title{font-family:'Sting Regular',sans-serif;font-size:48px;font-size:3rem;font-weight:400;letter-spacing:-2px;line-height:.9166666667;margin:0;text-transform:uppercase}
@media(min-width:768px){.content-block-image__title{font-size:48px;font-size:3rem;line-height:1}}
.content-block-image__description{display:block;margin:0 0 32px}
@media(min-width:1176px){.content-block-image__description{margin:0}}
.content-block-image__description p{font-size:20px;font-size:1.25rem;font-weight:400;line-height:1.2}
.content-block-image__image{order:-2;width:100%}
.content-block-image__image img{width:100%;height:375px;object-fit:cover}
/* Móvil/tablet: la <img> del responsive-image es position:absolute (bundle vendor);
   sin altura en el wrapper éste colapsa a 0 y la imagen se monta encima del texto.
   Le damos los mismos 375px que la img para que la contenga. En =1024px se sobreescribe a 100%. */
.content-block-image__image .responsive-image,
.content-block-image__image .responsive-image__preload-ref,
.content-block-image__image picture{display:block;height:375px}
@media(min-width:1024px){.content-block-image__image{order:1;height:100%}.content-block-image__image .responsive-image,.content-block-image__image .responsive-image__preload-ref,.content-block-image__image picture{display:block;height:100%}.content-block-image__image img{height:100%!important;width:100%}}
.content-block-image__button{display:flex}
.content-block-image__button .button{background:#fff;border:none;color:#c10000;font-family:'Karla Medium',sans-serif;margin:20px 0 55px;text-transform:uppercase}
.content-block-image__button .button__label{font-size:14px;font-size:.875rem;line-height:1.1428571429}
@media(min-width:768px){.content-block-image__button .button{margin-top:46px;padding:14px 35px}}
.content-block-image--darkRed{background:#370019}
.content-block-image--black{background:#0f0f0f}
.content-block-image--yellow{background:#ffb81c}
.content-block-image--lightGrey{background:#f4f4f4}
.content-block-image--lightGrey .content-block-image__smallTitle,.content-block-image--lightGrey .content-block-image__title,.content-block-image--yellow .content-block-image__title{color:#c10000}
.content-block-image--lightGrey .content-block-image__description,.content-block-image--lightGrey .content-block-image__info .category-link a,.content-block-image--yellow .content-block-image__description,.content-block-image--yellow .content-block-image__info .category-link a{color:#370019}
.content-block-image--lightGrey .content-block-image__button a,.content-block-image--yellow .content-block-image__button a{background:#c10000;color:#fff}
@media(min-width:1176px){.content-block-image--right .content-block-image__content{margin:0 120px 0 80px;padding-top:80px}}
@media(min-width:1440px){.content-block-image--right .content-block-image__content{margin:0 min(calc(50vw - 600px),120px) 0 80px}}

/* Mobile: imagen ocupa todo el ancho, texto debajo */
@media(max-width:767px){
.content-block-image{grid-template-columns:1fr}
}

/* ══════════════════════════════════════════
   CONTENT BLOCK IMAGE — Variante amarillo UESA
   ══════════════════════════════════════════ */
.content-block-image--uesa-yellow{background:var(--uesa-yellow,#f5c200);background-image:url(../images/da28ba4c6e6b4c6b1636.png);background-position:50%;background-repeat:no-repeat;background-size:cover}
.content-block-image--uesa-yellow .content-block-image__smallTitle,
.content-block-image--uesa-yellow .content-block-image__title{color:var(--uesa-blue-deep,#061e52)}
.content-block-image--uesa-yellow .content-block-image__description,
.content-block-image--uesa-yellow .content-block-image__info .category-link a{color:var(--uesa-blue-deep,#061e52)}
.content-block-image--uesa-yellow .content-block-image__button a{background:var(--uesa-blue,#0b419b);color:#fff}

/* ══════════════════════════════════════════
   FULL WIDTH PROMO — Banner CTA
   ══════════════════════════════════════════ */

.full-width-promo {
    display: grid;
    place-content: center;
    width: 100%;
    padding: 52px 0;
}

.full-width-promo--uesa-yellow {
    background: var(--uesa-yellow, #f5c200);
    background-image: url(../images/da28ba4c6e6b4c6b1636.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--uesa-blue-deep, #061e52);
}

.full-width-promo__content {
    text-align: center;
}

.full-width-promo__title {
    font-family: 'Sting Regular', sans-serif;
    font-size: 30px;
    line-height: 22px;
    text-transform: uppercase;
    margin: 0 0 24px;
    color: var(--uesa-blue-deep, #061e52);
}

.full-width-promo__subtitle {
    font-family: 'Sting Regular', sans-serif;
    font-size: 20px;
    line-height: 22px;
    text-transform: uppercase;
    margin: 0 0 24px;
    color: var(--uesa-blue-deep, #061e52);
}

@media (max-width: 767px) {
    .full-width-promo {
        padding: 32px 16px;
    }
    .full-width-promo__title {
        font-size: 36px;
        line-height: 36px;
    }
    .full-width-promo__subtitle {
        font-size: 20px;
        line-height: 22px;
    }
}

.full-width-promo__button .button {
    display: inline-flex;
    align-items: center;
    padding: 14px 35px;
    background-color: var(--uesa-blue, #0b419b);
    color: #fff;
    border: none;
    font-family: 'Karla Medium', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.full-width-promo__button .button:hover {
    background-color: var(--uesa-blue-deep, #061e52);
    color: #fff;
}

.full-width-promo__button .button__label {
    padding-top: 2px;
    font-size: 14px;
    font-family: 'Karla Medium', sans-serif;
    text-transform: uppercase;
    line-height: 16px;
}

.full-width-promo__button .button__icon-end {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.full-width-promo__button .button__icon-end svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* =============================================
   Componente: Párrafo (content-block)
   ============================================= */
.content-block__wrapper .content-block {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .content-block__wrapper .content-block {
        padding: 120px 0;
    }
}

.content-block--white {
    background-color: #fff;
}

.content-block__wrapper .layout-grid {
    box-sizing: border-box;
    padding: 0 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .content-block__wrapper .layout-grid {
        padding: 0 60px;
    }
}

@media (min-width: 1200px) {
    .content-block__wrapper .layout-grid {
        padding: 0 calc(50vw - 600px);
    }
}

.content-block__wrapper .content-block__body {
    max-width: 784px;
    margin: 0 auto;
    font-family: 'Karla Regular', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
}

.content-block__wrapper .content-block__body h1,
.content-block__wrapper .content-block__body h2,
.content-block__wrapper .content-block__body h3,
.content-block__wrapper .content-block__body h4,
.content-block__wrapper .content-block__body h5,
.content-block__wrapper .content-block__body h6 {
    margin: 25px 0 40px;
    font-family: 'Karla Regular', sans-serif;
    line-height: 1.6;
}

.content-block__wrapper .content-block__body p {
    color: #333;
    font-family: 'Karla Regular', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 0 40px;
}

.content-block__wrapper .content-block__body ol,
.content-block__wrapper .content-block__body ul {
    color: #c10000;
    margin: 24px 0;
    padding-left: 40px;
}

.content-block__wrapper .content-block__body ul {
    list-style: disc;
}

.content-block__wrapper .content-block__body ol li,
.content-block__wrapper .content-block__body ol p,
.content-block__wrapper .content-block__body ul li,
.content-block__wrapper .content-block__body ul p {
    color: #370019;
    margin: 0 0 24px 20px;
}

.content-block__wrapper .content-block__body ol li::marker,
.content-block__wrapper .content-block__body ul li::marker {
    color: #c10000;
}

.content-block__wrapper .content-block__body ol {
    counter-reset: number;
    list-style-type: none;
}

.content-block__wrapper .content-block__body ol li {
    display: flex;
}

.content-block__wrapper .content-block__body ol li:before {
    color: #c10000;
    content: counter(number) " ";
    counter-increment: number;
    font-weight: 600;
    margin: 0 0 0 -18px;
    padding-right: 10px;
}

.content-block__wrapper .content-block__body a {
    color: #c10000;
    text-decoration: none;
}

.content-block__wrapper .content-block__body a:hover {
    text-decoration: underline;
}

.content-block__wrapper .content-block__body img {
    padding: 40px 0 60px;
    width: 100%;
}

/* Headings inside content-block--white richtext inherit content-block-image__title styles */
.content-block.content-block--white h1,
.content-block.content-block--white h2 {
    font-family: 'Sting Regular', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -2px;
    line-height: .9166666667;
    margin: 0 0 10px;
    text-transform: uppercase;
    color: #c10000;
}
@media (min-width: 768px) {
    .content-block.content-block--white h1,
    .content-block.content-block--white h2 {
        line-height: 1;
    }
}

/* ── Galería de imágenes (gallery-embed vanilla-JS carousel, peek style) ── */
/* Título: idéntico a Brentford FC — línea roja absoluta + Sting Regular grande */
.gallery-embed__title{display:block;position:relative;padding-left:7.5rem;font-size:clamp(2rem,4.5vw,3.5rem);font-family:'Sting Regular',sans-serif;font-weight:400;text-transform:uppercase;letter-spacing:-.04em;line-height:1;color:#1a1a1a;margin-bottom:1.5rem}
.gallery-embed__title::before{content:'';position:absolute;top:.5em;height:4px;background:#c10000;
  /* En pantallas >1200px la línea arranca desde el borde del viewport */
  left:min(0px,calc((1200px - 100vw) / 2));
  width:max(5.5rem,calc((100vw - 1200px) / 2 + 5.5rem))}
/* Gallery centrada como en Brentford: max-width 1200px, slides sangran hacia márgenes */
.gallery-embed{max-width:1200px;margin-left:auto;margin-right:auto;margin-bottom:4rem;overflow:visible}
/* Evitar scrollbar horizontal cuando slides desbordan en pantallas anchas */
body{overflow-x:hidden}
.gallery-embed-slides{width:100%;overflow:visible;position:relative;cursor:grab}
.gallery-embed-slides:active{cursor:grabbing}
.gallery-embed__track{display:flex!important;gap:16px;will-change:transform}
/* Cada item ocupa el 55% del ancho — prev/next asoman ~22% a cada lado */
.gallery-embed__item{flex:0 0 65%!important;min-width:0;opacity:.4;transition:opacity .3s}
.gallery-embed__item.is-active{opacity:1}
/* Evitar arrastre nativo del navegador en imágenes */
.gallery-embed__item img{pointer-events:none;-webkit-user-drag:none;user-select:none}
.gallery-embed-slides .responsive-image{aspect-ratio:16/9;overflow:hidden;background:#f0f0f0;border-radius:4px}
.gallery-embed-slides .responsive-image__preload-ref{width:100%;height:100%}
.gallery-embed-slides .responsive-image__preload-ref img{width:100%;height:100%;object-fit:cover;display:block}
/* Barra inferior: paginación alineada con el texto del título, controles a la derecha */
.gallery-embed__bottom{display:flex;align-items:center;justify-content:space-between;margin-top:1.75rem;padding-left:7.5rem;padding-right:0}
/* Paginación única: 01 ——— 06 */
.carousel-index{display:flex;align-items:center;gap:.5rem;list-style:none;padding:0;margin:0}
.carousel-index__current,.carousel-index__total{font-size:.75rem;font-weight:700;color:#1a1a1a;font-family:inherit}
.carousel-index__divider{border:0;border-top:1px solid #1a1a1a;width:2rem;margin:0;flex-shrink:0}
/* Controles prev/next */
.carousel__controls{display:flex;gap:.5rem;margin:0}
.carousel__previous-slide,.carousel__next-slide{background:none;border:none;cursor:pointer;padding:.35rem;display:flex;align-items:center;justify-content:center;opacity:.7;transition:opacity .2s}
.carousel__previous-slide:hover,.carousel__next-slide:hover{opacity:1}
.carousel__previous-slide svg,.carousel__next-slide svg{width:20px;height:20px;fill:currentColor}
.carousel__previous-slide svg{transform:rotate(180deg)}
/* ── fin galería ── */

/* ── FAQ Accordion Block ────────────────────────────────────────── */
.faq-accordion-block{background:#fff}
.faq-accordion-block__container{max-width:1200px;margin:0 auto;padding:60px 20px}
.faq-accordion-block__title{font-family:"Sting Regular",sans-serif;font-size:48px;text-transform:uppercase;color:#370019;display:flex;align-items:center;gap:20px;margin-bottom:40px;line-height:1.1}
.faq-accordion-block__title::before{content:'';display:block;width:40px;height:4px;background:#c61d23;flex-shrink:0}
.faq-panel{border-bottom:1px solid #d9d9d6}
.faq-panel:first-child{border-top:1px solid #d9d9d6}
.faq-panel__label{display:flex;justify-content:space-between;align-items:center;width:100%;padding:24px 0;background:none;border:none;cursor:pointer;text-align:left;color:#370019;font-size:24px;font-family:inherit;gap:16px;line-height:1.3}
.faq-panel__label:hover{opacity:.8}
.faq-panel__icon{font-style:normal;flex-shrink:0;font-size:24px;line-height:1}
.faq-panel__inner{overflow:hidden;max-height:0;transition:max-height .3s ease}
.faq-panel.is-open .faq-panel__inner{max-height:5000px}
.faq-panel__content{padding-bottom:40px;font-size:16px;line-height:1.7;color:#000}
.faq-panel__content p{margin:0 0 1em}
.faq-panel__content ul,.faq-panel__content ol{padding-left:1.5em;margin:0 0 1em}
.faq-panel__content a{color:#c61d23;text-decoration:underline}
@media(max-width:768px){.faq-accordion-block__container{padding:40px 16px}.faq-accordion-block__title{font-size:32px;gap:14px}.faq-accordion-block__title::before{width:28px}.faq-panel__label{font-size:18px;padding:18px 0}}
/* ── fin FAQ ─────────────────────────────────────────────────────── */

/* ── ni: Notícia detall ──────────────────────────────────────── */
.ni-article { display: block; }
.ni-hero {
  display: flex;
  min-height: 340px;
}
.ni-hero__left {
  width: 50%;
  background-color: #F5C504;
  background-image: radial-gradient(circle, rgba(0,0,0,0.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}
.ni-hero__title {
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 900;
  color: #061E52;
  line-height: 1.2;
  margin: 0 0 14px;
}
.ni-hero__date {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #061E52;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.ni-hero__subtitle {
  font-size: 15px;
  color: #061E52;
  opacity: 0.82;
  line-height: 1.55;
  margin: 0;
}
.ni-hero__right {
  width: 50%;
  overflow: hidden;
  background: #0d1b3e;
}
.ni-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ni-body {
  padding: 48px 24px;
}
.ni-body__inner {
  max-width: 760px;
  margin: 0 auto;
}
.ni-body__content {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
}
.ni-body__content p { margin: 0 0 20px; }
.ni-body__media {
  margin: 32px 0;
}
.ni-body__media iframe {
  max-width: 100%;
  display: block;
  margin-bottom: 16px;
}
.ni-body__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 32px 0;
}
.ni-body__gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}
.ni-body__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}
.ni-body__tag {
  background: #F5C504;
  color: #061E52;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.ni-body__tag:hover { opacity: 0.75; }
@media (max-width: 767px) {
  .ni-hero { flex-direction: column-reverse; }
  .ni-hero__left,
  .ni-hero__right { width: 100%; }
  .ni-hero__right { height: 240px; }
  .ni-body__gallery { grid-template-columns: repeat(2, 1fr); }
}
/* Video responsive */
.ni-body__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 32px 0;
}
.ni-body__video iframe,
.ni-body__video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* Audio */
.ni-body__audio {
  margin: 32px 0;
}
.ni-body__audio iframe {
  width: 100%;
  border: 0;
  display: block;
}
/* Gallery thumbnails */
.ni-gallery__thumb {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}
.ni-gallery__thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s ease;
  display: block;
}
.ni-gallery__thumb:hover img { transform: scale(1.04); }
/* Modal fullscreen */
.ni-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ni-modal[hidden] { display: none; }
.ni-modal__img-wrap {
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ni-modal__img-wrap img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}
.ni-modal__close,
.ni-modal__prev,
.ni-modal__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 12px;
  transition: color 0.2s;
}
.ni-modal__close:hover,
.ni-modal__prev:hover,
.ni-modal__next:hover { color: #F5C504; }
.ni-modal__close {
  top: 16px; right: 20px;
  font-size: 28px;
}
.ni-modal__prev {
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
}
.ni-modal__next {
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
}
.ni-modal__counter {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 1px;
}
/* ── fi notícia detall ───────────────────────────────────────── */

/* Taula Tècnica */
.tt-wrap {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.tt-header {
  background: linear-gradient(135deg, #061E52 0%, #0b419b 100%);
  padding: 16px 24px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #F5C504;
}
.tt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #e8e8e8;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.tt-card {
  background: #fff;
  padding: 20px 20px 16px;
  position: relative;
}
.tt-card--full { grid-column: span 2; }
.tt-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}
.tt-card__value {
  font-size: 17px;
  font-weight: 800;
  color: #061E52;
  line-height: 1.3;
}
.tt-card__bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #F5C504;
}
@media (max-width: 600px) {
  .tt-grid { grid-template-columns: 1fr; }
  .tt-card--full { grid-column: span 1; }
}

/* Tabla Dinámica (ctd = custom table dynamic) */
.ctd-wrap {
  max-width: 1200px;
  margin: 20px auto 48px;
  padding: 0 20px;
}
.ctd-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #F5C504;
  background: linear-gradient(135deg, #061E52 0%, #0b419b 100%);
  padding: 14px 24px;
  border-radius: 8px 8px 0 0;
}
.ctd-title:empty { display: none; }
.ctd-wrap:not(:has(.ctd-title:empty)) .ctd-table-wrap { border-radius: 0 0 8px 8px; }
.ctd-table-wrap {
  overflow-x: auto;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e5e7eb;
  border-top: none;
}
.ctd-title:empty ~ .ctd-table-wrap {
  border-top: 1px solid #e5e7eb;
  border-radius: 8px;
}
.ctd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ctd-table thead tr {
  background: #061E52;
}
.ctd-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.ctd-table thead th:last-child { border-right: none; }
.ctd-table tbody tr:nth-child(even) { background: #f9fafb; }
.ctd-table tbody tr:hover { background: #f0f4ff; }
.ctd-table tbody td {
  padding: 11px 16px;
  color: #374151;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.5;
}
.ctd-table tbody td:last-child { border-right: none; }
.ctd-table tbody tr:last-child td { border-bottom: none; }

/* Editor de tabla en el admin */
.tbl-editor-table { width: 100%; border-collapse: collapse; }
.tbl-editor-table td.p-0\.5 { padding: 2px; }

@media (max-width: 600px) {
  .ctd-wrap { padding: 0 12px; }
}

/* ── grid_tarjetas (componente CMS) ───────────────────────────── */
.cg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.cg-wrap { margin: 3rem 0; }
/* El título usa además la clase .gallery-embed__title (mismo estilo que el componente Galería, comp. 56).
   No redefinimos aquí font-size/margin/line-height para no pisar ese estilo; solo conservamos el ocultado en vacío. */
.cg-title:empty { display: none; }
.cg-grid {
    display: grid;
    grid-template-columns: repeat(var(--cg-cols, 3), 1fr);
    gap: 1.25rem;
    align-items: start;
}
.cg-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease, opacity 0.8s ease;
    opacity: 0;
}
.cg-card.is-visible {
    opacity: 1;
}
a.cg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
}
.cg-card__img { overflow: hidden; }
.cg-card__img img { width: 100%; height: auto; object-fit: contain; display: block; }
.cg-card__text {
    padding: .75rem 1rem;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
}
@media (max-width: 900px) {
    .cg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .cg-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   COMPONENTE: jugadores (colección)  —  listado + ficha
   Tema club: azul #083080. El bloque squad-listing-header / card colors
   ya estaba forzado a azul más arriba en este archivo; aquí se completa
   el layout de la cuadrícula y se añade la ficha de jugador.
   ========================================================================= */

/* ---- Listado: réplica fiel de equipo.php (fuentes Sting + flechas chevron) ---- */
@font-face {
    font-family: 'Sting Regular';
    src: url('/assets/fonts/sting-regular.woff2') format('woff2'),
         url('/assets/fonts/sting-regular.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'Sting Light';
    font-weight: 300;
    src: url('/assets/fonts/sting-light.woff2') format('woff2'),
         url('/assets/fonts/sting-light.woff') format('woff');
    font-display: swap;
}

.squad-listing--equip {
    background: #f4c400 url('/assets/images/da28ba4c6e6b4c6b1636.png') center/cover no-repeat;
    overflow: hidden;
}
.squad-listing-header {
    text-align: center;
    padding: 49px 0 40px;
}
.squad-listing-header__content { position: relative; max-width: 1280px; margin: 0 auto; }
.squad-listing-header__title {
    color: #083080 !important;
    font-family: 'Sting Regular', sans-serif;
    font-size: 44px;
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1.36;
    text-transform: uppercase;
    margin: 0 0 22px;
}
.squad-listing-header__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 32px;
}
.squad-listing-header__links button {
    background: none;
    border: none;
    cursor: pointer;
    color: #083080 !important;
    font-family: 'Sting Light', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 20px;
    padding: 0 0 4px;
    position: relative;
    opacity: .5;
}
.squad-listing-header__links button.squad-listing-header__links--active { opacity: 1; }
.squad-listing-header__links button.squad-listing-header__links--active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -12px;
    height: 3px;
    background: #083080;
}

/* Carrusel: pista con scroll-snap + flechas chevron (como slick) */
.squad-listing__track-wrap {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0 8px;
}
.squad-listing__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 60px;
}
.squad-listing__track::-webkit-scrollbar { display: none; }
.squad-listing__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: .75;
    transition: opacity .3s ease-in;
}
.squad-listing__arrow:hover { opacity: 1; }
.squad-listing__arrow::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 15px; height: 15px;
    border-top: 3px solid #083080;
    border-right: 3px solid #083080;
}
.squad-listing__arrow--next::after { transform: translate(-70%, -50%) rotate(45deg); }
.squad-listing__arrow--prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.squad-listing__arrow--prev { left: 6px; }
.squad-listing__arrow--next { right: 6px; }
.squad-listing__arrow[disabled] { opacity: .15; cursor: default; }

.squad-listing-card {
    position: relative;
    flex: 0 0 380px;
    width: 380px;
    height: 600px;
    overflow: hidden;
    padding: 0 29px;
    scroll-snap-align: start;
    text-decoration: none;
    display: block;
}
.squad-listing-card[hidden] { display: none; }
.squad-listing-card__heading {
    display: block;
    margin: 0;
    padding-top: 34px;
}
.squad-listing-card__first {
    display: block;
    font-family: 'Sting Regular', sans-serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
}
.squad-listing-card__last {
    display: block;
    font-family: 'Sting Regular', sans-serif;
    font-size: 50px;
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: .8;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
}
.squad-listing-card__number {
    display: block;
    font-family: 'Sting Light', sans-serif;
    font-size: 250px;
    font-weight: 300;
    letter-spacing: -.04em;
    line-height: .72;
    margin: 6px 0 0 -10px;
    position: relative;
    z-index: 1;        /* detrás de la foto (la foto recortada lo tapa) */
}
.squad-listing-card__image {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 420px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.squad-listing-card__image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}
.squad-listing-card__floating-link { position: absolute; inset: 0; z-index: 5; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Cos tècnic: mismo fondo que el equipo, un solo grupo (sin pestañas) ---- */
.squad-listing--cos-tecnic {
    background: #f4c400 url('/assets/images/da28ba4c6e6b4c6b1636.png') center/cover no-repeat;
    overflow: hidden;
}
.squad-listing--cos-tecnic .squad-listing-header__links { display: none; }
/* Cargo del técnico, bajo el nombre (sustituye al dorsal de los jugadores) */
.squad-listing-card__role {
    display: block;
    position: relative;
    z-index: 3;
    margin-top: 10px;
    color: #083080;
    font-family: 'Sting Light', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.1;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .squad-listing-header { padding: 20px 0 24px; }
    .squad-listing-header__content { display: flex; flex-direction: column; align-items: center; }
    .squad-listing-header__links { order: -1; padding: 0 8px; margin-bottom: 20px; }
    .squad-listing-header__title { font-size: 28px; margin-bottom: 0; }
    .squad-listing-header__links button { font-size: 14px; margin: 16px 10px; }
    .squad-listing-card { flex-basis: 280px; width: 280px; height: 460px; }
    .squad-listing-card__number { font-size: 180px; }
    .squad-listing-card__image { height: 320px; }
}

/* ---- Ficha individual (estilo Brentford, en azul club) ---- */
.player-profile { background: #fff; }
.player-profile__hero {
    position: relative;
    overflow: hidden;
    background-color: #F5C504;
    background-image: radial-gradient(circle, rgba(0,0,0,0.18) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    padding: 40px 24px 0;
}
.player-profile__hero .player-profile__number {
    position: absolute;
    top: -40px;
    right: 2vw;
    font-size: 360px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.06em;
    color: rgba(6, 30, 82, .10);
    margin: 0;
    z-index: 1;
}
.player-profile__image {
    position: absolute;
    right: 6vw;
    bottom: 0;
    height: 440px;
    z-index: 2;
}
.player-profile__image img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}
.player-profile__identity {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 32px;
}
.player-profile__position {
    display: inline-block;
    color: #061E52;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}
.player-profile__name {
    color: #061E52;
    margin: 0;
    line-height: .92;
    text-transform: uppercase;
}
.player-profile__name .player-profile__first {
    display: block;
    font-size: 32px;
    font-weight: 500;
}
.player-profile__name .player-profile__last {
    display: block;
    font-size: 64px;
    font-weight: 800;
}
.player-profile__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    border-bottom: 1px solid #e6e6e6;
}
.player-profile__stat {
    padding: 22px 16px;
    border-right: 1px solid #e6e6e6;
}
.player-profile__stat:nth-child(4n) { border-right: none; }
.player-profile__stat-label {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.player-profile__stat-value {
    display: block;
    color: #083080;
    font-size: 20px;
    font-weight: 700;
}
.player-profile__bio { padding: 40px 24px 64px; }
.player-profile__bio-inner {
    max-width: 760px;
    margin: 0 auto;
    color: #1f2937;
    font-size: 17px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .player-profile__hero { min-height: 360px; }
    .player-profile__hero .player-profile__number { font-size: 220px; }
    .player-profile__image { height: 300px; right: 2vw; }
    .player-profile__name .player-profile__last { font-size: 44px; }
    .player-profile__stats { grid-template-columns: repeat(2, 1fr); }
    .player-profile__stat:nth-child(4n) { border-right: 1px solid #e6e6e6; }
    .player-profile__stat:nth-child(2n) { border-right: none; }
}

/* ══════════════════════════════════════════
   ESTADÍSTIQUES JUGADOR (.pstats) — estilo Brentford, datos del CMS
   ══════════════════════════════════════════ */
.pstats {
    font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
    padding: 48px 0 40px;
    background-color: #f4f4f4;
    background-image: url('../images/stats-dots.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.pstats__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 36px;
}
.pstats__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.pstats__title {
    font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
    color: #061E52;
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: 1;
    margin: 0;
}
.pstats__season-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pstats__season-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.pstats__season-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #061E52;
    background: #fff;
    cursor: pointer;
}
.pstats__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid #e6e6e6;
    margin-bottom: 8px;
}
.pstats__nav-link {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.pstats__nav-link:hover { color: #083080; }
.pstats__nav-link.is-active {
    color: #061E52;
    border-bottom-color: #F5C504;
}
.pstats__cat {
    scroll-margin-top: 90px;
    padding-top: 24px;
}
.pstats__cat-title {
    font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
    color: #061E52;
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.005em;
    line-height: 1;
    margin: 0 0 14px;
}
.pstats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(6, 30, 82, 0.14);
    border-bottom: 1px solid rgba(6, 30, 82, 0.14);
}
.pstats__season[hidden] { display: none; }
.pstats__card {
    padding: 24px 16px;
    border-right: 1px solid rgba(6, 30, 82, 0.10);
    border-top: 1px solid rgba(6, 30, 82, 0.06);
}
.pstats__card:nth-child(4n) { border-right: none; }
.pstats__value {
    display: block;
    color: #083080;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}
.pstats__label {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
/* Targetes de disciplina: dibuix de targeta groga/vermella dins la tarjeta */
.pstats__card--yellow .pstats__value,
.pstats__card--red .pstats__value {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pstats__card--yellow .pstats__value::before,
.pstats__card--red .pstats__value::before {
    content: '';
    flex: none;
    width: 26px;
    height: 34px;
    border-radius: 4px;
    transform: rotate(8deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
}
.pstats__card--yellow .pstats__value::before { background: #FBC02D; }
.pstats__card--red .pstats__value::before { background: #E53935; }
@media (max-width: 900px) {
    .pstats { padding: 32px 0 24px; }
    .pstats__inner { padding: 0 20px; }
    .pstats__title { font-size: 32px; }
    .pstats__cat-title { font-size: 24px; }
    .pstats__grid { grid-template-columns: repeat(2, 1fr); }
    .pstats__card:nth-child(4n) { border-right: 1px solid rgba(6, 30, 82, 0.10); }
    .pstats__card:nth-child(2n) { border-right: none; }
    .pstats__value { font-size: 28px; }
}

/* ══════════════════════════════════════════
   PATROCINADORS BLOCK — réplica nativa idéntica a uesantandreuplantilla
   ══════════════════════════════════════════ */
.sponsors-block {
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    padding-bottom: 60px;
    /* Full-bleed: el fondo amarillo llega a los bordes (rompe el .container y el padding del .rts-blog-list-area) */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -64px;
    margin-bottom: -80px;
}
.sponsors-block .sponsors-block__bg-image {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    background-color: #f5c200;
    background-image: url(/assets/images/patrocinadores/7a410d45c51886e57f1c_10bb5ae9_yellow.png?v=4);
    background-position: 50% center;
    background-repeat: no-repeat;
    background-size: cover;
}
.sponsors-block .container { position: relative; z-index: 1; }
.sponsors-block .sponsors-block__title { text-align: left; padding: 40px 0 23px; }
.sponsors-block .sponsors-block__title__text {
    margin: 0;
    color: #061e52;
    font-family: "Sting Regular", sans-serif;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
}

/* Listas de logos */
.sponsors-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.sponsors-nav__item { display: flex; align-items: center; justify-content: center; flex: 0 0 calc(33.33% - 22px); }
.sponsors-nav__link { display: flex; align-items: center; justify-content: center; transition: opacity 0.2s; }
.sponsors-nav__link:hover { opacity: 0.75; }
.sponsors-nav .responsive-image { height: auto; padding: 0; }
.sponsors-nav .responsive-image img { position: static; width: 160px; height: auto; max-width: 100%; object-fit: contain; }

/* Grupos divididos: cada tier/categoría separada por una línea */
.sponsors-block__sponsors { padding: 36px 0; border-top: 1px solid rgba(255, 255, 255, 0.6); }
.sponsors-block__title + .sponsors-block__sponsors { border-top: none; padding-top: 12px; }
.sponsors-block__sponsors:last-of-type { padding-bottom: 0; }
.sponsors-block__sponsors:has(.sponsors-nav:empty) { display: none; }
/* primary (principales, logos grandes y centrados) */
.sponsors-block__sponsors--primary .sponsors-nav { width: fit-content; margin: 0 auto; }
.sponsors-block__sponsors--primary .sponsors-nav .responsive-image img { width: 180px; }
.sponsors-block__sponsors--secondary .sponsors-nav .responsive-image img { width: 160px; }

@media (min-width: 1176px) {
    .sponsors-block { padding-bottom: 120px; }
    .sponsors-block .sponsors-block__title { padding: 104px 0 23px; }
    .sponsors-block__sponsors--primary .sponsors-nav .responsive-image img { width: 222px; margin: 0 52px; }
}
@media (max-width: 900px) {
    .sponsors-block .sponsors-block__title__text { font-size: 28px; }
    .sponsors-nav .responsive-image img { width: 130px; }
    .sponsors-block__sponsors--primary .sponsors-nav .responsive-image img { width: 150px; }
}
@media (max-width: 600px) {
    .sponsors-block .sponsors-block__title__text { font-size: 22px; }
    .sponsors-nav { gap: 16px; }
    .sponsors-nav__item { flex: 0 0 calc(50% - 8px); }
    .sponsors-nav .responsive-image img,
    .sponsors-block__sponsors--primary .sponsors-nav .responsive-image img { width: 120px; }
}

/* Footer sponsors inline (enlaces compactos) */
.footer-sponsors-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-sponsors-list li { display: flex; align-items: center; }
.footer-sponsors-list a { display: flex; align-items: center; }
.footer-sponsors-list img { height: 32px; width: auto; object-fit: contain; }

@media (max-width: 560px) {
    .player-profile__image { opacity: 1; }
    .player-profile__stats { grid-template-columns: 1fr; }
    .player-profile__stat { border-right: none !important; border-bottom: 1px solid #e6e6e6; }
}

/* Fix: restaurar el contexto de posicionamiento de .responsive-image.
   El <img> interno es position:absolute; al perderse position:relative del
   contenedor (regresión introducida por reglas globales del commit de la
   galería f9656e7), la imagen se anclaba a .content-block-image (toda la fila)
   y tapaba la columna de info en foto_info / foto_info_amarillo / foto_info_boton. */
.responsive-image { position: relative; }

/* form-availability: bloque mostrado cuando un componente form/payment está fuera de plazo */
.form-availability { padding: 1.25rem 1.5rem; border-radius: 6px; margin: 1rem 0; font-size: 0.95rem; line-height: 1.5; }
.form-availability--before { background: #fff8e1; border-left: 4px solid #f59e0b; color: #78350f; }
.form-availability--after  { background: #fee2e2; border-left: 4px solid #ef4444; color: #7f1d1d; }
