/*
 * piguchin.com — identidad visual CNSO
 * Personalización reversible de la cabecera Helix Ultimate.
 */

/* Cabecera principal, incluida su versión fija al hacer scroll */
#sp-header {
    background-color: #064F70;
}

/* Menú principal: texto blanco sobre azul marino */
#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > span {
    color: #FFFFFF;
}

/* Hover, foco y elemento activo: verde PiguLiga */
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li:hover > span,
#sp-header .sp-megamenu-parent > li:focus-within > a,
#sp-header .sp-megamenu-parent > li:focus-within > span,
#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.active:hover > a {
    color: #FFFFFF;
}
#sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > a,
#sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > span,
#sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > a,
#sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > span {
    background-color: #399D78;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
}

/* Botón del menú móvil y togglers de cabecera */
#sp-header #offcanvas-toggler,
#sp-header #offcanvas-toggler > .fa,
#sp-header #offcanvas-toggler > .fas,
#sp-header #offcanvas-toggler > .far {
    color: #FFFFFF;
}

#sp-header #offcanvas-toggler:hover,
#sp-header #offcanvas-toggler:focus,
#sp-header #offcanvas-toggler:hover > .fa,
#sp-header #offcanvas-toggler:focus > .fa,
#sp-header #offcanvas-toggler:hover > .fas,
#sp-header #offcanvas-toggler:focus > .fas {
    color: #55C0E0;
}

/* Desplegables: acabado limpio y coordinado con el verde PiguLiga */
#sp-header .sp-megamenu-parent .sp-dropdown {
    margin-top: 0;
}
#sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
    background-color: #F5F8F7;
    border: 1px solid #D8E5DE;
    border-top: 3px solid #399D78;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item:not(:last-child) {
    border-bottom: 1px solid #D8E5DE;
}
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
    color: #184C3A;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    padding: 12px 18px;
    transition: background-color .18s ease, color .18s ease;
}
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
    color: #184C3A;
    background-color: #E1F0E8;
}

/* Ajustes de contraste: acceso y menu movil */
#sp-header .sp-sign-in,
#sp-header .sp-sign-in .far,
#sp-header .sp-sign-in .fas,
#sp-header .sp-profile-wrapper > a { color: #FFFFFF; }
#sp-header .sp-sign-in:hover,
#sp-header .sp-sign-in:focus,
#sp-header .sp-profile-wrapper > a:hover,
#sp-header .sp-profile-wrapper > a:focus { color: #55C0E0; }
#sp-header .burger-icon > span { background-color: #FFFFFF; }
#sp-header #offcanvas-toggler:hover .burger-icon > span,
#sp-header #offcanvas-toggler:focus .burger-icon > span { background-color: #55C0E0; }

/* Noticias de portada: Editorial y Última hora */
.noticias-editorial ul,
.noticias-ultima-hora ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.noticias-editorial li,
.noticias-ultima-hora li {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
}

.noticias-editorial li::marker,
.noticias-ultima-hora li::marker {
    content: "";
}

.noticias-editorial a,
.noticias-ultima-hora a {
    text-decoration: none;
}

.noticias-editorial a:hover,
.noticias-ultima-hora a:hover {
    text-decoration: underline;
}

/* Piguchin: presentación de artículos */
.article-details .article-header h1,
.article-details .article-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: #12384a;
}

.article-details .article-header {
    margin-bottom: 0.75rem;
}

/* Ocultar navegación anterior/siguiente dentro del artículo */
.article-details .pagination,
.article-details .com-content-article__pagination,
.article-details .pager {
    display: none !important;
}

.article-details img {
    max-width: 100%;
    height: auto;
}

.article-details figure img,
.article-details .item-image img {
    max-height: 430px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left top;
}

@media (max-width: 767px) {
    .article-details .article-header h1,
    .article-details .article-header h2 {
        font-size: 1.8rem;
    }

    .article-details figure img,
    .article-details .item-image img {
        max-height: 300px;
    }
}

/* Piguchin: fondo general suave para delimitar el contenido */
body {
    background-color: #EEF2F5;
}

/* Piguchin: panel blanco para Última Hora */
.noticias-ultima-hora {
    background-color: #FFFFFF;
    padding: 18px;
    border: 1px solid #DCE4EA;
    border-radius: 6px;
}

/* Piguchin: superficie blanca para el artículo individual */
.article-details {
    background-color: #FFFFFF;
    padding: 24px;
    border: 1px solid #DCE4EA;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .article-details {
        padding: 16px;
    }

    .noticias-ultima-hora {
        padding: 14px;
    }
}

/* Piguchin: tarjetas blancas para las noticias de portada */
.noticias-editorial .mod-articles-item {
    background-color: #FFFFFF;
    border: 1px solid #DCE4EA;
    border-radius: 6px;
    overflow: hidden;
}

.noticias-editorial .mod-articles-item-content {
    background-color: #FFFFFF;
}

/* Piguchin: verde de club para enlaces de noticias */
.noticias-editorial a,
.noticias-ultima-hora a,
.article-details a {
    color: #287747;
}

.noticias-editorial a:hover,
.noticias-ultima-hora a:hover,
.article-details a:hover {
    color: #1D5935;
}

/* Piguchin: acabado visual uniforme para tarjetas Editorial */
.noticias-editorial .mod-articles-item {
    height: 100%;
    border: 1px solid #DCE4EA;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(20, 48, 64, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.noticias-editorial .mod-articles-item:hover {
    border-color: #C5D5DE;
    box-shadow: 0 5px 14px rgba(20, 48, 64, 0.11);
}

.noticias-editorial .mod-articles-item-content {
    height: 100%;
    padding: 14px;
    background: #FFFFFF;
}

.noticias-editorial .mod-articles-item img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

.noticias-editorial .mod-articles-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 700;
}

.noticias-editorial .mod-articles-item-content > p {
    margin: 0 0 10px;
    color: #455762;
    font-size: 0.94rem;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .noticias-editorial .mod-articles-item-content {
        padding: 12px;
    }

    .noticias-editorial .mod-articles-item img {
        height: 210px;
    }
}

/* Piguchin: acabado final de tarjetas y noticias individuales */

/* Titular destacado en las tarjetas de portada */
.noticias-editorial .mod-articles-title {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #EAF3F8;
    border: 1px solid #D7E7F0;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(18, 56, 74, 0.08);
    color: #12384A;
    line-height: 1.4;
}

/* Mantener el color y el enlace del titular */
.noticias-editorial .mod-articles-title a {
    color: #12384A;
    text-decoration: none;
}

