diff --git a/OgestanPlus/contenido/03.html b/OgestanPlus/contenido/03.html index 40f623d..da1d1bf 100644 --- a/OgestanPlus/contenido/03.html +++ b/OgestanPlus/contenido/03.html @@ -23,6 +23,40 @@ display: none; } + .custom-switch { + width: 6em; + height: 3em; + background: #dd3352; + background: linear-gradient(to left, #dd3352 33%, #ff8c29 100%); + border-radius: 1.5em; + box-shadow: inset 0 0 10px rgba(0,0,0,0.5); + position: relative; + cursor: pointer; + transition: all 0.3s ease; + } + + .custom-switch::before { + content: ''; + position: absolute; + width: 2.4em; + height: 2.4em; + background: #fff; + border-radius: 50%; + top: 0.3em; + left: 0.3em; + transition: all 0.3s ease; + box-shadow: 0 2px 4px rgba(0,0,0,0.2); + } + + .custom-switch.active { + background: #3ac0d5; + background: linear-gradient(to right, #3ac0d5 20%, #c1c902 100%); + } + + .custom-switch.active::before { + transform: translateX(3em); + } + @media(min-width: 768px) { .back0 { background-position: 28% 100%; @@ -58,14 +92,62 @@ -