/********** Template CSS **********/
:root {
    --primary: #990000;
    --secondary: #323234;
    --light: #F5F5F5;
    --dark: #000000;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


.topbar-right {
    position: relative;
    background: var(--primary);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    background: var(--primary);
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--secondary);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 3.5rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: url(../img/clientes-comprando-en-vending-machine.png) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
    text-shadow: 2px 2px 3px rgba(50,50,52,1);
}

.page-header .breadcrumb-item {
    font-size: 18px;
    color: #fff;
    text-shadow: 2px 2px 3px rgba(50,50,52,1);
}

.page-header .breadcrumb-item a {
    font-size: 18px;
    color: #fff;
    text-shadow: 2px 2px 3px rgba(50,50,52,1);
    font-weight: 600;
}


/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--primary);
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}


/*** Features ***/
.btn-play {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFFFFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 200px;
    height: 200px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 140px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 160px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(153, 0, 0, .8);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Project ***/
.project-carousel {
    position: relative;
    background: var(--secondary);
}

.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img,
.project-carousel .owl-item.center img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary);
    transition: .5s;
}

.project-item:hover .project-title,
.project-carousel .owl-item.center .project-title  {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-3deg);
    background: var(--primary);
    transition: .5s;
}

.project-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    transition: .5s;
    opacity: 0;
    z-index: 1;
}

.project-carousel:hover .owl-nav {
    opacity: 1;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}


/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: var(--primary);
    transition: .5s;
}

.team-item:hover .team-social {
    left: 0;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: #B0B9AE;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.logo {
    height: 55px;
}

.book-of-reclamations i {
    font-size: 24px;    
    margin-bottom: 10px;
}

.about-value {
    font-size: 1.5rem;
    font-weight: 600 !important;
    margin-bottom: 0;
    color: #323234;
    line-height: 2;
}

.product-highlight {
      background-color: #f8f9fa;
    }

    .product-image-wrapper {
      position: relative;
      display: inline-block;
      max-width: 100%;
    }

    .product-image-wrapper img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
    }

    .tooltip-point {
      position: absolute;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background-color: #990000;
      border: 2px solid white;
      cursor: pointer;
      z-index: 10;
      transform: translate(-50%, -50%);
      transition: transform 0.2s ease-in-out;
    }

    .tooltip-point:hover {
      transform: translate(-50%, -50%) scale(1.2);
    }
    .bor-icon {
       width: 55px;
       margin-bottom: 15px;
    }
    .link-credit {
        color: #fff;
        font-weight: 700;
    }
    .link-credit:hover {
        color: #990000;
    }
    .icon-value {
        color: #fff;
        display: block;
        margin: 0 auto 10px auto;
        font-size: 3em;
        position: relative;
        transition: .8s;
        z-index: 3;
    }
        .card-value:hover .icon-value {
        transform: rotateY(360deg);
        color: #990000;
    }
        .card-value {
            position: relative; /* Esencial para el posicionamiento del pseudo-elemento */
    overflow: hidden; /* Oculta el pseudo-elemento hasta que se active el hover */
    z-index: 1; /* Asegura que el contenido esté por encima del fondo cambiante */
        }
    .hover-value {
        position: relative;
    z-index: 2; /* Asegura que el contenido esté por encima del pseudo-elemento */
    background-color: #990000; /* Color de fondo inicial, un color claro para el texto negro */
    color: #fff; /* Color del texto inicial */
    transition: color 0.5s ease-in-out; /* Transición para el color del texto */
    }
    .hover-value::before {
    content: "";
    position: absolute;
    bottom: -101%; /* Posiciona el pseudo-elemento fuera de la vista, por debajo */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* El color rojo que quieres que aparezca */
    z-index: -1; /* Lo coloca detrás del contenido de la tarjeta */
    transition: bottom 0.5s ease-in-out; /* Transición para el movimiento del pseudo-elemento */
}
    .card-value:hover .hover-value::before {
    bottom: 0; /* Mueve el pseudo-elemento a su posición normal, cubriendo el fondo */
}
 .card-value:hover .text-value {
    color: #990000 !important; /* Cambia el color del texto a blanco */
}
.gallery-thumbnail {
            width: 100%; /* La imagen ocupa todo el ancho de su columna */
            object-fit: cover; /* Recorta la imagen para cubrir el área sin distorsionar */
            display: block; /* Elimina espacios extra debajo de la imagen */
        }

        .title-soluciones {
            font-size: 2rem;
            color: #fff;
            margin-bottom: 0;
        }
        .title-soluciones-incluye {
            font-size: 1.3rem;
            color: #fff;
            margin-bottom: 0;
        }
    
    .block-soluciones {
        text-align: center;
        border: 1px solid #dee2e6 !important;
        padding: 3rem !important;
        border-color: rgba(255, 255, 255, .1) !important;
    position: relative;
    overflow: hidden;
    padding-bottom: 60px; /* Espacio para el botón */
    transition: max-height 0.5s ease-in-out;
    max-height: 300px; /* Altura inicial. Ajusta este valor según tu necesidad. */
}

