@media (max-width: 576px) {
    .header-aprende-h3 {
        font-size: 1.1rem !important;
        display: block !important;
        margin-top: 1.2rem !important;
        margin-bottom: 1.2rem !important;
        position: static !important;
        z-index: 1000 !important;
        width: 100% !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    .header-aprende h2 {
        margin-bottom: 1.2rem !important;
        font-size: 1.1rem !important;
        display: block !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    .logo-sena-header {
        height: 50px !important;
        right: 10px !important;
        bottom: 10px !important;
        position: absolute !important;
        z-index: 1001 !important;
    }
    .header-aprende {
        min-height: 60vh !important;
        padding-bottom: 1rem !important;
    }
    .contenido-header {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .header-aprende .row {
        flex-direction: column !important;
        align-items: center !important;
    }
    .header-aprende .col-12 {
        padding: 0 !important;
    }
}
@media (max-width: 576px) {
    .header-aprende-h3 {
        font-size: 1.1rem !important;
        display: block !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        position: static !important;
        z-index: 1000 !important;
        width: 100% !important;
        text-align: center !important;
    }
    .header-aprende h2 {
        margin-bottom: 0.5rem !important;
    }
    .logo-sena-header {
        height: 60px !important;
        right: 10px !important;
        bottom: 10px !important;
    }
    .header-aprende {
        min-height: 60vh !important;
        padding-bottom: 1rem !important;
    }
}
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

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

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    width: 44px;
    height: 44px;
    background: rgba(24,29,56,0.10);
    border: 2px solid #fff;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 8px #000, 0 0 2px #fff;
    border-radius: 0;
    font-size: 32px;
    transition: background 0.3s, border 0.3s;
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/*** 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 {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

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

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

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

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

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

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light.sticky-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: .5s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

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

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Header carousel ***/
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: rgba(24,29,56,0.10);
    border: 2px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
    text-shadow: 0 0 8px #000, 0 0 2px #fff;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-nav .owl-prev:before,
.header-carousel .owl-nav .owl-next:before {
    font-weight: bold;
    line-height: 1;
    font-size: 42px !important;
}

.header-carousel .owl-nav .owl-prev:before {
    content: '\2039';
}

.header-carousel .owl-nav .owl-next:before {
    content: '\203A';
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

.breadcrumb .breadcrumb-item a {
    background-color: #43be16 !important;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.breadcrumb .breadcrumb-item a:hover {
    background-color: #369d12 !important;
    color: #fff !important;
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}

/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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;
    margin-right: 10px;
}

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

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/*** CUSTOM STYLES ***/
.header-trueques {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/trueque.png) !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.header-aprende {
    position: relative !important;
    min-height: 100vh !important;
    width: 100vw !important;
    overflow: hidden;
    z-index: 2;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.header-aprende::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24,29,56,0.4);
    z-index: 1;
}

.header-aprende > .container-fluid {
    position: relative;
    z-index: 2;
    background: transparent !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.header-aprende,
.header-aprende .container-fluid,
.header-aprende .row,
.header-aprende .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.header-aprende .contenido-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    padding-top: 64px;
    padding-bottom: 32px;
}

.header-aprende-h1 {
    font-size: 3.2rem !important;
    font-weight: 900 !important;
    margin-bottom: 1.2rem !important;
    text-align: center !important;
    line-height: 1.1 !important;
    letter-spacing: 1px;
    width: 100%;
}

.header-aprende-h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    width: 100%;
}

.header-aprende-frase {
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
    width: 100%;
}

.logo-sena-header {
    height: 120px;
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 20;
}

.header-aprende-h3 {
    color: #fff !important;
    text-align: left;
    margin-bottom: 0;
    max-width: none !important;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: 0 0 0 #fff !important;
    mix-blend-mode: normal !important;
}

.header-aprende-botton {
    position: absolute;
    top: 50%;
    right: 32px;
    left: auto;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    filter: brightness(1.3);
    width: auto;
    bottom: 20px;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    filter: brightness(1.3);
}

.contenido-header {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.titulo-navbar {
    font-size: 1.1rem;
}

@media (min-width: 576px) {
    .titulo-navbar {
        font-size: 1.4rem;
    }
}

@media (min-width: 992px) {
    .titulo-navbar {
        font-size: 2rem;
    }
}

.cerrar-sesion-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-width: 150px;
    padding: 0.5rem 1.5rem;
    height: 48px;
    line-height: 1.2;
    font-size: 1rem;
}

body {
    overflow-x: hidden;
    overflow-y: auto !important;
    padding-top: 75px; /* Altura del navbar para evitar que el contenido quede oculto */
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.overlay-carrusel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .overlay-carrusel {
        position: static !important;
        min-height: unset !important;
        height: auto !important;
        display: block !important;
        align-items: stretch !important;
    }
    
    .owl-carousel-item > .position-absolute {
        position: static !important;
        min-height: unset !important;
        height: auto !important;
        display: block !important;
        align-items: stretch !important;
    }
}

.boton-siguiente-margen {
    margin-top: 100px;
}

.subtitulo-inferior {
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    text-align: center;
    z-index: 2;
    margin-bottom: 0 !important;
    font-size: 2rem;
}

.text-spacer-extra {
    margin-top: 10rem !important;
}

.h-100-container {
    height: 100vh;
}

.text-shadow-custom {
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 1), 0px 0px 4px rgba(0, 0, 0, 0.7);
}

