@tailwind base; @tailwind components; @tailwind utilities; @layer base { body { overscroll-behavior-y: none; } } .glass { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.8); } .dark .glass { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); } .custom-scrollbar::-webkit-scrollbar { width: 4px; } .custom-scrollbar::-webkit-scrollbar-track { background: transparent; } .custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(232, 165, 152, 0.3); border-radius: 10px; } /* Animaciones suaves */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideUpMenu { from { transform: translateY(100%); } to { transform: translateY(0); } } @keyframes gentlePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } } .animate-fade-in { animation: fadeIn 0.8s ease-out forwards; } .animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; } .animate-slide-up-menu { animation: slideUpMenu 0.5s ease-out forwards; } .animate-pulse-slow { animation: gentlePulse 4s ease-in-out infinite; } /* Botones y estilos base */ .btn-primary { background-color: #f4c7bb; color: #2a2a2a; font-weight: 700; border-radius: 1rem; box-shadow: 0 8px 20px rgba(232,165,152,0.4); transition: all 0.3s; } .btn-primary:hover { box-shadow: 0 12px 25px rgba(232,165,152,0.6); transform: translateY(-2px); } .dark .btn-primary { background-color: #d68c8c; color: #fff; box-shadow: 0 8px 20px rgba(214,140,140,0.2); } /* Controles UI Base */ .input-area { width: 100%; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(232, 165, 152, 0.35); padding: 1rem 1.15rem; outline: none; color: #2a2a2a; font-family: inherit; font-size: 0.95rem; border-radius: 1.1rem; box-shadow: inset 0 2px 8px rgba(232,165,152,0.1), 0 1px 3px rgba(0,0,0,0.05); resize: none; transition: all 0.3s ease; } .input-area::placeholder { color: rgba(42, 42, 42, 0.35); } .input-area:focus { border-color: rgba(232, 165, 152, 0.7); background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 3px rgba(232, 165, 152, 0.2), inset 0 2px 8px rgba(232,165,152,0.08); } .dark .input-area { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #fdfbf7; box-shadow: inset 0 2px 8px rgba(0,0,0,0.2); } .dark .input-area::placeholder { color: rgba(253, 251, 247, 0.3); } .dark .input-area:focus { background: rgba(255, 255, 255, 0.1); border-color: rgba(232, 165, 152, 0.4); box-shadow: 0 0 0 3px rgba(232, 165, 152, 0.1), inset 0 2px 8px rgba(0,0,0,0.15); } /* Switch UI - sacado de Sanar para Florecer */ .switch { position: relative; display: inline-block; width: 44px; height: 22px; margin-left: auto; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.15); transition: .4s; border-radius: 34px; border: 1px solid rgba(0,0,0,0.1); } .dark .slider { background-color: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.05); } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 1px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } input:checked + .slider { background-color: #e8a598; border-color: #d68c8c; } input:checked + .slider:before { transform: translateX(20px); }