/* default tag overrides */

:root {
    --cartechos-blue: rgb(10, 80, 180);
    --cartechos-dark-blue: rgb(5, 25, 60);
    --cartechos-light-blue: rgb(118, 157, 210);
    --whatsapp-green: rgb(37, 211, 102);
    --element-color-1: rgb(5, 25, 60);
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    /* kills unwanted sideways scroll */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

hr {
    background-color: rgba(255, 255, 255, 0.6);
    margin: 0 2rem;
}

h1 {
    font-weight: 900 !important;
    color: var(--cartechos-blue);
}

h2 {
    color: var(--cartechos-blue);
}

h2.alt {
    color: #ffffff;
}

.reset-a,
.reset-a:hover,
.reset-a:visited,
.reset-a:focus,
.reset-a:active {
    text-decoration: none;
    color: inherit;
    outline: 0;
}


.main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Bootstrap extra tags */

.btn b {
    font-size: larger;
}

/* Header and footer styling */

.mainHeader,
.mainFooter {
    background-color: rgb(10, 80, 180);
    max-width: 100%;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
}

.sidebar-icon {
    font-size: x-large;
}

.sidebar-container {
    width: 100%;
    min-height: 100%;
    z-index: 9;
    opacity: 1;

    display: block;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s linear, opacity 0.2s;
}

.sidebar-container.sidebar-closed {
    opacity: 0;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0);
}

.sidebar {
    width: 25rem;
    max-width: 100%;
    height: 100vh;
    z-index: 10;

    background-color: var(--cartechos-blue);
    overflow-x: hidden;
    transition: width 0.4s;
}

.sidebar.sidebar-closed {
    width: 0rem;
}

.sidebar .closebtn-container {
    width: 100%;
    display: flex;
    padding: 1rem 1.5rem;
    justify-content: end;
}

.mainHeader .text_a,
.mainFooter .text_a,
.sidebar .text_a {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sidebar .text_a {
    font-size: x-large
}

.mainHeader .text_a:hover,
.mainFooter .text_a:hover,
.sidebar .text_a:hover {
    color: #ffffff;
    transform: scale(1.2);
    text-decoration: none;
}

.social-media {
    margin: 1.5rem;
    background-color: #ffffff;
    border-radius: 50%;

    min-width: 1.7rem;
    min-height: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-media i {
    color: rgb(10, 80, 180);
    font-weight: 100 !important;
}

.logo {
    height: 3rem;
    object-fit: cover;
}

.logo.logo-lg {
    height: 6rem;
}

.directory {
    display: flex;
}

.directory-phone-icon {
    display: none;
    align-items: center;
    justify-content: end;
}

/* Fallback styling */

.not-found-logo {
    margin: auto;
    font-size: 7rem;
    color: var(--cartechos-blue);
}

.not-found-text {
    margin: auto;
    color: var(--cartechos-blue);
}


/* Home */

.content {
    width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.front-banner {
    width: 100%;
    height: 35rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-banner video {
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
}

.overlay-content {
    position: absolute;
    /*top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);*/
    color: white;
    /* for contrast */
    text-align: center;
}

.overlay-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.overlay-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #f5f5f5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.carousel {
    height: 100%;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    overflow: scroll !important;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.carousel.in-product-modal {
    width: 100%;
}

.carousel-button {
    opacity: 1;
    transition: opacity 0.3s linear;
}

.carousel-button.fade {
    opacity: 0;
    pointer-events: none;
}

.product-gallery-item {
    margin: 1rem;
    filter: saturate(1.3);
    transition: filter 0.3s ease;
}

.product-gallery-item:hover {
    filter: saturate(1.3) blur(1px);
}

.product-gallery-item .main-image {
    height: 16rem;
    width: 16rem;
    object-fit: cover;
}

.product-gallery-item.start {
    margin: 0 2rem 0 0;
}

.product-gallery-item.end {
    margin: 0 0 0 2rem;
}

.product-gallery-item .gallery-button {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border: 2px solid #cccccc;
    overflow: hidden;
}

.location-container {
    position: relative;
    height: 20rem;
    background: var(--cartechos-dark-blue);
    color: white;
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
}

.location-container.right {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
}

@media (max-width: 767.98px) {

    .location-container,
    .location-container.right {
        clip-path: none !important;
    }
}

.fun-fact-banner {
    background-color: var(--cartechos-dark-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.fun-fact-banner .image-container {
    background-color: #ffffff;
    width: 12rem;
    height: 12rem;
    border: solid #ffffff 5px;
    border-radius: 50%;
    overflow: hidden;
}

.fun-fact-banner .image-container img {
    min-width: 12rem;
    min-height: 12rem;
    max-width: 100%;
    height: auto;
}

.metecno-logo {
    width: 30rem;
    height: auto;
}

.metecno-image {
    height: 30rem;
    overflow: hidden;
}

.product-image {
    min-width: 100%;
    min-height: 28rem;
    max-height: 28rem;
    max-width: 100%;
    object-fit: cover;
}


/* Catalogo */

.title-banner {
    width: 100%;
    height: 10rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-banner .overlay-content {
    position: absolute;
    /* top: 20%;
    left: 50%;
    transform: translate(-50%, -50%); */
    color: white;
    /* for contrast */
    text-align: center;
}

.search-bar {
    min-width: 30rem;
}

.accordion-card {
    border-radius: 1rem !important;
    border: 3px solid var(--cartechos-light-blue) !important;
}

.accordion-header {
    border-radius: 0.7rem !important;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    cursor: pointer;
    background-color: var(--cartechos-light-blue);
}

/* Whatsapp element */

.global-whatsapp-button {
    background-color: var(--whatsapp-green);
    color: rgb(255, 255, 255);
    width: 5rem;
    height: 5rem;
    position: fixed;
    bottom: 2rem;
    /* distance from bottom */
    right: 2rem;
    /* distance from right */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-whatsapp-button i {
    font-size: 3rem;
}

.global-whatsapp-button:hover {
    filter: saturate(0.7);
}

.fade-left-img {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 100%);
}

.fade-right-img {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 100%);
}

.about-us-main-img {
    min-width: 100%;
    height: 50rem;
    object-fit: cover;
}

.easeload-img {
    opacity: 0;
    transition: all 1s ease;
}

.card {
    border-radius: 2rem !important;
    border: 2px solid rgba(0, 0, 0, .125) !important;
}

.card-header {
    background-color: rgb(0, 0, 0, 0);
    border-radius: 2rem !important;
    border-bottom: 0 !important;
}

/* Reactive */

@media screen and (max-width: 576px) {

    .directory,
    .btnContactUs {
        display: none !important;
    }

    .directory-phone-icon {
        display: flex !important;
    }

    .metecno-logo {
        width: 100%;
    }

    .metecno-image {
        height: 100%;
    }
}