/* ========================================
   VARIABLES CSS GLOBALES
   ======================================== */
:root {
    --bs-primary: #ea6f1f;
    --bs-secondary: #202f4e;
    --bs-dark: #000C21;
    --bs-light: #F8F9FA;
    --bs-white: #FFFFFF;
    --bs-body: #6C757D;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

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

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

/*** Topbar Start ***/
.topbar {
    padding: 10px 0;
}

.topbar .text-lg-start a {
    font-size: 14px;
    white-space: nowrap;
}

.topbar .text-lg-start .d-flex {
    gap: 0.5rem;
}


.topbar .text-lg-start i {
    color: var(--bs-primary) ;
}

@media (max-width: 1400px) {
    .topbar .text-lg-start a {
        font-size: 13px;
    }
    .topbar .text-lg-start .me-4 {
        margin-right: 0.75rem !important;
    }
}
/*** Topbar End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.back-to-top:hover {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    left: 0;
    top: 180px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 0 30px 30px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
    white-space: nowrap;
}

.whatsapp-float i {
    font-size: 30px;
    min-width: 60px; 
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    width: 240px;
    background-color: #128c7e;
    color: #FFF;
}

.whatsapp-float .whatsapp-tooltip {
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    font-family: var(--font-primary);
    padding-right: 20px;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        top: 150px;
    }
    
    .whatsapp-float i {
        font-size: 25px;
        min-width: 50px;
        height: 50px;
    }
    
    .whatsapp-float:hover {
        width: 230px;
    }
}

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

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

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

.btn-md-square {
    width: 44px;
    height: 44px;
}

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

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

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

.btn.btn-primary {
    color: var(--bs-white);
}

.btn.btn-primary:hover {
    background: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
    color: var(--bs-white);
}

.btn.btn-secondary:hover {
    background: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}

.btn.btn-light {
    color: var(--bs-primary);
}

.btn.btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}

.btn.btn-orange {
    background: #FF8C00;
    border: 1px solid #FF8C00;
    color: var(--bs-white);
}

.btn.btn-orange:hover {
    background: #E67600;
    border: 1px solid #E67600;
    color: var(--bs-white);
}

/*** Icon Animation Start ***/
@keyframes icon-animat {
    0%  {border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;}

    25% {border-radius: 69% 31% 19% 81% / 43% 37% 63% 57%;}

    50% {border-radius: 67% 33% 16% 84% / 57% 37% 63% 43%;}

    75% {border-radius: 77% 23% 61% 39% / 36% 61% 39% 64%;}

    100% {border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;}
}
/*** Icon Animation End ***/


/*** Navbar Start ***/
.nav-bar {
    background: var(--bs-white);
}

.sticky-top {
    transition: 1s;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    letter-spacing: 1px;
    color: var(--bs-dark);
    font-size: 17px;
    font-weight: 500;
    outline: none;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--bs-dark);
}

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

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-brand img {
    max-height: 50px;
}

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

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.dropdown .dropdown-menu a.active {
    background: rgba(234, 111, 31, 0.1);
    color: var(--bs-primary);
    font-weight: 600;
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    margin-top: 8px !important;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
}



@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    border: 0;
    border-radius: 10px;
    margin-top: 8px !important;
    transition: .5s;
    opacity: 0;
    }
}

@media (max-width: 991px) {
    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 8px 15px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .sticky-top .navbar-light .navbar-nav .nav-link {
        padding: 12px 0;
    }
}
/*** Navbar End ***/

/*** Carousel Header Start ***/
.carousel .carousel-item img {
    object-fit: cover;
}

.carousel .carousel-item,
.carousel .carousel-item img {
    height: 700px;
}

.carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
}

.carousel .carousel-indicators {
    left: 75%;
    top: 50%;
    margin-right: 25%;
    transform: translateY(-50%);
    flex-direction: column;
}

.carousel-indicators [data-bs-target] {
    display: flex;
    width: 15px;
    height: 15px;
    border: 6px solid var(--bs-white);
    border-radius: 15px;
    padding: 0;
    margin-top:10px;
    margin-bottom:10px;
    background-color: var(--bs-secondary);
    opacity: 1;
    transition: 0.5s;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--bs-primary);
}

