| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body {
- font-family: 'Quicksand', sans-serif;
- background-image: url(../img/fondo.jpg);
- }
- .container-scroll{
- scroll-padding-top: 90px; /* Ajuste para el tamaño del slider */
- overflow-y: scroll;
- scroll-snap-type: y mandatory;
- scroll-behavior: smooth;
- }
- /* Carrusel de inicio*/
- .slider {
- scroll-snap-stop: always; /* Forzar que el scroll-snap ocurra siempre al hacer scroll */
- scroll-snap-align: start;
- position: relative;
- width: 100%;
- height: calc(100vh - 90px);
- overflow: hidden;
- z-index: 0;
- }
- .slider-container {
- display: flex;
- transition: transform 1s ease;
- }
- .slide {
- min-width: 100%;
- }
- .slide img {
- width: 100%;
- display: block;
- }
- .btn {
- background-color: rgb(255, 255, 255);
- border: none;
- border-radius: 100%;
- width: 50px;
- height: 50px;
- color: #76225e;
- padding: 10px;
- cursor: pointer;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- transform: scale(1.2);
- font-size: 24px;
- z-index: 10;
- }
- .prev {
- left: 15px;
- }
- .next {
- right: 15px;
- }
- /* Sección historias de exito */
- .histories{
- scroll-snap-stop: always; /* Forzar que el scroll-snap ocurra siempre al hacer scroll */
- scroll-snap-align: start;
- margin-top: 20px;
- height: 80vh;
- background-color: #471d0116;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .content{
- display: flex;
- justify-content: space-around;
- width: 100%;
- max-width: 70%;
- height: auto
- }
- .text-content{
- padding-left: 20px;
- padding-right: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- width: 30%;
- }
- .histories-btn{
- text-decoration: none;
- color: white;
- border-radius: 30px;
- padding: 15px 30px;
- width: fit-content;
- font-weight: bold;
- background-color: #f04f48;
- }
- .other-content{
- padding-left: 20px;
- padding-right: 20px;
- width: 100%;
- max-width: 65%;
- }
- .other-content img{
- border-radius: 50%;
- width: 100%;
- height: 100%;
- }
- #scrollToTopBtn {
- position: fixed;
- bottom: 20px;
- right: 20px;
- display: none;
- color: #f04f48;
- background-color: transparent;
- font-weight: bold;
- border: 2px solid #f04f48;
- width: 70px;
- height: 70px;
- border-radius: 50%;
- padding: 15px;
- font-size: 24px;
- cursor: pointer;
- z-index: 100;
- transition: opacity 0.3s ease;
- }
- #scrollToTopBtn::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- width: 100%;
- height: 100%;
- border-radius: 50%;
- border: 2px solid rgba(240, 79, 72, 0.5);
- transform: translate(-50%, -50%) scale(1);
- opacity: 1;
- animation: radar-blur 2s infinite;
- z-index: -1;
- }
- #scrollToTopBtn:hover {
- cursor: pointer;
- }
- @keyframes radar-blur {
- 0% {
- transform: translate(-50%, -50%) scale(1);
- opacity: 1;
- }
- 80% {
- opacity: 0;
- }
- 100% {
- transform: translate(-50%, -50%) scale(2);
- opacity: 0;
- }
- }
- @keyframes fadeInDown {
- from {
- opacity: 0;
- transform: translate3d(0, -20%, 0);
- }
- to {
- opacity: 1;
- transform: translate3d(0, 0, 0);
- }
- }
|