/* ========================================
   ✅ RESPONSIVE PARA DISPOSITIVOS MÓVILES
   ======================================== */

@media (max-width: 992px) {
    .container-fluid.header-aprende {
        min-height: auto !important;
        padding-bottom: 0 !important;
        background-attachment: scroll !important;
        background-position: center top !important;
        background-size: cover !important;
    }
    
    .cuadro-texto {
        margin-bottom: 0.4rem !important;
    }
    
    .container-fluid.px-0 {
        margin-top: 0.3rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .col-12.col-lg-11.mx-auto.px-3 {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    .container-fluid.header-aprende {
        background-position: center 15% !important;
    }
    
    .cuadro-texto {
        margin-bottom: 0.3rem !important;
        padding: 0.8rem !important;
    }
    
    .btn-lg {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .mt-2 {
        margin-top: 0.3rem !important;
    }
    
    .mt-3 {
        margin-top: 0.5rem !important;
    }
    
    .mb-2 {
        margin-bottom: 0.3rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .container-fluid.header-aprende {
        background-position: center 10% !important;
    }
    
    .cuadro-texto {
        margin-bottom: 0.2rem !important;
        padding: 0.6rem !important;
    }
    
    .btn-lg {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.8rem !important;
    }
    
    .col-12.col-lg-11.mx-auto.px-3 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-bottom: 0 !important;
    }
    
    .header-aprende .text-end {
        padding-right: 1rem;
    }
    
    .container {
        overflow-y: auto;
        max-height: 100vh;
    }
}

@media (max-width: 400px) {
    .cuadro-texto {
        margin-bottom: 0.2rem !important;
        padding: 0.5rem !important;
    }
    
    .btn-lg {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
}
@media (max-width: 992px) {
    .pagina-11 .container-fluid.header-aprende {
        min-height: auto !important;
        padding-bottom: 0 !important;
    }
    
    .pagina-11 .cuadro-texto {
        margin-bottom: 0.5rem !important;
        padding: 0.8rem !important;
    }
    
    .pagina-11 .col-12.col-lg-11.mx-auto.px-3 {
        padding-bottom: 0 !important;
    }
    
    .pagina-11 .row.g-3 {
        gap: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    .pagina-11 .cuadro-texto {
        margin-bottom: 0.3rem !important;
        padding: 0.6rem !important;
    }
    
    .pagina-11 .cuadro-texto h1 {
        font-size: 1.1rem !important;
    }
    
    .pagina-11 .cuadro-texto h3 {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .pagina-11 .cuadro-texto {
        margin-bottom: 0.2rem !important;
        padding: 0.5rem !important;
    }
    
    .pagina-11 .btn-lg {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
}
/* Efecto burbuja/levantar más notorio sobre fondo blanco Bootstrap */
.trueque-card {
    transition: box-shadow 0.25s, transform 0.25s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(67,190,22,0.10), 0 1px 2px rgba(0,0,0,0.08);
    border-radius: 14px;
    background: #fff;
    position: relative;
    z-index: 1;
}
.trueque-card:hover {
    box-shadow: 0 12px 32px rgba(67,190,22,0.22), 0 0 0 4px #43be1622, 0 4px 24px rgba(0,0,0,0.12);
    transform: scale(1.04) translateY(-6px);
    z-index: 2;
    border: 2px solid #43be16;
}
/* Anula la sombra de Bootstrap en hover */
.trueque-card:hover,
.trueque-card:focus,
.trueque-card:active {
    box-shadow: 0 12px 32px rgba(67,190,22,0.22), 0 0 0 4px #43be1622, 0 4px 24px rgba(0,0,0,0.12) !important;
}
/* Fuerza el efecto burbuja/levantar en las tarjetas de trueque */
.card.trueque-card:hover,
.card.trueque-card:focus,
.card.trueque-card:active {
    box-shadow: 0 16px 40px rgba(67,190,22,0.28), 0 0 0 6px #43be1622, 0 8px 32px rgba(0,0,0,0.18) !important;
    transform: scale(1.06) translateY(-10px) !important;
    border: 2px solid #43be16 !important;
    z-index: 10 !important;
}
.tooltip-trueque {
    position: relative;
}
.tooltip-trueque .tooltip-text {
    visibility: hidden;
    opacity: 0;
    background: #181d38;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 4px 12px;
    position: absolute;
    left: 50%;
    bottom: 110%;
    transform: translateX(-50%);
    z-index: 20;
    transition: opacity 0.2s;
    font-size: 0.95rem;
    pointer-events: none;
    white-space: nowrap;
}
.tooltip-trueque:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.cuadro-economia-circular {
  max-width: 2100px;
}
@media (max-width: 900px) {
  .cuadro-economia-circular {
    max-width: 98vw;
  }
}