.noticias-editorial .mod-articles-title a:hover {
    color: #287747;
    text-decoration: none;
}

/* Un poco más de aire entre imagen y texto introductorio */
.noticias-editorial .mod-articles-item img {
    margin-bottom: 8px;
}

/* La imagen del artículo individual ocupa el ancho disponible */
.article-details figure img,
.article-details .item-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    object-fit: contain;
    object-position: center top;
}

@media (max-width: 767px) {
    .article-details figure img,
    .article-details .item-image img {
        width: 100%;
        max-height: none;
    }

    .noticias-editorial .mod-articles-title {
        padding: 9px 10px;
    }
}

/* Separación entre el titular y la imagen de portada */
.noticias-editorial .mod-articles-title {
    margin-bottom: 20px;
}

/* Separación visible entre título e imagen en Editorial */
.noticias-editorial .mod-articles-item img {
    margin-top: 8px;
}

/* Piguchin: metadatos del artículo individual */
.article-details .article-info {
    margin: 1.25rem 0 1.5rem;
    padding: 10px 14px;
    background-color: #F3F7F9;
    border-top: 1px solid #DCE4EA;
    border-bottom: 1px solid #DCE4EA;
    border-radius: 4px;
    color: #617481;
    font-size: 0.82rem;
    line-height: 1.7;
}

.article-details .article-info dt,
.article-details .article-info dd,
.article-details .article-info-term {
    color: #617481;
    font-size: 0.82rem;
}

.article-details .article-info a {
    color: #287747;
    text-decoration: none;
}

.article-details .article-info a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .article-details .article-info {
        padding: 9px 11px;
        margin: 1rem 0 1.25rem;
        font-size: 0.78rem;
    }
}

/* Ajuste: cerrar visualmente la franja de metadatos */
.article-details .article-info {
    border: 1px solid #D6E1E8;
    border-radius: 6px;
    box-sizing: border-box;
    padding: 11px 14px;
    margin: 1.25rem 0 1.5rem;
}

/* Piguchin: tipografía refinada para los metadatos */
.article-details .article-info,
.article-details .article-info dt,
.article-details .article-info dd,
.article-details .article-info-term {
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: #536B7A;
}

.article-details .article-info a {
    font-weight: 700;
}

@media (max-width: 767px) {
    .article-details .article-info,
    .article-details .article-info dt,
    .article-details .article-info dd,
    .article-details .article-info-term {
        font-size: 0.75rem;
    }
}

/* Piguchin: tarjetas individuales de Última Hora */
.noticias-ultima-hora .mod-articles-item {
    margin: 0 0 12px;
    padding: 0;
    background: #FFFFFF;
    border: 1px solid #DCE4EA;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(20, 48, 64, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.noticias-ultima-hora .mod-articles-item:hover {
    border-color: #C5D5DE;
    box-shadow: 0 4px 10px rgba(20, 48, 64, 0.10);
}

.noticias-ultima-hora .mod-articles-item-content {
    padding: 12px 13px;
    color: #455762;
    font-size: 0.9rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.noticias-ultima-hora .mod-articles-title {
    margin: 0 0 9px;
    padding: 9px 10px;
    background: #EAF3F8;
    border: 1px solid #D7E7F0;
    border-radius: 6px;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.4;
}

.noticias-ultima-hora .mod-articles-title a {
    color: #12384A;
    text-decoration: none;
}

.noticias-ultima-hora .mod-articles-title a:hover {
    color: #287747;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .noticias-ultima-hora .mod-articles-item-content {
        padding: 10px;
        font-size: 0.88rem;
    }

    .noticias-ultima-hora .mod-articles-title {
        padding: 8px 9px;
        font-size: 0.92rem;
    }
}

/* Piguchin: identidad verde para el panel Última Hora */
.noticias-ultima-hora {
    background-color: #F2F6F8;
    border: 1px solid #C9E0CE;
    border-radius: 8px;
}

/* Encabezado del módulo Última Hora centrado */
.noticias-ultima-hora .moduletable > h3,
.noticias-ultima-hora .module-title,
.noticias-ultima-hora > h3 {
    color: #205B38;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #C9E0CE;
}

/* Tarjetas blancas con bordes verdes suaves */
.noticias-ultima-hora .mod-articles-item {
    background: #FFFFFF;
    border-color: #C9E0CE;
}

.noticias-ultima-hora .mod-articles-item:hover {
    border-color: #9FC7A9;
    box-shadow: 0 4px 10px rgba(32, 91, 56, 0.10);
}

/* Titulares de Última Hora: verde oscuro */
.noticias-ultima-hora .mod-articles-title {
    background: #F1F7F2;
    border-color: #D8E8DB;
    color: #205B38;
}

.noticias-ultima-hora .mod-articles-title a {
    color: #205B38;
}

.noticias-ultima-hora .mod-articles-title a:hover {
    color: #287747;
}

@media (max-width: 767px) {
    .noticias-ultima-hora {
        padding: 14px;
    }
}

/* Piguchin: delimitar mejor el panel de Última Hora */
.noticias-ultima-hora {
    border: 2px solid #A8CBAF;
    box-shadow: 0 3px 10px rgba(32, 91, 56, 0.08);
}


/* Piguchin: encabezado enmarcado de Última Hora */
.noticias-ultima-hora .moduletable > h3,
.noticias-ultima-hora .module-title,
.noticias-ultima-hora > h3 {
    background: #F1F7F2;
    border: 1px solid #D8E8DB;
    border-radius: 7px;
    color: #205B38;
    text-align: center;
    padding: 11px 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 5px rgba(32, 91, 56, 0.06);
}


/* Piguchin: destacar el encabezado de la sección Última Hora */
.noticias-ultima-hora .moduletable > h3,
.noticias-ultima-hora .module-title,
.noticias-ultima-hora > h3 {
    background: #287747;
    border: 1px solid #205B38;
    border-radius: 7px;
    color: #FFFFFF;
    text-align: center;
    padding: 12px;
    margin-bottom: 18px;
    box-shadow: 0 3px 7px rgba(32, 91, 56, 0.15);
}


/* Piguchin: reproductor YouTube adaptable */
.noticias-editorial iframe[src*="youtube.com/embed"],
.noticias-editorial iframe[src*="youtube-nocookie.com/embed"],
#sp-component iframe[src*="youtube.com/embed"],
#sp-component iframe[src*="youtube-nocookie.com/embed"] {
    display: block;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    height: auto;
    margin-inline: auto;
}

/* Piguchin: ocultar el hamburguesa solo en escritorio */
@media (min-width: 992px) {
    #sp-header #offcanvas-toggler {
        display: none !important;
    }
}

