body {
    font-family: 'Kanit', sans-serif;
    text-transform: uppercase;
    color: #000000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url('Web-2_1.webp');
    background-size: cover; /* Ajusta la imagen para que cubra toda la pantalla */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    background-attachment: fixed; /* Mantiene el fondo fijo al hacer scroll */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
.elfsight-app-9326e5bc-dca3-4ae9-b34c-f556f35b58cc .elfsight-logo {
    display: none !important;
}
.section::after {
    content: "";
    display: table;
    clear: both;
  }
section img:first-child {
    margin-top: 0;
    padding-top: 0;
    display: block;
}



  .section {
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column; 
    height: 100vh; 
    margin: 0; 
    padding: 0; 
  }
      
    
/* Estilos del Navbar */
.navbar {
    background-color: #fc8007; /* Color naranja */
    
}

.navbar-brand {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler {
    margin-left: auto;
    margin-right: auto;
}

.nav-link {
    color: white;
}

.nav-link:hover {
    color: rgb(0, 174, 255); 
}

/* Botones */
.btn-primary {
    background-color: #fc8007; 
    border-color: #fc8007;
}

.btn-primary:hover {
    background-color: #d8881a;
    border-color: #d8881a;
}

.btn-outline-primary {
    border-color: #fc8007;
    color: #fc8007;
}

.btn-outline-primary:hover {
    background-color: #fc8007;
    color: white;
}

/* Sponsor box */
.sponsor-box {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #fc8007;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    
}

.sponsor-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.sponsor-logo {
    width:90px;
    height: auto;
    margin-right: 10px;
    
}

.sponsor-link:hover {
    transform: scale(1.05); 
}

/* Secciones */
#secciones h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.btn-outline-primary {
    border-color: #fc8007;
    color: white;
    font-family: 'Kanit', sans-serif;
    background-color: #fc8007;
}

.btn-outline-primary:hover {
    background-color: #fc8007;
    color: white;
}

/* Contenido de las secciones */
#contenido-seccion {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    transition: all 0.5s ease;
}

/* Cards (tarjetas de cursos) */
.card {
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    flex: 1 1 calc(50% - 20px); /* Two columns layout */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures content and button stay spaced */
    height: auto;
    border-radius: 8px; /* Bordes redondeados */
    overflow: hidden; /* Evita desbordamiento visual */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
}
/* Ajuste global de las tarjetas */


.card-title {
    font-size: 1.25rem; /* Tamaño de título */
    font-weight: bold;
    color: #333; /* Color del texto */
}

.card-text.descripcion {
    max-height: auto;
    overflow-y: auto; /* Habilitar scroll si es necesario */
    font-size: 0.9rem; /* Tamaño legible */
    color: #555; /* Color del texto */
    text-align: justify; /* Alineación de texto */
    line-height: 1.4; /* Espaciado entre líneas */
    padding-right: 10px; /* Espacio adicional para scroll */
}

.card img {
    object-fit: cover; /* Asegura que las imágenes se ajusten */
    height: 100%; /* Altura completa */
    width: 100%; /* Ancho completo */
}

.btn-success {
    font-size: 1rem; /* Tamaño del botón */
    font-weight: bold; /* Resaltar botón */
}

.d-flex.align-items-stretch {
    display: flex;
    align-items: stretch; /* Tarjetas de altura uniforme */
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .card-title {
        font-size: 1rem; /* Tamaño más pequeño en dispositivos móviles */
    }

    .card-text.descripcion {
        font-size: 0.8rem; /* Reducir texto en móviles */
    }
}
.row {
    display: flex;
    flex-wrap: wrap;
}
.card:hover {
    transform: scale(1.05);
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}
/* Estilo general para el botón de WhatsApp */
.chat-container {
    position: fixed;
    bottom: 20px; /* Distancia desde la parte inferior */
    right: 20px;  /* Distancia desde la derecha */
    z-index: 999; /* Asegura que el botón esté por encima de otros elementos */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar elementos horizontalmente */
}

#formulario-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
    max-width: 90%;
    width: 400px;
    max-height: 90%;
    overflow-y: auto;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

#video-container {
    margin-top: 20px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #777;
}

/* Muestra la burbuja de chat al pasar el ratón sobre el contenedor */
.chat-container:hover .chat-bubble {
    display: block; /* Muestra la burbuja */
}

.card-text {
    flex-grow: 1;
    text-align: justify;
}

