.dynamic-grid-container,.dynamic-grid-item,.infinite-carousel{
    overflow:hidden;
    position:relative 
}


body{
    padding-top:30px 
}



.banner {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-text-left {
    position: absolute;
    top: 20%;
    left: 5%;
    color: white;
    font-size: 30px;
    font-weight: bold;
    max-width: 50%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
}

.banner-text-right {
    position: absolute;
    bottom: 20%;
    right: 5%;
    color: white;
    font-size: 58px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.button-container {
    position: absolute;
    bottom: 35%;
    left: 10%;
    display: flex;
    gap: 15px;
}

.botones-banner {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-conoce {
    background-color: white;
    color: black;
}

.btn-contacto {
    background-color: #002f5f;
    color: white;
}

.logo-right {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0;
}
.logo-right img {
    width: 400px;
    height: 100px;
    object-fit: contain;
    margin-left: 20px;
}
.quienes-somos {
    background-color: #0f1e30;
    color: white;
    position: relative;
    text-align: right;
    z-index: 10;
    margin-top: -88px;
}
.quienes-somos h2 {
    position: relative;
    z-index: 15;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-right: 20px;
}
.title-container h1 {
    text-align: right;
    font-size: 2.5em;
    margin-bottom: 20px;
}
strong {
    font-weight: bold;
}







/* Contenedor principal */
.custom-grid-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px; 
    padding: 20px 0;
    margin-top: 5%;
    margin-bottom: 5%;
}

/* Izquierda: Texto */
.custom-grid-item-left {
    text-align: center;
    flex: 1 1 45%;
    color: #e2b316;
    font-size: 35px;
    font-weight: 600;
}

/* Frase con "6500" en la misma línea */
.highlight-text {
    white-space: nowrap; /* Evita el salto de línea */
}

/* "CONDUCTORES" abajo */
/* .conductores {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #ffbb33;
    margin-top: 5px;
} */

/* Derecha: Números alineados horizontalmente */
.custom-grid-item-right {
    display: flex;
    flex: 1 1 50%;
    justify-content: center;
    align-items: center;
}

/* Contenedor de números */
.numbers-container {
    display: flex;
    gap: 20px; /* Se redujo aún más el espacio entre los números */
    align-items: center;
}

/* Números destacados */
.number-box {
    text-align: center;
    flex: 1;
}

/* Estilo de los números */
.highlight-number {
    font-size: 35px;
    font-weight: 700;
    color: #006eff;
}










.dynamic-grid-item{
    flex:0 0 100%;
    margin-right:0 
}
.image-container-logo {
    margin-left: -7%;
    text-align: center;
    margin-top: 5%;
}
/* Contenedor de los videos */
.videos {
    display: flex;
    justify-content: center;
   /* Centra los videos horizontalmente */
    gap: 20px;
   /* Espacio entre los videos */
    flex-wrap: wrap;
   /* Permite que los videos se acomoden bien en pantallas pequeñas */
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
   /* Margen a los lados para evitar que los videos toquen las paredes */
}
.video-container {
    flex: 1 1 45%;
   /* Los videos ocupan el 45% del ancho disponible */
    max-width: 550px;
   /* Limita el tamaño máximo de los videos */
    margin-bottom: 20px;
}
.video-container video, .video-container iframe {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Contenedor en Grid */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
   /* Dos columnas iguales */
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
   /* Centrado */
    padding: 0 20px;
}
.video-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.video-item video, .video-item img {
    width: 100%;
    max-width: 500px;
   /* Tamaño máximo */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Play Button para el video imagen */
.youtube-placeholder {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.youtube-placeholder img {
    width: 80%;
   /* Asegura que ocupe todo el ancho del contenedor */
    max-width: 600px;
   /* Misma lógica que el contenedor */
    height: auto;
   /* Mantiene la proporción */
    border-radius: 8px;
    object-fit: cover;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    padding: 10px 20px;
}
.overlay-banner .logo-overlay{
    width:100%;
    max-width:200px;
    height:auto;
    margin:10% 0 10px 
}
.overlay-banner .overlay-text{
    font-size:17px;
    line-height:1.2 
}







/* 

.highlight-text{
    color:#e4a215;
    font-size:clamp(24px, 5vw, 37px);
    
    margin-bottom:15px;
    letter-spacing:1px;
    padding:0 1em 
}
.highlight-number-blue{
    color:#0061f2;
    
}
.custom-grid-item-right{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    padding:0 1em 
} 
 */








.carrusel-new-circle-quarter {
    position: absolute;
    width: 49%;
    height: 49%;
    transition: background-color 0.3s;
}
/* 🔹 IMÁGENES DE CADA CUARTO */
.carrusel-new-circle-top-left {
    top: 0;
    left: 0;
    background-image: url("https://elearning.explor-k.cl/CDN/explork/PNG_A_WEBP/circulonaranja.webp");
    background-size: cover;
    background-position: center;
}
.carrusel-new-circle-top-right {
    top: 0;
    right: 0;                    
    background-image: url("https://elearning.explor-k.cl/CDN/explork/PNG_A_WEBP/circulorojo.webp");
    background-size: cover;
    background-position: center;
}
.carrusel-new-circle-bottom-left {
    bottom: 0;
    left: 0;
    background-image: url("https://elearning.explor-k.cl/CDN/explork/PNG_A_WEBP/circuloamarillo.webp");
    background-size: cover;
    background-position: center;
}
.carrusel-new-circle-bottom-right {
    bottom: 0;
    right: 0;
    background-image: url("https://elearning.explor-k.cl/CDN/explork/PNG_A_WEBP/circuloazul.webp");
    background-size: cover;
    background-position: center;
}
/* 🔹 EFECTO AL PASAR EL CURSOR */
.carrusel-new-circle-quarter:hover {
    cursor: pointer;
    opacity: 0.8;
}
/* 🔹 CONTENEDOR DEL BOTÓN "VER MÁS" */
.carrusel-new-circle-button-container {
    position: absolute;
    bottom: 20px;
   /* Asegura que el botón esté en la parte inferior */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}
/* 🔹 BOTÓN "VER MÁS" */
.carrusel-new-circle-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}
.carrusel-new-circle-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
}
.small-background {
    background-size: 70% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}


#ver-mas-btn {
    position: absolute;
    bottom: 43%;
    right: 44%;
    background-color: white;  /* ✅ Fondo más visible */
    color: black;  /* ✅ Texto negro para contraste */
    font-size: 16px;  /* 🔹 Tamaño de letra más grande */
    font-weight: bold;  /* 🔹 Texto más grueso */
    padding: 12px 20px;  /* ✅ Botón más grande */
    border-radius: 8px;  /* ✅ Bordes más suaves */
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: none; /* Se oculta hasta que se haga clic */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);  /* ✅ Agrega sombra para mejor visibilidad */
    border: 2px solid black;  /* 🔹 Borde negro para que resalte */
}

