/********** Template CSS **********/

:root {
    --bs-primary: #c58b2a;
    --bs-primary-rgb: 197, 139, 42;
}

body {
    font-family: 'Poppins', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #00295d;
}

h1 {
    color: #c58b2a;
    font-weight: 800;
}

html {
    scroll-behavior: smooth;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.pt-6 {
    padding-top: 5rem;
}

.pb-6 {
    padding-bottom: 5rem;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #c58b2a;
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: #c58b2a;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar-custom {
    background-color: #cedaf0;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: #00346f;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #c58b2a;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


.hero-img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
}


/* --- ESTILOS DE LA SECCIÓN --- */
.tqs-opiniones {
    font-family: 'Montserrat', sans-serif; /* O la fuente que uses en TQS */
    background-color: #fff;
    padding: 60px 20px;
    color: #333;
}

.tqs-opiniones-container {
    max-width: 1200px; /* Ancho máximo estándar para TQS */
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center; /* Centrar verticalmente título y slider */
    gap: 40px; /* Espacio entre el título y el slider */
}

/* --- TÍTULO DE LA SECCIÓN --- */
.tqs-opiniones-title {
    color: #003366; /* Azul TQS */
    font-size: 32px;
    font-weight: bold;
    font-style: italic; /* Como en la imagen */
    margin: 0;
    max-width: 300px; /* Limitar ancho del título */
    line-height: 1.2;
}

/* --- ESTILOS DEL SLIDER --- */
.tqs-swiper-opiniones {
    flex: 1; /* El slider ocupa el resto del espacio disponible */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.tqs-swiper-opiniones .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tqs-swiper-opiniones img {
    width: 100%;
    height: auto;
    border-radius: 4px; /* Un pequeño borde redondeado queda bien */
    display: block;
}

/* --- FLECHAS DE NAVEGACIÓN PERSONALIZADAS --- */
/* Posicionarlas SOBRE las imágenes */
.tqs-custom-prev, .tqs-custom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    width: auto;
    height: auto;
}

/* Quitar los estilos por defecto de Swiper si usas imágenes */
.tqs-custom-prev::after, .tqs-custom-next::after {
    display: none;
}

.tqs-custom-prev img, .tqs-custom-next img {
    width: 30px; /* Ajusta el tamaño de tus flechas */
    height: auto;
    opacity: 0.7; /* Para que sean sutiles como en la imagen */
    transition: opacity 0.3s ease;
}

.tqs-custom-prev img:hover, .tqs-custom-next img:hover {
    opacity: 1; /* Resaltar al pasar el mouse */
}

/* Posición de las flechas (como en la imagen, sobre la primera y tercera foto) */
.tqs-custom-prev {
    left: 20px; /* Sobre la primera imagen */
}

.tqs-custom-next {
    right: 20px; /* Sobre la tercera imagen */
}

/* Cambiar el color de las flechas por defecto de Swiper */
.swiper-button-next, 
.swiper-button-prev {
    color: #003366 !important; /* Azul TQS */
    background-color: rgba(255, 255, 255, 0.471); /* Fondo circulito blanco sutil */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: scale(0.7); /* Para que no sean tan gigantes */
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    color: #c58b2a !important; /* Cambian a dorado al pasar el mouse */
}

/* --- RESPONSIVO PARA MÓVILES (Optimización) --- */
@media (max-width: 768px) {
    .tqs-opiniones-container {
        flex-direction: column; /* Título arriba, slider abajo en móvil */
        gap: 20px;
        text-align: center;
    }

    .tqs-opiniones-title {
        max-width: 100%;
        font-size: 24px; /* Un poco más pequeño en móvil */
    }
    
    /* Reajustar flechas para móvil */
    .tqs-custom-prev { left: 10px; }
    .tqs-custom-next { right: 10px; }
}

.tqs-swiper-opiniones img {
    width: 100%;
    height: 375px; /* Forzamos una altura constante */
    object-fit: cover; /* Recorta ligeramente si la imagen no es exacta para que no se estire */
    display: block;
}

/*** Header ***/
.carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    padding: 3rem;
    padding-left: 11rem;
    z-index: 1;
}

.carousel .carousel-indicators {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 80px;
    flex-direction: column;
    margin: 0;
    margin-left: 3rem;
}

