html,
body {
    font-family: 'Open Sans', sans-serif;
    min-width: 360px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
    outline: none;
    background: none;
    border: none;
}

button:focus {
    outline: none;
    box-shadow: none;
}

.ad-top-container {
    background-color: #FAFAFA;
    width: 100%;
    height: 124px;
    position: relative;
    top: 0;
    left: 0;
}

.ad-top-responsive {
    height: 100px;
    align-items: center;
    display: flex;
    max-width: 320px;
    margin-top: 12px;
    margin-bottom: 12px;
}
#ad_top{
    position: sticky;
    top: 0;
    z-index: 100;
    transition: opacity 0.3s ease, height 0.3s ease;
}

header {
    width: 100%;
    height: 96px;
    border-bottom: 1px solid rgba(217, 217, 217, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: top 0.3 ease, padding 0.3s ease;
    padding: 0 16px;
    background-color: #fff;
}

.share-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.share-btn:hover {
    background: #e1e3e6;
}

.bbcl-logo {
    display: flex;
    align-items: center;
    justify-content: start;
}

.bbcl-logo img {
    width: 70px;
    padding: 37px 0;
    margin-left: 16px;
}

.icon {
    width: 16px;
    height: 14px;
    fill: #000038;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.icon:hover {
    fill: #0FAADB;
    transform: scale(1.1);
}

.rrss-menu {
    display: flex;
    gap: 12px;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    right: 23px;
    top: calc(100% + 8px);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
    
}

.rrss-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background-color: rgb(255, 255, 255);
    padding: 4px;
    border-radius: 8px;
}

.sociales-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 123px;
}

.sociales-logo img {
    width: 100%;
    height: auto;
    object-fit: unset;
}

.evento-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0 0 0;
}

.main-article {
    text-align: left;
    padding: 0 16px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 40px;
    color: rgba(0, 0, 56, 1);
    margin-bottom: 20px;
}

.article-fecha {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 25px;
    color: rgba(0, 0, 56, 1);
}

.article-description {
    color: rgba(0, 0, 56, 1);
    font-size: 15px;
    line-height: 25px;
    font-weight: 400;
    margin-bottom: 32px;
}


.galeria-evento {
    column-count: 2;
    gap: 4px;
    grid-auto-flow: dense;
}

.foto-item {
    position: relative;
    overflow: hidden;

}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

.foto-item.grande {
    grid-column: span 2;

}

.galeria-evento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    grid-template-areas:
        "foto1 foto1"
        "foto2 foto3"
        "foto4 foto3"
        "foto6 foto5";
}

/* 1  2:1 horizontal grande */
.galeria-evento .foto-item:nth-child(3n + 1) {
    grid-column: span 2;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 56, 0.7);
    color: white;
    padding: 8px 6px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-weight: 400;
    font-size: 11px;
    word-break: break-word;
}

.numero-foto {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 56, 0.7);
    color: #fff;
    font-size: 24px;
    line-height: 24px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-family: 'DM Serif Display', serif;
}
.ad-middle2-container{
    display: none;
}

.ad-middle1-container {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 400px;
    margin-top: 48px;
}

footer {
    margin-top: 80px;
    border-top: 1px solid rgba(136, 153, 166, 0.3);
}

.bbcl-footer-logo {
    padding-top: 35px;
    display: flex;
    align-items: center;
    justify-content: center
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(0, 0, 56, 0.6);
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    margin-top: 48px;
    max-width: 248px;
    margin-bottom: 26px;
}

.siguiente-evento {
    padding-top: 36px;
    border-top: 2px solid rgba(0, 0, 56, 1);
    margin: 48px 16px 0 16px;
}


.evento-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(0, 0, 56, 1);
}

.nav-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.arrow {
    width: 36px;
    height: 36px;
    background-color: rgba(250, 250, 250, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-btn.prev {
    align-items: flex-start;
}

.nav-btn.next {
    align-items: flex-end;
}


.nav-btn.next .nav-text {
    align-items: flex-end;
    text-align: right;
}

.nav-btn.prev .nav-text {
    align-items: flex-start;
    text-align: left;
}

.nav-text .label {
    font-size: 13px;
    color: rgba(0, 0, 56, 1);
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    margin: 0;
}

.nav-text .nombre {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    color: rgba(0, 0, 56, 1);
}

.text-revisa-los-ultimos {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    color: #000038;
    letter-spacing: 0;
    text-align: center;
    width: 213px;
    margin-top: 80px;
}

.eventos-section {
    height: 300px;
    text-align: center;
    margin: 40px 0 0 0;
}

.eventos-titulo {
    font-family: 'Playfair Display', serif;
    color: #000038;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 24px;
}

.eventos-swiper {
    width: 100%;
    height: 100%;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
}

.swiper-slide {
    width: 119px;
    height: 212px;
}

.evento-card {
    width: 110px;
    height: 212px;
    text-align: center;
}

.evento-card img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
}

.evento-nombre {
    color: #000038;
    font-weight: 400;
    font-size: 15px;
    line-height: 19px;
    letter-spacing: 0;
    text-align: center;
}


.swiper-button-prev,
.swiper-button-next {
    width: 50px !important;
    height: 50px !important;
    color: #ffffff;
    background-color: rgba(0, 0, 56, 0.8);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 1);
    top: 40% !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 14px;
}
.swiper-button-prev::after{
    content: "<"; 
}
.swiper-button-next::after{
    content: ">"; 
}

.swiper-button-next svg,
.swiper-button-prev svg {
    display: none !important;
}


@media (min-width: 1275px) {
    .rrss-menu {
        flex-direction: row;
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 12px;
    }

    .ad-top-responsive {
        width: 970px;
        height: 70px;
        max-width: 970px;
        margin-bottom: 16px;
    }

    .ad-top-container {
        height: 70px;
    }

    .ad-middle1-container {
        display: none;
    }

    header {
        padding: 0 126px;
    }

    .bbcl-logo {
        width: 84px;
        height: 26px;
    }

    .bbcl-logo img {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .share-btn {
        display: none;
    }

    .rrss-menu {
        display: flex;
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        gap: 28px;
    }


    .evento-layout {
        display: grid;
        grid-template-columns: 1fr 1.8fr; 
        margin: 0 auto;
        padding: 64px 0 0 0;
        align-items: start;
        gap: 25px;
    }
    .main-article {
        position: sticky;
        grid-column: 1;
        padding: 0;
        text-align: left;
        top: 105px;
    }

    .article-title {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 40px;
        line-height: 45px;
        color: #000038;
        margin-bottom: 24px;
    }

    .article-fecha {
        font-weight: 700;
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 25px;
        color: rgba(0, 0, 56, 1);
    }

    .article-description {
        font-size: 15px;
        line-height: 25px;
        max-width: 312px;
        font-weight: 400;
        color: rgba(0, 0, 56, 1);
        word-break: break-word;
    }

    .galeria-evento {
        grid-column: 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        grid-template-areas:
            "foto1 foto1"
            "foto2 foto3"
            "foto4 foto3"
            "foto6 foto5";
    }
    .main-wrapper {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .main-content {
        max-width: 1064px;
        margin: 0 auto;
        width: 100%;
    }

    .ad-right-container {
        width: 160px;
        height: 600px;
        display: flex;
        position: sticky;
        top: 105px;
        margin-top: 64px;
    }

    .siguiente-evento,
    .eventos-section,
    .text-revisa-los-ultimos {
        max-width: 1064px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

}