@import url('constants.css');

* {
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--open-sans);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background-color: var(--purple-base);
}

#back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 24px;
    border: none;
    outline: none;
    background-color: var(--purple-base);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
}

#back-to-top-btn:hover {
    background-color: var(--aqua);
}

.container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

.hero {
    /* min-height: 100vh; */
    position: relative;
    --wave-bottom: url('../images/bg-section-top-mobile-1.svg');
}

/* MENU */

.hero{
    --wave-bottom: url('../images/bg-section-top-desktop-1.svg')
}

.hero__nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-shadow: 0px 2px 4px rgba(214, 217, 223, 0.4);
    padding: 10px;
}

.hero__nav-items {
    display: flex;
    flex-direction: column;
}

.hero__logo{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: auto 0;
}

.hero__logo img {
    height: 24px;
}

.hero__nav ul {
    display: block;
    text-align: center;
    list-style: none;
    padding: 0;
}
 

.hero__nav li a {
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

.hero__title{
    font-size: 48px;
    font-family: var(--poppins);
}

.hero__main__image  img {
    width: 100%;
}

.hero__paragraph{
    width: 70%;
    width: 90%;
    line-height: 1.5;
    margin: 16px auto;
}

.hero__nav-items a:not(.icon){
    display: none;
}

.hero__logo a.icon {
    display: block;
    float: right;
}

.hero__nav-items.responsive {
    position: relative;
}

.hero__nav-items.responsive a {
    float: none;
    display: block;
    text-align: center;
    background: rgba(12, 12, 12, 0.95);
    mix-blend-mode: multiply;
    backdrop-filter: blur(25px);
    color: white;
    padding: 10px 0;
}

/* END MENU */

.her__huddle{
    width: 100%;    display: block;
}

.hero__cta{
    color: var(--light-pink);
    text-decoration: none;
    border: 2px solid;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 0 1px;
}

.hero__main{
    text-align: center;
    color: var(--very-dark-cyan);
}

.cta{
    display: inline-block;
    background-color: var(--very-dark-cyan);
    color: #fff;
    text-decoration: none;
    padding: 16px 30px;
    border-radius: 30px;
    margin-top: 16px;
    font-weight: 600;
    transition: transform 1s;
}

.cta:hover {
    transform: scale(1.5);
    transition: transform .5s;
}

.hero__picture{
    margin-top: 80px;
}

.hero__img{
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
}

.hero__numbers{
    margin-top:80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;
    gap: 60px;
}   


.hero__item{
    overflow: hidden;
}

.hero__number{
    font-size: 60px;
}

.hero__icon{
    display: block;
}

.hero__texts {
    margin-bottom: 50px;
    margin: 0 15px;
}

.socialmedia__header {
    transition: transform 1.5s;
}

.socialmedia__header:hover {
    transform: scale(2);
    transition: transform .5s;
}

/* PRODUCT CAROUSEL */
.carousel {
    margin-bottom: 50px;
    padding: 0 30px;
}

.carousel__container {
    position: relative;
}

.carousel__previous,
.carousel__next {
    position: absolute;
    display: block;
    width: 30px;
    height: 30px;
    border: none;
    top: calc(50% - 35px);
    cursor: pointer;
    line-height: 30px;
    text-align: center;
    background: none;
    color: var(--very-dark-cyan);
    opacity: 20%;
}

.carousel__previous:hover,
.carousel__next:hover {
    opacity: 100%;
}

.carousel__previous {
    left: -30px;
}

.carousel__next {
    right: -30px;
}

.carousel__list {
    overflow: hidden;
}

.carousel__element {
    text-align: center;
}

.glider-track {
    margin: auto !important;
}

.glider-dot.active {
    background: var(--very-dark-cyan) !important;
}


.product__picture{
    margin-bottom: 20px;
    height: 200px;
}

.product__img{
    width: 100%;
    height: 70%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    background-size: cover;
    padding: 10px;
}

.product-url{
    margin: 10px 5px;
    text-decoration: none;
    color: var(--very-dark-cyan);
}

/*****************************************************/  

.wave{
    position: absolute;
    width: 100%;
    height: 100px;

    background-repeat: no-repeat;
    background-size: 100% 100px;
}

.wave--bottom{
    left: 0;
    bottom: 0;
    background-image: var(--wave-bottom);
}

.wave--top{
    left: 0;
    top: 0;
    background-image: var(--wave-top);
}

.section{
    background-color: var(--very-pale-blue);
    --padding-container: 110px 0;
}

.section--white{
    background-color: #fff;
    position: relative;
    --padding-container: 210px 0;
    --wave-top: url('../images/bg-section-bottom-mobile-1.svg');
    --wave-bottom: url('../images/bg-section-top-mobile-2.svg');
}

.section__container{
    display: flex;
    flex-direction: column;
}

.section__img{
    width: 80%;
    /* max-width: 350px; */
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    max-width: 100%;
    max-height: 100%;
}

.section__texts{
    margin-top: 50px;
    text-align: center;
}

.reveal {
    transform: translateY(4px);
    opacity: 0;
    transition: 1s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/**********************************************************/

.subtitle{
    margin-bottom: 16px;
    font-family: var(--poppins);
}

.question{
    position: relative;
    text-align: center;
    --wave-top: url('../images/bg-section-bottom-mobile-2.svg');
    --wave-bottom: url('../images/bg-footer-top-mobile.svg');
    --padding-container: 190px 0 210px;
}

.question--paleblue{
    background-color: var(--very-pale-blue);
}

/* FOOTER */

.footer{
    color: #fff;
    background-color: var(--aqua);
    bottom: 0;
    position: absolute;
}

.footer__container{
    display: none;
    padding: 20px 18px;
}

.footer__title{
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-family: var(--poppins);
}

.footer__paragraph{
    line-height: 1.5;
    margin: 16px 0 50px;
}

.footer__form{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.footer__input{
    flex-basis: 100%;
    flex-grow: 1;
    font-size: 16px;
    font-family: var(--open-sans);
    border: none;
    outline: none;
    border-radius: 3px;
    padding: 16px 6px;
    margin-bottom: 20px;
}

.footer__cta{
    font-size: 16px;
    font-family: var(--open-sans);
    background-color: var(--purple-base);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    padding: 10px 40px;
    font-weight: 600;
    margin-left: auto;
}

.footer__contact{
    line-height: 50px;
}

.footer__contact--email {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__contact--email img {
    /* margin: auto; */
    width: 20px;
    height: 20px;

}

.footer__social{
    display: inline-block;
    margin-top: 20px;
}

.footer__social img {
    width: 40px;
    height: 40px;
}

.footer__social a {
    text-decoration: none;
}

.footer__link{
    text-decoration: none;
    width: 40px;
}

.footer__icon{
    width: 100%;
    display: block;
}

#footer__copyright {
    text-align: center;
    padding: 10px 0;
}

#footer__copyright a {
    text-decoration: none;
    color: var(--purple-base);
    font-weight: bold;
}

.powered__logo {
    width: 25%;
}
/* SUBCRIPTION FORM */

.footer__form--response {
    background-color: indianred;
    padding: 16px 16px;
    margin-bottom: 20px;
    display: none;
}

.footer__form--error {
    display: block;
    background-color: indianred;
}

.footer__form--success {
    display: block;
    background-color: #4bb543;
}

.active {
    display: block;
}

/******************************/

/* SERVICES */
.services {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(https://s3.betternfaster.com/duhandel/BGimg.jpg);
    padding: 50px 0;
}

.services__container {
    display: flex;
    flex-direction: column;
    gap:10px;
    margin: 0 10px;
}

.services__header {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: var(--aqua)
}

.services__card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.services__card:hover {
    transform: translateY(-10px);
}

.services__image {
    width: 80%;
    border-radius: 10%;
    margin-bottom: 20px;
}

.services__title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
.services__description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
  }

/* END SERVICES */

@media (min-width: 768px) {
    .hero{
        --wave-bottom: url('../images/bg-section-top-desktop-1.svg')
    }

    /*  MAIN SECTION */

    .hero__main {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .rectangle {
        /* display: inline; */
        position: absolute;
        width: 9px;
        height: 261px;
        left: 123px;
        top: 292px;
        background: var(--purple-base);
    }
    
    .hero__texts {
        flex: 1;
	    text-align: center;
    }

    .hero__main__image {
        flex: 1;
    }

    .hero__main__image  img{
        width: 100%;
        height: auto;
    }

    /* END MAIN SECTION */

    /* MENU */
    .hero__nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 100px;
    }

    .hero__nav a.icon{
        display: none;
    }
    
    .hero__logo{
        display: inline-block;
    }

    .hero__nav-items a:not(.icon){
        display: block;
    }
    
    .hero__nav-items, .hero__nav-items.responsive{
        display: flex !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .hero__nav-items.responsive a {
        background: none;
        color: var(--black);
    }
    
    .hero__logo img {
        height: 50px;
    }
      
    .hero__nav li {
        margin-left: 48px;
    }
      
    .hero__nav li a:hover {
        color: var(--purple-base);
    }

    .hero__nav li a:hover:after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--purple-base);
        animation: grow 0.2s ease-out forwards;
    }
    
    @keyframes grow {
        0% {
            transform: scaleX(0);
        }
        100% {
            transform: scaleX(1);
        }
    }

    /* END MENU */

    .hero__title{
        font-size: 48px;
    }

    .hero__paragraph{
        width: 70%;
    }

    .cta{
        padding: 16px 45px;
    }

    .hero__numbers{
        justify-content: space-around;
        flex-direction: row;
    }

    .section--white{
        --wave-top: url('../images/bg-section-bottom-desktop-1.svg');
        --wave-bottom: url('../images/bg-section-top-desktop-2.svg');
    }

    .section__container{
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        padding: 20px 40px;
    }

    .section__picture{
        width: 50%;
    }

    .section__texts{
        width: 45%;
        margin: 0;
        text-align: start;
    }

    .section__container--inverse{
        flex-direction: row;
    }

    /* SERVICES */

    .services__container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    .services__card {
        width: 30%;
    }
      
    /* END SERVICES */

    .question{
        --wave-top: url('../images/bg-section-bottom-desktop-2.svg');
        --wave-bottom: url('../images/bg-footer-top-desktop.svg');
    }

    .footer__container{
        display: none;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* crea columnas de 200px de ancho mínimo */
        grid-gap: 10px; /* espacio entre elementos */
        justify-items: center; /* alinear elementos en el centro */
    }

    .footer__newsletter{
        display: none;
        width: 50%;
        max-width: 350px;
        order: 1;
    }

    .footer__content{
        width: 50%;
        max-width: 300px;
    }

    .footer__paragraph{
        margin: 10px 0 10px;
    }

    .powered__logo {
        width: 10%;
    }
}