home.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. .container-scroll{
  11. scroll-padding-top: 90px; /* Ajuste para el tamaño del slider */
  12. overflow-y: scroll;
  13. scroll-snap-type: y mandatory;
  14. scroll-behavior: smooth;
  15. }
  16. /* Carrusel de inicio*/
  17. .slider {
  18. scroll-snap-stop: always; /* Forzar que el scroll-snap ocurra siempre al hacer scroll */
  19. scroll-snap-align: start;
  20. position: relative;
  21. width: 100%;
  22. height: calc(100vh - 90px);
  23. overflow: hidden;
  24. z-index: 0;
  25. }
  26. .slider-container {
  27. display: flex;
  28. transition: transform 1s ease;
  29. }
  30. .slide {
  31. min-width: 100%;
  32. }
  33. .slide img {
  34. width: 100%;
  35. display: block;
  36. }
  37. .btn {
  38. background-color: rgb(255, 255, 255);
  39. border: none;
  40. border-radius: 100%;
  41. width: 50px;
  42. height: 50px;
  43. color: #76225e;
  44. padding: 10px;
  45. cursor: pointer;
  46. position: absolute;
  47. top: 50%;
  48. transform: translateY(-50%);
  49. transform: scale(1.2);
  50. font-size: 24px;
  51. z-index: 10;
  52. }
  53. .prev {
  54. left: 15px;
  55. }
  56. .next {
  57. right: 15px;
  58. }
  59. /* Sección historias de exito */
  60. .histories{
  61. scroll-snap-stop: always; /* Forzar que el scroll-snap ocurra siempre al hacer scroll */
  62. scroll-snap-align: start;
  63. margin-top: 20px;
  64. height: 80vh;
  65. background-color: #471d0116;
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. }
  70. .content{
  71. display: flex;
  72. justify-content: space-around;
  73. width: 100%;
  74. max-width: 70%;
  75. height: auto
  76. }
  77. .text-content{
  78. padding-left: 20px;
  79. padding-right: 20px;
  80. display: flex;
  81. flex-direction: column;
  82. justify-content: center;
  83. width: 30%;
  84. }
  85. .histories-btn{
  86. text-decoration: none;
  87. color: white;
  88. border-radius: 30px;
  89. padding: 15px 30px;
  90. width: fit-content;
  91. font-weight: bold;
  92. background-color: #f04f48;
  93. }
  94. .other-content{
  95. padding-left: 20px;
  96. padding-right: 20px;
  97. width: 100%;
  98. max-width: 65%;
  99. }
  100. .other-content img{
  101. border-radius: 50%;
  102. width: 100%;
  103. height: 100%;
  104. }
  105. #scrollToTopBtn {
  106. position: fixed;
  107. bottom: 20px;
  108. right: 20px;
  109. display: none;
  110. color: #f04f48;
  111. background-color: transparent;
  112. font-weight: bold;
  113. border: 2px solid #f04f48;
  114. width: 70px;
  115. height: 70px;
  116. border-radius: 50%;
  117. padding: 15px;
  118. font-size: 24px;
  119. cursor: pointer;
  120. z-index: 100;
  121. transition: opacity 0.3s ease;
  122. }
  123. #scrollToTopBtn::before {
  124. content: '';
  125. position: absolute;
  126. top: 50%;
  127. left: 50%;
  128. width: 100%;
  129. height: 100%;
  130. border-radius: 50%;
  131. border: 2px solid rgba(240, 79, 72, 0.5);
  132. transform: translate(-50%, -50%) scale(1);
  133. opacity: 1;
  134. animation: radar-blur 2s infinite;
  135. z-index: -1;
  136. }
  137. #scrollToTopBtn:hover {
  138. cursor: pointer;
  139. }
  140. @keyframes radar-blur {
  141. 0% {
  142. transform: translate(-50%, -50%) scale(1);
  143. opacity: 1;
  144. }
  145. 80% {
  146. opacity: 0;
  147. }
  148. 100% {
  149. transform: translate(-50%, -50%) scale(2);
  150. opacity: 0;
  151. }
  152. }
  153. @keyframes fadeInDown {
  154. from {
  155. opacity: 0;
  156. transform: translate3d(0, -20%, 0);
  157. }
  158. to {
  159. opacity: 1;
  160. transform: translate3d(0, 0, 0);
  161. }
  162. }