@media (max-width: 992px) {
    .carousel-indicators [data-bs-target] {
        display: none;
    }
}
/*** Carousel Header End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(31, 46, 78, 1), rgba(0, 12, 33, 0.8)), var(--header-bg, url(../img/fact-bg.jpg));
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
    transition: 0.5s;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}

.bg-breadcrumb.page-header-bg {
    padding: 180px 0 180px 0;
    background: linear-gradient(rgb(31 46 78 / 0%), rgba(0, 12, 33, 0.8)), var(--header-bg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
/*** Single Page Hero Header End ***/

/*** Features Start ***/
.feature-licencia-bg {
    background: url('../img/inicio/fondo-azul.webp');
    /*background: url('../img/inicio/fondo-azul.webp');*/

}
.feature {
    background: var(--bs-light);
}

.feature-licencia-bg .feature-item {
    display: flex;
    border-radius: 10px;
}

.feature-licencia-bg .feature-item .feature-icon span {
    width: 90px; 
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;;
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

/*** Features End ***/

/*** About Start ***/
.about .about-item .about-item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.5s;
}

.about .about-item .about-item-inner .about-icon {
    width: 90px; 
    height: 90px; 
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

.about .about-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    
}

.about .about-img .img-1 {
    height: 85%;
    margin-right: 50px;
}

.about .about-img .img-2 {
    position: absolute;
    width: 100%; 
    bottom: 0; 
    right: 0;
    padding-left: 50px;
    border-radius: 10px;
}

.about .about-img::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 98%;
    top: 0;
    right: 0;
    border-radius: 10px;
    background: var(--bs-primary);
    z-index: -1;
}

.about .about-item .text-item {
    position: relative;
    padding-left: 25px;
}

.about .about-item .text-item::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: var(--bs-secondary);
}
/*** About End ***/


/*** Fact Counter Start ***/
.counter {
    background: url(../img/inicio/fondo3.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.counter .counter-item .counter-item-icon {
    width: 90px; 
    height: 90px; 
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

/*** Fact Counter End ***/









/*** Blog Start ***/
.blog .blog-item {
    border-radius: 10px;
    transition: 0.5s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog .blog-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}

.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 250px;
}

.blog .blog-item .blog-img.ratio {
    height: auto;
}

.ratio-video-tall {
    --bs-aspect-ratio: 85%;
}

.blog .blog-item .blog-img iframe {
    width: 100%;
    height: 100%;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item .blog-content {
    position: relative;
    background: var(--bs-light);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog .blog-item .blog-content .blog-date {
    position: absolute;
    top: 0; 
    left: 25px; 
    transform: translateY(-50%);
    padding: 12px 25px;
    border-radius: 10px;
    color: var(--bs-white);
    background: var(--bs-primary);
}

.blog .blog-item .blog-content .blog-comment {
    display: flex;
    justify-content: space-between;
}
/*** Blog End ***/

/*** Gallery Section Start ***/
.gallery-section .gallery-item {
    transition: 0.3s;
}

.gallery-section .gallery-img-container {
    aspect-ratio: 1 / 1;
    height: auto !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    border-bottom: 1px solid #eee !important;
}

.gallery-section .gallery-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Changed to cover to fill card, but containment can be requested */
    transition: none !important;
    transform: none !important;
}

.gallery-section .gallery-item:hover .gallery-image,
.gallery-section .blog-item:hover .blog-img img,
.gallery-section .blog-item:hover img {
    transform: none !important;
}
/*** Gallery Section End ***/

/*** News Section Start ***/
.news-section .news-item {
    transition: 0.3s;
}

.news-section .news-img-container {
    aspect-ratio: 1 / 1;
    height: auto !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    border-bottom: 1px solid #eee !important;
}

.news-section .news-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: none !important;
    transform: none !important;
}

.news-section .news-item:hover .news-image,
.news-section .blog-item:hover .blog-img img,
.news-section .blog-item:hover img {
    transform: none !important;
}
/*** News Section End ***/

/*** News Detail Area Start ***/
.noticia-area {
    padding: 40px 0;
}

/* Menu Card Styles */
.menu-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}
.menu-card-header {
    background: var(--bs-secondary);
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
}
.menu-card-body {
    padding: 10px 0;
}
.menu-item {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.menu-item:hover {
    background: rgba(234, 111, 31, 0.05);
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
}
.menu-item i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.menu-item:hover i {
    transform: translateX(3px);
}

/* Noticia Content */
.noticia-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 25px;
}

.noticia-content .noticia-img-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noticia-content .noticia-img-container .noticia-main-image {
    max-height: 600px;
    width: auto !important;
    max-width: 100%;
    object-fit: contain !important;
    transition: none !important;
    transform: none !important;
}

.noticia-titulo {
    color: var(--bs-secondary);
    font-weight: 700;
    font-size: 1.8rem;
}
.noticia-detalle {
    color: #555;
    line-height: 1.8;
    text-align: justify;
}
.noticia-detalle p {
    margin-bottom: 15px;
}
.galeria-titulo {
    color: var(--bs-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-primary);
}

.noticia-area .img-galeria {
    height: 150px;
    width: 100%;
    object-fit: contain !important; /* Full visibility for gallery as well */
    background: #f8f9fa;
    transition: none !important; /* No zoom */
    transform: none !important;
    cursor: pointer;
    border-radius: 8px;
}

.noticia-area .img-galeria:hover {
    transform: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 991px) {
    .noticia-content {
        margin-top: 20px;
    }
}
/*** News Detail Area End ***/
/*** Banner Start ***/
.banner .banner-item {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: 0.5s;
    z-index: 1;
}

.banner .banner-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, .6);
    z-index: 2;
}

