/********** Template CSS - Librería CONAVI **********/
:root {
    --primary: #1E3A8A;
    --secondary: #F2B705;
    --light: #F0F4FF;
    --dark: #0F1629;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important;
}

p, span, div, a, button, input, textarea, select {
    font-family: 'Poppins', sans-serif !important;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

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

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


/*** Button ***/
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* Secondary/Gold button */
.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: var(--dark) !important;
}

.btn-secondary:hover {
    background-color: #D9A004 !important;
    border-color: #D9A004 !important;
    color: var(--dark) !important;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 500;
    outline: none;
    transition: .5s;
}

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

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

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 12px 15px;
        color: var(--dark);
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-dark .navbar-nav .nav-link:hover {
        background-color: #f8f9fa;
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
    
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .dropdown-item {
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--secondary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, .65);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 12px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 24px;
        font-weight: 600 !important;
        line-height: 1.2;
    }
    
    .carousel-caption .btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
    
    .display-1 {
        font-size: 2rem !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.service-item:hover {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px rgba(30, 58, 138, .1);
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    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;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


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

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

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(15, 23, 42, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Category Cards ***/
.category-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px 25px;
    transition: all 0.4s ease;
    border: 1px solid #E2E8F0;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, .15);
    border-color: var(--primary);
}

.category-card .category-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #3B6FD4);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: .4s;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--secondary), #FFD54F);
    transform: rotate(5deg) scale(1.1);
}

.category-card .category-icon i {
    font-size: 28px;
    color: #FFFFFF;
}

.category-card h5 {
    color: var(--dark);
    margin-bottom: 12px;
}

.category-card p {
    color: #64748B;
    font-size: 14px;
    margin-bottom: 0;
}

.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    color: #475569;
    font-size: 14px;
}

.category-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

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

.bg-header {
    background: linear-gradient(rgba(15, 23, 42, .7), rgba(15, 23, 42, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/* Gold accent for secondary elements */
.text-secondary {
    color: var(--secondary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/* WhatsApp floating button */
/*.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 45px;
    z-index: 99;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}*/

/* Promo banner */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #2B5DB8 50%, var(--secondary) 100%);
    border-radius: 15px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.promo-banner::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}


/*** Bootstrap Primary Color Override ***/
/* Override Bootstrap's compiled #06A3DA with CONAVI royal blue #1E3A8A */
.bg-primary {
    background-color: var(--primary) !important;
}

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

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: #152C6B !important;
    border-color: #152C6B !important;
    color: #FFFFFF !important;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #0F2050 !important;
    border-color: #0F2050 !important;
    box-shadow: 0 0 0 .25rem rgba(30, 58, 138, 0.5) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

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

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

a {
    color: var(--primary);
}

a:hover {
    color: #152C6B;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(30, 58, 138, 0.25);
}

/* Pagination */
.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link {
    color: var(--primary);
}

/* Nav pills */
.nav-pills .nav-link.active {
    background-color: var(--primary);
}

/* Progress bar */
.progress-bar {
    background-color: var(--primary);
}

/* List group active */
.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Badge primary override */
.badge.bg-primary {
    background-color: var(--primary) !important;
}

/*** Product Card Styles ***/
.product-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.product-img-wrap {
    overflow: hidden;
}
.product-img-wrap img {
    transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.1);
}
.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Carousel Nav */
.product-carousel .owl-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.product-carousel .owl-nav .owl-prev,
.product-carousel .owl-nav .owl-next {
    margin: 0 10px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: 0.3s;
}
.product-carousel .owl-nav .owl-prev:hover,
.product-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

/* Chatbot Window */
/*.chatbot-window {
    position: fixed;
    bottom: 105px;
    right: 45px;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}*/

/* Responsive adjustments for Chatbot and Float Button */
@media (max-width: 576px) {
    /*.whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
    }
    .chatbot-window {
        bottom: 85px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 320px;
        max-height: calc(100vh - 100px);
    }
    .chatbot-window .bg-light {
        height: auto !important;
        max-height: 50vh;
    }*/
    
    /* Mobile Typography Improvements */
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    h5 {
        font-size: 1rem !important;
    }
    
    /* Mobile Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile Cards */
    .category-card {
        padding: 20px 15px !important;
        margin-bottom: 15px;
    }
    
    .category-card .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-card .category-icon i {
        font-size: 20px;
    }
    
    .category-card h5 {
        font-size: 1rem;
    }
    
    .category-card ul li {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    /* Mobile Product Cards */
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-category {
        font-size: 12px;
    }
    
    .product-action .btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    /* Mobile Service Items */
    .service-item {
        height: auto !important;
        padding: 20px 15px !important;
        margin-bottom: 15px;
    }
    
    .service-item .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .service-item h4 {
        font-size: 1.1rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
    
    /* Mobile Buttons */
    .btn {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
    
    .btn-lg {
        padding: 12px 24px !important;
        font-size: 16px !important;
    }
    
    /* Mobile Navigation */
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-brand h1 {
        font-size: 1.2rem !important;
    }
    
    /* Mobile Topbar */
    .container-fluid.bg-dark {
        display: none !important;
    }
    
    /* Mobile Promo Banner */
    .promo-banner {
        padding: 25px 20px !important;
    }
    
    .promo-banner h2 {
        font-size: 1.3rem !important;
    }
    
    .promo-banner p {
        font-size: 0.95rem !important;
    }
    
    .promo-banner .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}