@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1500px !important;
    }
}


.hero .carousel-item {
    position: relative;
    background: transparent !important;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: transparent !important;
}

.hero .carousel-item .container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    margin-top: 300px;
}

/* Carrusel dinámico Bootstrap */
.hero .carousel-inner {
    min-height: 600px;
}

.hero .carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    background: #222;
}

.hero .carousel-inner {
    min-height: 600px;
}

.hero .carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.hero .carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero .carousel-item .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   HEADER Y LOGO MEJORADO
======================================== */

.header .logo img {
    height: 120px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

.header .logo:hover img {
    transform: scale(1.05);
}

/* Asegurar que el logo sea visible */
.header .logo {
    display: flex !important;
    align-items: center !important;
}

.header .logo img {
    max-height: 70px;
}

/* Responsive para el logo */
@media (max-width: 768px) {
    .header .logo img {
        height: 90px;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .header .logo img {
        height: 70px;
        max-width: 200px;
    }
}

/* ========================================
   ESTILOS ADICIONALES PARA LINKBG GROUP
# Mejoras visuales para las secciones personalizadas
======================================== */

/* ========================================
   MEJORAS PARA SECCIONES DE SERVICIOS
======================================== */

.course-card {
    background: var(--linkbg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 115, 190, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 115, 190, 0.2);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.course-card .portfolio-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.course-card .portfolio-info h4 {
    color: var(--linkbg-blue-primary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-card .portfolio-info p {
    color: var(--linkbg-gray-dark);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   SECCIONES DE INFORMACIÓN
======================================== */

.info-item {
    background: var(--linkbg-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(30, 115, 190, 0.08);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(30, 115, 190, 0.15);
}

.info-item h4 {
    color: var(--linkbg-blue-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-item p {
    color: var(--linkbg-gray-dark);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ========================================
   SECCIÓN DE CONTACTO
======================================== */

.contact .info-item {
    background: var(--linkbg-white);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 115, 190, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.contact .info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 115, 190, 0.2);
}

.contact .info-item h3 {
    color: var(--linkbg-blue-primary);
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.contact .info-item p {
    color: var(--linkbg-gray-dark);
    margin: 0;
}

.contact .info-item a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact .info-item a:hover {
    color: var(--linkbg-orange) !important;
}

/* ========================================
   SECCIÓN DE CLIENTES - SOLO LOGOS
======================================== */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--linkbg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(30, 115, 190, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 115, 190, 0.1);
    height: 140px;
}

.client-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 115, 190, 0.15);
    border-color: var(--linkbg-blue-primary);
}

.client-logo-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* filter: grayscale(100%) opacity(0.9); */
    transition: all 0.3s ease;
}

.client-logo-item:hover .client-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Estadísticas Simples */
.clients-stats {
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.05), rgba(243, 156, 18, 0.05));
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(30, 115, 190, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--linkbg-blue-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--linkbg-gray-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Call to Action Simple */
.clients-cta {
    background: var(--linkbg-white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 20px rgba(30, 115, 190, 0.1);
    border: 1px solid rgba(30, 115, 190, 0.1);
    margin-top: 3rem;
}

.clients-cta h4 {
    font-size: 1.8rem;
    font-weight: 600;
}

.clients-cta p {
    color: var(--linkbg-gray-dark);
    font-size: 1.1rem;
}

/* Responsive para Clientes */
@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        margin: 2rem 0;
    }

    .client-logo-item {
        padding: 1.5rem;
        height: 120px;
    }

    .client-logo-img {
        max-height: 60px;
    }

    .clients-stats {
        padding: 2rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .clients-cta {
        padding: 2rem 1rem;
    }

    .clients-cta h4 {
        font-size: 1.5rem;
    }

    .clients-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .client-logo-item {
        padding: 1rem;
        height: 100px;
    }

    .client-logo-img {
        max-height: 50px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* ========================================
   FORMULARIO DE CONTACTO
======================================== */

.contact .php-email-form .form-control {
    border: 2px solid var(--linkbg-gray-medium);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.contact .php-email-form .form-control:focus {
    border-color: var(--linkbg-blue-primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 115, 190, 0.25);
}

/* ========================================
   REDES SOCIALES
======================================== */

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    /*  background: var(--linkbg-blue-primary);
    color: var(--linkbg-white); */
    margin-right: 0.5rem;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* .social-links a:hover {
    background: var(--linkbg-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
} */

.social-links a i {
    font-size: 1.2rem;
}

/* ========================================
   NAVEGACIÓN MEJORADA
======================================== */

.navmenu a {
    color: var(--linkbg-blue-dark);
    transition: color 0.3s ease;
}

.navmenu a:hover,
.navmenu .active {
    color: var(--linkbg-blue-primary) !important;
}

.navmenu .dropdown ul a:hover {
    color: var(--linkbg-blue-primary) !important;
    background-color: rgba(30, 115, 190, 0.1);
}

/* ========================================
   TÍTULOS DE SECCIÓN
======================================== */

.section-title h2 {
    color: var(--linkbg-blue-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: none !important;
}

.section-title {
    padding-bottom: 8px;
}

/* ========================================
   FOOTER MEJORADO
======================================== */

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--linkbg-blue-primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-description p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-description strong {
    color: var(--linkbg-blue-primary);
}

/* Lista de Contacto */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item i {
    color: var(--linkbg-blue-primary);
    font-size: 1.1rem;
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--linkbg-orange);
}

/* Newsletter Footer */
.footer-newsletter h5 {
    color: var(--linkbg-blue-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-newsletter .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-newsletter input[type="email"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 0.6rem 0.8rem;
    color: white;
    font-size: 0.85rem;
}

.footer-newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--linkbg-orange);
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter input[type="submit"] {
    background: linear-gradient(135deg, var(--linkbg-blue-primary), var(--linkbg-orange));
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-contact-item {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }

    .footer-contact-item i {
        font-size: 1rem;
        margin-right: 0.6rem;
    }

    .footer-newsletter {
        margin-top: 2rem;
    }

    .footer-newsletter .newsletter-form {
        gap: 0.3rem;
    }

    .footer-newsletter input {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .course-card img {
        height: 180px;
    }

    .course-card .portfolio-info {
        padding: 1.2rem;
        min-height: 160px;
    }

    .course-card .portfolio-info h4 {
        font-size: 0.95rem;
        min-height: 2.4em;
    }

    .course-card .portfolio-info p {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .info-item {
        padding: 1rem;
    }

    .contact .info-item {
        padding: 1.5rem 1rem;
    }

    .client-item {
        height: 100px;
        margin: 0.25rem;
    }
}

@media (max-width: 576px) {
    .course-card img {
        height: 160px;
    }

    .course-card .portfolio-info {
        padding: 1rem;
        min-height: 140px;
    }

    .course-card .portfolio-info h4 {
        font-size: 0.9rem;
        min-height: 2.2em;
    }

    .course-card .portfolio-info p {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* Carousel */
.hero .carousel {
    min-height: 600px !important;
}

/* Carrusel dinámico Bootstrap */
.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    background: #222;
}

.blog-posts .post-title {
    color: #000000;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 15px;
    z-index: 1051;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 2rem;
    transition: box-shadow 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.whatsapp-float .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 50%;
    padding: 2px 7px;
    font-weight: bold;
}

.slick-track {
    display: flex !important;
    align-items: center;
    gap: 20px;
}

/* Asegura que las flechas estén sobre el carrusel y sean visibles */
.slick-prev,
.slick-next {
    z-index: 10 !important;
    display: block !important;
    opacity: 1 !important;
}

.slick-prev {
    left: -50px !important;
}

.slick-next {
    right: -50px !important;
}

/* Opcional: aumenta el tamaño de las flechas */
.slick-prev:before,
.slick-next:before {
    font-size: 32px !important;
    color: #333 !important;
}

/* Ajusta la altura del slider en pantallas menores a 1000px */
/*@media (max-width: 1290px) { */
@media (min-width: 1000px) and (max-width: 1290px) {

    #hero-carousel,
    #hero-carousel .carousel-inner,
    #hero-carousel .carousel-item {
        min-height: 400px !important;
        height: 400px !important;
        max-height: 400px !important;
    }
}

/* Slider más bajo en pantallas móviles verticales */
@media (max-width: 600px) and (orientation: portrait) {

    #hero-carousel,
    #hero-carousel .carousel-inner,
    #hero-carousel .carousel-item {
        min-height: 500px !important;
        height: 500px !important;
        max-height: 500px !important;
    }

    .facebook {
        display: none;
    }

    .instagram {
        display: none;
    }

    .linkedin {
        display: none;
    }

    .youtube {
        display: none;
    }
}

@media (max-width: 768px) {

    .header-social-links>.facebook,
    .header-social-links>.instagram,
    .header-social-links>.linkedin,
    .header-social-links>.youtube {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .header .header-social-links {
        order: 2;
        padding: 0 15px 0 0;
        display: flex;
    }

    .header>.container {
        justify-content: center;
    }
}

.hero .carousel-item .container {
    margin-top: 100px;
}

#hero-carousel,
#hero-carousel .carousel-inner,
#hero-carousel .carousel-item {
    min-height: 350px !important;
    height: 350px !important;
    max-height: 350px !important;
}

.hero h2 {
    margin-bottom: 10px;
}

.hero .container {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 10px;
}