.banner .banner-item .banner-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    margin-left: 0;
    margin-bottom: 0;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    z-index: 5;
}

.banner .banner-item img {
    min-height: 400px; /* Ensure valid height for text on mobile */
    object-fit: cover;
}

@media (min-width: 992px) {
    .banner .banner-item .banner-content {
        padding-right: 15%; /* Move content more to the left as requested */
    }

    .banner .banner-item .banner-content h3 {
        font-size: 35px;
        margin-bottom: 10px;
    }

    .banner .banner-item .banner-content h2 {
        font-size: 50px; /* Adjusted for h2 */
        margin-bottom: 10px;
    }

    .banner .banner-item .banner-content p {
        font-size: 22px; 
        margin-bottom: 25px;
        font-weight: 500;
        max-width: 600px; /* Limit width */
    }
}

/*** Contact Start ***/
.contact .contact-add-item {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-light);
    height: 100%;
    min-height: 200px;
}

.contact .contact-add-item h4 {
    font-size: 1.1rem;
}

.contact .contact-add-item p {
    font-size: 0.9rem;
}

.contact .contact-add-item .contact-icon {
    width: 90px; 
    height: 90px; 
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: var(--bs-secondary);
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary) !important;
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}
.color-text{
    color: var(--bs-primary);
}
.text-justify{
    text-align: justify;
}
.font-link{
    font-size: 8px
}
.driving-car {
    position: absolute;
    bottom: -4px;
    width: 150px;
    z-index: 10;
    animation: drive-pass 15s linear infinite;
}

@keyframes drive-pass {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(100vw); }
}

@media (max-width: 768px) {
    .driving-car {
        width: 100px;
        bottom: -2px; 
    }
}

/* ========================================
   OBJETIVOS PAGE STYLES
   ======================================== */
.objetivo-general-section {
    background: var(--bs-light);
    position: relative;
    overflow: hidden;
}

.objetivo-general-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.objetivo-general-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--bs-secondary);
}

.objetivo-general-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}



