home.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. body {
  7. font-family: 'Quicksand', sans-serif;
  8. background-image: url(../img/fondo.jpg);
  9. }
  10. /* Carrusel de inicio*/
  11. .slider {
  12. scroll-snap-align: start;
  13. position: relative;
  14. width: 100%;
  15. height: calc(100vh - 90px);
  16. overflow: hidden;
  17. z-index: 0;
  18. }
  19. .slider-container {
  20. display: flex;
  21. transition: transform 1s ease;
  22. }
  23. .slide {
  24. min-width: 100%;
  25. }
  26. .slide img {
  27. width: 100%;
  28. display: block;
  29. }
  30. .btn {
  31. background-color: rgb(255, 255, 255);
  32. border: none;
  33. border-radius: 100%;
  34. width: 50px;
  35. height: 50px;
  36. color: #76225e;
  37. padding: 10px;
  38. cursor: pointer;
  39. position: absolute;
  40. top: 50%;
  41. transform: translateY(-50%);
  42. transform: scale(1.2);
  43. font-size: 24px;
  44. z-index: 10;
  45. }
  46. .prev {
  47. left: 15px;
  48. }
  49. .next {
  50. right: 15px;
  51. }
  52. /* Sección historias de exito */
  53. .histories {
  54. margin-top: 20px;
  55. height: 85vh;
  56. background-color: #471d0116;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. }
  61. .content {
  62. display: flex;
  63. justify-content: space-around;
  64. width: 100%;
  65. max-width: 70%;
  66. height: auto
  67. }
  68. .text-content {
  69. padding-left: 20px;
  70. padding-right: 20px;
  71. display: flex;
  72. flex-direction: column;
  73. justify-content: center;
  74. width: 30%;
  75. }
  76. .histories-btn {
  77. text-decoration: none;
  78. color: white;
  79. border-radius: 30px;
  80. padding: 15px 30px;
  81. width: fit-content;
  82. font-weight: bold;
  83. background-color: #f04f48;
  84. }
  85. .other-content {
  86. padding-left: 20px;
  87. padding-right: 20px;
  88. width: 100%;
  89. max-width: 65%;
  90. }
  91. .other-content img {
  92. border-radius: 50%;
  93. width: 100%;
  94. height: 100%;
  95. }
  96. /* Slider infinito */
  97. .infinite-carousel {
  98. margin: 0 auto;
  99. padding: 20px 0;
  100. max-width: 65%;
  101. overflow: hidden;
  102. display: flex;
  103. height: 15vh;
  104. }
  105. .group {
  106. display: flex;
  107. align-items: center;
  108. justify-content: center;
  109. width: 100%;
  110. justify-content: space-between;
  111. padding-right: 20px;
  112. will-change: transform;
  113. animation: scrolling 30s linear infinite;
  114. }
  115. .card {
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. border-radius: 24px;
  120. margin-left: 100px;
  121. /* &:nth-child(1) {
  122. background: #7958ff;
  123. }
  124. &:nth-child(2) {
  125. background: #5d34f2;
  126. }
  127. &:nth-child(3) {
  128. background: #4300da;
  129. } */
  130. }
  131. .card img {
  132. border-bottom: 3px solid transparent;
  133. border-image: linear-gradient(to left, #dd9494 0%, #d62525 100%, #dd9494 0%) 1;
  134. height: 90px;
  135. width: 150px;
  136. }
  137. @keyframes scrolling {
  138. 0% {
  139. transform: translateX(0);
  140. }
  141. 100% {
  142. transform: translateX(-100%);
  143. }
  144. }
  145. @keyframes fadeInDown {
  146. from {
  147. opacity: 0;
  148. transform: translate3d(0, -20%, 0);
  149. }
  150. to {
  151. opacity: 1;
  152. transform: translate3d(0, 0, 0);
  153. }
  154. }