/* Snippet de Carga */
.loader-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffff;
    z-index: 10000;
}
.loader {
    display: block;
    --height-of-loader: 4px;
    --loader-color: #CF142B;
    width: 130px;
    height: var(--height-of-loader);
    border-radius: 30px;
    background-color: rgba(0,0,0,0.2);
    position: absolute;
    top: 50%;
    left: calc(50% - 65px);
}

.loader::before {
    content: "";
    position: absolute;
    background: var(--loader-color);
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: 30px;
    animation: moving 1s ease-in-out infinite;
}

@keyframes moving {
    50% {
        width: 100%;
    }

    100% {
        width: 0;
        right: 0;
        left: unset;
    }
}
/* Fuentes */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Italic.ttf');
    font-style: italic;
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf');
    font-style: normal;
    font-weight: bold;
    font-display: swap;
}
/* Globales */
*{
    box-sizing: border-box;
  }
body {
    overflow-x: hidden;
    background-image: url("../images/fondo-web-home.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.categoria {
    background-image: url("../images/fondo-web.webp");
}
a {
    font-family: 'Poppins';
    text-decoration: none;
}
h1 {
    font-family: 'Poppins';
    text-align: center;
    text-transform: uppercase;
}
h2 {
    font-family: 'Poppins';
}
h3 {
    font-family: 'Poppins';
    text-align: center;
    text-transform: uppercase;
}
p {
    font-family: 'Poppins';
}
main {
    margin-top: 150px;
}
main.main {
    margin-top: 0;
}
h2[id],
h3[id],
h4[id],
h5[id],
h6[id] {
  scroll-margin-top: 131px; /* Ajusta el valor según sea necesario */
}
.only-mobile {
    display: block!important;
}
.only-desktop {
    display: none!important;
}
@media screen and (min-width: 900px) {
    .only-desktop {
        display: block!important;
    }
    .only-mobile {
        display: none!important;
    }
}
.whatsapp-logo {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 70px;
}
.whatsapp-logo:hover {
    transition: scale .4s ease;
    scale: 1.25;
}
/* Home */
/* Header */
.top-header {
    background-color: #CF142B;
    padding: 5px;
    align-items: end;
}
.top-header > .icons {
    text-align: right;
    padding: 0 47px;
}
@media screen and (max-width: 450px) {
    .top-header > .icons {
        padding: 0 10px;
    }
}
.top-header > .icons > a {
    margin-right: 8px;
    color: transparent;
    background-color: transparent;
}
.top-header > .icons > a > svg {
    width: 20px;
    height: 20px;
}
.top-header > .icons > a:last-of-type {
    margin-right: 0px;
}
header {
    border-bottom: 2px solid #CF142B;
    box-shadow: 0.3em 0.3em 1em rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.header-img {
    margin: 20px 0;
    width: 160px;
}
.header-img > img {
    width: 100%;
    max-width: 250px;
    height: auto;
}
.header-desktop {
    padding: 0 52px;
    background-color: #ffffff;
}
@media screen and (max-width: 450px) {
    .header-desktop {
        padding: 0 10px;
    }
}
.nav-header {
    display: flex;
    justify-content: space-between;
    width: 50%;
}
.nav-header > a {
    color: #CF142B;
    font-size: 16px;
    transition: 0.5s;
    text-transform: uppercase;
    font-weight: bold;
}
.nav-header > a:hover {
    color: #000000;
}
@media screen and (max-width: 768px) {
    .nav-header {
        display: block;
        text-align: right;
    }
    .nav-header > a {
        display: block;
        font-size: 15px;
    }
}
.menu-mobile {
    display: none;
}
.menu-mobile > .btn-secondary {
    background-color: transparent;
    border: none;
    width: 27px;
    height: 20px;
    padding: 0;
}
.btn-secondary:focus {
    box-shadow: none;
}
@media screen and (max-width: 1000px) {
    .nav-header{
        display: none;
    }
    .menu-mobile {
        display: block;
    }
}
.dropdown-toggle::after{
    display: none;
}
/* BTN Menú hamburguesa */
.hamburger-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 27px;
    height: 20px;
    background-color: transparent;
}

.bar,
.bar:after,
.bar:before {
    width: 27px;
    height: 3px;
    background-color: #000000;
}

.bar {
    position: relative;
    transform: translateY(25px);
    transition: all 0ms 300ms;
    color: #000000;
    padding: 0;
    margin: 0;
    top: -14px;
}
.bar.animate {
    background: rgba(255, 255, 255, 0);
}

.bar:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    transition: bottom 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.bar:after {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    transition: top 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.bar.animate:after {
    top: 0;
    transform: rotate(45deg);
    transition: top 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.bar.animate:before {
    bottom: 0;
    transform: rotate(-45deg);
    transition: bottom 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
/* Carrousel */
.history {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.container-history {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.image {
    width: 100%;
}

.img-history {
    width: 100%;
    height: auto;
}
.text {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    width: 80%;
    margin: auto;
}
@media screen and (max-width: 1000px) {
    .text {
        width: 95%;
    }
}
.text h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.text p {
    font-size: 16px;
    line-height: 1.5;
}
@media screen and (max-width: 430px) {
    .text h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .text p {
        font-size: 12px;
        line-height: normal;
    }
}
@media screen and (min-width: 1366px) {
    .text h3 {
        font-size: 44px;
        margin-bottom: 10px;
    }
    .text p {
        font-size: 24px;
        line-height: normal;
    }
}
@media screen and (min-width: 1550px) {
    .text h3 {
        font-size: 44px;
        margin-bottom: 10px;
    }
    .text p {
        font-size: 27px;
        line-height: normal;
    }
}
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    cursor: pointer;
}
.slick-dots {
    bottom: 70px;
}
.slick-dots > li > button::before {
    color: #ffffff!important;
}
.slick-active > button::before {
    color: #ffffff!important;
}
/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: hidden;
}
@media screen and (max-width: 930px) {
    .modal {
        overflow: scroll;
    }
}
/* Estilos para el contenido del modal */
.modal-content {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
}
@media screen and (max-width: 930px) {
    .modal-content {
        margin-top: 40px;
    }
}
.modal-content img {
    max-width: 250px;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 20px;
}
.modal-content p {
    text-align: center;
    margin: 0 auto;
    font-size: 20px;
    font-family: 'Poppins';
    max-width: 400px;
    margin-bottom: 20px;
}
/* Estilos para el botón de cierre */
.close {
    position: absolute;
    top: 0;
    right: 6px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos para los iconos */
.icon-container {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    align-items: center;
}
@media screen and (max-width: 700px) {
    .icon-container {
        display: block;
    }
    .icon-container a {
        max-width: 200px;
    }
}
.icon-container a {
    width: 230px;
    color: transparent;
}
.icon-container a > p {
    font-size: 16px;
    color: #000000;
}
.icon-container svg {
    max-width: 110px;
    padding: 0;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}
.icon-container svg:hover {
    border: 3px solid #CF142B;
    border-radius: 50%;
    transition: .8s all;
}

/* Nuestro Trabajo in HOME */
.nuestro-trabajo {
    margin-top: 60px;
}
.nuestro-trabajo > h2 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 70px;
    font-weight: 700;
    padding: 5px 0;
    color: #000;
    background: linear-gradient(to left, transparent 0%, rgba(128, 128, 128, 0.5) 50%, transparent 100%),
                linear-gradient(to right, transparent 0%, rgba(128, 128, 128, 0.5) 50%, transparent 100%);
    background-blend-mode: screen;
}
.nuestro-trabajo-div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    margin: 20px;
    margin-bottom: 40px;
}
@media screen and (max-width: 768px) {
    .nuestro-trabajo-div {
        display: block;
    }
}
.nuestro-trabajo-div > .item {
    margin: 0 auto 50px;
    max-width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
}
.nuestro-trabajo-div > .item::before {
    content: "";
    background: linear-gradient(to left,#CF142B, #ca4f5e,  #ffffff);
    position: absolute;
    margin: -10px;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    border-radius: inherit;
}

.nuestro-trabajo-div > .item::after {
    background:  linear-gradient(to left, #CF142B, #ca4f5e, #ffffff);
    width: 100%;
    height: 100%;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nuestro-trabajo-div > .item:nth-child(2)::before,
.nuestro-trabajo-div > .item:nth-child(4)::before {
    background: linear-gradient(to left, #777777, #999999, #ffffff); /* Color gris */
}

.nuestro-trabajo-div > .item:nth-child(2)::after,
.nuestro-trabajo-div > .item:nth-child(4)::after {
    background: linear-gradient(to left, #777777, #999999, #ffffff); /* Color gris */
}
.nuestro-trabajo-div > .item > a{
    text-align: center;
    color: #000000;
    font-weight: normal;
    display: block; 
}
.nuestro-trabajo-div > .item > a:hover  {
    transition: scale .4s;
    scale: 1.5;
}

.item > a > img {
    width: 60%;
    height: auto;
    max-width: 300px;
}
.item > a > p {
    text-transform: uppercase;
}

.img-nuestro-t {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
    column-gap: 20px;
    grid-row-gap: 30px;
    width: 100%;
    margin-bottom: 50px;
}

@media screen and (max-width: 1200px) {
    .img-nuestro-t {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 800px) {
    .img-nuestro-t {
        grid-template-columns: repeat(1, 1fr);
    }
}
.img-nuestro-t > .imagen {
    width: 350px;
    height: 300px;
}
.img-nuestro-t > .imagen > img {
    max-width: 100%;
    width: 350px;
    height: 300px;
    margin: 0px auto 50px;
}

.img-nuestro-t.exhibidores > .imagen {
    width: 300px;
    height: 350px;
}
.img-nuestro-t.exhibidores > .imagen > img {
    max-width: 100%;
    width: 300px;
    height: 350px;
    margin: 0px auto 50px;
}
.categoria > main > h1 {
    margin-bottom: 30px;
}
.imagen {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 350px;
    height: 300px;
}

.clasificacion {
    position: absolute;
    bottom: -50%;
    width: 100%;
    height: 50%;
    background-image: linear-gradient(to top, #c2272f, transparent);
    color: white;
    text-align: center;
    transition: bottom 0.5s ease;
}
.clasificacion > p {
    font-size: 22px;
    padding-top: 64px;
}
@media screen and (min-width: 800px) {
    .imagen:hover .clasificacion {
        bottom: 0;
    }
}

@media screen and (max-width: 799px) {
    .imagen.clicked .clasificacion {
        bottom: 0;
    }
}
/* Nuestros Clientes in HOME */
#nuestrosClientes > h3 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 70px;
    font-weight: 700;
    padding: 5px 0;
    color: #000;
    background: linear-gradient(to left, transparent 0%, rgba(128, 128, 128, 0.5) 50%, transparent 100%),
                linear-gradient(to right, transparent 0%, rgba(128, 128, 128, 0.5) 50%, transparent 100%);
    background-blend-mode: screen;
}

#nuestrosClientes {
    margin-bottom: 70px;
}

.nuestros-clientes-carousel {
    margin-top: 30px;
}
.nuestros-clientes-carousel > div > div {
    display: flex;
    align-items: center;
}
.nuestros-clientes-carousel img {
    max-width: 70%;
    height: auto;
    margin: 0 auto; /* Centra horizontalmente las imágenes */
    display: block; /* Añade esto para evitar espacios en blanco debajo de las imágenes */
}

@media screen and (max-width: 799px) {
    .nuestros-clientes-carousel img {
        max-width: 65%;
    }
}
footer {
    background-color: #c2272f;
    width: 100%;
}
footer > .container {
    padding: 30px 52px;
    width: 100%;
    max-width: 100%;
}
footer > .container > .info-staff {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 50px;
}
@media screen and (max-width: 900px) {
    footer > .container {
        display: block;
        margin: 0 auto;
        padding: 30px 15px;
    }
    footer > .container > .logo-footer {
        margin-bottom: 20px;
        padding-left: 5px;
    }
    footer > .container > .info-staff {
        margin-bottom: 20px;
        padding-left: 5px;
        display: block;
    }
}
.logo-footer {
    max-width: 280px;
    width: 280px;
}
.info-staff > .staff {
    color: #ffffff;
    margin-bottom: 20px;
}
.info-staff > .staff:last-of-type {
    margin-bottom: 0px;
}
.info-staff > .staff > p {
    margin: 0;
}
.info-staff > .staff > a {
    display: block;
    color: #ffffff;
}
.links-footer {
    display: flex;
    justify-content: space-between;
}
@media screen and (max-width: 900px) {
    .links-footer {
        display: block;
    }
    .links-footer {
        margin-top: 35px;
    }
}
.links-footer > a {
    display: flex;
    align-items: center;
}
.links-footer > a > svg {
    width: 40px;
    max-width: 40px;
    height: 40px;
    margin-right: 10px;
    flex-shrink: 0;
}
.links-footer > a:last-of-type { 
    height: 50px;
}
.links-footer > a:last-of-type > svg {
    width: 30px;
    max-width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-right: 15px;
}
.links-footer > a > p {
    margin: 0;
    color: #ffffff;
}