#ver-mas-btn:hover {
    background-color: black;  /* 🔄 Se invierten colores en hover */
    color: white;
    border-color: white;
    transform: scale(1.05);  /* 🔹 Ligero efecto de zoom */
}


@media (max-width: 768px) {
    #ver-mas-btn {
        position: absolute;
        bottom: 30%;
        right: 16%;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        font-size: 14px;
        padding: 8px 15px;
        border-radius: 5px;
        text-decoration: none;
        transition: background 0.3s;
        display: none; /* Se oculta hasta que se haga clic */
    }
}


.highlight-title{
    position:relative;
    text-align:center;
    font-size:clamp(25px, 5vw, 37px);
    font-weight: bold;
    color:#333;
    letter-spacing:-.1px;
    margin-bottom:clamp(20px,5vw,40px);
    transform:scaleY(1.2);
    margin-top: -15%;
}

.highlight-title::after,.highlight-title::before{
    content:'';
    position:absolute;
    top:50%;
    width:17%;
    border-top:1px solid #e09900 
}
.highlight-title::before{
    left:15%;
    transform:translateY(-50%) 
}
.highlight-title::after{
    right:15%;
    transform:translateY(-50%) 
}
@media screen and (max-width: 768px) {
   /* Para móviles */
    .highlight-title{
        font-weight:700;
        margin-top: 15%;
   }
    .highlight-title{
        position:relative;
        text-align:center;
        font-size:clamp(25px, 5vw, 37px);
        color:#333;
        letter-spacing:-.1px;
        margin-bottom:clamp(20px,5vw,40px);
        transform:scaleY(1.2);
        margin-top: -450px;
   }
    .highlight-title::after,.highlight-title::before{
        content:'';
        position:absolute;
        top:50%;
        width:17%;
        border-top:1px solid #e09900 
   }
    .highlight-title::before{
        left:15%;
        transform:translateY(-50%) 
   }
    .highlight-title::after{
        right:15%;
        transform:translateY(-50%) 
   }
}
.flipbox .back,.flipbox:hover .flipbox-inner{
    transform:rotateY(180deg) 
}
.btn-outline-light:hover{
    background-color:#fff;
    color:#333;
}
.carousel-image-small{
    width:100px;
    height:auto;
    margin-top:10px;
    display:block;
    margin-left:auto;
    margin-right:auto 
}
.carousel{
    max-width:80%;
    margin:0 auto;
}
.carousel-item{
    display:flex;
    justify-content:space-between 
}
.col{
    width:23% 
}
.col img{
    width:100%;
    height:120px;
    object-fit:contain;
    border-radius:10px 
}
.carousel-indicators li{
    background-color:#fff 
}
.container{
    max-width:1200px;
    margin:5% auto 0;
    padding:0 20px 
}
#quienessomos{
    padding:0 1em;
    background-color:#f9f9f9 
}
.row{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    margin:10% 
}
.row-recuadro{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:20px;
    width:100% 
}
.column{
    flex:1 1 48%;
    margin:10px 10px 5% 
}
.image-container,.image-container-logo{
    width:60%;
    margin-top:5%;
    text-align:center 
}
.full-width{
    flex:1 1 100% 
}
.image-container{
    margin-left:1cqh;
    margin-right:10px 
}
.image-container img{
    max-width:165%;
    margin-bottom:30px 
}
.image-container-logo {
    margin-left: 15%;
    margin-right: 10px;
    text-align: center;
    margin-top: 5%;
}
.image-container-logo img {
    margin-bottom: 30px;
    display: block;
}
.text-container{
    margin:20px 0;
    font-size:13px 
}
.text-container-ultimo{
    margin:20px 0 8%;
    font-size:13px 
}
.infinite-carousel{
    width:70%;
    margin:0 auto ;
    margin-bottom: 10%;
}
.carousel-images{
    display:flex;
    animation:20s linear infinite scrollInfinite 
}
.carousel-images img{
    width:250px;
    height:150px;
    object-fit:cover;
    margin-right:10px 
}
@keyframes scrollInfinite{
    0%{
        transform:translateX(0) 
   }
    100%{
        transform:translateX(-100%) 
   }
}
.btn-vermas{
    display:inline-block;
    padding:12px 24px;
    color:#1e90ff;
    background-color:transparent;
    border:2px solid #1e90ff;
    border-radius:25px;
    text-decoration:none;
    text-align:center;
    transition:.3s;
    margin-bottom: 3%;
    margin-top: 1%;
    margin-left: 40%;
}
.btn-vermas:hover{
    background-color:#1e90ff;
    color:#fff 
}
.dynamic-grid-container{
    width:90%;
    max-width:900px;
    margin:50px auto 
}
.dynamic-grid-wrapper{
    display:flex;
    transition:transform .5s ease-in-out 
}
.btn-move,.dynamic-grid-dot{
    cursor:pointer;
    transition:background-color .3s 
}
.dynamic-grid-item{
    flex:0 0 calc(50% - 10px);
    margin-right:10px;
    border-radius:5px;
    height:300px;
    background-color:#007bff 
}
.dynamic-grid-dots{
    display:flex;
    justify-content:center;
    margin-top:20px 
}
.dynamic-grid-dot{
    width:12px;
    height:12px;
    margin:0 5px;
    background-color:#032a54;
    border-radius:50% 
}
.dynamic-grid-dot.active{
    background-color:#555 
}
.dynamic-grid-item::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:rgba(5,9,73,.863);
    z-index:1 
}
.dynamic-grid-controls{
    display:flex;
    justify-content:space-between;
    width:80%;
    max-width:400px;
    margin:50px auto 
}
.btn-move{
    background-color:#007bff;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:5px;
    font-size:16px 
}
.btn-move:hover{
    background-color:#0056b3 
}
.content-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
    padding:10px;
    z-index:2 
}
.content-overlay h3{
    font-size:13px;
    font-weight:700;
    margin:0 0 10px 
}
.content-overlay p{
    font-size:11px;
    line-height:1.5;
    margin:0 
}
.ver-mas-btn{
    position:absolute;
    bottom:10px;
    right:10px;
    padding:5px 15px;
    font-size:14px;
    text-decoration:none;
    color:#fff;
    border:2px solid #fff;
    border-radius:5px;
    background-color:rgba(0,0,0,.5);
    z-index:2;
    transition:.3s 
}
.ver-mas-btn:hover{
    background-color:#fff;
    color:#007bff;
    border-color:#007bff 
}
.img_banner_arriba_footer{
    display:block;
    margin:5% auto;
    width:100%;
    max-width:800px;
    height:auto ;
    margin-bottom: -5%;
}
.map-container{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    height:calc(100vh - 50px);
    padding-bottom:20px 
}
.map-container iframe{
    width: 90%;
    max-width:1000px;
    height:80%;
    border:0 
}
.content-container {
    max-width: 1200px;
    margin: auto;
    text-align: justify;
   /* Cambia la alineación a justificado */
    line-height: 1.8;
    padding: 20px;
    margin-top: 3%;
}
.new-main-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.new-image-section {
    width: 100%;
    max-width: 800px;
    text-align: center;
}
.new-container {
    position: relative;
   /* Mantiene el contenido dentro de la imagen */
    width: 100%;
    text-align: center;
}
.new-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
.new-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
}


