/* Fondo */
body {
    background-image: url('../img/bg-bbtv.jpg') !important;
    color: white;
}

main.bbcom-page {
    background-image: url('../img/bg-bbtv.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Layout */
.section-base {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-inline: 12px;
}

.section-layout {
    display: grid;
    grid-template-columns: 230px 1fr 160px;
    grid-template-rows: 1fr;
    align-items: start;
    gap: 0;
}

.section-layout.menu-hidden {
    grid-template-columns: 230px 1fr 160px;
    gap: 0;
    margin-bottom: 20px;
}

/* Columna izquierda */
.col-description {
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Columna central */
.col-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.section-detail,
.tab-content {
    min-width: 0;
}

.section-home {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #fff;
}

/* Botones menú */
.content-menu-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.content-menu-btn {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-color: #fff;
    color: #fff;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-menu-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.04);
    color: #fff;
}

/* Columna derecha */
.col-menu {
    padding: 2rem 0.75rem;
    position: sticky;
    top: 0;
    min-height: auto;
}

.col-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.col-menu ul li {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: color 0.2s ease-in-out;
}

.col-menu ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ff0000;
    opacity: 0;
    transition: opacity 0.2s;
}

.col-menu ul li.active::before {
    opacity: 1;
}

.col-menu ul li:hover {
    color: #e63312;
}

/* Acordeón*/

.bbtv-accordion {
    background: #0000002c;
    border: 1px solid #ffffff;
    border-radius: 8px;
}

.bbtv-accordion-item {
    background: transparent;
    border: none;
}

.bbtv-accordion-btn {
    background-color: transparent !important;
    color: #fff !important;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0px;
    text-transform: uppercase;
    padding: 10px 14px;
    box-shadow: none !important;
    border-bottom: 1px solid #ffffff;
}

.bbtv-accordion-btn:not(.collapsed) {
    border-bottom: none;
}

.bbtv-accordion-item:last-child .bbtv-accordion-btn {
    border-bottom: none;
}

.bbtv-accordion-btn::after {
    filter: invert(1);
}

.bbtv-accordion-body {
    font-size: 15px;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}

.bbtv-accordion-item:last-child .bbtv-accordion-body {
    border-bottom: none;
}

/* Cobertura cards*/

.bbtv-cobertura-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 20px;
}

.bbtv-cobertura-card {
    min-width: 150px;
    min-height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.bbtv-cobertura-left {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 96px;
}

.bbtv-cobertura-right {
    width: 72px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.75);
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.bbtv-cobertura-logo {
    width: auto;
    height: auto;
}

.small-logo {
    width: 52px;
    height: auto;
    margin-left: 10px;
}

/* Canal 9 Programas*/

.canal9-programa-logo {
    display: block;
    max-width: 200px;
    margin-inline: auto;
}

/* Tarifas y Productos*/

.contenedor-tarifas-productos {
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.tarifas-editorial {
    padding: 0;
}

.tarifas-editorial-intro {
    max-width: 980px;
}

.tarifas-editorial-divider {
    margin: 0 0 1rem;
    opacity: 0.85;
}

.tarifas-editorial-card {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tarifas-editorial-card .nombre-programa {
    margin-bottom: 0.85rem;
}

.tarifas-editorial-card .fw-semibold.fs-4 {
    line-height: 1.15;
}

.tarifas-editorial-card .audiencia-sep {
    margin: 0.9rem 0;
}

.tarifas-editorial-note {
    opacity: 0.85;
}

.tarifas-editorial-footnote {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Programas row */
.programas .programa-izq {
    padding-right: 1rem;
}

.programas .programa-der {
    padding-left: 1rem;
}

.programa-conductor {
    font-size: 0.95rem;
}

.program-lista {
    padding-left: 1.2rem;
}

.program-lista li {
    margin-bottom: 0.25rem;
}

/* Audiencia item */
.audiencia-item {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.audiencia-sep {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    margin: 0.75rem 0;
}

/* Contact Card */

.contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    min-width: 300px;
}

.contact-card-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.contact-card-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.contact-card-divider {
    width: 1px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.contact-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.contact-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.2;
}

.contact-card-phone {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.25rem 0 0 0;
    line-height: 1.3;
}

.contact-card-email {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.3;
    word-break: break-all;
}

/* Responsive */

@media (max-width: 992px) {
    .section-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .section-layout.menu-hidden {
        grid-template-columns: 1fr;
    }

    .col-description,
    .col-menu {
        position: static;
        min-height: auto;
        padding: 1rem 0;
    }

    .col-content {
        padding: 1rem 0;
    }

    .col-menu ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .col-menu ul li {
        margin-bottom: 0;
    }

    .content-menu-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .section-layout,
    .section-layout.menu-hidden {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0.75rem;
    }

    .content-menu-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .content-menu-btn {
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
    }

    .bbtv-cobertura-card {
        width: 100%;
        max-width: 150px;
    }

    .bbtv-cobertura-left {
        width: 72px;
        padding: 8px 10px;
    }

    .bbtv-cobertura-right {
        width: 100px;
        min-width: 58px;
        font-size: 1.5rem;
        padding: 0.25rem;
        text-align: center;
    }

    .canal9-programa-logo {
        max-width: 150px;
    }

    .contact-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .contact-card-logos {
        order: 1;
    }

    .contact-card-divider {
        display: none;
    }

    .contact-card-info {
        order: 2;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .content-menu-buttons {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .content-menu-btn {
        padding: 0.8rem 1rem;
        font-size: 15px;
    }

    .col-menu ul li {
        padding-left: 20px;
        font-size: 14px;
    }

    .contact-card {
        padding: 1rem;
        gap: 1rem;
    }

    .contact-card-logo {
        width: 100px;
    }

    .contact-card-name {
        font-size: 1rem;
    }

    .contact-card-title {
        font-size: 0.88rem;
    }

    .contact-card-phone,
    .contact-card-email {
        font-size: 0.85rem;
    }
}
