header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 99;
    width: calc(100% - 20px);
    height: 100px;
    overflow: visible;
    color: #fff;
    padding: 0 10px;
    background: transparent;
    transition: all .2s linear;
}

.bg-header {
    /* background: linear-gradient(0deg, #6676e9 0%, #92e2ff 100%); */
    background: radial-gradient(circle at 0% 30%, rgb(195, 231, 255) 0%, rgb(135, 191, 255) 50%, #7c8bfd 100%);
    background-size: auto 100%;
    box-shadow: 0 0 5px rgba(51, 64, 95, 0.3);
    transition: all .2s linear;
}


.back-header {
    width: 100%;
    height: 120px;
    z-index: 1;
    position: relative;
}

section {
    position: relative;
    z-index: 1;
}

.logo {
    width: 300px;
    height: 200px;
    background: url('../img/layout/logo-black.webp') center bottom no-repeat;
    background-size: 100% auto;
    transition: all .2s linear;
}

@media only screen and (min-width: 768px) {
    .bg-header .logo {
        width: 300px;
        height: 100%;
        background: url('../img/layout/logo-black.webp') center center no-repeat;
        background-size: 200px auto;
        transition: all .2s linear;
    }
}

.search-icon,
.cart,
.menu-icon {
    width: 80px;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    position: relative;
    font-size: 25px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
    transition: all 0.3s ease;
    background-position: center center;
    background-size: 60px auto;
}

.cart {
    width: 90px;
}

.menu-icon:hover,
.cart:hover {
    transform: scale(1.1);
    cursor: pointer;
    background-position: center center;
    background-size: 60px auto;
}

.search-icon,
.BtnCerrarModalBuscador {
    display: none;
}

.search-icon {
    flex-grow: 1;
    justify-content: end;
    margin-right: 10px;
}

#search-form-container {
    flex-grow: 1;
    position: relative;
}

#FrmBuscador {
    max-width: 500px;
    margin: auto;
}

@media only screen and (max-width: 768px) {
    .logo {
        width: 160px;
        background-size: 150px auto;
        background-position: center center;
        height: 100%;
    }

    #search-form-container {
        position: absolute;
        width: 0;
        top: 0;
        z-index: 12;
        width: calc(100% - 40px);
        background: rgba(0, 0, 0, .8);
        padding: 100px 20px 100vh 20px;
        display: none;
    }

    .search-icon,
    .BtnCerrarModalBuscador {
        display: flex;
    }

    .ResultadosBuscador {
        top: 150px;
        margin: 0;
        width: calc(100% - 45px);
        font-size: 12px;
    }
}

#sidebar {
    position: fixed;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 96%;
    background: linear-gradient(180deg, rgb(146, 226, 255) 0%, #6676e9 100%);
    z-index: 100;
    color: #fff;
    display: none;
    padding: 0 2% 10px 2%;
    overflow-y: auto;
}

#sidebar .menu-icon {
    position: absolute;
    right: 20px;
    top: 30px;
    width: 50px;
    height: 50px;
    font-size: 33px;
    z-index: 101;
    background-size: 100% auto;
}

#sidebar .logo {
    width: 200px;
    z-index: 101;
    height: 80px;
    position: absolute;
    top: 25px;
    left: calc(50% - 100px);
    background: url('../img/layout/logo.webp') center center no-repeat;
    background-size: auto 100%;
}

.controls-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.razon-social {
    display: flex;
    justify-content: start;
    align-items: center;
    font-weight: 700;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
}

.buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin: 150px auto 0 auto;
    gap: 15px;
}

.navbar a,
.navbar a:visited {
    color: #0056af;
    width: 130px;
    font-weight: 700;
    height: 40px;
    line-height: 40px;
    text-align: left;
    display: inline-block;
    font-size: 19px;
    position: relative;
    padding-left: 45px;
    border-radius: 25px;
    background: linear-gradient(0deg, rgb(182, 182, 182) 0%, rgb(255, 255, 255) 100%) !important;
    box-shadow: 5px 5px 10px rgba(8, 67, 194, 0.05);
}

