* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* scroll */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-thumb {
    background: #deb865;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #000000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: #1a2141;
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
    padding: 0;
}

.header {
    position: fixed;
    display: flex;
    flex-direction: row;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: #1a2141;
    border-radius: 0px 0px 16px 16px;
    z-index: 9998;
    border-left: 9px solid #DEB865CC;
    border-right: 9px solid #DEB865CC;
    border-bottom: 9px solid #DEB865CC;
    border-top: 0px;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.8);
}

.logoholder {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 10px;
    width: 30%;
}

.logoholder img {
    width: auto;
    height: 80px;
}

/*=======menu======*/

.navholder {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 70%;
    padding: 10px;
}


.menu {
    margin-right: 70px;
}

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    align-items: center;
}

.menu-list li a {
    color: white;
    text-decoration: none;
    padding: 9px;
    display: block;
    transition: background 0.3s ease;
    line-height: 1.6;
}

.menu-list li a:hover {
    border-bottom: 3px solid #deb865;
    line-height: 1;
}

/* Estilo para el submenu */
#destacado {
    display: block;
    background-color: #deb865;
    border-radius: 8px;
}

.submenu {
    position: relative;
}

.submenu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #DDE0F0;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 150px;
    z-index: 9999;
}

.submenu-list li a {
    color: #000000;
    padding: 0.5rem 1rem;
    display: block;
    text-decoration: none;
}

.submenu-list li a:hover {
    background-color: #deb865;
    color: #ffffff;
}

.submenu svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    height: 12px;
    width: 12px;
    fill: #ffffff;
}

.submenu:hover .submenu-list {
    display: block;
}

.menu-list>li {
    position: relative;
}

#sub {
    z-index: 9999;
    position: absolute;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.submenu-list {
    display: none;
    transition: all 0.3s ease;
}

.submenu.active .submenu-list {
    display: block;
}

.navholder.mobile-only {
    display: none;
}

.navholder.mobile-only.active {
    display: block;
}


/*==video home==*/

.video-container {
    position: relative;
    width: 100%;
    height: 95vh;
    overflow: hidden;
    margin-bottom: 60px;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1);
}

#mute-button {
    position: absolute;
    bottom: 120px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
}

@media only screen and (max-width: 48em) {
    .video-container {
        height: 34vh;
    }

    #mute-button {
        bottom: 20px;
    }
}

/*===*/

.intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 75%;
    margin-top: 60px;
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
    background-color: #deb865;
    border-radius: 16px;
}

.fotointro {
    width: 40%;
    display: flex;
    justify-content: flex-end;
}

.fotointro img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.8);
    border-radius: 0px 16px 16px 0px;
}

.intro h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 1rem;
}

.textintro {
    width: 50%;
    margin-left:auto;
    margin-right:auto;
    padding: 2rem;
    text-align: center;
}

.textintro b {
    text-align: center;
    color: #ffffff;
}

.textintro p {
    text-align: center;
}

/*===== slider ===*/
#introCarousel .carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

#introCarousel .carousel-track-container {
    overflow: hidden;
    width: 100%;
}

#introCarousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

#introCarousel .carousel-slide {
    flex: 0 0 100%; 
    box-sizing: border-box;
    padding: 1rem;
    height: 400px;
}

.slide1 {
    background-image: url('/stjude/Amazing-Learning-min-scaled.webp');
    background-size: cover;
    background-position: center;
    height: 400px;
    width: 100%;
}
.slide2 {
    background-image: url('/stjude/Matricula-Abierta-min-scaled.webp');
    background-size: cover;
    background-position: center;
    height: 400px;
    width: 100%;
}  
.slide3 {
    background-image: url('/stjude/Plan-de-Referidos-min-scaled.webp');
    background-size: cover;
    background-position: center;
    height: 400px;
    width: 100%;
} 

#introCarousel .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
   
    color: #0d3b70;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

#introCarousel .carousel-button.left {
    left: 0;
}

#introCarousel .carousel-button.right {
    right: 0;
}

#introCarousel .textintro {
    margin-left: 0px;
    padding: 20px;
    
}
#introCarousel .textintro h1 {
    color: #ffffff;
    text-align: left;
}
#introCarousel .textintro p {
    color: #ffffff;
    text-align: left;
}

.botonslider {
    display: flex;
    justify-content: center; 
    align-items: center;     
    height: 45px;
    width: 85px;
    border: 1px solid #deb865;
    margin-top: 20px;
    text-decoration: none; 
}


/*====*/

.circulo-top {
    width: 15%;
    left: 76%;
    position: absolute;
    top: 100%;
}

.btn {
    background-color: #deb865;
    margin-top: 5px;
    border: 0;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    padding: 12px 24px;
    text-align: center;
}

.video-instalaciones video {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius:16px;
}

.video-instalaciones {
    margin-bottom: 30px;
}