.content-wrapper {
    position: relative;
    padding: 0 20px;
}

.block-soluciones::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to top, rgba(153, 0, 0, 1), rgba(153, 0, 0, 0));
    transition: opacity 0.5s ease-in-out;
}

.expand-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease-in-out;
    z-index: 9;
}

.expand-btn i {
    pointer-events: none;
}

/* Clases que serán controladas por JavaScript */
.block-soluciones.expanded {
    /* La altura se asignará dinámicamente con JS */
}

.block-soluciones.expanded::after {
    opacity: 0;
}

.block-soluciones.expanded .expand-btn {
    transform: translateX(-50%) rotate(180deg);
}

    .icon-soluciones {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }


    .icon-soluciones-incluye {
        width: 70px;
        height: 70px;
        margin-bottom: 5px;
    }

    .title-header {
        color: #323234;
        font-size: 4.5rem;
        margin-bottom: 20px;
    }

    .title-header2 {
        color: #fff;
        font-size: 4.5rem;
        margin-bottom: 20px;
        text-shadow: 3px 3px 5px rgba(50,50,52,1);
    }

    .title-page-header {
        color: #fff;
        font-size: 4rem;
        text-shadow: 3px 3px 5px rgba(50,50,52,0.8);
    }

    .title-bor {
        font-size: 2rem;
        color: #990000;
        text-align: center;
        margin: 10px 0;
    }
    .text-align-left {
        text-align: left !important;
    }

    .icon-aboutus {
        margin-left: 10px;
    }
    .desktop {
        display: contents !important;
    }
    .mobile {
        content: none !important;
    }
    .block-contact-info {
        margin-left: 10px;
    }

    @media (max-width: 500px) {
        .desktop {
            display: none !important;
        }
        .mobile {
            display: contents !important;
        }
    .logo {
        height: 45px !important;
    }
    .title-header {
        font-size: 40px !important;
    }
    .title-header2 {
        font-size: 40px !important;
    }
    .btn {
        font-size: 24px !important;
    }
    .block-soluciones {
        padding: 1rem !important;
    }
    .block-soluciones.expanded {
        max-height: 1150px !important;
    }
    .content-wrapper p {
        text-align: center !important;
        font-size: 24px !important;
    }
    .about-value {
        font-size: 20px !important;
        padding-top: 5px !important;
    }
    #machine h4 {
        font-size: 24px !important;
        margin-bottom: 0px !important;
    }
    #machine p {
        font-size: 20px !important;
    }
    #machine span {
        font-size: 20px !important;
    }
    .facts span {
        font-size: 30px !important;
    }
    #about p {
        font-size: 20px !important;
    }
    #services p {
        font-size: 20px !important;
    }
    .service-item .service-title {
        padding: 90px 30px 25px 30px !important;
    }
    .service-item .service-title h3 {
        font-size: 40px !important;
    }
    #whyus h4 {
        font-size: 24px !important;
        margin-bottom: 0px !important;
    }
    #whyus p {
        font-size: 20px !important;
    }
    #whyus span {
        font-size: 20px !important;
    }
    #gallery p {
        font-size: 20px !important;
    }
    .footer .btn {
        font-size: 1rem !important;
    }
    #gallery {
        padding-top: 5px !important;
    }
    #about-us p {
        font-size: 20px !important;
    }
    #about-us h2 {
        font-size: 70px !important;
        margin-bottom: 0px !important;
    }
    #about-us h5 {
        font-size: 30px !important;
    }
    .accordion-item:first-of-type .accordion-button {
        font-size: 24px !important;
    }
    .accordion-body {
        font-size: 20px !important;
    }
    .accordion-item:last-of-type .accordion-button.collapsed {
        font-size: 24px !important;
    }
    #contact p {
        font-size: 20px !important;
    }
    #contact span {
        font-size: 20px !important;
    }
    #contact h6 {
        font-size: 20px !important;
        margin-bottom: 0px !important;
    }
    #contact i {
        font-size: 30px !important;
    }
    #contact .btn-square {
        width: 50px !important;
        height: 50px !important;
    }
    .title-page-header {
        font-size: 40px !important;
    }
    .page-header {
        background: url(../img/clientes-comprando-en-vending-machine-mobile.png) center center no-repeat;
    }
}

    @media (max-width: 390px) {
    .logo {
        height: 40px !important;
    }
    .navbar .navbar-brand {
        padding-right: 25px !important;
    }
    .icon-aboutus {
        margin-left: 3px !important;
    }
    .about-value {
        font-size: 18px !important;
        padding-top: 5px !important;
        margin-left: 5px !important;
    }
    #machine h4 {
        font-size: 20px !important;
        margin-bottom: 0px !important;
    }
    #machine p {
        font-size: 18px !important;
    }
    #machine span {
        font-size: 20px !important;
    }
    .facts span {
        font-size: 24px !important;
    }
    #about p {
        font-size: 18px !important;
    }
    #services p {
        font-size: 18px !important;
    }
    .service-item .service-title {
        padding: 100px 30px 25px 30px !important;
    }
    .service-item .service-title h3 {
        font-size: 32px !important;
    }
    #whyus h4 {
        font-size: 20px !important;
        margin-bottom: 0px !important;
    }
    #whyus p {
        font-size: 18px !important;
    }
    #whyus span {
        font-size: 18px !important;
    }
    #gallery p {
        font-size: 18px !important;
    }
    .footer .btn {
        font-size: 1rem !important;
    }
    #gallery {
        padding-top: 5px !important;
    }
    #about-us p {
        font-size: 18px !important;
    }
    #about-us i {
        padding-top: 3px !important;
    }
    #about-us h2 {
        font-size: 60px !important;
        margin-bottom: 0px !important;
    }
    #about-us h5 {
        font-size: 24px !important;
    }
    .accordion-item:first-of-type .accordion-button {
        font-size: 20px !important;
    }
    .accordion-body {
        font-size: 18px !important;
    }
    .accordion-item:last-of-type .accordion-button.collapsed {
        font-size: 20px !important;
    }
    #contact p {
        font-size: 18px !important;
    }
    #contact span {
        font-size: 17px !important;
    }
    #contact h6 {
        font-size: 18px !important;
        margin-bottom: 0px !important;
    }
    #contact i {
        font-size: 24px !important;
    }
    #contact .btn-square {
        width: 45px !important;
        height: 45px !important;
    }
    .title-page-header {
        font-size: 36px !important;
    }
    .page-header {
        background: url(../img/clientes-comprando-en-vending-machine-mobile.png) center center no-repeat;
    }
    .block-contact-info {
        margin-left: 10px !important;
    }
    .block-soluciones.expanded {
        max-height: 1350px !important;
    }
    .block-soluciones {
        padding: 0.8rem !important;
    }
}