.navbar a::before {
    content: "►";
    position: absolute;
    left: 20px;
    top: 0;
    font-size: 15px;
    color: #fff;
    text-shadow: 0 5px 0 #b5aae0;
}

.navbar a:hover {
    background: linear-gradient(0deg, rgba(94, 76, 166, 1) 0%, rgba(102, 118, 233, 1) 100%) !important;
    color: #fff;
}

#item-elitech {
    display: flex;
    align-items: center;
}

#item-elitech img {
    width: 90px;
    height: auto;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Mínimo 200px por columna, ajustable */
    gap: 1px;
    /* Espaciado entre los elementos */
}

.categories-container a,
.categories-container a:visited {
    text-align: left;
    color: #333;
    font-size: 1rem;
    background: linear-gradient(0deg, #fff 50%, #eaeaea 100%) !important;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 5px;
}

.categories-container a:hover {
    background: rgb(94, 76, 166) !important;
    background: linear-gradient(0deg, rgba(94, 76, 166, 1) 0%, rgba(102, 118, 233, 1) 100%) !important;
    color: #fff;
}

.liMenu {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../img/botones/li-menu.png) left 4px no-repeat;
    margin-right: 5px;
    opacity: .8
}

/* Ajuste de tamaño de las columnas con el ancho de la pantalla */
@media (max-width: 1024px) {
    .categories-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .categories-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 480px) {
    .categories-container {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .razon-social {
        justify-content: center;
        margin-top: 30px;
        width: 100%;
    }

    .navbar a,
    .navbar a:visited {
        width: 50%;
        font-size: 1.3rem;
    }

    .categories-container a,
    .categories-container a:visited {
        font-size: 1.3rem;
        padding: 12px;
    }
}

.content {
    margin: auto;
    max-width: 1300px;
    width: 100%;
}

/* slider */
.home-slider .swiper-home {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.home-slider .swiper-slide {
    font-size: 24px;
    color: #fff;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}

.home-slider .swiper-wrapper {
    padding: 0;
}

.animated-text {
    opacity: 0;
    transform: translateY(120px);
    transition: opacity 1s ease, transform 1s ease;
}

.swiper-slide-active .animated-text {
    opacity: 1;
    transform: translateY(0);
}

.swiper-home-button-next,
.swiper-home-button-prev {
    position: absolute;
    left: 10px;
    width: 30px;
    height: 30px;
    text-align: center;
    top: calc(50% - 15px);
    z-index: 2;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.swiper-home-button-next {
    left: calc(100% - 40px);
}

.swiper-home-pagination {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 10px;
    z-index: 2;
    text-align: center;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    justify-items: center;
    margin-bottom: 80px;
}

/* */
.novedades-home-container {
    width: 100%;
    background: linear-gradient(0deg, #fff, #c1e3ff);
    padding: 1px 0;
}

.elitech-home-container {
    text-align: center;
    /* background: radial-gradient(circle at 50% 50%, #d8a14e 50%, #f07227 100%); */
    background: linear-gradient(0deg, #d8a14e, #f07227);
    padding: 1px 0;
}

.donper-home-container {
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #60c6f5 50%, #27b0f0 100%);
    padding: 1px 0;
}

.elitech-home-container .title,
.donper-home-container .title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 28px;
    color: #fff;
    font-weight: 700;
    margin: 10px 0;
    padding: 40px 0;
}

.elitech-home-container img {
    width: 130px;
    height: auto;
}

.donper-home-container img {
    width: 180px;
    height: auto;
}

ul.breadcrumb {
    padding: 0;
    list-style: none;
    margin-bottom: 30px;
}

ul.breadcrumb li {
    display: inline;
    font-size: 1rem;
}

ul.breadcrumb li+li:before {
    padding: 8px;
    color: #bbb;
    font-weight: 700;
    content: ">";
}

ul.breadcrumb li a {
    text-decoration: none;
}

ul.breadcrumb li a:hover {
    text-decoration: none;
}

.float-container {
    display: flex;
    align-items: stretch;
}


.float-container p {
    margin-bottom: 1.2rem;
}

.float-3 {
    width: 30%;
    background-size: cover;
    min-height: 100%;
}

.float-7 {
    width: 70%;
    padding-right: 3%;
    padding-left: 3%;
    min-height: 330px;
}

.float-5 {
    width: 50%;
    height: auto;
}

.novedad-h1 {
    background: none;
    font-size: 2rem;
    padding: 0;
    margin: 30px 0 50px 0;
    line-height: 2.4rem;
    text-align: center;
    display: block;
}

.novedad-autor,
.novedad-date {
    display: block;
    font-size: 14px;
    text-align: right;
    color: #aaa;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 20px;
}

.novedad-autor {
    font-size: 13px;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.attachments-container {
    gap: 20px;
    margin-bottom: 20px;
    display: block;    
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.zoom-msg {
    width: 140px;
    height: 30px;
    position: absolute;
    left: calc(50% - 70px);
    top: 240px;
    background: var(--bg-degradado);
    gap: 4px;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 0 3px rgb(255, 255, 255);
    text-align: left;
    padding-left: 13px;
    line-height: 30px;
    font-size: 13px;
    display: none;
}

.zoom-msg img {
    display: inline-block;
    width: 20px;
    transform: rotateY(180deg);
    position: absolute;
    right: 12px;
    top: 5px;
}

.docs-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 20px;
    font-size: .9rem;
    font-weight: 500;
}

.docs-container img {
    width: 40px;
    transition: all .3s ease-in-out;
}

.docs-container img:hover {
    transform: scale(1.1);
}

.no-image {
    margin: auto;
    width: 200px;
    height: 200px;
    background-image: url('../img/layout/no-image.jpg');
    background-size: auto 100%;
}

.image-container {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center center;
    transition: all .3s linear;
    border-radius: 14px;
}

.thumbnails-container {
    height: 200px;
    width: 100%;
    gap: 10px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding-top: 10px;
}

.thumbnails-container a {
    flex: 1;
    display: block;
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

.thumbnail {
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    transition: all .3s linear;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5);
}

.thumbnail:hover,
.image-container:hover {
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .3), 0 0 0 4px rgba(209, 200, 165, 0.3);
}

.btn-atras {
    width: 100px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 0 auto;
    line-height: 40px;
    cursor: pointer;
}

.btn-atras span {
    margin-top: 20px;
    font-weight: 600;
    color: #444;
}

.naranja-elitech {
    color: #f07227;
}

.slide-1 {
    background: radial-gradient(circle at 50% 50%, #eafbff 0%, #a9cbff 100%);
    position: relative;
}

.swiper-home .image1 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.swiper-home .image2 {
    position: absolute;
    top: 150px;
    width: 90%;
    max-width: 560px;
    margin: auto;
    height: 170px;
    background: url('../img/slides/slide-1-2.webp') center center no-repeat;
    background-size: 100% auto;
}

.swiper-home .text {
    position: absolute;
    left: 5%;
    bottom: 130px;
    text-align: left;
    color: #6882a8;
    line-height: 3.5rem;
    font-size: 2.9rem;
    font-weight: 400;
    display: block;
}



.swiper-home .button {
    display: inline-block;
    margin-top: 90px;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 10px 40px;
    border-radius: 100px;
    transition: all 0.3s linear;
}

.slide-1 .button {
    color: #fff;
    background: linear-gradient(0deg, #f07227, #d8a14e);
}

.slide-1 .button:hover {
    background: linear-gradient(0deg, #0e73b3, #28a0eb);
}

.slide-2 {
    background: radial-gradient(circle at 50% 50%, #ecb86a 0%, #f07227 100%);
}

.slide-2 .title {
    color: #fff;
}

.slide-2 .description {
    color: #2c2c2c;
}

.slide-2 .image2 {
    position: absolute;
    top: 150px;
    width: 90%;
    max-width: 560px;
    margin: auto;
    height: 170px;
    background: url('../img/slides/slide-2-2.webp') center center no-repeat;
    background-size: 100% auto;
}

.slide-2 .button,
.slide-3 .button,
.slide-4 .button {
    color: #fff;
    background: linear-gradient(0deg, rgba(94, 76, 166, 1) 0%, rgba(102, 118, 233, 1) 100%);
}

.slide-2 .button:hover,
.slide-3 .button:hover,
.slide-4 .button:hover {
    background: linear-gradient(0deg, #0e73b3, #28a0eb);
}

.slide-3 .title {
    background: linear-gradient(0deg, #f07227, #d8a14e);
    margin-bottom: 8px;
    text-align: center;
}

.slide-3 .description {
    background: linear-gradient(0deg, #0e73b3, #28a0eb);
}

.slide-3 .title,
.slide-3 .description {
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 1px 3px 7px rgba(0, 0, 0, 0.3);
}

.slide-3 {
    background: url('../img/slides/slide-3-0.webp') center center no-repeat;
}

.slide-3 .image2 {
    position: absolute;
    top: 150px;
    width: 90%;
    max-width: 560px;
    margin: auto;
    height: 170px;
    background: url('../img/slides/slide-3-2.webp') center center no-repeat;
    background-size: 100% auto;
}

.slide-4 {
    background: radial-gradient(circle at 50% 50%, #61faff 0%, #27b0f0 100%);
}

.slide-4 .image2 {
    position: absolute;
    top: 150px;
    width: 90%;
    max-width: 560px;
    margin: auto;
    height: 170px;
    background: url('../img/slides/slide-4-2.webp') center center no-repeat;
    background-size: 100% auto;
}

.slide-4 .title {
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 5px 12px;
    text-shadow: 3px 3px 0 rgba(34, 85, 153, 0.5);
}

.slide-4 .description {
    margin-top: 5px;
    color: #fff;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: .3px;
    background: linear-gradient(0deg, #01a2e9, #00b3ff);
    text-align: center;
    padding: 5px 12px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .3);
}

.slide-6 {
    background: url('../img/slides/bg-social-media.webp') center center no-repeat;
    background-size: cover;
    position: relative;
}

.slide-6 .title {
    font-weight: 700;
    color: #fff;
    width: 270px;
    position: absolute;
    top: 130px;
    left: calc(50% - 135px);
    text-align: center;
    background: var(--bg-degradado);
    padding: 10px 0;
    border-radius: 10px;
    display: inline-block;
    z-index: 5;

}

@media (min-width: 768px) and (max-width: 1200px) {

    .swiper-home .title,
    .swiper-home .description {
        font-size: 2rem;
        line-height: 2.5rem;
        text-shadow: 0 0 10px #fff;
    }

    .swiper-home .image2 {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .swiper-home .image2 {
        width: 80%;
    }

    .swiper-home .text {
        bottom: auto;
        left: 0;
        right: 0;
        top: 330px;
        width: 100%;
        text-align: center;
        line-height: 2.5rem;
        font-size: 1.9rem;
    }

    .slide-2 .image2,
    .slide-3 .image2,
    .slide-4 .image2 {
        top: 100px;
    }

    .slide-2 .text {
        top: 260px;
    }

    .slide-2 .button {
        margin-top: 35px;
    }

    .slide-3 .text {
        top: 220px;
        width: 80%;
        margin-right: auto;
        margin-left: auto;
        font-size: 1.5rem !important;
    }

    .slide-3 .button {
        margin-top: 35px;
    }

    .attachments-container {
        float: none;
        width: 96%;
        margin: 13px 2%;
    }

    .slide-4 .text {
        top: 220px;
        width: 80%;
        margin-right: auto;
        margin-left: auto;
        font-size: 1.5rem !important;
    }

    .slide-4 .button {
        margin-top: 35px;
    }

    .elitech-home-container .title,
    .donper-home-container .title {
        display: block;
        text-align: center;
        line-height: 45px;
        width: 100%;
    }

}

@media (max-height: 700px) {
    .swiper-home .image2 {
        top: 80px;
        max-width: 350px;
    }

    .swiper-home .text {
        top: 280px;
        left: 10%;
        text-align: left;
        line-height: 2rem;
        font-size: 1.7rem;
    }

}