* { 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); } }