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

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

/* Formato card (hover zoom) */
.format-card {
    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);
    z-index: 1;
}

.format-card:hover {
    transform: scale(1.2);
    z-index: 10;
}

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

.format-card:hover img {
    transform: scale(1.08);
}

/* Acordeón formatos */
.catalogo-accordion {
  background-color: #0000002c;
}

.catalogo-block {
    border: 1px solid #ffffff;
    border-radius: 6px;
    overflow: hidden;
}

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

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

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

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

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

.catalogo-desc {
    flex: 1;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 21px;
    text-transform: none;
}

/* Imágenes formato */
.format-img-single {
    max-width: 500px;
    object-fit: contain;
    margin: 0 auto;
    max-height: 500px;
}

.format-img-primary {
    max-width: 450px;
}

.format-img-secondary {
    max-width: 150px;
}

/* Publireportaje */
.img-publinota {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s ease,
                z-index 0s;
    will-change: transform;
    position: relative;
    z-index: 1;
    overflow: visible;
    width: min(100%, 600px);
    height: auto;
}

.img-publinota:hover {
    transform: scale(1.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.publireportaje-gallery {
    flex-wrap: wrap;
}

/* Media overlay (notebook/video/mobile) */
.media-overlay {
    position: relative;
}

.video-missing {
    color: #ffb0b0;
    font-size: 14px;
    font-weight: 600;
    margin: 0.5rem 0 0;
}

.base-img-notebook {
    width: 100%;
    max-width: 640px;
    display: block;
}

.video-notebook {
    position: absolute;
    top: 13%;
    left: 17%;
    width: 65%;
    object-fit: cover;
    background: black;
}

.base-img-mobile {
    width: 300px;
    max-width: 100%;
    display: block;
}

.video-mobile {
    position: absolute;
    top: 13%;
    left: 33%;
    width: 34%;
    object-fit: cover;
    background: black;
}

.video-youtube {
    position: absolute;
    top: 8%;
    left: 17%;
    width: 65%;
    height: 312px;
    object-fit: cover;
    background: black;
}

.short-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.video-short {
    position: absolute;
    top: 8%;
    width: 78%;
    height: 500px;
}

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

    .base-img-notebook,
    .base-img-mobile {
        display: none;
    }

    .video-notebook,
    .video-youtube,
    .video-mobile {
        position: static;
        width: min(100%, 520px);
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        background: black;
        display: block;
        margin: 0.75rem auto 0;
        border-radius: 8px;
    }

    .short-container {
        position: relative;
        display: flex;
        justify-content: center;
    }

    .video-short {
        position: static;
        width: min(100%, 320px);
        max-width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
        margin: 0.75rem auto 0;
        border-radius: 8px;
    }
}

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

    .catalogo-accordion-btn {
        font-size: 16px;
        line-height: 1.25;
    }

    .publireportaje-gallery {
        flex-direction: column;
        width: 100%;
    }

    .img-publinota {
        width: min(100%, 340px);
    }

    .img-publinota:hover {
        transform: none;
        box-shadow: none;
    }

    .col-description .logo-title {
        width: 150px !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;
    }
}
