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

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

/* Layout base */
.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;
    margin-bottom: 20px;
}

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

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

.col-description .logo-title {
    width: 130px !important;
    height: auto;
}

/* 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;
}

/* Tabs (pills) */
.nav-link {
    color: #fff;
}

.nav-link.active {
    color: #1b5aab;
}

.nav-tabs-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-tabs-scroll .nav-link {
    white-space: nowrap;
}

/* Texto */
.text-no-uppercase {
    text-transform: none !important;
}

/* Perfil */
.bg-radiobb{
    background-color: #0000002c
}
.perfil-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.perfil-table th,
.perfil-table td {
    border: 1px solid #1f1f1f;
    text-align: center;
    padding: 8px 10px;
    color:#1f1f1f;
}

.perfil-table thead tr:nth-child(2) th {
    color: #8a8d91;
    font-weight: 700;
}

.perfil-cell {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

/* Format / Image cards */
.format-card,
.radiograma-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    z-index: 1;
}

.format-card:hover {
    transform: scale(1.2);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.format-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (hover: none) {
    .format-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Programas */
.tab-pane-programas {
    max-width: 100%;
    overflow: visible;
}

.contenedor-audiencia.audiencia-box {
    color: white;
    border-bottom: 1px solid #ffffff;
}

.programas {
    border-bottom: 1px solid #e4e4e4;
    margin-bottom: 10px;
}

.programa-der,
.programa-izq {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.programa-conductor {
    color: #fff;
}

.program-lista {
    list-style: disc;
    padding-left: 20px;
    color: #fff;
}

/* Audiencia */
.audiencia-item {
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    color: #fff;
}

.audiencia-icon {
    width: 50px;
    height: auto;
}

.audiencia-sep {
    margin: 10px auto;
    width: 70%;
    opacity: 0.5;
}

.icon-antena {
    width: 40px;
    height: auto;
}

.audiencia-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.audiencia-footnote {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #e4e4e4;
}

.text-audiencia {
    font-size: 0.95rem;
    line-height: 1.25rem;
    color: #fafafa;
}

.audiencia-source {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.audiencia-ipsos {
    width: 46px;
    height: auto;
}

.audiencia-noticiarios .noticiario-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 12px;
    transition: transform 180ms ease, box-shadow 180ms ease;
    transform-origin: center;
    cursor: pointer;
}

.audiencia-noticiarios .noticiario-card:hover {
    transform: scale(1.2);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    z-index: 2;
}

.nombre-programa {
    margin-top: 20px;
    color: #fff;
}

/* Cobertura (Swiper manual) */
.cobertura-swiper-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: clamp(300px, 55vh, 620px);
    border-radius: 8px;
    overflow: hidden;
    background: #5d788e;
}

.cobertura-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cobertura-slide.active {
    opacity: 1;
    z-index: 1;
}

.cobertura-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cobertura-slide .slide-caption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.swiper-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.swiper-prev {
    left: 10px;
}

.swiper-next {
    right: 10px;
}

/* Tarifas */
.img-tarifas-rbb {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 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;
    }
}

@media (max-width: 768px) {
    .content-menu-buttons {
        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;
        height: auto;
    }

    .perfil-table th,
    .perfil-table td {
        padding: 6px 8px;
        font-size: 12px;
    }

    .perfil-cell {
        font-size: 15px;
    }

    .programa-der,
    .programa-izq {
        padding: 10px 12px;
    }

    .cobertura-swiper-wrapper {
        height: 320px;
    }

    .col-description .logo-title {
        width: 130px !important;
    }
}

@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;
    }
}
