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

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

/* Tarifas */

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

.nav-link {
    color: #fff;
}

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

.img-tarifas-rbb {
    width: 750px;
    height: auto;
}

/* Acordeón BBTV */

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

/* Botón link (Cobertura) */

.btn-content {
    padding: 9px 50px;
    background-color: #0c83ff;
    color: white;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
}

.btn-content:hover {
    background-color: #003366;
    color: white;
}

/* Cobertura cable */

.bbtv-cable-layout {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.bbtv-cobertura-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

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

/* Formatos Publicitarios*/

.texto-formatos-bbtv {
    font-family: 'open sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
    text-transform: none;
    color: #fff;
}

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

    .img-tarifas-rbb {
        width: 100%;
        height: auto;
    }
}

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

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