/* Piguchin: separar redes sociales del menú en escritorio */
@media (min-width: 992px) {
    #sp-header #sp-menu > .sp-column {
        gap: 16px;
    }

    #sp-header #sp-menu .social-wrap {
        margin-left: 12px;
        flex-shrink: 0;
    }

    #sp-header #sp-menu .social-icons {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
    }
}

/* Piguchin: ajuste visual del menu superior sin alterar su disposicion */
@media (min-width: 992px) {
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown) > a,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown) > span {
        border-radius: 6px;
        transition: background-color .2s ease, border-radius .2s ease;
    }

    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > a,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > span,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > a,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > span {
        border-radius: 6px;
    }

    #sp-header .sp-megamenu-parent .sp-dropdown {
        width: max-content;
        min-width: 0;
    }

    #sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
        width: max-content;
        min-width: 0;
        padding: 8px 12px;
    }

    #sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
        white-space: nowrap;
        padding: 10px 8px;
    }
}

/* Piguchin: fondo verde compacto, sin cambiar la altura del menu */
@media (min-width: 992px) {
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > a,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > span,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > a,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > span {
        background-color: transparent !important;
        background-image: linear-gradient(#399D78, #399D78);
        background-repeat: no-repeat;
        background-size: 100% 38px;
        background-position: center;
        border-radius: 6px;
    }
}

/* Piguchin: esquinas redondeadas de la pastilla verde del menu */
@media (min-width: 992px) {
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > a,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > span,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > a,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > span {
        border-radius: 8px !important;
    }
}

/* Piguchin: redondeo real de la pastilla verde */
@media (min-width: 992px) {
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > a,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > span,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > a,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > span {
        position: relative;
        isolation: isolate;
        background: transparent !important;
        border-radius: 0 !important;
    }

    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > a::before,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):hover > span::before,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > a::before,
    #sp-header .sp-megamenu-parent > li:has(.sp-dropdown):focus-within > span::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: calc(50% - 19px);
        right: 0;
        bottom: auto;
        left: 0;
        height: 38px;
        background: #399D78;
        border-radius: 8px;
        pointer-events: none;
    }
}
/* Piguchin: cuadrícula pública de jornadas PiguLiga */
.piguliga-round-grid {
    max-width: 1200px;
    margin-inline: auto;
}

.piguliga-round-grid .piguliga-day-heading {
    margin: 0;
    padding: 12px 16px;
    color: #fff;
    background: #1769aa;
    border-radius: 8px 8px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.piguliga-round-grid .piguliga-slots {
    border: 1px solid #d9e2ec;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.piguliga-round-grid .piguliga-time-row {
    display: grid;
    grid-template-columns: 76px repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    padding: 10px;
    border-bottom: 1px solid #e3e9ef;
}

.piguliga-round-grid .piguliga-time-row:last-child {
    border-bottom: 0;
}

.piguliga-round-grid .piguliga-time {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #174a70;
}

.piguliga-round-grid .piguliga-match-cell {
    min-width: 0;
    padding: 10px;
    border-radius: 6px;
    overflow-wrap: anywhere;
}

.piguliga-round-grid .piguliga-match-cell.has-match {
    background: #eef7f2;
    border: 1px solid #cce7d8;
}

.piguliga-round-grid .piguliga-match-cell.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    color: #697586;
    background: #f5f7f9;
    border: 1px dashed #d4dce4;
    text-align: center;
    font-size: .9rem;
}

.piguliga-round-grid .piguliga-player {
    font-weight: 600;
    text-align: center;
}

.piguliga-round-grid .piguliga-player-separator {
    margin: 3px 0;
    color: #64748b;
    font-size: .8rem;
    text-align: center;
}

@media (max-width: 640px) {
    .piguliga-round-grid .piguliga-time-row {
        grid-template-columns: 58px repeat(2, minmax(0, 1fr));
        gap: 5px;
        padding: 6px;
    }

    .piguliga-round-grid .piguliga-match-cell {
        padding: 7px 4px;
        font-size: .88rem;
    }

    .piguliga-round-grid .piguliga-match-cell.is-empty {
        font-size: .78rem;
    }
}

/* PiguLiga: compactación de la jornada */
@media (min-width: 768px) {
  .piguliga-round-grid {
    margin-top: -28px;
  }

  .piguliga-round-grid > h1 {
    font-size: 2rem;
    margin-bottom: .15rem !important;
    line-height: 1.2;
  }

  .piguliga-round-grid > h2 {
    margin-bottom: .8rem !important;
    line-height: 1.2;
  }

  .piguliga-round-grid .piguliga-day.mb-4 {
    margin-bottom: .8rem !important;
  }

  .piguliga-round-grid .piguliga-day-heading {
    padding: 8px 14px;
  }

  .piguliga-round-grid .piguliga-time-row {
    gap: 6px;
    padding: 6px 8px;
  }

  .piguliga-round-grid .piguliga-match-cell {
    padding: 6px 8px;
    line-height: 1.25;
  }

  .piguliga-round-grid .piguliga-player-separator {
    margin: 1px 0;
  }

  .piguliga-round-grid .piguliga-match-cell.is-empty {
    min-height: 42px;
    padding-block: 5px;
  }
}

@media (max-width: 767px) {
  .piguliga-round-grid .piguliga-day.mb-4 {
    margin-bottom: 1rem !important;
  }

  .piguliga-round-grid .piguliga-time-row {
    padding-block: 5px;
  }

  .piguliga-round-grid .piguliga-match-cell {
    padding-block: 6px;
    line-height: 1.3;
  }
}

/* PiguLiga: compactación de la jornada */
@media (min-width: 768px) {
  .piguliga-round-grid {
    margin-top: -28px;
  }

  .piguliga-round-grid > h1 {
    font-size: 2rem;
    margin-bottom: .15rem !important;
    line-height: 1.2;
  }

  .piguliga-round-grid > h2 {
    margin-bottom: .8rem !important;
    line-height: 1.2;
  }

  .piguliga-round-grid .piguliga-day.mb-4 {
    margin-bottom: .8rem !important;
  }

  .piguliga-round-grid .piguliga-day-heading {
    padding: 8px 14px;
  }

  .piguliga-round-grid .piguliga-time-row {
    gap: 6px;
    padding: 6px 8px;
  }

  .piguliga-round-grid .piguliga-match-cell {
    padding: 6px 8px;
    line-height: 1.25;
  }

  .piguliga-round-grid .piguliga-player-separator {
    margin: 1px 0;
  }

  .piguliga-round-grid .piguliga-match-cell.is-empty {
    min-height: 42px;
    padding-block: 5px;
  }
}

