/* Estilos generales */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    height: 100%;
}

main {
    flex: 1;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: "Raleway", sans-serif;
}

h1,
h2 {
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 30px;
}

footer {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.822);
    color: white;
}

p {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 18px;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a .card {
    cursor: pointer;
}

/* Barra de navegación */
.navbar {
    height: 13vh;
    background: linear-gradient(180deg, #797979, #ffffff);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 15px 15px;
    border: #000000;
    border-width: 20px;
}

.navbar img {
    height: 75%;
    margin-left: 60px;
    border-style: solid;
    border-width: 0.5px;
    border-color: #000000;
}

.navbar-toggler {
    margin: 5px 20px 5px 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#navbarOffcanvasLg .nav-link {
    color: #000000;
}

.nav-link {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 20px;
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    padding: 5px 10px;
}

.nav-link::after {
    position: absolute;
    content: '';
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: rgba(240, 255, 255, 0.61);
    transform: translateX(-50%);
    transform-origin: center;
    transition: width 0.3s ease;
}

/* Expande la barra al ancho del texto */
.nav-link:hover::after {
    width: 95%;
}

.nav-link:hover {
    animation-name: changeBackgroundText;
    animation-duration: 0.3s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* Iconos del footer */
.iconsContainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.socialIcons {
    width: 15%;
    height: 15%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.socialContainer {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background-color: rgba(49, 47, 47, 0.459);
    overflow: hidden;
    transition-duration: 1s;
}

.socialContainer:active {
    transform: scale(0.9);
    transition-duration: .5s;
}

.socialContainer:hover .redSocial {
    animation: slide-in-top 0.5s both;
}

.instagram:hover {
    background-color: #d62976;
    transition-duration: .5s;
}

.whatsapp:hover {
    background-color: #16a022;
    transition-duration: .5s;
}

.facebook:hover {
    background-color: #5b79ff;
    transition-duration: .5s;
}

.youtube:hover {
    background-color: #d10000;
    transition-duration: .5s;
}

.mercadoLibre {
    fill: none;
    stroke: #ffffff;
}

.mercadoLibre:hover {
    background-color: #fffb10;
    fill: rgb(255, 255, 255);
    stroke: #000000;
    transition-duration: .3s;
}


/*SECCIÓN INICIO*/
/*Carrusel de imágenes*/
.carousel-item img {
    object-fit: cover;
}

.carousel-index img {
    aspect-ratio: 21 / 9;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3%;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.img-desktop {
    display: block;
}

.img-mobile {
    display: none;
}

/* División */
.custom-shape-divider-top {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 9vh;
}

.custom-shape-divider-top .shape-fill {
    fill: #8A8A8A;
}

.custom-shape-divider-bottom {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 6vh;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #646464;
}

/*Cards con imágenes*/
.cardContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.card {
    box-sizing: border-box;
    text-align: center;
    width: 270px;
    height: 240px;
    background: rgb(255, 255, 255);
    border: 1px solid white;
    box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
    border-radius: 17px;
    cursor: default;
    transition: all 0.5s;
    user-select: none;
    font-weight: bolder;
    color: black;
    object-fit: cover;
    overflow: hidden;
}

.cardContainerOP {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.cardOP {
    box-sizing: border-box;
    width: 324px;
    height: 275px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid white;
    box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
    border-radius: 17px;
    cursor: default;
    transition: all 0.5s;
    user-select: none;
    font-weight: bolder;
    color: black;
    object-fit: cover;
    overflow: hidden;
}

.cardProducts {
    box-sizing: border-box;
    text-align: center;
    width: 280px;
    height: 250px;
    background: rgb(255, 255, 255);
    border: 1px solid white;
    box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
    border-radius: 17px;
    cursor: default;
    transition: all 0.5s;
    user-select: none;
    font-weight: bolder;
    color: black;
    object-fit: cover;
    overflow: hidden;
}

.cardBody {
    background-color: #ffffff;
    margin-top: auto;
}

.cardTitle {
    font-size: 20px;
    text-align: center;
    align-items: baseline;
}

.card:hover {
    border: 1px solid black;
    transform: scale(1.15);
}

.cardOP:hover {
    border: 1px solid black;
    transform: scale(1.15);
}

.card .carousel-inner {
    max-height: 300px;
    overflow: hidden;
}

.card .carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto {
    margin-top: 40px;
}

.producto h5 {
    font-size: 18px;
}

.texto-descriptivo {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 16px;
}


/* SECCIÓN EMPRESA */
.historia img {
    max-height: 80vh;
    width: auto;
}

.historia p {
    text-align: justify;
}

.equipo img {
    max-height: 80vh;
    width: auto;
}

.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1rem;
}

.divider-with-text svg {
    animation: rolling 5s infinite linear;
}

.divider-with-text::before,
.divider-with-text::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #333, transparent);
}

/* SECCIÓN PRODUCTOS */
#galeria1 .carousel-inner,
#galeria2 .carousel-inner,
#galeria3 .carousel-inner,
#galeria4 .carousel-inner {
    aspect-ratio: 4 / 3;
}

#galeria1 .carousel-inner img,
#galeria2 .carousel-inner img,
#galeria3 .carousel-inner img,
#galeria4 .carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#galeria1 .carousel-control-prev,
#galeria2 .carousel-control-prev #galeria3 .carousel-control-prev #galeria4 .carousel-control-prev {
    position: absolute;
    top: 50%;
    /* Centra verticalmente */
    transform: translateY(-50%);
    width: 3%;
    /* Ancho del botón */
    left: 10px;
}

#galeria1 .carousel-control-next,
#galeria2 .carousel-control-next #galeria3 .carousel-control-next #galeria4 .carousel-control-next {
    position: absolute;
    top: 50%;
    /* Centra verticalmente */
    transform: translateY(-50%);
    width: 3%;
    /* Ancho del botón */
    right: 10px;
}

.dropbtn {
    background-color: #dadadace;
    color: rgb(0, 0, 0);
    margin-left: 10px;
    padding: 2px 16px 2px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-top: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content li {
    color: black;
    padding: 6px 8px;
    text-decoration: none;
    display: block;
    font-size: 90%;
}

.dropdown-content a:hover {
    background-color: #f1f1f1
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #bbbbbb;
}

/* SECCIÓN CONTACTO */

#blurOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 998;
}

#blurOverlay.active {
    opacity: 1;
    visibility: visible;
}