@media (max-width: 768px) {
    .banner {
        height: 830px;
        background: url('https://elearning.explor-k.cl/CDN/explork/PNG_A_WEBP/banner_new_ultima_cel.webp') no-repeat center center;
        background-size: 120%;
        background-position: center center;
        background-repeat: no-repeat;
        width: 100%;
        margin-left: 0%;
   }

   .banner-text-left, .banner-text-right {
    display: none;
}

   .banner-image {
    display: none;
}
    .button-container {
        margin-left: -6%;
   }
    .btn-vermas{
        margin-left: 13%;
   }
    .highlight-title{
        margin-top: -30%;
   }
    .video-container.youtube-placeholder {
        flex: 1 1 100%;
        max-width: 800px;
   }
    .video-container.youtube-placeholder img {
        max-height: 280px;
   }
    .videos-grid {
        grid-template-columns: 1fr;
   }
    .video-item video, .video-item img {
        max-width: 100%;
   }
    .img_banner_arriba_footer{
        margin-bottom: -10%;
   }





   .custom-grid-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px; 
    padding: 20px 0;
    margin-top: 5%;
    margin-bottom: 5%;
}

.custom-grid-item-left {
    text-align: center;
    flex: 1 1 45%;
    color: #e2b316;
    font-size: 25px;
    font-weight: 600;
}
   

}

#carrusel-text {
    position: absolute;
    top: 10%;
    left: 48%;
    color: white;
    font-size: 37px;
    font-weight: bold;
    text-align: left;
    width: 50%;
    max-width: 600px;
    line-height: 1.2;
    text-shadow: 
        0 0 5px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 0, 0, 0.4);

    overflow-wrap: break-word;
    word-break: break-word;
}




@media (max-width: 768px) {
    #carrusel-text {
        font-size: 12px;  
        width: 90%;       
        max-width: 50%;   
        left: 50%;         
        top: 15%;         
    }
}

@media screen and (min-width: 1440px) {
    .container-principal {
        max-width: 1440px;
        margin: 0 auto;
    }
}

@media (max-width: 820px) and (min-width: 760px) {

   .banner {
    position: relative;
    background: url('https://elearning.explor-k.cl/CDN/explork/PNG_A_WEBP/banner_new_ultima.webp') no-repeat center center;

    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}



}