@media (max-width: 767px) {
  .piguliga-round-grid .piguliga-day.mb-4 {
    margin-bottom: 1rem !important;
  }

  .piguliga-round-grid .piguliga-time-row {
    padding-block: 5px;
  }

  .piguliga-round-grid .piguliga-match-cell {
    padding-block: 6px;
    line-height: 1.3;
  }
}

/* PiguLiga: limitar ancho de la jornada en escritorio */
@media (min-width: 768px) {
  .piguliga-round-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Fix: permitir que los submenús de segundo nivel sobresalgan */
@media (min-width: 992px) {
    #sp-header .sp-megamenu-parent .sp-dropdown,
    #sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner,
    #sp-header .sp-megamenu-parent .sp-dropdown ul {
        overflow: visible;
    }

    #sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item {
        position: relative;
    }

    #sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > .sp-dropdown {
        top: -3px;
        left: 100%;
        margin-left: 0;
        z-index: 10000;
    }
}

/* Indicador visual de submenú de segundo nivel */
@media (min-width: 992px) {
    #sp-header .sp-megamenu-parent .sp-dropdown li.parent > a,
    #sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item-has-children > a {
        position: relative;
        padding-right: 28px;
    }

    #sp-header .sp-megamenu-parent .sp-dropdown li.parent > a::after,
    #sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item-has-children > a::after {
        content: "›";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        line-height: 1;
        color: #399D78;
    }
}

/* Liga Social: flechas y alineación de submenús */
@media (min-width: 992px) {
    #sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
        overflow: visible;
    }

    #sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
    #sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > span.sp-menu-heading {
        box-sizing: border-box;
        display: block;
        width: 100%;
        padding-left: 18px;
        text-align: left;
    }

    #sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.sp-has-child > span.sp-menu-heading {
        position: relative;
        padding-right: 32px;
    }

    #sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.sp-has-child > span.sp-menu-heading::after {
        content: "›";
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #399D78;
        font-size: 20px;
        line-height: 1;
    }
}

/* Liga Social: altura uniforme en el primer desplegable */
@media (min-width: 992px) {
    #sp-header .sp-megamenu-parent > li > .sp-dropdown
    .sp-dropdown-inner > ul > li > a,
    #sp-header .sp-megamenu-parent > li > .sp-dropdown
    .sp-dropdown-inner > ul > li > span.sp-menu-heading {
        box-sizing: border-box;
        min-height: 40px;
        padding-top: 9px;
        padding-bottom: 9px;
        line-height: 20px;
    }
}

/* PiguLiga: presentación pública de clasificaciones */
.piguliga-standings {
    max-width: 1320px;
    margin-inline: auto;
}

.piguliga-standings h1 {
    margin-bottom: .35rem !important;
    color: #174a70;
    font-weight: 700;
}

.piguliga-standings > p {
    margin-bottom: 1.5rem !important;
}

.piguliga-standings .table-responsive {
    margin-bottom: 1.5rem;
    border: 1px solid #d9e2ec;
    border-radius: 9px;
    background: #fff;
}

.piguliga-standings table {
    margin-bottom: 0;
    font-size: .94rem;
}

