@import url(/assets/css/header.css);
@import url(/assets/css/footer.css);

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #221F20;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 110px;  
    padding-bottom: 0; 
}

/* VISIBILIDAD Y ESTILOS DE SECCIONES */

.content-section {
    display: none !important; 
    min-height: 100vh;
}
.active-section {
    display: flex !important;
}
.section-base {
    position: relative;
    min-height: 100vh;
    background: transparent;
    color: #FFFFFF; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}
.section-base > * {
    position: relative;
    z-index: 1; 
}
#section-home {
    color: #221F20;
    min-height: auto;
}
#section-home::after {
    content: none;
}

/* iconos */

.social-icons {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    padding: 7px;
}

.icon,
.icon-fb {
    margin-right: 10px;
    transition: fill 0.3s ease;
    padding: 10px;
    color: #5681b3; 
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.icon-fb {
    position: relative;
    top: 15px;
}
.icon-wa {
    color: #33d83b; 
    width: 20px;
    height: 20px;
    margin-right: 5px;
    flex-shrink: 0;
}
/* ESTILOS HOME */

.img-wrapper {
    position: relative;
    display: inline-block;
}
.img-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}
.img-wrapper .overlay-text {
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    right: 10px;
    bottom: 10px;
    text-align: right;
}

/* ESTILOS GENERALES DE LAS SECCIONES */

.section-title {
    margin-bottom: 20px;
}
.section-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    background: transparent;
    position: relative;
    z-index: 1;
}
.section-content,
.section-list,
.section-details,
.section-details-novedades {
    position: relative;
    z-index: 1;
    padding: 20px; 
    width: auto; 
    max-width: none;
    margin: 0;
    background: transparent;
    color: #fff;      
}
.section-content .section-description {
    display: block; 
}
.section-details {
    display: none; 
}
.section-container.active .section-content .section-description {
    display: none;
}
.section-container.active .section-details {
    display: block; 
    background: rgba(255,255,255,0.4); 
    color: #221F20; 
}
.section-container.active .section-list {
    background: rgba(255,255,255,0.4); 
    color: #221F20; 
    order: 3; 
}
.section-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.section-list li {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: color 0.2s ease-in-out;
}
.section-list li.active {
    color: #221F20;
}
.section-container:not(.active) .section-list li:hover {
    color: #221F20; 
}
.section-list 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;
}   
.section-list li.active::before {
        opacity: 1;
}   
.section-detail {
    display: none; 
}
.caja-instagram {
    display: flex;
    justify-content: center;
    width: 100%;
}
.section-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.img-content {
    max-width: 300px;
    height: auto;
}
.bg-home {
    background-image: url('/assets/img/bg-home.jpg');
    color: #221F20; 
}
.bg-bbcl {
    background-image: url('/assets/img/bg-bbcl.jpg');
}
.bg-rrss {
    background-image: url('/assets/img/bg-rrss.jpg');
}
.bg-radiobb {
    background-image: url('/assets/img/bg-rbb.jpg');
}
.bg-bbtv {
    background-image: url('/assets/img/bg-bbtv.jpg');
}
.bg-p7 {
    background-image: url('/assets/img/bg-pagina7.jpg');
}
.bg-radiop7 {
    background-image: url('/assets/img/bg-punto7.jpg');
}
.formatos {
    text-decoration: none;
    color: #221F20;
    transition: text-decoration 0.3s ease;
    margin-bottom: 10px;
}
.formatos:hover {
    text-decoration: underline;
    color: #221F20;
}
.container-alcance {
    display: flex;
    justify-content: center;
}
.alcance-redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}
@media (min-width: 992px) {
    .section-container {
        flex-direction: row;
        justify-content: center;
        min-height: auto;
    }
    
    .section-details {
        display: block;
    }
    .section-content .section-description {
        display: block !important; 
    }   
    .section-content {
        padding-left: 30px;
        max-width: 300px;
        margin-right: 30px;
    }
    .section-list{
        padding-left: 30px; 
        width: 250px; 
    }
    .section-details{
        width: 900px; 
        padding-left: 30px; 
    }
    .section-container.active .section-list,
    .section-container.active .section-details {
        background: rgba(255,255,255,0.4); 
        color: #221F20; 
        min-height: 706px;
    }
    .section-container.active .section-content {
        background: transparent !important; 
        color: #fff;
    }
    .img-content {
        max-width: 100%;
        height: auto;
    }
}

table {
    width: 50%; 
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

th {
    background-color: rgba(255, 255, 255, 0.4);
    color: #333;
    font-weight: bold;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left; 
}

td:last-child {
    text-align: right;
}
.short-container {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    main {
        padding-bottom: 0;
    }
    .img-wrapper img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform 0.3s ease;
    }
    .img-wrapper:hover img {
        transform: translateY(-40px);
    }
    .img-wrapper .overlay-text {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 28px;
        top: 20px;
        right: 10px;
        bottom: auto;
        text-align: right;
        width: auto;
    }
    .description-text {
        display: none;
    }
    .short-container {
        display: flex;
        flex-direction: row !important;
    }
    .short-content {
        padding-right: 20px;
    }
    .img-formatos {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .img-formato3 {
        margin-bottom: 20px;
        margin-top: 10px;
    }
}
@media (max-width: 767px) {
    main {
        padding-top: 110px;  
        overflow-y: auto; 
    }
    #section-home {
        min-height: auto; 
        margin-top: -68px;
    }
    .img-wrapper .overlay-text {
        font-size: 20px;
        right: 10px;
        bottom: 10px;
    }
    .content-section,
    .section-base {
        min-height: auto;
        height: auto;
    }
    .section-base::after {
        content: '';
        position: absolute; 
        top: 0;
        left: 0;
        right: 0; 
        bottom: 0;
        background-color: rgba(60, 65, 69, 0.5); 
        z-index: 0;
    }
    .section-container {
        min-height: auto;
        height: auto;
        justify-content: flex-start; 
    }
    .section-container.active .section-list,
    .section-container.active .section-details {
        min-height: auto;
    }
    .social-icons-container {
        display: none;
    }
    .short-content {       
        display: flex;
        justify-content: center;
        padding-bottom: 20px;
    }
    .alcance-img {
        width: 400px !important;
    }
    .img-formato1 {
        width: 265px;
    }
    .img-formato2 {
        width: 120px;
    }
    .img-formato3,
    .img-formato4 {
        margin-bottom: 20px;
        width: 390px;
    }
    
}

.bg-custom-biobio {
        background-color: #221F20; 
    }
#carruselDesktop .carousel-indicators,
#carruselMobile .carousel-indicators {
        bottom: -50px;
    }
#carruselDesktop .carousel-indicators button,
#carruselMobile .carousel-indicators button {
        background-color: #666; height: 4px; width: 40px;
    }

@media (min-width: 992px) {
    #carruselDesktop .carousel-control-prev { 
        left: -100px; 
        width: 50px; 
        opacity: 1; 
    }
    #carruselDesktop .carousel-control-next { 
        right: -100px; 
        width: 50px; 
        opacity: 1; 
    }
}