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

main.bbcom-page {
    background-image: url('../img/bg-punto7.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;
}

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

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

/* Contenido columna central */
.perfil-punto7 {
    border: 1px solid #fff;
    background-color: #0000002c;
}

/* Nav pills */
.nav-link {
    color: #fff;
}

.nav-link.active {
    color: #ab3b1b;
}

/* Format cards (audiencia images, tarifas) */
.format-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;
    transition: none;
}

/* Audiencia Punto7 */
.audiencia-item-punto7 {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fafafa;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
}

.audiencia-punto7 {
    border: 1px solid #fff;
}

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

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

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

    .col-description {
        position: relative;
        top: auto;
        padding: 1rem 0;
    }

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

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