.carousel .carousel-indicators [data-bs-target] {
    width: 70px;
    height: 70px;
    text-indent: 0;
    margin: 5px 0;
    border: 2px solid #FFFFFF;
    overflow: hidden;
}

.carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .carousel .carousel-item {
        position: relative;
        min-height: 600px;
    }

    .carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 60px;
        height: 60px;
    }

    .carousel .carousel-caption {
        padding-left: 0.5rem;
    }
}

@media (max-width: 768px) {
    .carousel .carousel-item {
        min-height: 900px;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 50px;
        height: 50px;
    }

    .carousel .carousel-caption {
        padding-left: 0.7rem;
    }
}

@media (min-width: 1200px) {
    .carousel .carousel-item .display-1 {
        font-size: 4rem;
    }
}

.page-header {
    background: url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.texto-secundario {
    font-size: 2rem;
}

.shine-text {
    background: linear-gradient(90deg,
            #ffffff 0%,
            #ffffff 40%,
            #a0c4ff 50%,
            #ffffff 60%,
            #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;

    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}


.scroll-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-behavior: smooth;
    padding: 10px;
}

.scroll-slider img {
    width: 140px;
    border-radius: 10px;
    flex-shrink: 0;
}



.caja-dk {
    position: relative;
    background: #fff;
}


.caja-dk .dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: #c58b2a;
    /* dorado */
    border-radius: 50%;
    z-index: 2;
}

/* Slider Proximos cursos */

/* --- SECCIÓN GENERAL --- */
.tqs-slider-section {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to bottom, #44546a, #1f2e42);
    padding: 80px 0;
    color: white;
    overflow: hidden;
}

.tqs-container {
    max-width: 1300px;
    /* Un poco más ancho para que quepan bien las 4 */
    margin: 0 auto;
    display: block;
    /* Aseguramos que no sea flex para no confundir a Swiper */
    padding: 0 40px;
}

.tqs-slider-title {
    color: #c58b2a;
    font-size: clamp(24px, 5vw, 42px);
    /* Tamaño responsivo automático */
    font-weight: bold;
    margin-bottom: 50px;
}

/* --- SOLUCIÓN AL AMONTONAMIENTO EN PC --- */
.swiper.tqs-swiper {
    width: 100%;
    padding-bottom: 50px;
}

.swiper-wrapper {
    /* Esto ayuda a que en PC se mantengan en línea si el JS tarda */
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    /* Forzamos que cada slide tenga un ancho base en PC */
    width: 25%;
    /* 100% dividido entre 4 columnas */
    min-width: 280px;
    /* Para que no se hagan flacas */
    display: flex;
    justify-content: center;
    height: auto;
}

/* --- LA TARJETA (TQS STYLE) --- */
.course-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    width: 100%;
    /* Que ocupe el ancho del slide */
    max-width: 300px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    /* Efecto pro al pasar el mouse */
}

