#equipoSeccion {
    margin-bottom: 0 !important;
}

.border-inner {
    position: relative;
}

.border-inner * {
    position: relative;
    z-index: 1;
}

:root {
--card-bg: #1a1e23;
}

.border-inner::before {
    position: absolute;
    content: "";
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    background: none;
    border: 1px solid var(--light);
    z-index: 0;
}

.btn-square {
    width: 40px;
    height: 40px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 50px;
    height: 50px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* HERO */
/* HERO */
/* HERO */

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: #FFFFFF;
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.section-title::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 10px;
    left: 50%;
    bottom: 0;
    margin-left: -30px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 180px;
    height: 2px;
    left: 50%;
    bottom: 4px;
    margin-left: -90px;
    background: var(--primary);
}

.service::after,
.contact::after {
    position: absolute;
    content: "";
    width: 100%;
    height: calc(100% - 45px);
    top: 135px;
    left: 0;
    background: linear-gradient(rgba(43, 40, 37, .9), rgba(43, 40, 37, .9)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
    z-index: -1;
}

.contact::after {
    background: linear-gradient(rgba(43, 40, 37, .5), rgba(43, 40, 37, .5)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 2px;
    width: 10px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-item {
    opacity: .1;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    opacity: 1;
}

.facts-section {
    background: linear-gradient(rgba(43, 40, 37, .9), rgba(43, 40, 37, .9)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

@media (max-width: 575.98px) {

    /* Cambiar layout de las cajas en móviles */
    .row.g-5 .col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Hacer flexbox horizontal para título + icono */
    .row.g-5 .col-sm-6 {
        display: flex !important;
        align-items: flex-start !important;
        gap: 15px;
    }

    /* Icono más pequeño */
    .row.g-5 .col-sm-6 .bg-primary.border-inner {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0;
        margin-bottom: 0 !important;
    }

    /* Icono más pequeño también */
    .row.g-5 .col-sm-6 .bg-primary.border-inner i {
        font-size: 1.5rem !important;
    }

    /* Contenedor del texto */
    .row.g-5 .col-sm-6>div:not(.bg-primary) {
        flex: 1;
    }
}

@media (max-width: 767.98px) {

    /* Layout 2x2 en móviles solo para facts */
    .facts-section .row {
        row-gap: 2rem !important;
    }

    .facts-section .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Iconos más pequeños */
    .facts-section .bg-primary.border-inner {
        width: 45px !important;
        height: 45px !important;
    }

    .facts-section .bg-primary.border-inner i {
        font-size: 1.2rem !important;
    }

    /* Números más pequeños */
    .facts-section .display-5 {
        font-size: 2rem !important;
    }

    /* Texto más pequeño */
    .facts-section .text-primary.text-uppercase {
        font-size: 0.8rem !important;
        line-height: 1.2;
    }

    /* Menos espaciado */
    .facts-section .d-flex {
        gap: 10px;
    }

    .facts-section .ps-4 {
        padding-left: 0.75rem !important;
    }
}

.btn-service-link {
    display: inline-block;
    padding: 8px 16px;
    background: #2B2825;
    border: 2px solid #2B2825;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.btn-service-link:hover {
    background: transparent;
    color: #2B2825 !important;
    transform: translateY(-1px);
}

.btn-service-link i {
    transition: transform 0.3s ease;
}

.btn-service-link:hover i {
    transform: translateX(2px);
}

/* Arreglos específicos para la sección de servicios */
@media (max-width: 991px) {
    .service .bg-primary {
        padding: 2rem 1.5rem !important;
    }

    .service h4 {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }

    .service p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    .btn-service-link {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 767px) {
    .service {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .service .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .service .bg-primary {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1rem;
    }

    .service h4 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.3 !important;
    }

    .service p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    .btn-service-link {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .service .text-light {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
    }

    .service .btn {
        padding: 0.8rem 2rem !important;
        font-size: 0.9rem !important;
    }

    /* Arreglar el espaciado entre tarjetas */
    .service .row.g-4 {
        --bs-gutter-y: 1rem;
    }
}

@media (max-width: 576px) {
    .service .bg-primary {
        padding: 1.2rem 0.8rem !important;
    }

    .service h4 {
        font-size: 1.1rem !important;
    }

    .service p {
        font-size: 0.85rem !important;
    }

    .btn-service-link {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }

    .service .text-light {
        font-size: 1.3rem !important;
        padding: 0 1rem;
    }
}

/* Asegurar que las tarjetas tengan la misma altura */
.service .h-100 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.service .bg-primary a {
    margin-top: auto;
}

@media (max-width: 767px) {
    .about .d-flex {
        flex-direction: column !important;
        text-align: center;
    }

    .about .flex-shrink-0 {
        margin-bottom: 1rem;
        align-self: center;
    }

    .about .flex-shrink-0 img {
        width: 100px !important;
        height: 100px !important;
    }

    .about h5 {
        font-size: 1rem !important;
    }

    .about span {
        font-size: 0.9rem !important;
    }

    .about .bg-secondary {
        text-align: center !important;
    }
}












/* ======= TEAM CAROUSEL SECTION ======= */
#equipoSeccion {
    position: relative;
}

.team-carousel-container {
    position: relative;
    margin-bottom: 80px;
    padding: 0 20px;
}

/* Contenedor principal del carrusel */
.team-carousel-container .carousel-inner {
    overflow: hidden;
    border-radius: 0;
    padding: 0;
}

/* Slides del carrusel */
.team-carousel-container .carousel-item {
    padding: 0 10px;
}

/* Filas de cards - Centrado automático para slides incompletos */
.team-carousel-container .row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 0;
    gap: 20px;
    flex-wrap: nowrap;
}

/* Columnas responsivas */
.team-card-col {
    flex: 0 0 auto;
    padding: 0;
}

/* Desktop grande: 4 columnas (≥1400px) */
@media (min-width: 1400px) {
    .team-card-col {
        width: calc(25% - 18px);
        max-width: 280px;
        min-width: 250px;
    }

    .team-carousel-container {
        padding: 0 60px;
    }

    .team-carousel-container .row {
        gap: 24px;
    }
}

/* Desktop medio: 4 columnas (1200px-1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .team-card-col {
        width: calc(25% - 18px);
        max-width: 280px;
        min-width: 250px;
    }

    .team-carousel-container {
        padding: 0 60px;
    }

    .team-carousel-container .row {
        gap: 24px;
    }
}

/* Tablet: 3 columnas (991px-1199px) */
@media (min-width: 991px) and (max-width: 1199px) {
    .team-card-col {
        width: calc(33.333% - 16px);
        max-width: 280px;
        min-width: 240px;
    }

    .team-carousel-container {
        padding: 0 50px;
    }

    .team-carousel-container .row {
        gap: 20px;
    }
}

/* Mobile: 2 columnas (576px-990px) */
@media (min-width: 576px) and (max-width: 990px) {
    .team-card-col {
        width: calc(50% - 12px);
        max-width: 200px;
        min-width: 180px;
    }

    .team-carousel-container {
        padding: 0 30px;
    }

    .team-carousel-container .row {
        gap: 16px;
    }
}

/* Rango específico donde se ve bien (370px-388px) */
@media (min-width: 370px) and (max-width: 388px) {
    .team-card-col {
        width: 100%;
        max-width: 320px;
        min-width: 320px;
    }
}

/* Rango problemático (389px-518px) - MISMO ANCHO PERO MÁS ALTO */
@media (min-width: 389px) and (max-width: 518px) {
    .team-card-col {
        width: 100%;
        max-width: 320px;
        min-width: 320px;
    }

    .team-carousel-container {
        padding: 0 15px;
    }

    .team-carousel-container .row {
        gap: 0;
        justify-content: center;
    }
}

/* iPhone SE y pantallas muy pequeñas (278px-374px) */
@media (min-width: 278px) and (max-width: 374px) {
    .team-card-col {
        width: 100%;
        max-width: 260px;
        min-width: 260px;
    }

    .team-carousel-container {
        padding: 0 10px;
    }

    .team-carousel-container .row {
        gap: 0;
        justify-content: center;
    }
}

/* Mobile pequeño general (<576px) - Fallback */
@media (max-width: 575px) {
    .team-card-col {
        width: 100%;
        max-width: 300px;
        min-width: 280px;
    }

    .team-carousel-container {
        padding: 0 20px;
    }

    .team-carousel-container .row {
        gap: 0;
        justify-content: center;
    }
}

/* Cards del equipo */
.team-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 0;
    width: 100%;
}

.team-item .position-relative {
    height: 300px;
    overflow: hidden;
}

/* Alturas de imagen optimizadas para ver completa la información */
.team-item .position-relative {
    height: 400px;
    overflow: hidden;
}

/* Desktop grande: altura perfecta para 4 cards */
@media (min-width: 1400px) {
    .team-item .position-relative {
        height: 420px;
    }
}

/* Desktop medio: altura perfecta para 4 cards */
@media (min-width: 1200px) and (max-width: 1399px) {
    .team-item .position-relative {
        height: 420px;
    }
}

/* Tablet: altura perfecta para 3 cards */
@media (min-width: 991px) and (max-width: 1199px) {
    .team-item .position-relative {
        height: 400px;
    }
}

/* Mobile: altura perfecta para 2 cards */
@media (min-width: 576px) and (max-width: 990px) {
    .team-item .position-relative {
        height: 350px;
    }
}

/* Rango específico donde se ve bien (370px-388px) */
@media (min-width: 370px) and (max-width: 388px) {
    .team-item .position-relative {
        height: 420px;
    }
}

/* Rango problemático (389px-518px) - MÁS ALTO */
@media (min-width: 389px) and (max-width: 518px) {
    .team-item .position-relative {
        height: 480px;
    }
}

/* iPhone SE y pantallas muy pequeñas (278px-369px) */
@media (min-width: 278px) and (max-width: 369px) {
    .team-item .position-relative {
        height: 380px;
    }
}

/* Mobile pequeño general (<576px) - Fallback */
@media (max-width: 575px) {
    .team-item .position-relative {
        height: 450px;
    }
}

.team-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.team-item:hover img {
    transform: scale(1.05);
}

/* Overlay con redes sociales */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 40, 37, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: var(--primary, #ffd68a);
    color: var(--dark, #2B2825);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: #fff;
    color: var(--dark, #2B2825);
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .social-links {
        gap: 12px;
    }
}

/* Información del equipo */
.team-info {
    padding: 15px 10px;
    text-align: center;
    background: var(--dark, #2B2825);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.team-info h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary, #ffd68a);
    text-transform: uppercase;
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .team-info {
        min-height: 55px;
        padding: 12px 8px;
    }

    .team-info h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .team-info {
        min-height: 50px;
        padding: 10px 6px;
    }

    .team-info h4 {
        font-size: 0.85rem;
    }
}

/* ======= CONTROLES DEL CARRUSEL ======= */
.team-control {
    width: 50px;
    height: 50px;
    background: var(--primary, #ffd68a);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
    border: none;
    z-index: 10;
}

.team-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    background: var(--primary, #ffd68a);
}

.team-control:focus {
    box-shadow: none;
    outline: none;
}

.carousel-control-prev.team-control {
    left: -25px;
}

.carousel-control-next.team-control {
    right: -25px;
}

.team-control-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
    filter: brightness(0);
}

/* Responsive para controles */
@media (max-width: 1199px) {
    .carousel-control-prev.team-control {
        left: -15px;
    }

    .carousel-control-next.team-control {
        right: -15px;
    }
}

@media (max-width: 767px) {
    .team-control {
        width: 45px;
        height: 45px;
    }

    .team-control-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 575px) {
    .team-control {
        width: 40px;
        height: 40px;
    }

    .team-control-icon {
        width: 16px;
        height: 16px;
    }

    .carousel-control-prev.team-control {
        left: -10px;
    }

    .carousel-control-next.team-control {
        right: -10px;
    }
}

/* ======= INDICADORES DEL CARRUSEL ======= */
.team-indicators {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    max-width: 90%;
    margin: 0;
    padding: 0;
    background: transparent;
    z-index: 1;
    gap: 6px;
    line-height: 1;
}

.team-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bdbdbd !important;
    border: none;
    margin: 0;
    opacity: 1;
    padding: 0;
    transition: all 0.3s ease;
    text-indent: -999px;
    box-shadow: none;
    flex-shrink: 0;
}

.team-indicators button.active {
    background: var(--primary, #ffd68a) !important;
    transform: scale(1.3);
}

.team-indicators button:focus {
    outline: none;
    box-shadow: none;
}

.team-indicators button:hover {
    background: var(--primary, #ffd68a) !important;
}

/* Responsive para indicadores */
@media (max-width: 991px) {
    .team-indicators {
        bottom: -40px;
        gap: 5px;
    }

    .team-indicators button {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 767px) {
    .team-indicators {
        bottom: -35px;
        gap: 4px;
        max-width: 95%;
    }

    .team-indicators button {
        width: 6px;
        height: 6px;
    }
}

/* ESPECÍFICO PARA MOBILE - 2 CARDS (630px iPad y similares) */
@media (min-width: 576px) and (max-width: 990px) {
    .team-indicators {
        bottom: -70px !important;
        gap: 0;
        max-width: 360px;
        width: 200px;
        justify-content: center;
        align-content: center;
        min-height: 40px;
        padding: 0;
        display: grid !important;
        grid-template-columns: repeat(6, 1fr);
        grid-gap: 8px;
        grid-row-gap: 10px;
    }

    .team-indicators button {
        width: 30px !important;
        height: 4px !important;
        margin: 0;
        justify-self: center;
        align-self: center;
    }
}

/* ESPECÍFICO PARA MOBILE - 1 CARD */
@media (max-width: 575px) {
    .team-indicators {
        bottom: -95px !important;
        gap: 0;
        max-width: 320px;
        width: 320px;
        justify-content: center;
        align-content: center;
        min-height: 50px;
        padding: 0;
        display: grid !important;
        grid-template-columns: repeat(8, 1fr);
        grid-gap: 6px;
        grid-row-gap: 8px;
    }

    .team-indicators button {
        width: 30px !important;
        height: 4px !important;
        margin: 0;
        justify-self: center;
        align-self: center;
    }
}

/* Ajuste del margen inferior del carrusel */
@media (max-width: 991px) {
    .team-carousel-container {
        margin-bottom: 70px;
    }
}

@media (max-width: 767px) {
    .team-carousel-container {
        margin-bottom: 60px;
    }
}

@media (min-width: 576px) and (max-width: 990px) {
    .team-carousel-container {
        margin-bottom: 100px !important;
    }
}

@media (max-width: 575px) {
    .team-carousel-container {
        margin-bottom: 140px !important;
    }
}

/* iPhone 11 Pro y similares (375px-518px) */
@media (min-width: 375px) and (max-width: 518px) {
    .team-indicators {
        bottom: -65px;
        width: 350px;
        grid-template-columns: repeat(8, 1fr);
        grid-gap: 3px;
        grid-row-gap: 4px;
        min-height: 45px;
    }

    .team-indicators button {
        width: 4px;
        height: 4px;
    }
}

/* iPhone SE y pantallas muy pequeñas (278px-374px) */
@media (min-width: 278px) and (max-width: 374px) {
    .team-indicators {
        bottom: -60px;
        width: 300px;
        grid-template-columns: repeat(8, 1fr);
        grid-gap: 2px;
        grid-row-gap: 3px;
        min-height: 40px;
    }

    .team-indicators button {
        width: 3px;
        height: 3px;
    }
}

/* Mobile pequeño general (<576px) - Fallback */
@media (max-width: 575px) {
    .team-indicators {
        bottom: -70px;
        gap: 0;
        max-width: 320px;
        width: 320px;
        justify-content: center;
        align-content: flex-start;
        min-height: 50px;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-gap: 3px;
        grid-row-gap: 4px;
    }

    .team-indicators button {
        width: 4px;
        height: 4px;
        margin: 0;
        justify-self: center;
        align-self: center;
    }
}

/* Ajuste del margen inferior del carrusel */
@media (max-width: 991px) {
    .team-carousel-container {
        margin-bottom: 70px;
    }
}

@media (max-width: 767px) {
    .team-carousel-container {
        margin-bottom: 60px;
    }
}




























/* ======= NOS AVALAN SECTION SEO PERFECT ======= */
.partners-section {
    position: relative;
    margin-bottom: 0;
    background: #fff;
}

/* ======= GRID DESKTOP (≥992px) ======= */
.partners-grid {
    padding: 2rem 0;
}

.partner-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    height: 140px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ffd68a);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-item:hover::before {
    opacity: 1;
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-item:hover .partner-logo {
    transform: scale(1.05);
}

.partner-logo-fallback {
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #ffd68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
}

/* ======= CARRUSEL MOBILE/TABLET (≤991px) ======= */
.partners-carousel-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #f8f9fa;
    padding: 60px 0;
    overflow: hidden;
}

.partners-carousel-container {
    position: relative;
    overflow: hidden;
    height: 140px;
}

.partners-track {
    display: flex;
    animation: scroll-partners 25s linear infinite;
    width: fit-content;
    gap: 30px;
    align-items: center;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-carousel-container:hover .partners-track {
    animation-play-state: paused;
}

/* ITEMS DEL CARRUSEL */
.partner-carousel-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
}

.partner-carousel-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.partner-carousel-item:hover {
    transform: scale(1.02);
}

.partner-carousel-logo {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-carousel-fallback {
    width: 100px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #ffd68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
}

/* ======= RESPONSIVE BREAKPOINTS ======= */

/* Tablet Large (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .partners-carousel-wrapper {
        padding: 50px 0;
    }
    
    .partners-carousel-container {
        height: 130px;
    }
    
    .partner-carousel-col {
        width: 180px;
    }
    
    .partner-carousel-item {
        height: 110px;
        padding: 1.5rem 1rem;
    }
    
    .partners-track {
        gap: 25px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .partners-carousel-wrapper {
        padding: 40px 0;
    }
    
    .partners-carousel-container {
        height: 120px;
        padding: 0 20px;
    }
    
    .partner-carousel-col {
        width: 160px;
    }
    
    .partner-carousel-item {
        height: 100px;
        padding: 1.25rem 1rem;
    }
    
    .partner-carousel-logo {
        max-height: 60px;
    }
    
    .partner-carousel-fallback {
        width: 90px;
        height: 60px;
        font-size: 16px;
    }
    
    .partners-track {
        gap: 20px;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .partners-carousel-wrapper {
        padding: 30px 0;
    }
    
    .partners-carousel-container {
        height: 110px;
        padding: 0 15px;
    }
    
    .partner-carousel-col {
        width: 140px;
    }
    
    .partner-carousel-item {
        height: 90px;
        padding: 1rem 0.75rem;
    }
    
    .partner-carousel-logo {
        max-height: 50px;
    }
    
    .partner-carousel-fallback {
        width: 80px;
        height: 50px;
        font-size: 14px;
    }
    
    .partners-track {
        gap: 15px;
    }
}

/* ======= PERFORMANCE OPTIMIZATIONS ======= */
@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }
    
    .partner-item,
    .partner-carousel-item,
    .partner-logo {
        transition: none;
    }
}









/* ======= PROGRAMAS DE CERTIFICACIÓN SECTION ======= */
        #programasCertificacionSeccion {
            padding: 80px 0;
            background: #fff;
        }

        .certificacion-tabs-container {
            margin-bottom: 50px;
        }

        .certificacion-nav-pills {
            background: #2B2825;
            border-radius: 0;
            display: inline-flex;
            gap: 0;
        }

        .certificacion-nav-pills .nav-item {
            margin: 0;
        }

        .certificacion-nav-pills .nav-link {
            color: #fff;
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 15px 30px;
            font-family: 'Oswald', sans-serif;
            font-weight: 600;
            font-size: 1.1rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            transition: all 0.3s ease;
            position: relative;
        }

        .certificacion-nav-pills .nav-link:hover {
            color: #ffd68a;
            background: transparent;
        }

        .certificacion-nav-pills .nav-link.active {
            color: #2B2825;
            background: #ffd68a;
        }

        /* ======= GRID SYSTEM RESPONSIVE ======= */
        .cursos-grid {
            display: grid;
            gap: 25px;
            width: 100%;
            justify-items: center;
        }

        /* Desktop XL: 3 por fila */
        @media (min-width: 1200px) {
            .cursos-grid {
                grid-template-columns: repeat(3, 1fr);
                max-width: 1200px;
                margin: 0 auto;
                gap: 30px;
            }
        }

        /* Desktop: 3 por fila */
        @media (min-width: 992px) and (max-width: 1199px) {
            .cursos-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 25px;
            }
        }

        /* Tablet: 2 por fila */
        @media (min-width: 768px) and (max-width: 991px) {
            .cursos-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
                max-width: 700px;
                margin: 0 auto;
            }
        }

        /* Mobile: 1 por fila */
        @media (max-width: 767px) {
            .cursos-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                padding: 0 10px;
                max-width: 400px;
                margin: 0 auto;
            }
        }

        /* ======= CARDS VERTICALES ======= */
        .curso-card {
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            width: 100%;
            max-width: 350px;
        }

        .curso-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }

        .curso-card-flex {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .curso-imagen-container {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;
            cursor: pointer;
            background: #f8f9fa;
        }

        .curso-imagen {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            transition: transform 0.4s ease;
            padding: 10px;
        }

        .curso-card:hover .curso-imagen {
            transform: scale(1.05);
        }

        .curso-modalidad {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: #2B2825;
            color: #ffd68a;
            text-align: center;
            padding: 12px;
            font-family: 'Oswald', sans-serif;
            font-weight: 700;
            font-size: 1rem;
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .curso-contenido {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: #1a1e23;
            padding: 20px 15px;
            color: #fff;
            min-height: 80px;
        }

        .curso-contenido h5 {
            font-family: 'Oswald', sans-serif;
            font-weight: 700;
            font-size: 1.1rem;
            color: #fff;
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            line-height: 1.2;
            text-align: center;
        }

        /* Modal para imagen full screen */
        .modal-imagen {
            background: rgba(0, 0, 0, 0.9);
        }

        .modal-imagen .modal-dialog {
            max-width: 90vw;
            max-height: 90vh;
            margin: 5vh auto;
        }

        .modal-imagen .modal-content {
            background: transparent;
            border: none;
            box-shadow: none;
        }

        .modal-imagen .modal-body {
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal-imagen img {
            max-width: 100%;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 8px;
        }

        .modal-imagen .btn-close {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 1060;
            background: #ffd68a;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            opacity: 1;
        }

        /* ======= RESPONSIVE BREAKPOINTS ======= */
        
        /* Desktop XL: 1200px+ */
        @media (min-width: 1200px) {
            .curso-imagen-container {
                height: 450px;
            }

            .curso-contenido {
                padding: 25px 20px;
                min-height: 90px;
            }

            .curso-contenido h5 {
                font-size: 1.2rem;
            }

            .curso-modalidad {
                font-size: 1.1rem;
                padding: 15px;
            }
        }

        /* Desktop: 992px-1199px */
        @media (min-width: 992px) and (max-width: 1199px) {
            .curso-imagen-container {
                height: 420px;
            }

            .curso-contenido {
                padding: 20px 15px;
            }

            .curso-contenido h5 {
                font-size: 1.1rem;
            }

            .curso-modalidad {
                font-size: 1rem;
            }
        }

        /* Tablet: 768px-991px */
        @media (min-width: 768px) and (max-width: 991px) {
            #programasCertificacionSeccion {
                padding: 60px 0;
            }

            .certificacion-nav-pills {
                padding: 15px;
            }

            .certificacion-nav-pills .nav-link {
                padding: 12px 25px;
                font-size: 1rem;
            }

            .curso-imagen-container {
                height: 380px;
            }

            .curso-contenido {
                padding: 18px 12px;
            }

            .curso-contenido h5 {
                font-size: 1rem;
            }

            .curso-modalidad {
                font-size: 0.95rem;
                padding: 10px;
            }
        }

        /* Mobile L: 576px-767px */
        @media (min-width: 576px) and (max-width: 767px) {
            .certificacion-nav-pills {
                width: 100%;
                justify-content: center;
                padding: 10px;
            }

            .certificacion-nav-pills .nav-link {
                padding: 10px 20px;
                font-size: 0.95rem;
            }

            .curso-imagen-container {
                height: 350px;
            }

            .curso-contenido {
                padding: 15px 10px;
            }

            .curso-contenido h5 {
                font-size: 0.95rem;
            }

            .curso-modalidad {
                font-size: 0.9rem;
                padding: 10px;
            }
        }

        /* Mobile M: 400px-575px */
        @media (min-width: 400px) and (max-width: 575px) {
            #programasCertificacionSeccion {
                padding: 40px 0;
            }

            .curso-imagen-container {
                height: 320px;
            }

            .curso-contenido {
                padding: 15px 10px;
            }

            .curso-contenido h5 {
                font-size: 0.9rem;
            }

            .curso-modalidad {
                font-size: 0.85rem;
                padding: 8px;
            }
        }

        /* Mobile S: menos de 400px */
        @media (max-width: 399px) {
            .certificacion-nav-pills .nav-link {
                padding: 8px 15px;
                font-size: 0.85rem;
            }

            .curso-imagen-container {
                height: 280px;
            }

            .curso-contenido {
                padding: 12px 8px;
            }

            .curso-contenido h5 {
                font-size: 0.85rem;
            }

            .curso-modalidad {
                font-size: 0.8rem;
                padding: 8px;
            }
        }

        /* Animation para el cambio de tabs */
        .tab-pane {
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }

        .tab-pane.active {
            opacity: 1;
        }

        /* Loading spinner */
        .loading-spinner {
            display: none;
            text-align: center;
            padding: 50px;
        }

        .spinner-border {
            color: #ffd68a;
        }
        
        
/* ======= PREGUNTAS FRECUENTES SECTION ======= */
#preguntasFrecuentesSeccion {
    background: linear-gradient(rgba(43, 40, 37, .9), rgba(43, 40, 37, .9)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
    background-attachment: scroll;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Título blanco para esta sección */
#preguntasFrecuentesSeccion .section-title h1 {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#preguntasFrecuentesSeccion .section-title::before {
    background: var(--primary);
}

#preguntasFrecuentesSeccion .section-title::after {
    background: var(--primary);
}

/* Contenedor del acordeón */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

/* Loading spinner para FAQ */
.faq-loading {
    text-align: center;
    padding: 50px 0;
    color: #fff;
}

.faq-loading .spinner-border {
    color: var(--primary);
    width: 3rem;
    height: 3rem;
}

/* Estilo personalizado del acordeón */
.faq-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px !important;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.faq-accordion .accordion-item:nth-child(1) { animation-delay: 0.1s; }
.faq-accordion .accordion-item:nth-child(2) { animation-delay: 0.2s; }
.faq-accordion .accordion-item:nth-child(3) { animation-delay: 0.3s; }
.faq-accordion .accordion-item:nth-child(4) { animation-delay: 0.4s; }
.faq-accordion .accordion-item:nth-child(5) { animation-delay: 0.5s; }
.faq-accordion .accordion-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-accordion .accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-accordion .accordion-header {
    border: none;
}

.faq-accordion .accordion-button {
    background: #fff;
    color: var(--dark);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 25px;
    border: none;
    border-radius: 12px !important;
    box-shadow: none;
    position: relative;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary);
    color: var(--dark);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    border: none;
    box-shadow: 0 0 0 3px rgba(255, 214, 138, 0.3);
}

.faq-accordion .accordion-button::after {
    background-image: none;
    content: "\f067";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    content: "\f068";
    transform: none;
}

.faq-accordion .accordion-body {
    background: #fff;
    padding: 0 25px 25px 25px;
    border-top: 1px solid rgba(43, 40, 37, 0.1);
}

.faq-accordion .accordion-body p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    #preguntasFrecuentesSeccion {
        padding: 60px 0;
    }

    .faq-accordion .accordion-button {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .faq-accordion .accordion-body {
        padding: 0 20px 20px 20px;
    }
}

@media (max-width: 767px) {
    #preguntasFrecuentesSeccion {
        padding: 50px 0;
    }

    .faq-accordion {
        padding: 0 15px;
    }

    .faq-accordion .accordion-button {
        font-size: 0.95rem;
        padding: 15px 18px;
        line-height: 1.3;
    }

    .faq-accordion .accordion-body {
        padding: 0 18px 18px 18px;
    }

    .faq-accordion .accordion-body p {
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .faq-accordion .accordion-item {
        margin-bottom: 12px;
    }

    .faq-accordion .accordion-button {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .faq-accordion .accordion-body {
        padding: 0 15px 15px 15px;
    }

    .faq-accordion .accordion-body p {
        font-size: 0.9rem;
    }
}

/* Efectos adicionales */
.faq-accordion .accordion-collapse {
    transition: all 0.3s ease;
}