.piguliga-standings table thead th {
    padding: 11px 10px;
    background: #1769aa;
    color: #fff;
    border-color: #d4e0eb;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.piguliga-standings table tbody td,
.piguliga-standings table tbody th {
    padding: 9px 10px;
    border-color: #e0e7ee;
    vertical-align: middle;
}

.piguliga-standings table tbody td:not(:nth-child(2)) {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.piguliga-standings table tbody td:nth-child(2),
.piguliga-standings table tbody th:first-child {
    font-weight: 600;
}

.piguliga-standings .piguliga-promotion-direct > * {
    background-color: #dff2e5 !important;
}

.piguliga-standings .piguliga-promotion-playoff > * {
    background-color: #e0f2f5 !important;
}

.piguliga-standings .piguliga-relegation-direct > * {
    background-color: #fbe4e4 !important;
}

.piguliga-standings .piguliga-relegation-playoff > * {
    background-color: #fff0d5 !important;
}

.piguliga-standings .piguliga-results-matrix {
    min-width: 760px;
    font-size: .82rem;
}

.piguliga-standings .piguliga-results-matrix thead th,
.piguliga-standings .piguliga-results-matrix tbody th {
    min-width: 100px;
    font-weight: 600;
}

.piguliga-standings .piguliga-results-matrix tbody td {
    min-width: 84px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
    .piguliga-standings table {
        font-size: .82rem;
    }

    .piguliga-standings table thead th,
    .piguliga-standings table tbody td,
    .piguliga-standings table tbody th {
        padding: 7px 8px;
    }

    .piguliga-standings .piguliga-results-matrix {
        min-width: 720px;
    }
}

/* PiguLiga: matriz de resultados para categorías de hasta 10 jugadores */
.piguliga-standings .piguliga-results-matrix {
    width: 100%;
    table-layout: fixed;
    min-width: 1050px;
    font-size: .82rem;
    border-collapse: separate;
    border-spacing: 0;
}

.piguliga-standings .piguliga-results-matrix th,
.piguliga-standings .piguliga-results-matrix td {
    padding: 8px 5px;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.piguliga-standings .piguliga-results-matrix thead th:first-child,
.piguliga-standings .piguliga-results-matrix tbody th {
    width: 170px;
    min-width: 170px;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
}

.piguliga-standings .piguliga-results-matrix thead th:not(:first-child),
.piguliga-standings .piguliga-results-matrix tbody td {
    width: 88px;
    min-width: 88px;
}

.piguliga-standings .piguliga-results-matrix .piguliga-results-diagonal {
    background: #526273 !important;
    color: #526273 !important;
    box-shadow: inset 0 0 0 1px #435160;
}

@media (max-width: 767px) {
    .piguliga-standings .piguliga-results-matrix {
        min-width: 1050px;
        font-size: .78rem;
    }

    .piguliga-standings .piguliga-results-matrix thead th:first-child,
    .piguliga-standings .piguliga-results-matrix tbody th {
        width: 150px;
        min-width: 150px;
    }

    .piguliga-standings .piguliga-results-matrix thead th:not(:first-child),
    .piguliga-standings .piguliga-results-matrix tbody td {
        width: 88px;
        min-width: 88px;
    }
}

/* PiguLiga: matriz compacta y adaptable al ancho disponible */
.piguliga-standings .table-responsive:has(.piguliga-results-matrix) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.piguliga-standings .piguliga-results-matrix {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    font-size: clamp(.62rem, .8vw, .82rem);
}

.piguliga-standings .piguliga-results-matrix th,
.piguliga-standings .piguliga-results-matrix td {
    min-width: 0 !important;
    padding: 7px 3px;
    overflow-wrap: anywhere;
}

.piguliga-standings .piguliga-results-matrix thead th:first-child,
.piguliga-standings .piguliga-results-matrix tbody th {
    width: 20%;
    min-width: 0 !important;
    text-align: left;
    overflow-wrap: anywhere;
}

.piguliga-standings .piguliga-results-matrix thead th:not(:first-child),
.piguliga-standings .piguliga-results-matrix tbody td {
    width: 8%;
}

@media (max-width: 767px) {
    .piguliga-standings .piguliga-results-matrix {
        min-width: 760px !important;
        font-size: .75rem;
    }

    .piguliga-standings .piguliga-results-matrix thead th:first-child,
    .piguliga-standings .piguliga-results-matrix tbody th {
        width: 150px;
    }

    .piguliga-standings .piguliga-results-matrix thead th:not(:first-child),
    .piguliga-standings .piguliga-results-matrix tbody td {
        width: auto;
    }
}

/* PiguLiga: matriz de resultados compacta, sin estirar columnas */
.piguliga-standings .piguliga-results-matrix {
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: auto !important;
    font-size: .8rem;
}

.piguliga-standings .piguliga-results-matrix th,
.piguliga-standings .piguliga-results-matrix td {
    width: auto !important;
    min-width: 0 !important;
    padding: 8px 10px;
    overflow-wrap: normal;
}

.piguliga-standings .piguliga-results-matrix thead th:first-child,
.piguliga-standings .piguliga-results-matrix tbody th {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px;
    white-space: normal;
    text-align: left;
}

.piguliga-standings .piguliga-results-matrix thead th:not(:first-child),
.piguliga-standings .piguliga-results-matrix tbody td {
    width: 115px !important;
    min-width: 115px !important;
    max-width: 115px;
    text-align: center;
}

@media (max-width: 767px) {
    .piguliga-standings .piguliga-results-matrix {
        max-width: none;
    }

    .piguliga-standings .piguliga-results-matrix thead th:first-child,
    .piguliga-standings .piguliga-results-matrix tbody th {
        width: 135px !important;
        min-width: 135px !important;
        max-width: 135px;
    }

    .piguliga-standings .piguliga-results-matrix thead th:not(:first-child),
    .piguliga-standings .piguliga-results-matrix tbody td {
        width: 95px !important;
        min-width: 95px !important;
        max-width: 95px;
    }
}

/* PiguLiga: evitar que el contenedor de resultados se estire */
.piguliga-standings .table-responsive:has(> .piguliga-results-matrix) {
    display: block;
    width: fit-content;
    max-width: 100%;
    background: transparent;
    border: 0;
    overflow-x: auto;
}

.piguliga-standings .piguliga-results-matrix {
    width: max-content !important;
    max-width: none !important;
    margin-bottom: 0;
}


/* PiguLiga: bordes visibles para clasificación y resultados */
.piguliga-standings .table-responsive:has(.piguliga-results-matrix),
.piguliga-standings .table-responsive:not(:has(.piguliga-results-matrix)) {
    border: 1px solid #b8c8d8;
    border-radius: 7px;
    overflow: hidden;
}

.piguliga-standings .table-responsive:has(.piguliga-results-matrix) {
    border-color: #b8c8d8;
}

.piguliga-standings .piguliga-results-matrix,
.piguliga-standings .table-responsive table {
    border-color: #b8c8d8;
}

.piguliga-standings .piguliga-results-matrix th,
.piguliga-standings .piguliga-results-matrix td {
    border: 1px solid #cbd6e2;
}


/* PiguLiga: ancho natural de la matriz de resultados */
.piguliga-standings .table-responsive:has(> .piguliga-results-matrix) {
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

.piguliga-standings .piguliga-results-matrix {
    display: table;
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    table-layout: auto !important;
}

.piguliga-standings .piguliga-results-matrix th,
.piguliga-standings .piguliga-results-matrix td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap;
    padding: 8px 10px;
}

.piguliga-standings .piguliga-results-matrix thead th:first-child,
.piguliga-standings .piguliga-results-matrix tbody th {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    white-space: normal;
}

.piguliga-standings .piguliga-results-matrix .piguliga-results-diagonal {
    background: #526273 !important;
    color: #526273 !important;
}

@media (max-width: 767px) {
    .piguliga-standings .table-responsive:has(> .piguliga-results-matrix) {
        width: 100%;
    }
}

/* PiguLiga: nombres de jugador en una sola línea */
.piguliga-standings .piguliga-results-matrix thead th:first-child,
.piguliga-standings .piguliga-results-matrix tbody th {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}


/* PiguLiga: campeón y subcampeón */
.piguliga-standings .piguliga-champion > * {
    background-color: #f6d878 !important;
    color: #59400a;
    font-weight: 700;
}

.piguliga-standings .piguliga-runner-up > * {
    background-color: #dce3ea !important;
    color: #354556;
    font-weight: 700;
}

/* PiguLiga: leyenda de la clasificación */
.piguliga-standings-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 18px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #c5d2df;
    border-radius: 7px;
    background: #fff;
    font-size: .88rem;
}

.piguliga-standings-legend .piguliga-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.piguliga-standings-legend .piguliga-legend-swatch {
    display: inline-block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 1px solid rgba(35, 55, 75, .2);
    border-radius: 4px;
}

/* Muestras de color de la leyenda */
.piguliga-standings-legend .piguliga-promotion-direct {
    background: #dff2e5;
}

.piguliga-standings-legend .piguliga-promotion-playoff {
    background: #e0f2f5;
}

.piguliga-standings-legend .piguliga-relegation-direct {
    background: #fbe4e4;
}

.piguliga-standings-legend .piguliga-relegation-playoff {
    background: #fff0d5;
}

.piguliga-standings-legend .piguliga-champion {
    background: #f6d878;
}

.piguliga-standings-legend .piguliga-runner-up {
    background: #dce3ea;
}

@media (max-width: 767px) {
    .piguliga-standings-legend {
        gap: 9px 12px;
        padding: 10px;
        font-size: .82rem;
    }
}


/* PiguLiga: clasificación compacta y leyenda lateral */
.piguliga-standings .piguliga-standings-layout {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(190px, 1fr);
    align-items: start;
    gap: 18px;
}
.piguliga-standings .piguliga-standings-table-wrap {
    min-width: 0;
}
.piguliga-standings-layout > .piguliga-standings-legend {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
    gap: 10px;
}
.piguliga-standings .piguliga-standings-table-wrap > table {
    width: auto;
    margin-bottom: 0;
}
.piguliga-standings .piguliga-standings-table-wrap th,
.piguliga-standings .piguliga-standings-table-wrap td {
    padding: 6px 9px;
    white-space: nowrap;
}
.piguliga-standings .piguliga-standings-table-wrap th:nth-child(2) {
    white-space: normal;
}
.piguliga-standings .piguliga-standings-legend .piguliga-promotion-direct,
.piguliga-standings tr.piguliga-promotion-direct > * {
    background-color: #dff2e5 !important;
}
.piguliga-standings .piguliga-standings-legend .piguliga-promotion-playoff,
.piguliga-standings tr.piguliga-promotion-playoff > * {
    background-color: #e0f2f5 !important;
}
.piguliga-standings .piguliga-standings-legend .piguliga-relegation-direct,
.piguliga-standings tr.piguliga-relegation-direct > * {
    background-color: #fbe4e4 !important;
}
.piguliga-standings .piguliga-standings-legend .piguliga-relegation-playoff,
.piguliga-standings tr.piguliga-relegation-playoff > * {
    background-color: #fff0d5 !important;
}

/* PiguLiga: matriz compacta con filas alternas */
.piguliga-standings .piguliga-results-matrix {
    width: max-content;
    min-width: 0;
    table-layout: auto;
    font-size: .82rem;
}
.piguliga-standings .piguliga-results-matrix th,
.piguliga-standings .piguliga-results-matrix td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none;
    padding: 6px 7px;
    white-space: nowrap;
}
.piguliga-standings .piguliga-results-matrix thead th:first-child,
.piguliga-standings .piguliga-results-matrix tbody th {
    width: 1%;
    min-width: 0 !important;
    max-width: none !important;
    padding-right: 12px;
    text-align: left;
    white-space: nowrap !important;
}
.piguliga-standings .piguliga-results-matrix tbody tr:nth-child(odd) > * {
    background-color: #f2f6f9;
}
.piguliga-standings .piguliga-results-matrix tbody tr:nth-child(even) > * {
    background-color: #fff;
}
.piguliga-standings .piguliga-results-matrix tbody td.piguliga-results-diagonal {
    background-color: #526273 !important;
    color: #fff !important;
}
@media (max-width: 991px) {
    .piguliga-standings .piguliga-standings-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .piguliga-standings-layout > .piguliga-standings-legend {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .piguliga-standings .piguliga-standings-table-wrap {
        overflow-x: auto;
    }
}

/* PiguLiga: equilibrio entre tabla de clasificación y leyenda */
.piguliga-standings .piguliga-standings-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
}

.piguliga-standings .piguliga-standings-table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.piguliga-standings .piguliga-standings-table-wrap > table {
    width: 100%;
    table-layout: auto;
}

.piguliga-standings .piguliga-standings-table-wrap th,
.piguliga-standings .piguliga-standings-table-wrap td {
    padding: 7px 8px;
}

/* Mismos colores en las filas y en sus muestras de leyenda.
   Se neutralizan también las capas de color de Bootstrap. */
.piguliga-standings tr.piguliga-promotion-direct > *,
.piguliga-standings .piguliga-standings-legend .piguliga-promotion-direct {
    --bs-table-bg: #dff2e5;
    background-color: #dff2e5 !important;
    box-shadow: none !important;
}

.piguliga-standings tr.piguliga-promotion-playoff > *,
.piguliga-standings .piguliga-standings-legend .piguliga-promotion-playoff {
    --bs-table-bg: #e0f2f5;
    background-color: #e0f2f5 !important;
    box-shadow: none !important;
}

.piguliga-standings tr.piguliga-relegation-direct > *,
.piguliga-standings .piguliga-standings-legend .piguliga-relegation-direct {
    --bs-table-bg: #fbe4e4;
    background-color: #fbe4e4 !important;
    box-shadow: none !important;
}

.piguliga-standings tr.piguliga-relegation-playoff > *,
.piguliga-standings .piguliga-standings-legend .piguliga-relegation-playoff {
    --bs-table-bg: #fff0d5;
    background-color: #fff0d5 !important;
    box-shadow: none !important;
}

.piguliga-standings tr.piguliga-champion > * {
    --bs-table-bg: #f6d878;
    background-color: #f6d878 !important;
    box-shadow: none !important;
}

.piguliga-standings tr.piguliga-runner-up > * {
    --bs-table-bg: #dce3ea;
    background-color: #dce3ea !important;
    box-shadow: none !important;
}

/* Leyenda más compacta, sin ocupar todo el espacio sobrante */
.piguliga-standings-layout > .piguliga-standings-legend {
    min-width: 0;
    padding: 12px;
    gap: 10px;
    align-self: start;
}

.piguliga-standings-legend .piguliga-legend-item {
    line-height: 1.35;
}

/* Matriz: columna de jugador ajustada y columnas de resultados compactas */
.piguliga-standings .piguliga-results-matrix {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: .8rem;
}

.piguliga-standings .piguliga-results-matrix thead th:first-child,
.piguliga-standings .piguliga-results-matrix tbody th {
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
    padding: 6px 8px;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: left;
}

.piguliga-standings .piguliga-results-matrix thead th:not(:first-child),
.piguliga-standings .piguliga-results-matrix tbody td {
    width: 90px;
    min-width: 0 !important;
    padding: 6px 5px;
    white-space: nowrap;
}

/* Franjas alternas de la matriz, conservando la diagonal */
.piguliga-standings .piguliga-results-matrix tbody tr:nth-child(odd) > * {
    background-color: #f1f5f8;
}

.piguliga-standings .piguliga-results-matrix tbody tr:nth-child(even) > * {
    background-color: #fff;
}

.piguliga-standings .piguliga-results-matrix tbody td.piguliga-results-diagonal {
    background-color: #526273 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px #435160;
}

@media (max-width: 991px) {
    .piguliga-standings .piguliga-standings-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .piguliga-standings-layout > .piguliga-standings-legend {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .piguliga-standings .piguliga-results-matrix {
        min-width: 950px;
    }
}

/* PiguLiga: ajuste fino de anchuras y espacio vertical */
.piguliga-standings .piguliga-standings-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
    gap: 16px;
}

/* Acercar el contenido a la cabecera */
body:has(.piguliga-standings) .sp-page-title,
body:has(.piguliga-standings) #sp-main-body {
    padding-top: 20px;
}

