:root {
    --red: #ea0029;
    --gray: #4a4f54;
    --white: #F3F4F5;
    --gray-light: #7b7a7a;
    --border: rgba(0,0,0,0.08);
    --shadow: 0px 6px 30px rgba(0, 0, 0, 0.08);
    --background-color: #ffffff; /* Background color for the entire website, including individual sections */
    --default-color: #40372e; /* Default color used for the majority of the text content across the entire website */
    --heading-color: #281a0c; /* Color for headings, subheadings and title throughout the website */
    --accent-color: #f87500; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
    --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Rubik",  sans-serif;
    scroll-behavior: smooth;
    .light-background {
        --background-color: #fffbf7;
        --surface-color: #ffffff;
    }
    .dark-background {
        --background-color: #000000;
        --default-color: #ffffff;
        --heading-color: #ffffff;
        --surface-color: #252525;
        --contrast-color: #ffffff;
    }
}
body {
    color: var(--gray);
    background-color: #ffffff;;
    font-family: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";;
}

h1, h2, h3, h4, h5, h6 ,
.display-1,.display-2,.display-3,.display-4 {
    color: var(--gray);
    font-family: "Rubik",  sans-serif;
}

.bg-red {background-color: var(--red);}
.text-justify{text-align: justify !important}
a {transition: all 0.4s ease;font-weight: 500;}
a:hover {color: var(--red);}
section {padding-top: 80px;padding-bottom: 80px;}
.text-red {color: var(--red) !important;}
.text-gray{color: var(--gray) !important;}
.btn-red {border-color: var(--red);background-color: var(--red);color: #fff;}
.btn-red:hover {background-color: #C10022;border-color: #C10022;color: #fff;}
.btn-gray {border-color: var(--gray);background-color: var(--gray);color: #fff;}
.btn-gray:hover {background-color: #2e3134;border-color: #2e3134;color: #fff;}
.btn-outline-red {color: var(--red);border: 2px solid var(--red);background-color: transparent;}
.btn-outline-red:hover,
.btn-outline-red:focus {color: #fff !important;background-color: var(--red);border-color: var(--red);text-decoration: none;}
.btn-outline-gray {color: var(--gray);border: 2px solid var(--gray);background-color: transparent;}
.btn-outline-gray:hover,
.btn-outline-gray:focus {color: #fff !important;background-color: var(--gray);border-color: var(--gray);text-decoration: none;}
button.btn-red:disabled,
button.btn-red.disabled,
.btn.btn-red:disabled {
    background-color: #ea002980 !important;
    border-color: #ea002980 !important;
    color: #ffffffc7 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}
button.btn-gray:disabled,
button.btn-gray.disabled,
.btn.btn-gray:disabled {
    background-color: #6c757d80 !important;
    border-color: #6c757d80 !important;
    color: #ffffffc7 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}
.btn-getstarted,
.btn-getstarted:focus {
    font-size: 14px;
    padding: 8px 25px;
}

/* custom backgrounds */
.bg-morado{background: color-mix(in srgb, #503989, transparent 70%);}
.bg-blanco{background: color-mix(in srgb, #ffffff, transparent 70%); border: 1px solid var(--gray)}
.bg-negro{background: color-mix(in srgb, #000000, transparent 30%);}
.bg-azul{background: color-mix(in srgb, #1472a5, transparent 70%);}
.bg-cafe{background: color-mix(in srgb, #513a30, transparent 70%);}
.bg-amarillo{background: color-mix(in srgb, #eec961, transparent 70%);}
.bg-naranja{background: color-mix(in srgb, #f38c3b, transparent 70%);}
.bg-celeste{background: color-mix(in srgb, #a3c8da, transparent 70%);}
.bg-turquesa{background: color-mix(in srgb, #43cfb9, transparent 70%);}
.bg-verde{background: color-mix(in srgb, #3e4637, transparent 50%);}
.bg-gris{background: color-mix(in srgb, #adaca8, transparent 50%);}

/* custom texts */
.text-morado   { --topic-color: #503989; color: #503989; }
.text-azul     { --topic-color: #1472a5; color: #1472a5; }
.text-cafe     { --topic-color: #513a30; color: #513a30; }
.text-amarillo { --topic-color: #ecb82e; color: #ecb82e; }
.text-naranja  { --topic-color: #e4751e; color: #e4751e; }
.text-celeste  { --topic-color: #419bc8; color: #419bc8; }
.text-turquesa { --topic-color: #33b39f; color: #33b39f; }
.text-verde    { --topic-color: #3e4637; color: #3e4637; }
.text-gris     { --topic-color: #555555; color: #555555; }
.text-negro    { --topic-color: #ffffff; color: #000000; }
.text-white    { --topic-color: #000000; color: #ffffff; }

/* navbar */
.navbar .navbar-nav .nav-link {
    color: white;
    padding: 18px 15px;
    font-size: 16px;
    font-family: "Kanit",  sans-serif;
    font-weight: 400;
}
.navbar .navbar-nav .nav-link:hover {color: var(--red);}
.navbar .navbar-nav .nav-link.active {color: var(--red);}
.navbar-brand {font-size: 28px;font-weight: 700;}
.navbar-brand .dot {color: var(--red);}
.navbar-brand img{max-height: 55px;}
.menuactivo{color: var(--red) !important;}
.navbar .navbar-toggler{border-color: transparent;}
.navbar.bg-transparent .navbar-toggler-icon {background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");}
.navbar.bg-white .navbar-toggler-icon {background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34,34,34,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");}
@media (max-width: 991px) {
    #navmenu.nav-top {background: transparent !important;backdrop-filter: none !important;}
    #navmenu.nav-scrolled {background: #fff !important;backdrop-filter: none !important;}
    #navmenu.nav-open-blur {background: rgba(255, 255, 255, 0.12) !important;backdrop-filter: blur(12px) !important;}
    #navmenu.nav-open-white {background: #fff !important;backdrop-filter: none !important;}
}

/*footer*/
.footer{background: var(--gray-light);}
.footer a{text-decoration: none;color: white; font-weight: 400}
.footer p{color: white}
.footer i{font-size: 17px}
.footer a:hover{color: var(--red)}
.footer .social-icons a {
    width: 43px;
    height: 43px;
    margin-left: 2px;
    margin-right: 2px;
    border-radius: 50%;
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    align-items: center;
    justify-content: center;
}
.footer .social-icons i{font-size: 20px;}
.footer .list-group a.btn-link:hover .icon-before {transform: translateX(3px);}
.cajamapa{
    margin-top:15px;
    text-align: center;
    color: var(--gray) !important;
    background:#b3b3b3;
    padding:10px 20px;
    border:1px solid #ececec;
}
.footer .copyright {padding: 25px 0;border-top: 1px solid rgba(256, 256, 256, .1);}
@media(min-width:1301px){
    #trengif{left:70px;top:226px;position:relative;}
    .img-footer{
        min-height:500px;
        background: url("../img/plantilla/footer2000.png") no-repeat;
        background-size:cover;
        margin-bottom:0;
        width:100%;
    }
}
@media(max-width:1300px){
    #trengif{left:50px;top:136px;position:relative;}
    .img-footer{
        min-height:400px;
        background: url("../img/plantilla/footer2000.png") no-repeat;
        background-size: cover;
        margin-bottom:0;
        width: 100%;
    }
}
@media(max-width:1200px){
    #trengif{left:60px;top:100px;position:relative;}
    .img-footer{
        min-height:360px;
        background: url("../img/plantilla/footer1300.png") no-repeat;
        background-size: cover;
        margin-bottom:0;
        width: 100%;
    }
}
@media(max-width:990px){
    #trengif{left:60px;top:52px;position:relative;scale:0.8;}
    .img-footer{
        min-height:270px;
        background: url("../img/plantilla/footer1300.png") no-repeat;
        background-size: cover;
        margin-bottom:0;
        width: 100%;
    }
}
@media (max-width:600px){
    #trengif{scale:0.4;left:-34px;top:0;position:relative;}
    .img-footer{
        min-height:50px;
        background: url("../img/plantilla/footer500.png") no-repeat;
        background-size: cover;
        margin-bottom:-20px;
        width: 100%;
    }
    .megamenu .row .col-md-3{min-height:200px;}
}
@media (max-width:450px) {
    #trengif {scale: 0.4;left: -34px;top: 0;position: relative;}
    .img-footer {
        min-height: 50px;
        background: url("../img/plantilla/footer500.png") no-repeat;
        background-size: cover;
        margin-bottom: -10px;
        width: 100%;
    }
}

/* scroll top */
.scroll-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: var(--red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    transform: scale(0.7);
    transition: all 0.4s ease;
}
.scroll-top i {font-size: 24px;line-height: 0;}
.scroll-top:hover {background-color: color-mix(in srgb, var(--red), transparent 20%);}
.scroll-top:hover i{color: white;}

/*spinner*/
#spinner .spinner-border{
    width: 45px;
    height: 45px;
}
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    background-color: #f6f6f6;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}