.numeros {
    display: flex;
    flex-direction: column;
    background-color: #dde0f0;
    justify-content: center;
    width: 100%;
    padding: 40px;
}

.numeros h2 {
    text-align: left;
    width: 80%;
    margin: auto;
    padding-left: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 2rem;
    width: 80%;
    margin: auto;
}

.item {
    background: #deb865;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    color: #0d3b70;
}

.item h3 {
    font-size: 69px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.niveles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 40px;
}

.niveles h2 {
    text-align: center;
    width: 80%;
    margin: auto;
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 2rem;
    width: 80%;
    margin: auto;
}

.niveles .btn {
    background-color: #1a2141;
}

.item2 {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(33, 65, 145, 0.10);
    transition: background 0.3s ease-in-out;
    z-index: 1;
    border-radius: 10px;
}

.item2:hover .overlay {
    background: rgba(33, 65, 145, 0.5);
}

.item-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.item-content h2 {
    margin: 0;
    color: #ffffff;
    text-align: center;
}

.item-content button {
    background-color: #0d3b70;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/*== carousel ==*/

.programas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.programas h2 {
    margin-bottom: 30px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1140px;
    margin: auto;
    padding: 0 50px;
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.blog .carousel-slide {
    flex-direction: column;
    min-width: 33.33%;
    height: auto;
    margin: 5px;
    text-align: left;
    justify-content: flex-start;
}

.blog .carousel-slide h3 {
    font-size: 17px;
    margin-bottom: 20px;
    color: #deb865;
}

.blog .carousel-slide p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.blog .carousel-slide a {
    text-decoration: none;
    color: #0d3b70;
    font-weight: bold;
    font-size: 1rem;
    text-align: left;
}

.carousel-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.blog .post-slide img {
    width: 100%;
    height: 145px !important;
    object-fit: cover;
    border-radius: 16px !important;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    z-index: 2;
    font-size: 25px;
    color: #0d3b70;
}

.carousel-button.left {
    left: 0;
}

.carousel-button.right {
    right: 0;
}

/*=== testimonios ===*/
.testimonios {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    overflow: visible;
}

.testimonios h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.grid-testimonios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.item-testimonios {
    
    padding: 1rem;
    border-radius: 10px;
    height: auto;
    display: block;
    text-align: center;
    position: relative;
}

.item-testimonios b {
    color: #0d3b70;
}

/* Nuevo contenedor para centrar solo el contenido */
.item-testimonios>.contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}


.svg-left,
.svg-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: auto;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.svg-left {
    left: -100px;
}

.svg-right {
    right: -100px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-testimonios {
        grid-template-columns: 1fr;
    }

    .svg-left,
    .svg-right {
        display: none;
    }
}

/*=== seccion isp ===*/
.isp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #eaf0f7;
}

.isp {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 1140px;
    margin: 0 auto;
    padding: 50px 20px 50px 20px;
    box-sizing: border-box;
    gap: 40px;
}

.isp>div {
    width: 48%;
    margin-bottom: 20px;
}

.isp>.button-container {
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

.isp .left-column,
.isp .right-column {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-column h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.left-column p {
    line-height: 1.5;
    text-align: justify;
}

.center-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #0d3b70;
    color: white;
    border: none;
    border-radius: 5px;
}

.center-button:hover {
    background-color: #deb865;
}

.isp iframe {
    border-radius: 16px;
    overflow: hidden;
}

.isp-vid {
    border-radius: 16px;
}

.blog {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 40px;
}

.footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    width: 95%;
    margin:auto;
    height: 290px;
    padding: 0px 40px;
    background-color: #1a2141;
    border-left: 8px solid #deb865;
    border-right: 8px solid #deb865;
    border-top: 8px solid #deb865;
    border-radius: 16px 16px 0px 0px;
    padding-bottom: 20px;
}

.colfoot {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.logofooter {
    width: 30%;
    height: auto;
    margin: auto;
}
.logoispfooter {
    width: 20%;
    height: auto;
    margin: auto;
}

.redes {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.redes svg {
    height: 20px;
    fill: white;
}

.redes a {
    display: flex;
    align-items: center;
}


.colfoot {
    padding: 30px;
    text-align: center;
}

.colfoot h3,
a {
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    line-height: 2;
}

.colfoot ul {
    list-style: none;
}

.bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #1a2141;
    color: #ffffff;
    padding: 6px;
    border-top: 2px solid #deb865;
    border-left: 8px solid #deb865;
    border-right: 8px solid #deb865;
    width: 95%;
    margin: auto;
}

.btnfoot {
    background-color: #deb865;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

/*== flotantes ==*/
.flotante {
	position: fixed;
	display: flex;
	flex-direction: column;
	bottom: 40vh;
    left: 0;
    background-color: #deb865;
    border-radius: 0 16px 16px 0;
    padding: 0.6rem;
    min-width: 1rem;
    box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.8);
	z-index:999;
}

.flotante i {
	margin: 0.4rem 0 0.4rem 0;
    font-size: 20px;
	text-decoration: none;
}

.flotante a {
	color: #ffffff;
	text-decoration: none;
	text-align: center;
}

/*== chatbot ==*/

#kenytChatBubble {
    margin-right: 90px !important;
}