.piguliga-standings > h1 {
    margin-top: 0;
    margin-bottom: 8px !important;
}

.piguliga-standings > p.mb-4 {
    margin-bottom: 20px !important;
}

@media (max-width: 991px) {
    .piguliga-standings .piguliga-standings-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* PiguLiga: botones uniformes para propuestas de resultado */
.piguliga-proposal-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.piguliga-proposal-buttons form {
    display: flex;
    margin: 0;
}

.piguliga-proposal-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
}

@media (max-width: 575.98px) {
    .piguliga-proposal-buttons > form,
    .piguliga-proposal-buttons > a,
    .piguliga-proposal-buttons > button {
        flex: 1 1 100%;
    }
}

/* PiguLiga: compactar contador en Mi Liga */
#sp-header .sp-menu-item > .piguliga-bell-container { padding-left: 4px; padding-right: 0; }

/* PIGUCHIN LOGIN DROPDOWN START */
#sp-header .sp-login-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
#sp-header .sp-login-dropdown-toggle {
    cursor: pointer;
    font: inherit;
    background: transparent;
    border: 0;
    padding: 8px 10px;
}
#sp-header .sp-login-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
    width: 280px;
    max-width: calc(100vw - 24px);
    max-height: min(75vh, 620px);
    overflow-y: auto;
    padding: 18px;
    color: #222;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    text-align: left;
}
#sp-header .sp-login-dropdown-panel[hidden] {
    display: none !important;
}
#sp-header .sp-login-dropdown-panel .mod-login,
#sp-header .sp-login-dropdown-panel .mod-login__userdata {
    margin: 0;
    padding: 0;
}
#sp-header .sp-login-dropdown-panel .form-group {
    margin-bottom: 12px;
}
#sp-header .sp-login-dropdown-panel input.form-control {
    width: 100%;
    min-width: 0;
}
#sp-header .sp-login-dropdown-panel .input-group {
    display: flex;
    flex-wrap: nowrap;
}
#sp-header .sp-login-dropdown-panel .input-group .form-control {
    flex: 1 1 auto;
}
#sp-header .sp-login-dropdown-panel .btn {
    white-space: normal;
}
#sp-header .sp-login-dropdown-panel .mod-login__options {
    margin: 12px 0 0;
    padding: 0;
    font-size: 13px;
}
#sp-header .sp-login-dropdown-panel .mod-login__options li {
    margin: 6px 0;
}
#sp-header .sp-login-dropdown-panel .sp-login-full-link {
    margin: 14px 0 0;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    font-size: 13px;
}
@media (max-width: 991.98px) {
    #sp-header .sp-login-dropdown-panel {
        position: fixed;
        top: 80px;
        right: 12px;
    }
}
/* PIGUCHIN LOGIN DROPDOWN END */
/* PIGUCHIN DIRECT LOGOUT */
#sp-header .sp-profile-logout-form {
    margin: 0;
}
#sp-header .sp-profile-logout-form button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
#sp-header .sp-profile-logout-form button:hover,
#sp-header .sp-profile-logout-form button:focus {
    color: #55C0E0;
    background: rgba(0, 0, 0, .04);
}
/* PIGUCHIN FOOTER CONTACT START */
#sp-footer #sp-footer2 .sp-contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
}

