/* ===========================================================
   Calendario deportivo PuraTV — estilos compartidos
   Usado por: nba.html, nfl.html, mlb.html, laliga.html, mundial.html
   =========================================================== */

/* Hero más bajo en las páginas de calendario */
.cal-hero {
    min-height: 46vh !important;
    padding-top: 96px !important;
    padding-bottom: 36px !important;
}

/* La sección del calendario y la de contacto siempre sobre fondo oscuro
   (evita la franja amarilla que generan los nth-child de styles.css) */
.cal-schedule {
    background-color: #15151b !important;
    color: #fff !important;
    min-height: auto !important;
    padding-top: 48px !important;
    padding-bottom: 64px !important;
}

section[data-anchor="contacto"] {
    background-color: #15151b !important;
    color: #fff !important;
}

section[data-anchor="contacto"] p {
    color: #cfcfcd !important;
}

/* Etiqueta de la semana y aviso de "en vivo" */
.week-label {
    color: #F9C717;
    font-weight: 600;
}

.live-note {
    color: #E2362D;
    font-weight: 600;
    font-size: .85rem;
    margin: -8px 0 20px;
}

/* Filtro por equipo */
.team-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.team-filter__select {
    max-width: 340px;
    width: 100%;
    background: #1f1f26;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: .95rem;
}

.team-filter__select:focus {
    border-color: #F9C717;
    box-shadow: none;
    outline: none;
}

.team-filter__select option {
    color: #000;
}

/* Encabezado de cada día */
.day-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F9C717;
    text-align: center;
    margin: 30px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* Tarjeta de partido */
.match-card {
    background: #1f1f26;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 16px 18px;
    height: 100%;
}

.match-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.match-round {
    display: inline-block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #d6d6d4;
    background: rgba(255, 255, 255, .08);
    padding: 3px 10px;
    border-radius: 999px;
}

.status-pill {
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.status-live {
    background: #E2362D;
    color: #fff;
}

.status-final {
    background: rgba(255, 255, 255, .14);
    color: #e8e8e6;
}

.match-card.is-live {
    border-color: rgba(226, 54, 45, .55);
}

.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    font-weight: 500;
    color: #fff;
}

.match-team span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-team img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
    flex: 0 0 auto;
}

.match-team--away {
    justify-content: flex-end;
    text-align: right;
}

.match-time {
    font-weight: 700;
    color: #F9C717;
    font-size: 1.05rem;
    flex: 0 0 auto;
    padding: 0 6px;
}

.match-score {
    font-weight: 700;
    color: #fff;
    font-size: 1.3rem;
    flex: 0 0 auto;
    padding: 0 8px;
    white-space: nowrap;
}

.match-score span {
    color: #9a9a98;
    margin: 0 5px;
    font-weight: 400;
}

/* Canales por partido */
.match-channels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.match-channels__label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9a9a98;
    margin-right: 2px;
}

.ch-pill {
    font-size: .78rem;
    font-weight: 500;
    background: #F9C717;
    color: #1E1E21;
    padding: 3px 9px;
    border-radius: 6px;
}

/* Lista completa de canales (páginas con lineup fijo, ej. Mundial) */
.channels-all {
    max-width: 760px;
    margin: 36px auto 0;
    background: #1f1f26;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 4px 20px;
    text-align: left;
}

.channels-all summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #F9C717;
    padding: 14px 0;
    text-align: center;
}

.channels-all summary::-webkit-details-marker {
    display: none;
}

.channels-all__hint {
    color: #b9b9b6;
    font-size: .85rem;
    margin: 0 0 14px;
}

.channels-all__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-bottom: 18px;
}

.channels-all .ch-pill {
    font-size: .74rem;
}

/* Sección de preguntas frecuentes (SEO/AEO) */
.cal-faq {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.cal-faq details {
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    padding: 6px 0;
}

.cal-faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 28px 14px 0;
    position: relative;
}

.cal-faq summary::-webkit-details-marker {
    display: none;
}

.cal-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 12px;
    font-size: 1.4rem;
    line-height: 1;
}

.cal-faq details[open] summary::after {
    content: "\2013";
}

.cal-faq p {
    margin: 0 0 16px;
    line-height: 1.6;
}

/* ===========================================================
   Tabla de posiciones (grupos del Mundial)
   =========================================================== */
.standings-section {
    background-color: #15151b !important;
    color: #fff !important;
    min-height: auto !important;
    padding: 48px 20px 64px !important;
}

.standings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.standings-group {
    background: #1f1f26;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 14px 12px;
}

.standings-group__title {
    color: #F9C717;
    font-size: 1rem;
    font-weight: 600;
    margin: 4px 6px 10px;
    text-align: left;
}

.standings-scroll {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    color: #e8e8e6;
}

.standings-table th {
    color: #9a9a98;
    font-weight: 500;
    font-size: .7rem;
    text-transform: uppercase;
    padding: 4px 5px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.standings-table td {
    padding: 7px 5px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.standings-table th.st-team,
.standings-table td.st-team {
    text-align: left;
    white-space: nowrap;
    min-width: 130px;
}

.standings-table .st-flag {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
    background: #fff;
    vertical-align: middle;
    margin-right: 8px;
}

.standings-table .st-pos {
    color: #9a9a98;
}

.standings-table .st-pts {
    font-weight: 700;
    color: #fff;
}

.standings-table tr.qualify .st-pos {
    box-shadow: inset 3px 0 0 #378ADD;
    color: #fff;
}

/* ===========================================================
   Footer del sitio
   =========================================================== */
.site-footer {
    background-color: #15151b;
    color: #cfcfcd;
    padding: 56px 20px 24px;
    border-top: 3px solid #F9C717;
}

.site-footer h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.site-footer p {
    font-size: .9rem;
    line-height: 1.6;
    color: #b9b9b6;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 9px;
}

.site-footer a {
    color: #cfcfcd;
    text-decoration: none;
    font-size: .9rem;
    transition: color .15s ease;
}

.site-footer a:hover {
    color: #F9C717;
}

.site-footer .footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.site-footer .footer-social a {
    font-size: 1.4rem;
    color: #F9C717;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 36px;
    padding-top: 20px;
    text-align: center;
    font-size: .82rem;
    color: #9a9a98;
}

.site-footer .footer-brand-logo {
    height: 48px;
    margin-bottom: 14px;
}