.course-header {
    background-color: #003366;
    padding: 20px 15px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-header h4 {
    color: #c58b2a;
    font-size: 14px;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.enroll-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.course-card img {
    width: 100%;
    height: auto;
    display: block;
}

.tqs-slider-footer {
    text-align: center;
    font-size: 30px;
    font-style: italic;
    margin-top: 50px;
    color: #ddd;
}


/* --- FLECHAS --- */
.swiper-button-next,
.swiper-button-prev {
    color: #c58b2a !important;
    /* Usamos tu dorado */
}

/* --- AJUSTES MÓVIL --- */
@media (max-width: 1024px) {
    .swiper-slide {
        width: 50%;
        /* 2 columnas en tablets */
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 100%;
        /* 1 columna en celular */
    }

    .tqs-container {
        padding: 0 20px;
    }
}

/* --- tqs contacto --- */

.tqs-contact {
    background-color: #f9f9f9;
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif;
}

.tqs-contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0; /* Quitamos el gap para controlar el encimado manualmente */
}

.tqs-info-side {
    flex: 1.2;
    z-index: 2; /* Para que el cuadro azul quede por encima */
}

.tqs-contact-title {
    color: #c58b2a;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tqs-contact-subtitle {
    color: #c58b2a;
    font-size: 24px;
    font-style: italic;
    margin-bottom: 30px;
    max-width: 450px;
}

/* --- CUADRO AZUL FLOTANTE --- */
.tqs-blue-box {
    background-color: #d1e0f3; /* Azul clarito de la imagen */
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 110%; /* Lo hacemos más ancho para que "pise" al mapa */
    color: #003366;
    text-align: center;
}

.tqs-blue-box p {
    margin: 5px 0;
    font-size: 18px;
    font-weight: 500;
}

.tqs-phone {
    font-size: 22px !important;
    margin-top: 15px !important;
}

.tqs-web {
    color: #003366;
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

/* --- SECCIÓN LINKEDIN --- */
.tqs-social {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.follow-text {
    color: #c58b2a;
    font-size: 42px;
    font-style: italic;
    font-weight: bold;
}

.linkedin-icon {
    width: 80px;
    height: auto;
}

/* --- COLUMNA MAPA --- */
.tqs-map-side {
    flex: 1;
}

.map-frame {
    border: 12px solid #003366; /* Marco azul grueso de la imagen */
    overflow: hidden;
    line-height: 0;
}

.map-frame img {
    width: 100%;
    height: auto;
}

/* --- RESPONSIVO PARA CELULAR --- */
@media (max-width: 768px) {
    .tqs-contact-container {
        flex-direction: column;
        text-align: center;
    }
    
    .tqs-blue-box {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .tqs-social {
        justify-content: center;
    }
    
    .tqs-contact-title { font-size: 36px; }
    .tqs-contact-subtitle { font-size: 18px; margin: 0 auto 20px auto; }
}

/* --- chica flotante XD --- */

.tqs-whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tqs-whatsapp-button img {
    width: 150px; /* Ajusta el tamaño según tu imagen */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* El globo de texto "Hola, ¿Cómo puedo ayudarte?" */
.whatsapp-tooltip {
    background-color: #fff;
    color: #003366; /* Azul corporativo TQS */
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-style: italic;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid #c58b2a; /* Dorado TQS */
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

/* Mostrar globo al pasar el mouse o tras un par de segundos */
.tqs-whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Efecto al pasar el mouse sobre la chica */
.tqs-whatsapp-button img:hover {
    transform: scale(1.05);
}

/* Animación de entrada para que aparezca suavemente al cargar la página */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.tqs-whatsapp-button {
    animation: fadeInRight 1s ease-out;
}

/* Optimización para celulares */
@media (max-width: 768px) {
    .tqs-whatsapp-button img {
        width: 100px; /* Un poco más pequeña en móvil */
    }
    .whatsapp-tooltip {
        display: none; /* Ocultamos el texto en móvil para no tapar pantalla */
    }
}

/* Esquinas */
.top-left {
    top: -9px;
    left: -9px;
}

.top-right {
    top: -9px;
    right: -9px;
}

.bottom-left {
    bottom: -9px;
    left: -9px;
}

.bottom-right {
    bottom: -9px;
    right: -9px;
}

/* Automotriz Sección */

.tqs-normativas {
    padding: 60px 20px;
    background-color: #fff;
}

.tqs-normativas strong {
    color: #0265b9;
    /* El color azul que has usado antes */
}

.tqs-normativas-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    /* --- ESTO ALINEA TODO ARRIBA --- */
    align-items: flex-start; 
    /* ------------------------------ */
    justify-content: space-between;
    gap: 30px;
}

.tqs-norm-col {
    flex: 1; /* Todas las columnas miden lo mismo */
    display: flex;
    flex-direction: column;
}

/* Estilos de texto */
.tqs-norm-col h3 {
    color: #003366; /* Azul TQS */
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 0; /* Importante para que el primero no tenga espacio arriba */
}

.tqs-norm-col p {
    color: #44546a;
    font-size: 16px;
    margin: 10px 0;
}

.tqs-norm-col ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 30px;
}

.tqs-norm-col li {
    position: relative;
    margin-bottom: 8px;
    color: #003366;
}

/* El puntito azul de la lista */
.tqs-norm-col li::before {
    content: "•";
    color: #003366;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Líneas doradas delgadas entre items */
.tqs-line {
   border-bottom: 2px solid;
    border-image: linear-gradient(to right, transparent, #c5a059, transparent) 1;
}

/* Ajuste del video */
.tqs-col-video {
    display: flex;
    justify-content: center;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .tqs-normativas-container {
        flex-direction: column;
        align-items: center; /* En móvil sí centramos para que se lea mejor */
    }
}


/* ISO Sección */

.iso-section {
    font-family: 'Arial', sans-serif;
    /* Puedes cambiarla por Montserrat si la tienes */
    padding: 40px 20px;
    background-color: #fff;
    color: #00295d;
    /* Azul oscuro corporativo */
}

.iso-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.iso-column {
    flex: 1;
    min-width: 300px;
}

.iso-item {
    padding: 15px 0;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, transparent, #c5a059, transparent) 1;
    font-size: 16px;
    line-height: 1.4;
    transition: all 0.3s ease;
    /* Para suavizar el hover */
}

.iso-item strong {
    color: #0265b9;
    /* El color azul que has usado antes */
}

.vertical-divider {
    width: 2px;
    height: 250px;
    background: linear-gradient(to bottom, transparent, #c5a059, transparent);
    /* Dorado sutil */
}

.iso-video-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.video-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    /* Esto hace la magia del recorte circular */
    position: relative;
    z-index: 2;
    border: 5px solid white;
    background-color: #ffffff;
    /* Fondo negro mientras carga */
    cursor: pointer;
}

.video-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mantiene la proporción y llena el círculo */
}

/* Ocultar el botón de play cuando el video se está reproduciendo */
.video-circle.playing .play-button {
    display: none;
}

.blue-arc {
    position: absolute;
    bottom: -10px;
    width: 320px;
    height: 160px;
    background-color: #ffffff;
    border-bottom-left-radius: 160px;
    border-bottom-right-radius: 160px;
    z-index: 1;
}

/* Botón de Play decorativo */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 25px;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .vertical-divider {
        display: none;
    }

    .iso-container {
        flex-direction: column;
    }
}


/* Servicios */
.servicios-container {
    display: flex;
    align-items: center;
    /* Esto centra verticalmente el texto con la línea */
    gap: 40px;
    /* Espacio entre la línea y el texto */
    max-width: 1100px;
    margin: 40px auto;
}

.servicios-left {
    flex: 1;
    /* O puedes darle un ancho fijo si lo prefieres */
}

.servicios-title {
    color: #c58b2a;
    /* El dorado de TQS */
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
}

.servicios-line {
    height: 6px;
    background-color: #c58b2a;
    width: 100%;
    /* Ocupa todo el ancho de su columna */
}

.servicios-right {
    flex: 1.5;
    /* Le damos un poco más de espacio al texto que a la línea */
}

.servicios-right p {
    color: #003366;
    /* Azul corporativo */
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    /* Quitamos márgenes para que el centrado sea exacto */
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .servicios-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        /* En móvil es mejor alinearlos a la izquierda */
    }
}

/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 1px solid #c58b2a;
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown {
    0% {
        top: -25px;
    }

    50% {
        top: -45px;
    }

    100% {
        top: -25px;
    }
}

/*** Servicios ***/

/* CARD */
.servicio-card {
    position: relative;
    border: 3px solid #0d3b66;
    /* azul */
    border-radius: 25px;
    padding: 80px 20px 30px;
    text-align: center;
    background: #f8f8f8;
    height: 100%;
}

/* IMAGEN CIRCULAR */
.servicio-img {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #c58b2a;
    /* dorado */
    overflow: hidden;
    background: #fff;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TITULO */
.titulo {
    margin-top: 10px;
    color: #c58b2a;
    font-weight: bold;
}

/* TEXTO */
.servicio-card p {
    color: #0d3b66;
    font-weight: 500;
}


@media (max-width: 768px) {
    .servicio-card {
        padding: 70px 15px 25px;
    }

    .servicio-img {
        width: 90px;
        height: 90px;
        top: -45px;
    }
}

.servicio-card:hover {
    transform: translateY(-8px);
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


/*** Linea Dorada ***/

.linea-dorada {
    position: relative;
    display: inline-block;
}

.linea-dorada::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 8px;
    background: #c58b2a;
}

/*** Linea Dorada ***/


/*** Banner Cursos ***/
.bannerCursos-img {
    width: 100%;
    height: 35vh;
    /* 🔥 clave */
    object-fit: cover;
}


/*** Features ***/
.feature {
    background: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 1) 50%), url(../img/carousel-1.jpg) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.feature-icon {
    position: relative;
    transition: .5s;
}

.feature-item:hover .feature-icon {
    margin-left: 3rem;
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--bs-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.feature-item a:hover {
    color: #c58b2a !important;
}

.feature-item a:hover::after {
    background: #c58b2a;
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: #c58b2a;
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
    margin-top: -45px;
    padding-left: 45px;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item:hover a {
    padding-left: 45px !important;
}




/* --- ESTILOS GENERALES TQS --- */
.tqs-entrenamientos {
    font-family: 'Montserrat', sans-serif;
    /* Asegúrate de tener Montserrat cargada */
    background-color: #fff;
    padding: 0px 20px;
    color: #333;
}

.tqs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    /* Alineación vertical central */
    gap: 40px;
}

.tqs-column {
    flex: 1;
}

/* --- COLUMNA IMAGEN --- */
.tqs-column-image {
    display: flex;
    justify-content: flex-end;
    /* Imagen a la derecha en su columna */
}

.tqs-column-image img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    /* Limitar altura para que no domine */
}

/* --- COLUMNA CONTENIDO --- */
.tqs-column-content {
    display: flex;
    flex-direction: column;
}

.tqs-text-header h2 {
    font-size: 30px;
    color: #c58b2a;
    /* Dorado TQS */
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
    margin-left: 5px;
}

.tqs-divider {
    width: 100%;
    height: 4px;
    background-color: #c58b2a;
    /* Dorado TQS */
    margin-bottom: 20px;
}

.tqs-text-header h3 {
    font-size: 22px;
    color: #003366;
    /* Azul oscuro corporativo TQS */
    font-weight: normal;
    font-style: italic;
    /* Como en la imagen */
    line-height: 1.4;
    margin-bottom: 40px;
}

/* --- DIAGRAMA DE BOTONES Y LOGO --- */
.tqs-diagram-container {
    display: flex;
    align-items: center;
    position: relative;
    gap: 30px;
}

.tqs-center-logo {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tqs-center-logo img {
    width: 100%;
    height: auto;
}

.tqs-buttons-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Espacio entre botones */
}

/* --- ESTILO DE BOTÓN ENLACE --- */
.tqs-button-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Quitar subrayado */
    transition: all 0.3s ease;
    /* Para efecto hover */
}

.tqs-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #ccc;
    /* Círculo blanco con borde gris */
    margin-right: -25px;
    /* Superponer al botón azul */
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.tqs-button-text {
    background-color: #003366;
    /* Azul TQS */
    color: #fff;
    padding: 12px 30px 12px 35px;
    /* Relleno ajustado */
    border-radius: 25px;
    /* Bordes redondeados */
    flex: 1;
    transition: background-color 0.3s ease;
}

.tqs-button-text p {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.tqs-button-text span {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.8;
}

/* --- EFECTOS HOVER (Interacción) --- */
.tqs-button-link:hover .tqs-button-text {
    background-color: #0056a3;
    /* Azul más claro al pasar el mouse */
}

.tqs-button-link:hover .tqs-icon-circle {
    transform: scale(1.1);
    /* Círculo se agranda un poco */
    border-color: #c5a059;
    /* Borde se vuelve dorado */
}

/* --- RESPONSIVO (PARA MÓVILES) --- */
@media (max-width: 768px) {
    .tqs-container {
        flex-direction: column-reverse;
        /* Ingeniero abajo en móvil */
        gap: 30px;
    }

    .tqs-column-image {
        justify-content: center;
        /* Centrar ingeniero */
    }

    .tqs-diagram-container {
        flex-direction: column;
        /* Logo arriba, botones abajo en móvil */
        gap: 40px;
    }

    .tqs-center-logo {
        width: 150px;
        height: 150px;
    }

    .tqs-button-link {
        justify-content: center;
        /* Centrar contenido del botón */
    }

    .tqs-icon-circle {
        margin-right: -15px;
        /* Ajuste superposición */
    }
}

/*** Appoinment ***/
.appoinment {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-2.jpg) left center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: #c58b2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team .team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    color: #c58b2a;
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Appoinment ***/
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-3.jpg) left center no-repeat;
    background-size: cover;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #c58b2a;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #c58b2a;
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #222222;
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: #c58b2a;
}