main.css 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. /* Variables */
  2. @font-face {
  3. font-family: "Source Sans Pro";
  4. src: url("../fonts/SourceSansPro-Regular.ttf");
  5. font-weight: normal;
  6. font-style: normal;
  7. }
  8. :root {
  9. --ff-main: "Source Sans Pro", Arial, sans-serif;
  10. --primary-color: "#329998";
  11. --primary-color-gradient: linear-gradient(360deg, rgba(53,130,129,1) 0%, rgba(50,153,152,1) 35%, rgba(47,173,172,1) 100%);
  12. }
  13. body {
  14. font-family: var(--ff-main);
  15. font-weight: 300;
  16. font-family: 19px;
  17. color: #000;
  18. padding: 0;
  19. margin: 0;
  20. box-sizing: border-box;
  21. overflow-x: hidden;
  22. }
  23. .no-margins {
  24. margin: 0;
  25. padding: 0;
  26. }
  27. .container {
  28. /* Extra Large: xl */
  29. max-width: 1200px;
  30. margin: 0 auto;
  31. }
  32. @media screen and (max-width: 767px) {
  33. .container {
  34. width: 100%;
  35. }
  36. }
  37. .title-section {
  38. margin: 0 0 30px 0;
  39. font-size: 30px;
  40. font-weight: 300;
  41. text-transform: uppercase;
  42. padding-bottom: 20px;
  43. line-height: 1.5;
  44. text-align: center;
  45. color: #fff;
  46. }
  47. .title-section::after {
  48. content: "";
  49. position: absolute;
  50. display: block;
  51. width: 80px;
  52. height: 2px;
  53. background: #fff;
  54. left: 50%;
  55. margin-left: -40px;
  56. margin-top: 1rem;
  57. }
  58. /* Nav */
  59. .main-header {
  60. position: fixed;
  61. color: #fff;
  62. display: flex;
  63. justify-content: space-between;
  64. align-items: center;
  65. height: 65px;
  66. width: 100%;
  67. z-index: 1;
  68. transition: 0.4s ease-out;
  69. }
  70. .main-header .logo {
  71. padding-left: 3rem;
  72. font-weight: 600;
  73. font-size: 30px;
  74. font-weight: 700;
  75. }
  76. .main-header a {
  77. text-decoration: none;
  78. color: inherit;
  79. text-transform: uppercase;
  80. }
  81. .main-header .nav-links {
  82. display: flex;
  83. list-style: none;
  84. margin-right: 3rem;
  85. }
  86. .main-header .nav-links .nav-link a {
  87. margin: 0.2rem;
  88. padding: 1rem 0.5rem;
  89. }
  90. .main-header .nav-links .nav-link a:hover {
  91. background: rgba(255, 255, 255, 0.03);
  92. color: #fff;
  93. }
  94. .main-header .menu-icon {
  95. position: relative;
  96. padding: 26px 10px;
  97. cursor: pointer;
  98. z-index: 1;
  99. display: none;
  100. }
  101. .main-header .menu-icon__line {
  102. display: block;
  103. position: relative;
  104. background: #000;
  105. height: 2px;
  106. width: 20px;
  107. border-radius: 4px;
  108. }
  109. .main-header .menu-icon__line::before, .main-header .menu-icon__line::after {
  110. content: "";
  111. position: absolute;
  112. height: 100%;
  113. width: 100%;
  114. border-radius: 4px;
  115. background-color: #000;
  116. transition: background 0.8s ease;
  117. }
  118. .main-header .menu-icon__line::before {
  119. transform: translateY(-5px);
  120. }
  121. .main-header .menu-icon__line::after {
  122. transform: translateY(5px);
  123. }
  124. .main-header .menu-btn {
  125. position: absolute;
  126. top: -100px;
  127. }
  128. .main-header.scrolled {
  129. height: 50px;
  130. background: rgba(255, 255, 255, 0.9);
  131. color: #000;
  132. }
  133. .main-header.scrolled .menu-icon__line, .main-header.scrolled .menu-icon__line::before, .main-header.scrolled .menu-icon__line::after {
  134. background: #000;
  135. }
  136. /* Medium: MD */
  137. @media screen and (max-width: 767px) {
  138. .main-header > .menu-icon {
  139. display: inline-block;
  140. margin-right: 3rem;
  141. }
  142. .main-header > .menu-icon__line::before,
  143. .main-header > .menu-icon__line,
  144. .main-header > .menu-icon__line::after {
  145. animation-direction: reverse;
  146. }
  147. .main-header > .menu-icon__line {
  148. animation: closeMid 0.8s backwards;
  149. }
  150. .main-header > .menu-icon__line::before {
  151. animation: closeTop 0.8s backwards;
  152. }
  153. .main-header > .menu-icon__line::after {
  154. animation: closeBottom 0.8s backwards;
  155. }
  156. .nav-links {
  157. position: absolute;
  158. top: 0;
  159. left: 0;
  160. margin: 0;
  161. opacity: 0;
  162. flex-direction: column;
  163. justify-content: flex-start;
  164. align-items: center;
  165. padding: 5rem 0;
  166. width: 100vw;
  167. height: 100vh;
  168. font-size: 18px;
  169. color: var(--secondary-text);
  170. transition: opacity 0.8s 0.5s, clip-path 1s 0.5s;
  171. clip-path: circle(200px at top right);
  172. }
  173. .main-header .nav-links .nav-link {
  174. opacity: 0;
  175. transform: translateX(100%);
  176. width: 100%;
  177. text-align: center;
  178. transition: .4s ease-in-out 1s, transform .6s cubic-bezier(0.175, 0.885, 0.32. 1.275)
  179. }
  180. .main-header > .nav-links > .nav-link > a {
  181. display: block;
  182. margin-bottom: 2rem;
  183. }
  184. .menu-btn:checked ~ .nav-links {
  185. opacity: 1;
  186. clip-path: circle(100% at center);
  187. background-color: #329998;
  188. }
  189. .menu-btn:checked ~ .nav-links > .nav-link {
  190. opacity: 1;
  191. transform: translateX(0);
  192. transition:
  193. opacity .4s ease-in-out 1s,
  194. transform .6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s;
  195. }
  196. .menu-btn:checked ~ .menu-icon {
  197. border-radius: 50%;
  198. animation: pulse 1s;
  199. }
  200. .menu-btn:checked ~ .menu-icon > .menu-icon__line,
  201. .menu-btn:checked ~ .menu-icon > .menu-icon__line::after,
  202. .menu-btn:checked ~ .menu-icon > .menu-icon__line::before
  203. {
  204. background: #fff;
  205. }
  206. .menu-btn:checked ~ .menu-icon > .menu-icon__line {
  207. animation: openMid 0.8s forwards
  208. }
  209. .menu-btn:checked ~ .menu-icon > .menu-icon__line::after {
  210. animation: openTop 0.8s forwards
  211. }
  212. .menu-btn:checked ~ .menu-icon > .menu-icon__line::before {
  213. animation: openBottom 0.8s forwards;
  214. }
  215. }
  216. /* Header top */
  217. .header-top {
  218. width: 100%;
  219. height: 100vh;
  220. background: linear-gradient(180deg, rgba(53,130,129,1) 0%, rgba(50,153,152,1) 35%, rgba(47,173,172,1) 100%);
  221. }
  222. .header-top > .container__header {
  223. display: flex;
  224. height: 100%;
  225. flex-direction: column;
  226. justify-content: center;
  227. align-items: center;
  228. text-align: center;
  229. }
  230. .header-top > .container__header > h1 {
  231. font-size: clamp(28px, 4vw, 50px);
  232. color: #fff;
  233. margin: 0 0 20px 0;
  234. }
  235. .header-top > .container__header > h2 {
  236. font-size: clamp(16px, 4vw, 28px);
  237. line-height: 38px;
  238. font-weight: 300;
  239. text-wrap: wrap;
  240. color: rgba(255, 255, 255, 0.8);
  241. }
  242. /* Intro Section */
  243. .intro-container {
  244. padding: 4rem 2rem;
  245. text-wrap: wrap;
  246. }
  247. .intro-container > span {
  248. font-size: clamp(16px, 1.1vw, 28px);
  249. }
  250. /* Services Section */
  251. .services-container {
  252. background: var(--primary-color-gradient);
  253. padding: 4rem 2rem 4rem 2rem;
  254. clip-path: polygon(0px 0px, 100% 0px, 100% 93.85%, 0px 100%);
  255. }
  256. .services-container > .container > span {
  257. font-size: 24px;
  258. line-height: 34px;
  259. color: rgba(255, 255, 255, 0.8);
  260. }
  261. .container-services__items {
  262. display: grid;
  263. grid-template-columns: repeat(2, 1fr);
  264. column-gap: 1rem;
  265. row-gap: 1rem;
  266. margin: 1rem 0 4rem 0;
  267. }
  268. .container-services__items > .service-item {
  269. display: flex;
  270. flex-direction: row;
  271. align-items: center;
  272. background-color: #fff;
  273. padding: 1rem;
  274. border-radius: 7px;
  275. }
  276. .container-services__items > .service-item > .icon-item-container {
  277. max-width: 100px;
  278. min-width: 100px;
  279. text-align: center;
  280. }
  281. .container-services__items > .service-item > .icon-item-container > i {
  282. font-size: 60px;
  283. transition: font-size 0.6s linear;
  284. }
  285. .container-services__items > .service-item > .icon-item-container > i:hover {
  286. font-size: 80px;
  287. }
  288. .text-item-container > h2 {
  289. font-size: 18px;
  290. font-weight: bold;
  291. margin: 0;
  292. }
  293. .container-services__items > .service-item > .texts-item-container > ul {
  294. color: rgba(0, 0, 0, 0.6);
  295. font-size: 16px;
  296. font-weight: 400;
  297. }
  298. @media screen and (max-width: 768px) {
  299. .container-services__items {
  300. grid-template-columns: 1fr;
  301. row-gap: 1rem;
  302. }
  303. .container-services__items > .service-item {
  304. flex-direction: column;
  305. }
  306. .container-services__items > .service-item > .icon-item-container {
  307. padding: 1rem 0
  308. }
  309. .container-services__items > .service-item > .texts-item-container > ul {
  310. list-style: none;
  311. padding: 0
  312. }
  313. .container-services__items > .service-item > .texts-item-container > ul > li {
  314. margin-bottom: .3rem;
  315. }
  316. .services-container {
  317. clip-path: polygon(0px 0px, 100% 0px, 99.78% 98.59%, 0px 100%);
  318. }
  319. }
  320. /* Animaciones */
  321. @keyframes pulse {
  322. from {
  323. box-shadow: 0 0 0 0px rgba(50, 153, 152, 0.6);
  324. background: rgba(50, 153, 152, 0.6);
  325. }
  326. to {
  327. box-shadow: 0 0 0 1000px rgba(50, 153, 152, 0);
  328. background: rgba(50, 153, 152, 0);
  329. }
  330. }
  331. @keyframes openTop {
  332. 0% { transform: translateY(-5px) rotate(0deg); }
  333. 50% { transform: translateY(0px) rotate(0deg); }
  334. 100% { transform: translateY(0px) rotate(90deg); }
  335. }
  336. @keyframes openMid {
  337. 50% { transform: rotate(0deg); }
  338. 100% { transform: rotate(50deg); }
  339. }
  340. @keyframes openBottom {
  341. 0% { transform: translateY(5px) rotate(0deg); }
  342. 50% { transform: translateY(0px) rotate(0deg); }
  343. 100% { transform: translateY(0px) rotate(90deg); }
  344. }