/* Organización de Botones Flotantes */

/* Botón de Scroll to Top - Desktop */
#scroll-to-top-button {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 40;
    background-color: #2563eb;
    color: white;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: none;
}

#scroll-to-top-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#scroll-to-top-button:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    ring-offset: 2px;
}

/* Botón de Scroll to Top - Móvil */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 40;
    background-color: #2563eb;
    color: white;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

#scrollToTopBtn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

#scrollToTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Botón de Cookies - Esquina inferior izquierda */
.cookie-manage-button {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 40;
    background-color: #374151;
    color: white;
    padding: 10px 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cookie-manage-button:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
}

/* Botón de Accesibilidad - Esquina superior izquierda */
.accessibility-button {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 50;
    background-color: #2563eb;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #scroll-to-top-button,
    #scrollToTopBtn {
        bottom: 16px;
        right: 12px;
        padding: 10px;
    }

    .cookie-manage-button {
        bottom: 12px;
        left: 12px;
        padding: 8px 10px;
    }

    .accessibility-button {
        top: 12px;
        left: 12px;
        width: 48px;
        height: 48px;
    }
}

/* Asegurar que no haya superposiciones */
@media (max-width: 480px) {
    #scroll-to-top-button,
    #scrollToTopBtn {
        bottom: 12px;
        right: 8px;
    }

    .cookie-manage-button {
        bottom: 8px;
        left: 8px;
    }

    .accessibility-button {
        top: 8px;
        left: 8px;
    }
}

/* Animaciones suaves */
.floating-button-enter {
    animation: fadeInUp 0.3s ease-out;
}

.floating-button-exit {
    animation: fadeOutDown 0.3s ease-in;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Animación para elementos que aparecen */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras para los radio buttons modernos */
.modern-radio-hover {
    transition: all 0.3s ease;
}

.modern-radio-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Gradientes para las previsualizaciones */
.preview-gradient {
    background: linear-gradient(135deg, #f3e8ff 0%, #dbeafe 100%);
}

/* Mejoras para los badges de tasa */
.tasa-badge {
    transition: all 0.2s ease;
}

.tasa-badge:hover {
    transform: scale(1.05);
}
