body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.panels h1 {
    text-align: center;
    margin: 20px 0;
}

.header {
    background-color: #005cbf;
    color: rgb(0, 0, 0);
}

.navbar {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: #005cbf;
    flex-wrap: wrap;
}

.representantes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.panel {
    text-align: center;
    margin: 20px;
    width: 250px;
}

.representante-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 10px;
    display: block;
}

.representantes-img:hover {
    transform: scale(2.05);
}

.navlink {
    background-color: #005cbf;
    color: white;
    font-size: 18px;
    padding: 10px 100px;
    border: 2px solid white;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px; 
}

.navlink:hover {
    background-color: #003f7f;
}

.navbar-mobile {
    display: none;
    flex-direction: column;
    background-color: #005cbf;
    padding: 10px;
}

.navlink-mobile {
    background-color: #005cbf;
    color: white;
    font-size: 16px;
    padding: 8px;
    border: 2px solid white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.navlink-mobile:hover {
    background-color: #003f7f;
}

.carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
}

.carousel img {
    width: 100%;
    height: auto;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.carousel-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    padding: 15px;
    font-size: 20px;
}

.panels1 {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    flex-wrap: wrap;
}

.radio-chat {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    width: 45%;
    box-sizing: border-box;
    text-align: center;
}
.chat-live {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    width: 47%;
    box-sizing: border-box;
    text-align: center;
    overflow-y: auto;
}


.image-future {
    border: 2px solid #ccc;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mapa-contador {
    text-align: center;
    margin: 30px 0;
}

.mapa iframe {
    border: 2px solid #ccc;
    border-radius: 10px;
    width: 100%;
    max-width: 640px;
    height: 320px;
    margin-bottom: 20px;
}

.radio-container iframe {
    width: 100%;
    height: 110px;
}

.contador {
    background-color: #e8e8e8;
    padding: 20px;
    border-radius: 10px;
}

.social-media {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.chat-live {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 30px;
    width: 43%;
    box-sizing: border-box;
    text-align: center;
    height: calc(100% - 30px); /* Ajusta el valor según el padding/margen que necesites */
    overflow-y: auto; /* Permite el desplazamiento si el contenido es mayor */
}
.social-media a {
    color: #fff;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
}

.social-media a:hover {
    color: #005cbf;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
    margin-top: auto;
    width: 100%;
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .navbar-mobile {
        display: flex;
    }

    .panels1 {
        flex-direction: column;
    }

    .radio-chat, .chat-live {
        width: 100%;
        text-align: center;
    }

    .carousel {
        height: 20vh;
    }

    .carousel-controls {
        top: 40%;
    }

    .carousel-controls button {
        padding: 10px;
        font-size: 10px;
    }

    .carousel .slide img {
        object-fit: cover;
    }

    .carousel .slide {
        min-width: 200%;
        height: auto;
    }

    .mapa-contador h2,
    .mapa-contador h3,
    .mapa-contador p {
        text-align: center;
    }

    .mapa iframe {
        height: 240px;
    }

    .image-future {
        max-width: 90%;
        margin: 0 auto;
    }

    body {
        overflow-x: hidden;
    }
}

@media (min-width: 769px) {
    .navbar-mobile {
        display: none;
    }
}