#sp-footer #sp-footer2 .sp-contact-info li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    white-space: normal;
}

#sp-footer #sp-footer2 .sp-contact-info li > span {
    color: #2ba84a;
    flex: 0 0 auto;
}

#sp-footer #sp-footer2 .sp-contact-info li a {
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

#sp-footer #sp-footer2 .sp-contact-info li a:hover,
#sp-footer #sp-footer2 .sp-contact-info li a:focus {
    color: #2ba84a;
}

@media (max-width: 767.98px) {
    #sp-footer #sp-footer2 {
        text-align: left;
    }

    #sp-footer #sp-footer2 .sp-contact-info {
        justify-content: flex-start;
        gap: 8px 14px;
    }
}
/* PIGUCHIN FOOTER CONTACT END */

/* PIGUCHIN FOOTER TIME FORMAT */
#sp-footer #sp-footer2 .sp-contact-info .sp-contact-time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
    #sp-footer #sp-footer2 .sp-contact-info .sp-contact-time {
        white-space: normal;
    }
}
/* PIGUCHIN FOOTER TIME FORMAT END */

/* PIGUCHIN FOOTER TIME STYLE */
#sp-footer #sp-footer2 .sp-contact-info .sp-contact-time {
    color: inherit;
    font-size: 13px;
    font-weight: inherit;
    line-height: 1.6;
}
/* PIGUCHIN FOOTER TIME STYLE END */

/* PIGUCHIN FOOTER TIME COLOR */
#sp-footer #sp-footer2 .sp-contact-info .sp-contact-time {
    color: #2ba84a;
}
/* PIGUCHIN FOOTER TIME COLOR END */

/* PIGUCHIN FOOTER TIME COLOR FIX */
#sp-footer #sp-footer2 .sp-contact-info .sp-contact-time {
    color: #909196;
}
#sp-footer #sp-footer2 .sp-contact-info .sp-contact-time > span {
    color: #2ba84a;
}
/* PIGUCHIN FOOTER TIME COLOR FIX END */

/* PIGUCHIN HOME TOP SPACING */
body:not(.view-article) #sp-main-body {
    padding-top: 30px;
}
/* PIGUCHIN HOME TOP SPACING END */

/* PIGUCHIN MOBILE LOGIN PANEL SPACING START */
@media (max-width: 991.98px) {
  .offcanvas-menu .sp-login-dropdown-wrapper > .sp-login-dropdown-panel {
    margin-top: 12px;
  }
}
/* PIGUCHIN MOBILE LOGIN PANEL SPACING END */

/* PIGUCHIN EDITORIAL YOUTUBE WIDTH START */
.noticias-editorial .mod-articles-item-content p:has(iframe[src*="youtube.com/embed"], iframe[src*="youtube-nocookie.com/embed"]) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.noticias-editorial .mod-articles-item-content iframe[src*="youtube.com/embed"],
.noticias-editorial .mod-articles-item-content iframe[src*="youtube-nocookie.com/embed"] {
    width: 100% !important;
    max-width: none !important;
}
/* PIGUCHIN EDITORIAL YOUTUBE WIDTH END */



/* PIGUCHIN EDITORIAL IMAGE FRAME FINAL START */
.noticias-editorial .mod-articles-item .article-intro-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    background: #EAF0F4;
}

