home.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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.png);
  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. position: relative;
  91. }
  92. .other-content .bg-img{
  93. border-radius: 50%;
  94. width: 100%;
  95. height: 100%;
  96. }
  97. .carousel-container {
  98. position: absolute;
  99. bottom:-60px;
  100. left: 0;
  101. display: flex;
  102. flex-direction: column;
  103. align-items: center;
  104. }
  105. .carousel {
  106. display: flex;
  107. transition: transform 0.4s ease-in-out;
  108. overflow: hidden;
  109. width: 380px;
  110. height: 600px;
  111. }
  112. .carousel-track {
  113. display: flex;
  114. transition: transform 0.4s ease-in-out;
  115. }
  116. .card-car {
  117. min-width: fit-content;
  118. height: auto;
  119. margin-top: 50px;
  120. display: flex;
  121. flex-direction: column;
  122. text-align: center;
  123. align-items: center;
  124. font-size: 24px;
  125. border-radius: 10px;
  126. }
  127. .bubble{
  128. height: 500px;
  129. width: 375px;
  130. background-image: url(../img/pensamiento.png);
  131. background-size: cover;
  132. }
  133. .carousel-controls {
  134. display: flex;
  135. justify-content: space-between;
  136. margin-top: 15px;
  137. }
  138. .carousel-btn {
  139. background-color: #333;
  140. color: #fff;
  141. border: none;
  142. padding: 10px;
  143. cursor: pointer;
  144. border-radius: 50%;
  145. }
  146. /* Slider infinito */
  147. .infinite-carousel {
  148. margin: 0 auto;
  149. padding: 20px 0;
  150. max-width: 65%;
  151. overflow: hidden;
  152. display: flex;
  153. height: 15vh;
  154. }
  155. .group {
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. width: 100%;
  160. justify-content: space-between;
  161. padding-right: 20px;
  162. will-change: transform;
  163. animation: scrolling 30s linear infinite;
  164. }
  165. .card {
  166. display: flex;
  167. align-items: center;
  168. justify-content: center;
  169. border-radius: 24px;
  170. margin-left: 100px;
  171. /* &:nth-child(1) {
  172. background: #7958ff;
  173. }
  174. &:nth-child(2) {
  175. background: #5d34f2;
  176. }
  177. &:nth-child(3) {
  178. background: #4300da;
  179. } */
  180. }
  181. .card img {
  182. border-bottom: 3px solid transparent;
  183. border-image: linear-gradient(to left, #dd9494 0%, #d62525 100%, #dd9494 0%) 1;
  184. height: 90px;
  185. width: 150px;
  186. }
  187. @keyframes scrolling {
  188. 0% {
  189. transform: translateX(0);
  190. }
  191. 100% {
  192. transform: translateX(-100%);
  193. }
  194. }
  195. @keyframes fadeInDown {
  196. from {
  197. opacity: 0;
  198. transform: translate3d(0, -20%, 0);
  199. }
  200. to {
  201. opacity: 1;
  202. transform: translate3d(0, 0, 0);
  203. }
  204. }