.objetivo-especifico-card {
    background: var(--bs-white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.objetivo-especifico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(234, 111, 31, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.objetivo-especifico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(234, 111, 31, 0.15);
    border-color: var(--bs-primary);
}

.objetivo-especifico-card:hover::before {
    opacity: 1;
}

.objetivo-especifico-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #2a3f6e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.objetivo-especifico-card:hover .objetivo-especifico-icon {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #ff9f4a 100%);
    transform: scale(1.1) rotate(5deg);
}

.objetivo-especifico-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.objetivo-especifico-card p {
    color: #6c757d;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.objetivo-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(234, 111, 31, 0.08);
    line-height: 1;
}

/* ========================================
   VALORES PAGE STYLES
   ======================================== */
.valores-card {
    background: var(--bs-white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.valores-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(234, 111, 31, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.valores-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(234, 111, 31, 0.15);
    border-color: var(--bs-primary);
}

.valores-card:hover::before {
    opacity: 1;
}

.valores-icon {
    width: 80px;
    height: 80px;
    min-height: 80px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #ff9f4a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(234, 111, 31, 0.25);
}

.valores-card:hover .valores-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(234, 111, 31, 0.35);
}

.valores-card h5 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    min-height: 28px;
    display: flex;
    align-items: center;
}

.valores-card p {
    color: #6c757d;
    line-height: 1.65;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.valores-header-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.text-primary {
    color: var(--bs-primary) !important;
}

.breadcrumb-item.active {
    color: var(--bs-primary) !important;
}

/* ========================================
   MENU CARD STYLES (Sidebar)
   ======================================== */
.menu-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.menu-card-header {
    background: var(--bs-secondary);
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
}

.menu-card-body {
    padding: 10px 0;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: rgba(234, 111, 31, 0.05);
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
}

.menu-item.active {
    background: rgba(234, 111, 31, 0.1);
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
    font-weight: 600;
}

.menu-item i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.menu-item:hover i,
.menu-item.active i {
    transform: translateX(3px);
}

/* ========================================
   POST INFO STYLES (Content Area)
   ======================================== */
.post-info {
    padding-left: 20px;
}

.main-titulo {
    color: var(--bs-secondary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.main-titulo .color-text {
    color: var(--bs-primary);
}

.post-titulo {
    color: var(--bs-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .post-info {
        padding-left: 0;
        margin-top: 20px;
    }
}

/* ========================================
   ELEGANT LIST STYLES
   ======================================== */
.elegant-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
}

.elegant-list li {
    padding: 12px 10px;
    border-bottom: 1px dashed #e5e5e5;
    display: flex;
    align-items: flex-start;
    transition: background-color 0.2s ease;
}

.elegant-list li:last-child {
    border-bottom: none;
}

.elegant-list li:hover {
    background-color: #fafafa;
    border-radius: 6px;
}

.elegant-list li.d-block {
    display: block;
}

.elegant-list li i {
    color: var(--bs-primary);
    font-size: 1.1rem;
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.elegant-list li span {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.5;
}

.elegant-sublist {
    list-style: none;
    padding-left: 32px;
    margin-top: 8px;
}

.elegant-sublist li {
    border-bottom: none;
    padding: 6px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.elegant-sublist li:hover {
    background: transparent;
}

.elegant-sublist li i {
    font-size: 0.8rem;
    margin-right: 10px;
    color: #aaa;
    margin-top: 0;
}

/* ========================================
   MODERN TABLE STYLES
   ======================================== */
.modern-table {
    background-color: #fff;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.modern-table th {
    background-color: var(--bs-primary);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 15px;
    border: none;
    vertical-align: middle;
}

.modern-table td {
    border-bottom: 1px solid #f1f1f1;
    padding: 14px 15px;
    color: #555;
    font-size: 0.95rem;
    vertical-align: middle;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.modern-table tr:hover {
    background-color: #fdf3ec;
}

.modern-table .vertical-align-middle {
    vertical-align: middle;
}

.modern-table .bg-table-header {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-group-divider td {
    background-color: #eee !important;
    color: #333;
    border-top: 2px solid #ddd;
}

.table-summary-cell {
    background-color: #f8f9fa;
}

/* ========================================
   PAGINATION STYLES
   ======================================== */
.pagination {
    gap: 0.25rem;
}

.page-link {
    color: var(--bs-primary);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 0.85rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(234, 111, 31, 0.25);
}

.page-item.active .page-link {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* ========================================
   BOOTSTRAP-SELECT STYLES
   ======================================== */

.bootstrap-select {
    width: 100% !important;
}
.bootstrap-select > .dropdown-toggle {
    height: calc(3.5rem + 2px);
    padding: 1rem 2.25rem 1rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff !important;
    color: #212529 !important;
}

.bootstrap-select > .dropdown-toggle:hover {
    border-color: #86b7fe !important;
}

.bootstrap-select > .dropdown-toggle:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(234, 111, 31, 0.25) !important;
    outline: 0 !important;
}

.bootstrap-select > .dropdown-toggle.bs-placeholder {
    color: #6c757d !important;
}

.bootstrap-select > .dropdown-toggle::after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.bootstrap-select .dropdown-menu {
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Inner scrollable area limit */
/*.bootstrap-select .dropdown-menu .inner {*/
    /* max-height removed to let JS 'size' option handle it */
    /* overflow-y removed to avoid conflict */
/*}*/

/* Dropdown items */
body > .bootstrap-select.bs-container .dropdown-item {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap; /* Force single line */
    word-wrap: normal;
    cursor: pointer;
    pointer-events: auto !important;
    overflow: hidden;
    text-overflow: ellipsis; /* Truncate with ... */
    max-width: 100%;
    display: block;
}
.bootstrap-select .dropdown-item {
    padding: 0.5rem 1rem;
    white-space: nowrap; /* Force single line */
    overflow: hidden;
    text-overflow: ellipsis; /* Truncate with ... */
    max-width: 100%; /* Ensure it respects container width */
    display: block; /* Ensure box model works for overflow */
}

/* Selected/active item color */
.bootstrap-select .dropdown-item.active,
.bootstrap-select .dropdown-item:active,
.bootstrap-select .dropdown-menu li.selected > a {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

/* Hover state */
.bootstrap-select .dropdown-item:hover:not(.active):not(:active) {
    background-color: rgba(234, 111, 31, 0.1);
    color: var(--bs-primary);
}

/* Search box */
.bootstrap-select .bs-searchbox {
    padding: 0.5rem;
}

.bootstrap-select .bs-searchbox .form-control {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.bootstrap-select .bs-searchbox .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(234, 111, 31, 0.25);
}

/* No results */
.bootstrap-select .no-results {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #6c757d;
}

/* Compact version for carousel forms */
.form-inscripcion-ajax .bootstrap-select > .dropdown-toggle {
    height: 38px;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.9rem;
}

/* Carousel/body container - for scroll fix in inicio */
body > .bootstrap-select.bs-container {
    z-index: 1070 !important;
}

body > .bootstrap-select.bs-container .dropdown-menu {
    z-index: 1070 !important;
    min-width: 250px;
    max-width: 90vw;
}


/* ========================================
   INSCRIPCION PAGE SPECIFIC STYLING
   Scoped to avoid conflicts with other pages
   ======================================== */

/* Only target the inscripcion form container */
.container-fluid.py-5 > .container > .row.justify-content-center .bg-light.rounded {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Section headers styling removed to avoid lines on titles as requested */


/* Enhanced form controls for inscripcion only */
.container-fluid.py-5 .bg-light .form-floating > .form-control,
.container-fluid.py-5 .bg-light .form-floating > .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.container-fluid.py-5 .bg-light .form-floating > .form-control:focus,
.container-fluid.py-5 .bg-light .form-floating > .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(234, 111, 31, 0.15);
}

/* Submit button enhanced - only in inscripcion form */
.container-fluid.py-5 .bg-light .btn-orange.rounded-pill {
    background: linear-gradient(135deg, #FF8C00 0%, #ea6f1f 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(234, 111, 31, 0.3);
    transition: all 0.3s ease;
}

.container-fluid.py-5 .bg-light .btn-orange.rounded-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 111, 31, 0.4);
}

/* Captcha section styling */
.container-fluid.py-5 .bg-white.border.rounded {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Form labels in inscripcion */
.container-fluid.py-5 .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .container-fluid.py-5 .bg-light.rounded {
        padding: 1.5rem !important;
    }
}



/* ========================================
   COURSE CARDS SECTION
   ======================================== */
.course-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.course-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.course-card:hover img {
    transform: scale(1.1);
}

.course-card .course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 2;
}

.course-card .course-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.course-card .btn-ver-mas {
    align-self: flex-start;
    padding: 5px 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.course-card:hover .btn-ver-mas {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .course-card {
        height: 200px;
    }
    .course-card .course-title {
        font-size: 1.1rem;
    }
}