.noticias-editorial .mod-articles-item .article-intro-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0;
    object-fit: contain;
    object-position: center;
    background: #EAF0F4;
    border-radius: 4px;
}
/* PIGUCHIN EDITORIAL IMAGE FRAME FINAL END */

/* PIGUCHIN EDITORIAL TITLE IMAGE GAP FINAL START */
.noticias-editorial .mod-articles-item .article-intro-image {
    margin-top: 8px !important;
}
/* PIGUCHIN EDITORIAL TITLE IMAGE GAP FINAL END */

/* PIGUCHIN EDITORIAL YOUTUBE TEXT GAP TEST */
.noticias-editorial .mod-articles-item-content p:has(> iframe[src*="youtube.com/embed"], > iframe[src*="youtube-nocookie.com/embed"]) {
    display: flow-root;
}
.noticias-editorial .mod-articles-item-content p:has(> iframe[src*="youtube.com/embed"], > iframe[src*="youtube-nocookie.com/embed"]) iframe {
    display: block;
    margin-bottom: 12px !important;
}
/* PIGUCHIN EDITORIAL YOUTUBE TEXT GAP TEST END */



/* PIGUCHIN MOBILE SUBCATEGORY ARROW POSITION START */
@media (max-width: 991.98px) {
  .offcanvas-menu .offcanvas-inner li.item-165,
  .offcanvas-menu .offcanvas-inner li.item-166,
  .offcanvas-menu .offcanvas-inner li.item-167 {
    position: relative;
  }

  .offcanvas-menu .offcanvas-inner li.item-165 > .nav-header > .menu-toggler,
  .offcanvas-menu .offcanvas-inner li.item-166 > .nav-header > .menu-toggler,
  .offcanvas-menu .offcanvas-inner li.item-167 > .nav-header > .menu-toggler {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
}
/* PIGUCHIN MOBILE SUBCATEGORY ARROW POSITION END */

/* PIGUCHIN MOBILE SUBMENU TOUCH SPACING START */
@media (max-width: 991.98px) {
  .offcanvas-menu .offcanvas-inner li.item-165 > .nav-header,
  .offcanvas-menu .offcanvas-inner li.item-166 > .nav-header,
  .offcanvas-menu .offcanvas-inner li.item-167 > .nav-header {
    display: block;
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 38px;
    box-sizing: border-box;
  }

  .offcanvas-menu .offcanvas-inner li.item-165 > .nav-header > .menu-toggler,
  .offcanvas-menu .offcanvas-inner li.item-166 > .nav-header > .menu-toggler,
  .offcanvas-menu .offcanvas-inner li.item-167 > .nav-header > .menu-toggler {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    min-width: 38px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
}
/* PIGUCHIN MOBILE SUBMENU TOUCH SPACING END */

/* PIGUCHIN MOBILE MAIN SUBMENU TOUCH SPACING START */
@media (max-width: 991.98px) {
  .offcanvas-menu .offcanvas-inner li.item-160 > .menu-child > li:not(.item-165):not(.item-166):not(.item-167) > a,
  .offcanvas-menu .offcanvas-inner li.item-160 > .menu-child > li:not(.item-165):not(.item-166):not(.item-167) > .nav-header {
    display: block;
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    box-sizing: border-box;
  }
}
/* PIGUCHIN MOBILE MAIN SUBMENU TOUCH SPACING END */

/* PIGUCHIN MOBILE LIGA SOCIAL TYPOGRAPHY START */
@media (max-width: 991.98px) {
  .offcanvas-menu .offcanvas-inner li.item-160 > .menu-child a,
  .offcanvas-menu .offcanvas-inner li.item-160 > .menu-child .nav-header {
    font-family: var(--body-font-family, inherit) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
  }
}
/* PIGUCHIN MOBILE LIGA SOCIAL TYPOGRAPHY END */

/* PIGUCHIN HOME MAIN BOTTOM GAP START */
body:not(.view-article) #sp-main-body {
  padding-bottom: 0 !important;
}
/* PIGUCHIN HOME MAIN BOTTOM GAP END */


/* PIGUCHIN ULTIMA HORA COMPACT DESKTOP START */
@media (min-width: 992px) {
  .noticias-ultima-hora article.mod-articles-item {
    margin-bottom: 6px !important;
  }

  .noticias-ultima-hora article.mod-articles-item
  .mod-articles-item-content {
    padding: 8px 10px !important;
    line-height: 1.4 !important;
  }

  .noticias-ultima-hora .mod-articles-title {
    margin-bottom: 5px !important;
    padding: 6px 8px !important;
    line-height: 1.3 !important;
  }
}
/* PIGUCHIN ULTIMA HORA COMPACT DESKTOP END */

/* PIGUCHIN ULTIMA HORA UNIFORM TITLES START */
@media (min-width: 992px) {
  .noticias-ultima-hora .mod-articles-title {
    min-height: 42px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

  .noticias-ultima-hora .mod-articles-item-content {
    overflow-wrap: anywhere;
  }
}
/* PIGUCHIN ULTIMA HORA UNIFORM TITLES END */


/* PIGU NEWS TITLE ICON ALIGNMENT */
.noticias-ultima-hora .pigu-news-heading {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.noticias-ultima-hora .pigu-news-icon {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    line-height: 1;
}

.noticias-ultima-hora .pigu-news-icon svg {
    display: block;
    flex: 0 0 24px;
}

.noticias-ultima-hora .pigu-news-text {
    flex: 1 1 auto;
    min-width: 0;
}

.noticias-ultima-hora .pigu-news-title-prefix {
    white-space: nowrap;
}

/* PIGUCHIN OFFCANVAS PROFILE DROPDOWN MOBILE FIX START */
@media (max-width: 767.98px) {
  .offcanvas-menu.left-1.offcanvas-arrow-right
  .sp-profile-wrapper .sp-profile-dropdown {
    position: fixed !important;
    top: 80px !important;
    left: max(12px, calc((100vw - 300px) / 2 + 50px)) !important;
    right: auto !important;
    width: min(180px, calc(100vw - 60px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 60px) !important;
    box-sizing: border-box !important;
    z-index: 10000 !important;
  }
}
/* PIGUCHIN OFFCANVAS PROFILE DROPDOWN MOBILE FIX END */


/* PiguRanking: contadores de notificaciones con el patrón de PiguLiga. */
#sp-header .sp-menu-item > .piguranking-bell-container {
    padding-left: 4px;
    padding-right: 0;
}
.piguranking-bell-container {
    display: inline;
    white-space: nowrap;
}
.piguranking-bell {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}