#confirmationCard {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
}

#confirmationCard.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.confirmationIcon-container {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #04e40048;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
}

.confirmationIcon {
    width: 24px;
    height: 24px;
    color: #269b24;
}

.message-text {
    font-size: 18px;
    font-weight: 700;
    color: #269b24;
    margin-bottom: 0.3rem;
}

.sub-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
}

.cross-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    color: #555;
    cursor: pointer;
}


.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}





/* MEDIA QUERIES (Adaptabilidad) */
@media (max-width: 1024px) {
    .navbar img {
        height: 70%;
        width: auto;
    }
}

@media (max-width: 991px) {
    .img-desktop {
        display: none;
    }

    .img-mobile {
        display: block;
    }

    .carousel-index img {
        aspect-ratio: 4 / 3;
    }
}


@media (min-width: 991px) {
    .nav-link {
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .navbar img {
        height: 50%;
        width: auto;
        margin-right: 10px;
    }

    #navbarOffcanvasLg {
        width: 80%;
    }
}

@media (max-width: 425px) {
    .navbar img {
        height: 50%;
        width: auto;
    }

    #navbarOffcanvasLg {
        width: 90%;
    }
}



/* KEYFRAMES */
@keyframes changeBackgroundText {
    from {
        border-radius: 6px;
        border-bottom: none;
    }

    to {
        background-color: rgba(88, 88, 88, 0.829);
        color: azure;
        border-radius: 6px;
    }
}


@keyframes slide-in-top {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rolling {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}