.img-fluid {
    object-fit: cover;
    height: 100%;
    object-fit: contain;
}
img {
    max-width: 100%;  
    height: auto;   
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges; 
}
ul li a i {
    transition: transform 0.3s ease;
}

ul li a i:hover {
    transform: scale(1.1); /* Aumenta ligeramente el tamaño del ícono */
}

/* Botón para contacto vía WhatsApp */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Paginación */
.pagination a {
    color: #fc8007;
}

.pagination a:hover {
    color: #d8881a;
}

/* Modal */
.modal-content {
    background-color: #f9f9f9;
    border-radius: 5px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    color: #333;
}

.btn-close {
    background: none;
    border: none;
    color: #aaa;
}

.btn-close:hover {
    color: #777;
}

/* Footer */
footer {
    margin-top: 20px;
    background-color: #fc8007;
    color: #FFFFFF;
    text-align: center;
    padding: 1rem 0;
    font-family: 'Kanit', sans-serif;
}
.footer {
    background-color: #212529; /* Color oscuro de fondo */
}
/* Estilo para limitar el tamaño del texto y permitir scroll */
.descripcion {
    max-height: 100px; /* Ajusta según el tamaño deseado */
    overflow-y: auto; /* Habilita scroll vertical */
    padding-right: 10px; /* Espacio para el scroll */
    text-align: justify; /* Opcional: mejora la presentación del texto */
    font-size: 14px; /* Ajusta el tamaño del texto si es necesario */
}


.footer h5 {
    font-weight: normal;
    margin-bottom: 20px;
}

.footer a {
    color: #ffffff; /* Color blanco para los enlaces */
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fb9c23; /* Cambia el color al pasar el cursor */
}

.footer img {
    transition: transform 0.3s ease;
}

.footer img:hover {
    transform: scale(1.1); /* Efecto zoom al pasar el cursor sobre los íconos */
}


/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
    
}

/* Sombras suaves para los contenedores */
.container, .card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.card img {
    width: 100%; /* Make sure images are responsive */
    height: auto; /* Set a fixed height to standardize the size */
    object-fit: contain; /* Ensures the image fills the space */
}

/* Efecto hover para que el contenedor resalte */
.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    transition: all 0.3s ease;
}
#modal-body-content {
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.3;
    padding: 20px;
    font-size: 16px;
    font-weight: normal;
}
#modal-body-content h3, 
#modal-body-content h4, 
#modal-body-content h5, 
#modal-body-content h6, 
#modal-body-content strong, 
#modal-body-content b {
    font-weight: normal; /* Elimina negrita */
}


/* Estilos para el botón flotante de WhatsApp */
.color1{
    color: #fc8007;
}
/* Responsive ajustes */
@media (max-width: 768px) {
    .video-container {
        max-width: 80%; /* Establece un ancho del 90% para que no ocupe toda la pantalla */
        margin: 0 auto; /* Centra el video en la pantalla */
        padding: 10px 0; /* Espaciado superior e inferior */
    }

    .video-container video {
        width: 100%; /* Asegura que el video se adapte al ancho del contenedor */
        height: auto; /* Mantiene la proporción del video */
    }
    .section {
        padding: 20px;
      }
      
      img {
        width: 90%; /* Haz que la imagen sea un poco más pequeña en móviles */
      }
    header .titulo {
        text-align: center;
        font-size: 1.5rem; /* Ajusta el tamaño de la fuente si es necesario */
        margin: 0 auto; /* Centra el título */
    }

    .navbar-toggler {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .navbar-collapse {
        text-align: center;
    }
    .navbar-brand {
        font-size: 1.1rem; /* Reducir el tamaño del título en pantallas pequeñas */
        text-align: center , justify; /* Centrar el título */
        
    }
    .navbar-nav {
        width: 100%;
        text-align: center;
    }

    .btn {
        width: 90%;
        margin: 5px 0;
    }

    .sponsor-box, #contenido-seccion {
        margin-top: 10px;
    }
    .seo-hidden {
        position: absolute; /* Sacarlo del flujo normal */
        width: 1px; /* Reducir el ancho a 1px */
        height: 1px; /* Reducir la altura a 1px */
        overflow: hidden; /* Ocultar el desbordamiento */
        clip: rect(0, 0, 0, 0); /* Usar clip para ocultar */
        white-space: nowrap; /* Evitar que se muestre en una nueva línea */
        border: 0; /* Sin borde */
    }
 
}
@media (max-width: 768px) {
    body {
        background-image: url('Web-4_3.webp');
    }
}
@media (min-width: 769px) {
    body {
        background-image: url('Web-2_1.webp');
    }
}