#kenytChatBubble.style1 {
    margin-bottom: 10px !important;
    width: 145px !important;
}

#kenytChatBubble.style1 .kbubble-container {
    background-color: #cf3391 !important;
    width: 210px !important;
    border-radius: 50px !important;
    justify-content: left !important;
    padding-left: 0px !important;
}

.img-container:after {
    content: 'Chatea con nosotros';
    color: #ffffff !important;
    margin-left: 4px !important;
    margin-right: 4px !important;
}

#kenytChatBubble.style1 .kbubble-container .img-container {
    width: auto !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

#bubbleTail {
    border-top-color: #cf3391 !important;
    display: none !important;
}

/*== burbuja whats en top bar ==*/
.whats-menu {
    left: 30px;
    top: -45px;
}

.whatsm {
    width: 25px;
    height: 25px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #0e813c;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    padding: 1px !important;
}

.whatsm svg {
    width: 20px;
    height: 20px;
    display: block;
}

/*== chat whats ==*/
.whats {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*gap: 8px;*/
    background-color: #0e813c;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    padding: 10px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

a.whats {
    text-decoration: none;
    color: #ffffff !important;
}

.whats:hover {
    background-color: #20b858;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.responsive-iframe {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*======= movil =======*/
@media only screen and (max-width: 768px) {

    .header {
        border-radius: 0px;
        width: 100vw;
        border: none;
    }

    .logoholder {
        width: 80%;
    }

    .logoholder img {
        width: auto;
        height: 50px;
    }

    .mobile-only {
        display: block;
        height: 50px;
        width: 50px;
        top: 35px;
        position: relative;
    }

    .navholder {
        display: none;
        /* Ocultar inicialmente */
        position: absolute;
        top: 110px;
        /* Ajusta según la altura de tu botón */
        left: 0;
        width: 100%;
        height: 90vh;
        background-color: #0d3b70;
        /* Color de fondo del menú */
        z-index: 9999;
        /* Asegura que esté encima de otros elementos */
    }

    .navholder.active {
        display: block;
    }

    .menu {
        margin: 5px;
    }

    .menu-list {
        display: block;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu-list li {
        border-bottom: 1px solid #ddd;
        /* Separadores entre elementos */
    }

    .menu-list li a {
        display: block;
        padding: 15px;
        text-decoration: none;
        color: #ffffff;
    }

    .menu-list li a:hover {
        -color: #eee;
    }

    .submenu-list {
        list-style: none;
        min-width: 100%;
        background-color: #deb865;
        padding: 0;
        margin: 0;
        display: none;
        /* Ocultar submenú inicialmente */
    }

    .submenu-list.active {
        display: block;
        /* Mostrar submenú cuando está activo */
    }

    .submenu>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .submenu>a svg {
        transition: transform 0.3s ease;
    }

    .submenu.active>a svg {
        transform: rotate(180deg);
    }

    .video-container {
        margin-top: 80px;
        margin-bottom: 60px;
    }

    .intro {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
        width: 100%;
    }

    .fotointro img {
        width: 95%;
    }

    .fotointro,
    .textintro {
        width: 100%;
    }

    .textintro p {
        width: 95%;
        text-align: justify;
    }

    .grid {
        width: 95%;
        margin: auto;
        padding: 5px;
    }

    .grid2 {
        grid-template-columns: repeat(1, 1fr);
        width: 95%;
        margin: auto;
        padding: 5px;
    }

    .item2 {
        height: auto;
    }

    .grid-testimonios {
        grid-template-columns: repeat(1, 1fr);
        width: 95%;
        margin: auto;
        padding: 5px;
    }

    .isp-container {
        flex-direction: row;
    }

    .isp {
        flex-direction: column;
        align-items: center;
    }

    .isp>div {
        width: 100%;
    }

    .isp iframe {
        width: 100%;
        height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .blog .carousel-slide {
        width: 100%;
        height: auto;
        min-width: 100%;
    }

    .blog .carousel-slide img {
        width: 100%;
        height: auto;
    }

    .footer {
        height: auto;
    }

    .patch-footer {
        position: relative;
        top: 0;
        left: 0;
    }

    .insta {
        width: 100%;
        margin-top: 0px;
    }

    .blog {
        padding: 10px;
    }

    .carousel-wrapper {
        width: 100%;
        padding: 0 10px;
    }

    .carousel-slide {
        min-width: 100%;
        height: auto;
    }

    .circulo-top {
        width: 45%;
        left: 10%;
    }
}