/*=============== GOOGLE FONTS ===============*/ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap'); /*=============== VARIABLES CSS ===============*/ :root { --header-height: 3.5rem; /*56px*/ /*========== Colors ==========*/ /*Color mode HSL(hue, saturation, lightness)*/ --hue: 152; --first-color: #2267b2; --first-color-alt: hsl(var(--hue), 24%, 28%); --first-color-light: hsl(var(--hue), 24%, 66%); --first-color-lighten: hsl(var(--hue), 24%, 92%); --title-color: hsl(var(--hue), 4%, 15%); --text-color: hsl(var(--hue), 4%, 35%); --text-color-light: hsl(var(--hue), 4%, 55%); --body-color: hsl(var(--hue), 0%, 100%); --container-color: #FFF; /*========== Font and typography ==========*/ /*.5rem = 8px | 1rem = 16px ...*/ --body-font: 'Poppins', sans-serif; --big-font-size: 3rem; --h1-font-size: 1.5rem; --h2-font-size: 1.25rem; --h3-font-size: 1rem; --normal-font-size: .938rem; --small-font-size: .813rem; --smaller-font-size: .75rem; /*========== Font weight ==========*/ --font-medium: 500; --font-semi-bold: 600; /*========== Margenes Bottom ==========*/ /*.5rem = 8px | 1rem = 16px ...*/ --mb-0-3:.3rem; --mb-0-5:.5rem; --mb-0-75:.75rem; --mb-1:1rem; --mb-2:2rem; --mb-2-5:2.5rem; --mb-4:4rem; /*========== z index ==========*/ --z-tooltip: 10; --z-fixed: 100; } /* Responsive typography */ @media screen and (min-width: 968px) { :root { --big-font-size: 3.5rem; --h1-font-size: 2.25rem; --h2-font-size: 1.5rem; --h3-font-size: 1.25rem; --normal-font-size: 1rem; --small-font-size: .875rem; --smaller-font-size: .813rem; } } /*=============== BASE ===============*/ *{ box-sizing: border-box; padding: 0; margin: 0; } html{ scroll-behavior: smooth; } body, button, input, textarea{ font-family: var(--body-font); font-size: var(--normal-font-size); } body{ margin: var(--header-height) 0 0 0; background-color: var(--body-color); color: var(--text-color); transition: .4s; /*For animation dark mode*/ } button{ cursor: pointer; border: none; outline: none; } h1,h2,h3{ color: var(--title-color); font-weight: var(--font-semi-bold); } ul{ list-style: none; } a{ text-decoration: none; } img{ max-width: 100%; height: auto; } /*=============== THEME ===============*/ /*========== Variables Dark theme ==========*/ body.dark-theme{ --first-color-dark: hsl(var(--hue), 8%, 20%); --title-color: hsl(var(--hue), 4%, 95%); --text-color: hsl(var(--hue), 4%, 75%); --body-color: hsl(var(--hue), 8%, 12%); --container-color: hsl(var(--hue), 8%, 16%); } /*========== Button Dark/Light ==========*/ .change-theme{ color: var(--title-color); font-size: 1.15rem; cursor: pointer; } .nav__btns{ display: inline-flex; align-items: center; column-gap: 1rem; } /*========== Color changes in some parts of the website, in dark theme ==========*/ .dark-theme .steps__bg, .dark-theme .questions{ background-color: var(--first-color-dark); } .dark-theme .product__circle, .dark-theme .footer__subscribe{ background-color: var(--container-color); } .dark-theme .scroll-header{ box-shadow: 0 1px 4px hsla(var(--hue), 4%, 4%, .3); } /*=============== REUSABLE CSS CLASSES ===============*/ .section{ padding: 5.5rem 0 1rem; } .section__title, .section__title-center{ font-size: var(--h2-font-size); margin-bottom: var(--mb-2); line-height: 140%; } .section__title-center{ text-align: center; } .container{ max-width: 968px; margin-left: var(--mb-1-5); margin-right: var(--mb-1-5); } .grid{ display: grid; } .main{ overflow: hidden; /*For animation*/ } /*=============== HEADER ===============*/ .header{ width: 100%; background-color: var(--body-color); position: fixed; top: 0; left: 0; z-index: var(--z-fixed); transition: .4s; /*For animation dark mode*/ } /*=============== NAV ===============*/ .nav{ height: var(--header-height); display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; padding-top:2.5rem; padding-bottom:2.5rem; } .nav__logo, .nav__toggle, .nav__close{ color: var(--title-color); } .nav__logo{ text-transform: uppercase; font-weight: 700; letter-spacing: -1px; display: inline-flex; align-items: center; column-gap: .5rem; transition: .3s; } .logo{ object-fit: cover; width: 9.5rem; margin: 0.89rem; } .nav__logo-icon{ font-size: 1.15rem; color: var(--first-color); } .nav__logo:hover{ color: var(--first-color); } .nav__toggle{ display: inline-flex; font-size: 1.25rem; cursor: pointer; } @media screen and (max-width: 767px){ .nav__menu{ position: fixed; background-color: var(--container-color); width: 80%; height: 100%; top: 0; right: -100%; box-shadow: -2px 0 4px hsla(var(--hue), 24%, 15%, .1); padding: 4rem 0 0 3rem; border-radius: 1rem 0 0 1rem; transition: .3s; z-index: var(--z-fixed); } } .nav__close{ font-size: 1.5rem; position: absolute; top: 1rem; right: 1.25rem; cursor: pointer; } .nav__list{ display: flex; flex-direction: column; row-gap: 1.5rem; } .nav__link{ color: var(--title-color); font-weight: var(--font-medium); transition: .3s; } .nav__link:hover{ color: var(--first-color); } /* Show menu */ .show-menu{ right: 0; } /* Change background header */ .scroll-header{ box-shadow: 0 1px 4px hsla(var(--hue), 4%, 15%, .1); } /* Active link */ .active-link{ position: relative; color: var(--first-color); } .active-link::after{ content: ''; position: absolute; bottom: -.5rem; left: 0; width: 50%; height: 2px; background-color: var(--first-color); } /*=============== HOME ===============*/ .home{ padding: 5.5rem 0 2rem; } .home__container{ position: relative; row-gap: 2rem; } .home__data{ padding: 1rem; } .home__img{ max-width: 20rem; justify-self: center; } .home__title{ font-size: var(--big-font-size); font-weight: 600; text-align: center; line-height: 140%; margin-bottom: var(--mb-1); } .home__description{ text-align: center; margin-bottom: var(--mb-2-5); font-weight: 100; } .p__button{ background-color: #000000; border: none; color: white; padding: 1.2rem 1.7rem; border-radius: .5rem; cursor: pointer; } .p__button:hover{ background-color: #0f69c9; transition: 0.5s; } .button__container{ text-align: center; padding-bottom: 2rem; } .s__button{ background-color: transparent; border: 0.05rem solid black; color: black; padding: 1rem 1.2rem; border-radius: .5rem; cursor: pointer; margin-right: .5rem; display: inline-flex; align-items: center; justify-content: center; } .s__button img{ height: 1.3rem; margin-right: .5rem; } .button__group{ text-align: center; margin-bottom: var(--mb-4); } /*=============== BUTTONS ===============*/ .button{ display: inline-block; background-color: var(--first-color); color: #FFF; padding: 1rem 1.75rem; border-radius: .5rem; font-weight: var(--font-medium); transition: .3s; } .button:hover{ background-color: var(--first-color-alt); } .button__icon{ transition: .3s; } .button:hover .button__icon{ transform: translateX(.25rem); } .button--flex{ display: inline-flex; align-items: center; column-gap: .5rem; } .button--link{ color: var(--first-color); font-weight: var(--font-medium); } .button--link:hover .button__icon{ transform: translateX(.25rem); } /*=============== BREAKPOINTS ===============*/ /* For small devices */ @media screen and (max-width: 320px){ .container{ margin-left: var(--mb-1); margin-right: var(--mb-1); } .home__img{ width: 180px; } .home__title{ font-size: var(--h1-font-size); } } /* For medium devices */ @media screen and (min-width: 576px){ } @media screen and (min-width: 767px){ body{ margin: 0; } .nav{ height: calc(var(--header-height) + 1.5rem); column-gap: 3rem; } .nav__toggle, .nav__close{ display: none; } .nav__list{ flex-direction: row; column-gap: 3rem; } .nav__menu{ margin-left: auto; } .home__container{ grid-template-columns: repeat(2, 1fr); } .home{ padding: 10rem 0 5rem; } .home__container{ align-items: center; } .home__img{ width: rem; order: 1; } .home__title, .home__description, .button__group, .button__container{ text-align: left; } } /* For large devices */ @media screen and (min-width: 992px){ .container{ margin-left: auto; margin-right: auto; } .section{ padding: 8rem 0 1rem; } .section__title, .section__title-center{ font-size: var(--h1-font-size); } .home{ padding: 13rem 0 5rem; } .home__img{ width: 26rem; } } @media screen and (min-width: 1200px){ }